#microformats 2017-05-11
2017-05-11 UTC
# ben_thatmustbeme gRegorLove: i finally went through my entire list issue by issue
# ben_thatmustbeme before correcting anything on my local copy, i filed a copy
[shaners] joined the channel
# ben_thatmustbeme not yet, there are a few other things that i wanted to go over
# ben_thatmustbeme at a minimum, the text for install message
# ben_thatmustbeme which i know how to do, just haven't worked out the text for it yet
# ben_thatmustbeme the question was, should i go through bringing in the hyphens instead of underscores bit for 2.9 or wait for 3.0
# ben_thatmustbeme there were other possible improvements, but i don't think those are worth it then
# ben_thatmustbeme i'd say its just a matter of figuring out the text for the install message
# ben_thatmustbeme there are some improvements certainly, but yeah, again, only because i had those done
# ben_thatmustbeme delete branches other than master and 3.0.0
# ben_thatmustbeme will rebase that after 2.9 is out
# ben_thatmustbeme i figured i'd bump version as the last thing before release
# ben_thatmustbeme sure
# ben_thatmustbeme it looks like its just spec.post_install_message is all we need for the message
# ben_thatmustbeme suggestions on text for it?
# ben_thatmustbeme sounds good to me, don't know where it came from
# ben_thatmustbeme notice 3.0.0 is now passing travis tests :)
# ben_thatmustbeme dances
# ben_thatmustbeme carlton dances
# ben_thatmustbeme depending on class names
# ben_thatmustbeme also having the original nokogiri objects
# ben_thatmustbeme best to say we are getting rid of those and if people really complain or say they need them i may be able to bring them back
tantek joined the channel
# ben_thatmustbeme flood cut off?
# ben_thatmustbeme oh, the other hold was to make sure (:all) is the best option, i can't think of a better way to do it?
[ben_thatmustbem joined the channel
# [ben_thatmustbem i just jumped on slack to read it
# ben_thatmustbeme no, that was more just a question for you
# ben_thatmustbeme the (:all) is working in 2.9 and has a deprecation warning to say to transition to it
# ben_thatmustbeme can you think of a more ruby way to do it?
# ben_thatmustbeme collection.entry.cards woul become collection.entry.card(:all)
# ben_thatmustbeme the pluralization stuff really doesn't work with anything that is a plural already, so we have to drop those in order to not just break on random things
# ben_thatmustbeme entry.card calls method missing, so it already called that
# ben_thatmustbeme and whats returned is the object, not an array
# ben_thatmustbeme entry.card returns the first item in the array (as a ParserResult) but there is no way to travel up the tree
# ben_thatmustbeme so you can't get back the array
# ben_thatmustbeme the only other way would be to always return the array, but then its a major change to being more like .card[0] or .card.first etc
# ben_thatmustbeme it would return an error because .all is underfined for a card
# ben_thatmustbeme how?
# ben_thatmustbeme heh, magic of method missing
# ben_thatmustbeme not currently
# ben_thatmustbeme oh yes
# ben_thatmustbeme .card(:all) returns an array
# ben_thatmustbeme of ParserResults
# ben_thatmustbeme no, those don't actually make sense
# ben_thatmustbeme no, entry.card is a single item, so .first and .last on it would be the same as calling .entry.first or entry.last
# ben_thatmustbeme bbiaf
# ben_thatmustbeme jumping in the shower
# ben_thatmustbeme so entry.items returns the full array. so entry.items[0], entry.items.first, entry.items.last
# ben_thatmustbeme that all works
# ben_thatmustbeme entry.card is a shortcut for entry.items.select
{|x|x.type == 'h-card'}
# ben_thatmustbeme .first
# [ben_thatmustbem woah, that was a weird artifact of the bridge
# [ben_thatmustbem i types [ 0 ]
# [ben_thatmustbem [0]
# ben_thatmustbeme [0]
# ben_thatmustbeme strange
# ben_thatmustbeme OHHHHH. hahahaha
# ben_thatmustbeme its because IRC names are with brackets
# ben_thatmustbeme its trying to reference a usernamed 0
# ben_thatmustbeme yeah, i thought of that as an option, and it would be elegant, but its a much bigger change
# ben_thatmustbeme entry.card.all would then not work, if entry.card returns the array
# ben_thatmustbeme no, bigger change
# ben_thatmustbeme .card right now always returns a single item
# ben_thatmustbeme .card.name.to_s
# ben_thatmustbeme would now change to .card.first.name.to_s
# ben_thatmustbeme thats going to be a big transition for a lot of code
# ben_thatmustbeme .cards going to card(:all) is better than that
# ben_thatmustbeme just not as pretty
# ben_thatmustbeme and .card.name.to_s stays the same
# ben_thatmustbeme FILDI?
# ben_thatmustbeme hah
# ben_thatmustbeme okay then
# ben_thatmustbeme sounds good
# ben_thatmustbeme like so?
davidmead joined the channel
# ben_thatmustbeme No, not on 2.9 I didn't rewrite the test suite on it
# ben_thatmustbeme But it does fail the same number of them
[anomalily] joined the channel
# ben_thatmustbeme [shaners]: updated PR
# ben_thatmustbeme https://travis-ci.org/indieweb/microformats2-ruby/builds/230104272 3.0.0 branch is passing
# ben_thatmustbeme tantek: actually, on microformats/tests https://github.com/microformats/tests/issues/65
# ben_thatmustbeme all others i was reasonably sure what to do, this one i am reasonably sure it wrong, but not sure which way to go with it. thus i put this test in my copy as pending an update on the original repo
# ben_thatmustbeme okay, off to bed / on phone
# ben_thatmustbeme EDT
# ben_thatmustbeme EDT with 2 year old twins
# ben_thatmustbeme that makes for early nights
# ben_thatmustbeme and early mornings
# ben_thatmustbeme YAY!
# ben_thatmustbeme night!
# @rubygems microformats2 (2.9.0): Parses HTML for microformats and return a collection of dynamically defined Ruby objects https://rubygems.org/gems/microformats2 (twitter.com/_/status/862487013219606528)
# @veganstraightedge @rubygems I couldn’t be happier that the Microformats Ruby parser gem has found a new steward and is getting caught… https://twitter.com/i/web/status/862487662543872000 (twitter.com/_/status/862487662543872000)
# @veganstraightedge @rubygems And 3.0 (a complete re-write) of the Microformats Ruby parser gem is right around the corner. (2.9 was a… https://twitter.com/i/web/status/862487854974328832 (twitter.com/_/status/862487854974328832)
tantek joined the channel
[eddie], [michellejl], Zegnat, nitot, [kevinmarks] and barpthewire joined the channel
# ben_thatmustbeme Woo \o/ 2.9 is it the door. Now it's time to prep 3.0 and wait
[pfefferle] joined the channel
sebsel, KartikPrabhu, nitot_, [colinwalker], adactio, rodolfojcj, nitot, gRegorLove and [shaners] joined the channel
# ben_thatmustbeme oh, i thought you wanted to give time for people to see 2.9 first
# ben_thatmustbeme i'm making improvements to 3.0 anyway, specificially getting the respond_to? stuff working better
# ben_thatmustbeme and changing some of the class names to match the old one
# ben_thatmustbeme i'm assuming its similar to package.js / composer.js
# ben_thatmustbeme `yes
# ben_thatmustbeme or .x
# ben_thatmustbeme cool, same thing
# ben_thatmustbeme i'm finishing up some bits on 3.0.0, i'll rebase and i wouldn't mind some review from others
# ben_thatmustbeme has a tendency to occasionally live on the edge and implicitly accept that shit might get wild and break some time.
# ben_thatmustbeme now then, this is going to be a complex rebase
[cleverdevil] joined the channel
# ben_thatmustbeme [shaners]: should i push the result to a branch or just bring it directly in to master
rodolfojcj joined the channel
# ben_thatmustbeme interesting, i cannot actually merge the PR because i submitted it
[jeremycherfas] joined the channel
# ben_thatmustbeme i am only listed as a member on the repo?
# ben_thatmustbeme it seems
tantek and nitot joined the channel
# ben_thatmustbeme he was supposed to make me an admin on the repo
# ben_thatmustbeme but i cannot seem to self review still
ivc, nitot_, tantek, nitot, [jeremycherfas], [colinwalker], KartikPrabhu, [eddie] and [shaners] joined the channel
tantek joined the channel