apeiros_ changed the topic of #ruby-lang to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
mrsolo has quit [Quit: Leaving]
sepp2k has quit [Remote host closed the connection]
marr has quit [Ping timeout: 252 seconds]
bzalasky has joined #ruby-lang
torrieri has joined #ruby-lang
GeissT has joined #ruby-lang
toertore has quit [Quit: Leaving]
bzalasky has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Quit: Leaving]
GeissT has quit [Ping timeout: 258 seconds]
<whitequark> injekt: nevermind found it
hahuang65 has quit [Quit: Computer has gone to sleep.]
pkrnj has joined #ruby-lang
Swimming_Bird has quit [Quit: Computer has gone to sleep.]
dankest has quit [Quit: Leaving...]
jonahR has joined #ruby-lang
krohrbaugh1 has joined #ruby-lang
krohrbaugh1 has quit [Client Quit]
krohrbaugh has quit [Read error: Operation timed out]
tdy_ has quit [Ping timeout: 245 seconds]
kain has quit [Quit: exit]
mistym has quit [Remote host closed the connection]
swav has quit [Remote host closed the connection]
torrieri has quit [Quit: Linkinus - http://linkinus.com]
swav has joined #ruby-lang
swav has quit [Ping timeout: 256 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
Nisstyre-laptop has joined #ruby-lang
maxmanders has joined #ruby-lang
bzalasky has joined #ruby-lang
Oloryn_lt2 has joined #ruby-lang
maxmanders has quit [Ping timeout: 258 seconds]
dhruvasagar has joined #ruby-lang
sailias has joined #ruby-lang
krohrbaugh has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Quit: Leaving]
krohrbaugh has quit [Client Quit]
kain has joined #ruby-lang
<whitequark> yay source maps! http://showterm.io/fac7ed2a1ccc3259936c0
benkant has quit [Quit: benkant]
srbaker has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Quit: brianpWins]
tylersmith has quit [Quit: tylersmith]
krohrbaugh has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
bryanl has quit [Quit: bryanl out]
poga has joined #ruby-lang
bryanl has joined #ruby-lang
MartynKeigher has quit [Excess Flood]
MartynKeigher has joined #ruby-lang
krohrbaugh has quit [Read error: Operation timed out]
MartynKeigher has quit [Excess Flood]
MartynKeigher has joined #ruby-lang
retro|cz has joined #ruby-lang
Weems has quit [Ping timeout: 256 seconds]
srbaker has joined #ruby-lang
asahi has joined #ruby-lang
Oloryn_lt2 has quit [Read error: Connection reset by peer]
asahi has quit [Quit: Leaving.]
pkrnj has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
Swimming_Bird has quit [Client Quit]
idkazuma has joined #ruby-lang
rhizome has joined #ruby-lang
ahs3- has quit [Quit: Leaving]
ahs3- has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
krohrbaugh has joined #ruby-lang
srbaker has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 252 seconds]
t0h has joined #ruby-lang
pkrnj has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
swygue has quit [*.net *.split]
yellow5 has quit [*.net *.split]
sora_h__ has quit [*.net *.split]
znz_v has quit [*.net *.split]
thone has quit [*.net *.split]
yalue has quit [*.net *.split]
matled has quit [*.net *.split]
voker57 has quit [*.net *.split]
bothra has quit [*.net *.split]
segy has quit [*.net *.split]
t0h_ has quit [*.net *.split]
ggreer has quit [*.net *.split]
rtl has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
joschi has quit [*.net *.split]
shaman42 has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
pkrnj has joined #ruby-lang
thone has joined #ruby-lang
znz_v has joined #ruby-lang
bothra has joined #ruby-lang
joschi has joined #ruby-lang
swygue has joined #ruby-lang
yellow5 has joined #ruby-lang
voker57 has joined #ruby-lang
sora_h__ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
ggreer has joined #ruby-lang
segy has joined #ruby-lang
matled has joined #ruby-lang
rtl has joined #ruby-lang
yalue has joined #ruby-lang
sailias has quit [Quit: Leaving.]
srbaker has quit [Quit: Computer has gone to sleep.]
baba has joined #ruby-lang
poga has quit [Remote host closed the connection]
krohrbaugh has joined #ruby-lang
spuk has joined #ruby-lang
yxhuvud has joined #ruby-lang
wmoxam has quit [Ping timeout: 245 seconds]
krohrbaugh has quit [Quit: Leaving.]
pkrnj has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby-lang
pkrnj has joined #ruby-lang
pkrnj has quit [Client Quit]
celinedior has joined #ruby-lang
pkrnj has joined #ruby-lang
schroedinbug has joined #ruby-lang
mytrile has joined #ruby-lang
wallerdev has quit [Ping timeout: 256 seconds]
gix has quit [Ping timeout: 264 seconds]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
poga has joined #ruby-lang
poga has quit [Remote host closed the connection]
poga has joined #ruby-lang
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
kuja has quit [Ping timeout: 258 seconds]
poga has quit [Remote host closed the connection]
poga has joined #ruby-lang
gix has joined #ruby-lang
dankest has joined #ruby-lang
meise_ has joined #ruby-lang
notwen_ has joined #ruby-lang
hahuang65 has joined #ruby-lang
ddd__ has joined #ruby-lang
kstuart1 has joined #ruby-lang
redgetan_ has joined #ruby-lang
CoverSli1e has joined #ruby-lang
Muz_ has joined #ruby-lang
thone_ has joined #ruby-lang
ironcame1 has joined #ruby-lang
tenderlo_ has joined #ruby-lang
epitron_ has joined #ruby-lang
thone has quit [Read error: Operation timed out]
matti_ has joined #ruby-lang
hahuang65 has quit [Client Quit]
tenderlove has quit [*.net *.split]
kstuart has quit [*.net *.split]
matti has quit [*.net *.split]
Uranio has quit [*.net *.split]
anildigital_work has quit [*.net *.split]
meise has quit [*.net *.split]
spike|spiegel has quit [*.net *.split]
CoverSlide has quit [*.net *.split]
redgetan has quit [*.net *.split]
ruskie has quit [*.net *.split]
_protagoras271_ has quit [*.net *.split]
Muz has quit [*.net *.split]
Silex^^ has quit [*.net *.split]
ironcamel has quit [*.net *.split]
zenspider has quit [*.net *.split]
wudofyr has quit [*.net *.split]
crudson has quit [*.net *.split]
ddd has quit [*.net *.split]
epitron has quit [*.net *.split]
Guest85414 has quit [*.net *.split]
notwen has quit [*.net *.split]
matti_ is now known as matti
vlad_starkov has joined #ruby-lang
ruskie has joined #ruby-lang
wudofyr has joined #ruby-lang
Silex^^ has joined #ruby-lang
poga has quit [Remote host closed the connection]
Uranio has joined #ruby-lang
spike|spiegel has joined #ruby-lang
crudson has joined #ruby-lang
kuja has joined #ruby-lang
rue has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
divout has joined #ruby-lang
celinedior has quit [Quit: celinedior]
dankest has quit [Ping timeout: 240 seconds]
rue has joined #ruby-lang
rue has quit [Remote host closed the connection]
solars has quit [Ping timeout: 245 seconds]
poga has joined #ruby-lang
celinedior has joined #ruby-lang
rippa has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
mytrile has joined #ruby-lang
hapster has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
jxie_ has quit [Quit: leaving]
krohrbaugh has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 252 seconds]
crudson has left #ruby-lang [#ruby-lang]
vlad_starkov has joined #ruby-lang
brianpWins has joined #ruby-lang
setmeaway has quit [Ping timeout: 264 seconds]
rippa has quit [Ping timeout: 240 seconds]
sush24 has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
rippa has joined #ruby-lang
pbjorklund has joined #ruby-lang
robbyoconnor has joined #ruby-lang
mistym has quit [Remote host closed the connection]
epitron_ has quit [Changing host]
epitron_ has joined #ruby-lang
epitron_ has left #ruby-lang [#ruby-lang]
r0bby has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 256 seconds]
poga has quit [Remote host closed the connection]
poga has joined #ruby-lang
krohrbaugh has joined #ruby-lang
poga has quit [Ping timeout: 258 seconds]
krohrbaugh has quit [Ping timeout: 252 seconds]
poga has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
idkazuma has joined #ruby-lang
nXqd has joined #ruby-lang
Guest85414 has joined #ruby-lang
anildigital_work has joined #ruby-lang
voker57 has quit [Read error: Connection reset by peer]
marr has joined #ruby-lang
jg has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
solars has joined #ruby-lang
tonni has quit [Remote host closed the connection]
tonni has joined #ruby-lang
sepp2k has joined #ruby-lang
Axsuul has quit [Ping timeout: 246 seconds]
tomzx_mac has quit [Read error: Operation timed out]
poga has quit [Remote host closed the connection]
dr_bob has joined #ruby-lang
poga has joined #ruby-lang
krohrbaugh has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
vlad_sta_ has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 256 seconds]
tenderlo_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 248 seconds]
gix has quit [Quit: Client exiting]
FlyingLeap has quit [Quit: No Ping reply in 180 seconds.]
FlyingLeap has joined #ruby-lang
symm- has joined #ruby-lang
gix has joined #ruby-lang
hackeron has joined #ruby-lang
mhenrixon has joined #ruby-lang
sush24 has joined #ruby-lang
sush24 has quit [Remote host closed the connection]
alessio_rocco has joined #ruby-lang
sush24 has joined #ruby-lang
francisfish has quit [Ping timeout: 258 seconds]
brianpWins has quit [Quit: brianpWins]
fsvehla has joined #ruby-lang
fsvehla has quit [Client Quit]
Mon_Ouie has joined #ruby-lang
francisfish has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
gix has quit [Ping timeout: 256 seconds]
fjfish has joined #ruby-lang
gix has joined #ruby-lang
francisfish has quit [Ping timeout: 258 seconds]
xcombelle has joined #ruby-lang
poga has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby-lang
vlad_sta_ has quit [Ping timeout: 245 seconds]
maxmanders has joined #ruby-lang
idkazuma has joined #ruby-lang
maxmande_ has joined #ruby-lang
maxmanders has quit [Ping timeout: 252 seconds]
mbj has joined #ruby-lang
jonahR has quit [Quit: jonahR]
r0bgleeson has quit [Ping timeout: 255 seconds]
jxie has joined #ruby-lang
symm- has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
<yorickpeterse> whitequark: back in NL
<yorickpeterse> I'll be messing around with parser some time in the next two weeks so expect a potential increase of bug reports/patches
gnufied has joined #ruby-lang
<yorickpeterse> also, I've managed to create a Lemon parser in C++ and connect it with Ragel
<yorickpeterse> Needed some hacking though so I should probably blag about this
gnufied has quit [Client Quit]
mytrile has joined #ruby-lang
kgrz has joined #ruby-lang
dkannan has joined #ruby-lang
krohrbaugh has joined #ruby-lang
gnufied has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Ca1us has quit [Quit: ""]
krohrbaugh has quit [Ping timeout: 264 seconds]
tockitj has joined #ruby-lang
megha has joined #ruby-lang
poga has joined #ruby-lang
baba has quit [Ping timeout: 256 seconds]
tockitj has quit [Remote host closed the connection]
maxmande_ has quit [Ping timeout: 258 seconds]
poga has quit [Read error: No route to host]
poga has joined #ruby-lang
poga has quit [Remote host closed the connection]
tockitj has joined #ruby-lang
tockitj has left #ruby-lang [#ruby-lang]
tockitj has joined #ruby-lang
<injekt> :)
<tockitj> each_with_object (:
vlad_starkov has quit [Ping timeout: 252 seconds]
<charliesome> each_with_object is the best thing ever
<injekt> agreed
vlad_starkov has joined #ruby-lang
nXqd has quit [Remote host closed the connection]
<lianj> hm, you used it so much?
MaddinXx has joined #ruby-lang
toretore has joined #ruby-lang
madb055 has joined #ruby-lang
dkannan has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 256 seconds]
dkannan has joined #ruby-lang
krohrbaugh has joined #ruby-lang
mrfelix has joined #ruby-lang
jg has quit [Ping timeout: 255 seconds]
marr has quit [Ping timeout: 264 seconds]
maxmanders has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 264 seconds]
mbj has quit [Read error: Operation timed out]
cg has joined #ruby-lang
cg has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
gnufied has joined #ruby-lang
stef_204 has joined #ruby-lang
jg has joined #ruby-lang
havenwood has joined #ruby-lang
mbj has joined #ruby-lang
<yorickpeterse> http://cfp.euruko2013.org/proposals/17 self promotion: if you're going to Euruko and interested in this talk, do me a favour and upvote it
<yorickpeterse> I don't want to end up without tickets again like last year :<
madb055 has quit [Ping timeout: 258 seconds]
mytrile has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
xcombelle has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC.]
aob has joined #ruby-lang
mytrile has joined #ruby-lang
<aob> Hello - I'm trying to parse a really simple html page using nokogiri; it doesn't use css really. I want to show the text *between* two <h2> elements - ie I want to treat the doc hierarchically - show me the stuff "underneath" one of the h2 elements
<aob> I can't work out how to do this - any clues?
<manveru> yorickpeterse: any reason you don't mention the name of the linter?
<aob> I can find the elements with page.css('h2') - but how to I find out what's under them? Or am I just misunderstanding how nokogiri works?
<manveru> aob: basically you go to the parent of h2, iterate until you hit first h2, then collect the text until you hit second h2
vlad_sta_ has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
srbaker has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
srbaker has quit [Client Quit]
sush24 has quit [Quit: This computer has gone to sleep]
vlad_starkov has quit [Ping timeout: 258 seconds]
dr_bob has quit [Quit: Leaving.]
<aob> manveru: ok - so the page doesn't seem to be iterable; page.children is
<manveru> right
<manveru> doc.at('h2').parent.children.each_with_object([]) ...
idkazuma has joined #ruby-lang
oneirophren has joined #ruby-lang
<aob> ok - my case is actually not quite as I described it, as the content under the h2 is actually the last section - so there isn't a next h2.
<manveru> hm
<manveru> [16] pry(main)> a = 0; n.at('h2').parent.children.each_with_object([]){|e,o| break if a > 1; e.name == 'h2' ? (a += 1) : (o << e.inner_text) }
<aob> I can see I can ask nokogiri to give me the 3rd element
<manveru> => ["bar", "", "stuff"]
<manveru> well, that should handle either
<aob> but it doesn't seem to have children
* aob tries your approach
<manveru> "\n<html><body><div>\n<h2>foo</h2>\n<p>bar</p>\n<hr>\n<p>stuff</p>\n<h2>duh</h2>\n</div></body></html>\n"
<manveru> is the doc
<whitequark> yorickpeterse: awesome
* aob blinks
mbj has quit [Ping timeout: 245 seconds]
<whitequark> injekt: O_o
<whitequark> your tests behave VERY strange on my machine
<whitequark> essentially, the ruby process runs a random amount of tests and then exits
<whitequark> wtf
gnufied has quit [Quit: Leaving.]
dkannan has quit [Quit: dkannan]
<injekt> wtf
<injekt> thats weird
<whitequark> hmm it seems that some test calls #exit or #exit!
<injekt> im mobile right now will have to check more when im home
<whitequark> test_slop always exits after some test if I run it with the same seed
dkannan has joined #ruby-lang
<whitequark> on 1.9 and 2.0 alike
<injekt> i believe i call exit but catch the exception
<whitequark> >SlopTest#test_ensure_a_runner_does_not_execute_when_a_help_option_is_present
<whitequark> dat
<injekt> hah i think thats a new pr i merged
swav has joined #ruby-lang
<whitequark> dont you have ci
blegat has joined #ruby-lang
<whitequark> ah wait, that would break CI
<injekt> yes
<whitequark> i.e. break the idea of CI by not breaking CI
<injekt> it would just work and exit early
<injekt> exactly
<whitequark> dat sucks. we need more dependency injection
<whitequark> and moooocking
<injekt> aye
<blegat> Hi, I've already done 2 websites in Ruby on Rails so I'm familiar with basic ruby but I would like to know the advanced ruby stuff. I'm familiar with C++/Java style and I would love to find a tutorial not to long that explains the stuff that ruby does differently :)
<injekt> thanks for letting me know will check it out more when im home
<blegat> Do you have any idea :P
<whitequark> injekt: I'll fix this I think
<injekt> whitequark: even better, thanks!
<whitequark> yeah done
kristofferrr has joined #ruby-lang
<blegat> No idea ? :/
<whitequark> blegat: there isn't much similarities between C++/Java and Ruby
<whitequark> I'm not sure I can pick any from the top of my mind
Wardrop has joined #ruby-lang
<injekt> whitequark: awesome! thanks. I'll merge and push a new version tonight
<whitequark> :D
swav has quit [Ping timeout: 260 seconds]
<aob> manveru: your approach doesn't quite work on my example:
<aob> yields
swav has joined #ruby-lang
<whitequark> shit
<aob> ie it does exactly what I was doing with page.css('h1') - it doesn't fetch the stuff underneath
<whitequark> runpaintrunrun's ruby reference is dead
<whitequark> the domain is expired
io_syl has quit [Quit: Computer has gone to sleep.]
gnufied has joined #ruby-lang
gnufied has quit [Client Quit]
<whitequark> injekt: also I have a question
<whitequark> I want to do a somewhat strange thing... make a parent class which initializes common slop options. then make a subclass which extends them
<whitequark> what's the most sane way to do that?
vlad_starkov has joined #ruby-lang
vlad_sta_ has quit [Ping timeout: 258 seconds]
swav has quit [Remote host closed the connection]
aob has quit [Ping timeout: 264 seconds]
dvorak has joined #ruby-lang
kain has quit [Quit: exit]
sailias has joined #ruby-lang
dkannan has quit [Quit: dkannan]
<manveru> oh, forgot the break
<manveru> a = 0; n.at('h1').parent.children.each_with_object([]){|e,o| break(o) if a > 1; e.name == 'h1' ? (a += 1) : (o << e.text) }
io_syl has joined #ruby-lang
<manveru> in case he ever comes back
<injekt> whitequark: I think pry does something similar, i'll cook something up when i have a computer
<whitequark> injekt: ok thanks!
<lianj> manveru: n, a = 0, [] would be shorter :P
kgrz has quit [Ping timeout: 256 seconds]
kgrz has joined #ruby-lang
pskosinski has joined #ruby-lang
blacktulip has joined #ruby-lang
kristofferrr has quit [Quit: ❤]
pskosinski has quit [Ping timeout: 264 seconds]
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 258 seconds]
pskosinski has joined #ruby-lang
sailias has quit [Ping timeout: 258 seconds]
postmodern has quit [Quit: Leaving]
jxie has quit [Quit: leaving]
GeissT has joined #ruby-lang
kgrz has quit [Ping timeout: 264 seconds]
voker57 has joined #ruby-lang
kgrz has joined #ruby-lang
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
mytrile has quit [Remote host closed the connection]
maxmanders has quit [Quit: Textual IRC Client: www.textualapp.com]
io_syl has quit [Quit: Computer has gone to sleep.]
srbaker has joined #ruby-lang
<whitequark> codeclimate just hates my code :/
swav has joined #ruby-lang
<ericwood> global code warming
<ericwood> today will be the day I organize my documents.
<ericwood> I have a giant stack of 100 different things that range from insurance to car payments to other important stuff, and it's just sitting in a box
mytrile has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
enebo has joined #ruby-lang
swav has quit [Remote host closed the connection]
enebo has quit [Read error: Connection reset by peer]
enebo has joined #ruby-lang
blegat has quit [Ping timeout: 258 seconds]
MartynKeigher has quit [Excess Flood]
MartynKeigher has joined #ruby-lang
nertzy2 has joined #ruby-lang
<injekt> whitequark: I'm not sure there's a nice way to solve that, I had initially thought something like this: https://gist.github.com/injekt/b54bd981ea406fd5081e but that obviously wont work because or overriding initialize
<whitequark> injekt: oh, I don't really want to inherit Slop
<whitequark> I just want to have a way of "partially initializing" it
<whitequark> ie smth like "slop = Slop.new; slop.on(...); super(slop)"
nertzy has quit [Ping timeout: 276 seconds]
<injekt> whitequark: ah right
<whitequark> and in super more "slop.on(...)'
<injekt> yeah I see
<whitequark> inheritance would really be wrong here :)
<injekt> yup
<injekt> which led to my confusion :)
<injekt> whitequark: you could do something like; slop = Slop.new; slop.on(...); slop.extend(BaseOptions) and add them in there
<injekt> the problem is not being able to specify the order
mbj has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
<injekt> or of course just send the slop object anywhere and add them
oneirophren has quit [Ping timeout: 256 seconds]
<whitequark> injekt: ... I guess the obvious solution will work
<injekt> whitequark: :P
lguardiola has joined #ruby-lang
jg has quit [Ping timeout: 256 seconds]
jxie has joined #ruby-lang
setmeaway has joined #ruby-lang
GeissT has quit [Quit: MillBroChat AdIRC User]
havenwood has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
xcombelle has joined #ruby-lang
mwjcomputing has joined #ruby-lang
swav has joined #ruby-lang
jstemmer has quit [Quit: leaving]
swav has quit [Ping timeout: 258 seconds]
chris2 has quit [Ping timeout: 252 seconds]
benwoody has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
MartynKeigher has quit [Excess Flood]
sepp2k has quit [Ping timeout: 248 seconds]
MartynKeigher has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
sush24 has joined #ruby-lang
mistym has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
sepp2k has joined #ruby-lang
hapster has quit [Quit: Leaving]
blegat has joined #ruby-lang
erpuds has joined #ruby-lang
tylersmith has joined #ruby-lang
benanne has joined #ruby-lang
wyhaines has joined #ruby-lang
MartynKeigher has quit [Excess Flood]
tylersmith has quit [Client Quit]
MartynKeigher has joined #ruby-lang
io_syl has joined #ruby-lang
lsegal has joined #ruby-lang
blegat has quit [Ping timeout: 258 seconds]
ruby-lang615 has joined #ruby-lang
thatJasonSmith has joined #ruby-lang
divout has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
spectra has quit [Ping timeout: 264 seconds]
krohrbaugh has quit [Ping timeout: 246 seconds]
ruby-lang615 has quit [Quit: Page closed]
enebo has quit [Quit: enebo]
dvorak has quit [Ping timeout: 246 seconds]
krzbrg has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
dvorak has joined #ruby-lang
krzbrg has quit [Remote host closed the connection]
krzbrg has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
madb055 has joined #ruby-lang
tomzx_mac has joined #ruby-lang
tarebyte has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
sush24 has joined #ruby-lang
carloslopes has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
krzbrg has quit []
krzbrg has joined #ruby-lang
<krzbrg> I am accessing an API that returns a JSON object in a hash. How can I create a method that accesses the hash?
<zzak> awaketh
<krzbrg> Desired output: puts foo["user"][0]["user_name]
<krzbrg> Where "foo" is an instance of the hash.
sush24 has quit [Quit: This computer has gone to sleep]
<retro|cz> http://www.rubyflow.com/ is down :( ?
jstemmer has joined #ruby-lang
sush24 has joined #ruby-lang
tarebyte has left #ruby-lang [#ruby-lang]
tarebyte has joined #ruby-lang
mhi^ has quit [Ping timeout: 245 seconds]
tarebyte_ has joined #ruby-lang
symm- has joined #ruby-lang
mhi^ has joined #ruby-lang
tarebyte_ has quit [Ping timeout: 245 seconds]
<tarebyte> krzbrg: if you apply JSON.parse to your JSON object you can make it a hash
<tarebyte> are you just trying to make an accessor for the hash then?
tarebyte has left #ruby-lang [#ruby-lang]
chris2 has joined #ruby-lang
megha has quit [Ping timeout: 248 seconds]
security has joined #ruby-lang
tarebyte has joined #ruby-lang
havenwood has joined #ruby-lang
dhruvasagar has joined #ruby-lang
security is now known as megha
jacktrick has joined #ruby-lang
brianpWins has joined #ruby-lang
yfeldblum has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
madb055 has quit [Ping timeout: 248 seconds]
r0bgleeson has joined #ruby-lang
rue has joined #ruby-lang
jacktrick has quit [Quit: Leaving]
erpuds has quit [Quit: erpuds]
lacrosse has joined #ruby-lang
r0bgleeson has quit [Ping timeout: 252 seconds]
krzbrg has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
erpuds has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
r0bgleeson has joined #ruby-lang
chris2_ has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
dhruvasagar has quit [Ping timeout: 246 seconds]
marr has joined #ruby-lang
chris2 is now known as chris2-
havenwood has quit [Remote host closed the connection]
chris2_ is now known as chris2
jonahR has joined #ruby-lang
chris2- has quit [Quit: und wech...]
jonahR has quit [Ping timeout: 252 seconds]
notwen_ is now known as notwen
xcombelle has quit [Remote host closed the connection]
swav has joined #ruby-lang
wmoxam has quit [Ping timeout: 258 seconds]
r0bgleeson has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby-lang
alessio_rocco has quit [Ping timeout: 245 seconds]
mistym has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
krohrbaugh has joined #ruby-lang
apeiros has joined #ruby-lang
alessio_rocco has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 252 seconds]
mwjcomputing has quit [Ping timeout: 256 seconds]
TheNotary has joined #ruby-lang
jacktrick has joined #ruby-lang
sailias has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
r0bgleeson has joined #ruby-lang
krohrbaugh1 has joined #ruby-lang
Aria has joined #ruby-lang
Aria has quit [Remote host closed the connection]
Aria has joined #ruby-lang
krohrbaugh1 has quit [Ping timeout: 256 seconds]
erpuds has quit [Quit: erpuds]
erpuds has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
heftig has joined #ruby-lang
spuk has quit [Ping timeout: 248 seconds]
agarie has quit [Remote host closed the connection]
spuk has joined #ruby-lang
madb055 has joined #ruby-lang
brianpWins has joined #ruby-lang
celinedior has quit [Quit: celinedior]
tarebyte has quit [Remote host closed the connection]
mbj has quit [Read error: Operation timed out]
cirenyc has joined #ruby-lang
carloslopes has joined #ruby-lang
srbaker has joined #ruby-lang
judofyr has joined #ruby-lang
<judofyr> hey folks
<judofyr> what's up?
<Aria> Not too much.
<Aria> Grumbling about managing ruby dependencies with RPM.
<judofyr> RPM?
<Aria> It's become so damn hard. So much versioning hell out there.
<judofyr> why would you do that?
<judofyr> bundler it up
<Aria> I'm the OS integrator. We're trying to package apps out there for installation.
<judofyr> hm
arubin has joined #ruby-lang
<judofyr> I guess it can be tricky these days
<Aria> Yeah. It's really a pain.
<judofyr> Aria: can't you vendor gems in the application package?
<Aria> Sure, but it means modifying the upstream app. And inventing a whole new place to install stuff per-app.
mbj has joined #ruby-lang
<Aria> It makes ruby feel alien on an otherwise well-integrated system.
MartynKeigher has quit [Excess Flood]
kennyvb_ has quit [Quit: ZNC - http://znc.in]
kennyvb has joined #ruby-lang
<judofyr> Aria: I have no idea how to help you. the Ruby community have sort-of just decided that it's possible to install multiple versions of the same gems,
<Aria> Yeah.
<Aria> It's not any specific thing that's a problem, it's just that all together, it's really frustrating.
* judofyr wonders how Node.js is handled in the same system
<judofyr> I would imagine you have the same problems there
<Aria> Similar, but it was designed that way from the ground up.
<Aria> So some of the nasty edge cases are shaved off.
<judofyr> in Node.js or the RPM/OS-integration?
<Aria> in node.js / npm.
<Aria> It doesn't install into system locations by default. It doesn't even LOOK in system locations, often.
<Aria> Their load path is relative to the file being executed/loaded, rather than relative to the cwd.
<judofyr> Aria: interesting. what would make it easier in Ruby?
<Aria> That last thing would be the best.
<Aria> Relative load paths.
<Aria> Without dirname hacks.
<judofyr> for dependencies too?
blacktulip has quit [Remote host closed the connection]
<Aria> Dependencies are searched for in a hierarchy of libdirs, starting deep and working upward.
<judofyr> Aria: wouldn't you be able to accomplish the same with a shim-script that sets up the load path?
s0ber_ has joined #ruby-lang
<Aria> Yes. That was how node.js did it originally.
<Aria> It's brittle, and surprising, but ... honestly, probably the best way.
<judofyr> I do wish Ruby had a better namespace system
<judofyr> instead of just "load a file and define constants everywhere"
s0ber has quit [Ping timeout: 245 seconds]
s0ber_ is now known as s0ber
<Aria> Yeah.
<Aria> node.js had the opportunity to do better, with no backward-compatibility to worry about .
<judofyr> still, I don't think node.js is the perfect solution
<Aria> Not at all. They made an attempt, and got it better than most.
<Aria> having versioning in the namespace is the only universal solution, I think.
<Aria> require('foo-2.0')
<Aria> But then people have to actually change the number when they break compatibility.
<Aria> And THAT is something that's often not realized until later.
<judofyr> one problem with Node.js: there's no way to specify dependencies for plugins. e.g. if Rails used Node.js-style libraries a plugin wouldn't be able to say "I can only be used with Rails 3.x"
<judofyr> Aria: that is basically the Perl-way
<Aria> There is!
<Aria> peerDependencies
<judofyr> there is?
<judofyr> ah
<judofyr> nice
<Aria> Yup!
<Aria> I was very happy to discover that. It was added more recently.
<judofyr> recent?
<Aria> Yeah, 0.8.x
<Aria> It's nice having this encoded only into the package manager, and have the core lookup rules be more stupid.
<Aria> rubygems went the other way and extended the runtime lookup mechanism heavily.
<judofyr> I actually thought about this problem recently (about peer dependencies) and came to the same conclusion. although I called it "public dependency" and "private dependency"
* Aria nods.
<Aria> Makes perfect sense.
<apeiros> oh, hey, hi Aria. rare guest you are nowadays :)
r0bby is now known as robbyoconnor
<Aria> Hehe. Indeed.
<Aria> Working for others leaves me less time for community. It's sad.
<Aria> Also, living in node.js land a lot lately.
<judofyr> apieros: I feel like you're becoming rarer and rarer
<judofyr> too
<apeiros> too sad… I have to go to bed (I'm already far too late :-S). talk to you another time :)
<apeiros> judofry: nah, that's a temporal issue
<apeiros> *temporary
<judofyr> good :)
<Aria> (Aww)
<judofyr> I feel like whitequark has stolen this channel
<Aria> Take care, judofyr!
<Aria> One day I'll have to visit your timezone ;-)
<apeiros> though, having a dedicated gaming pc might reduce my online time in irc :D
* apeiros off, cya'all
<Aria> Ta, apeiros
<Aria> Oh. Derp. My client highlighted both apeiros and judofyr the same.
* Aria waves to apeiros, and un-goodbyes judofyr
<judofyr> :D
mbj has quit [Ping timeout: 258 seconds]
* judofyr wonders if there's a seen-bot here
<judofyr> corundum: seen ubersapiens
<corundum> ubersapiens was last seen 3 days, 5 hours, 16 minutes and 43 seconds ago, quitting IRC (Ping timeout: 245 seconds)
<apeiros> nickserv has that
<judofyr> right
<judofyr> where art you ubersapiens?
cirenyc has quit [Ping timeout: 248 seconds]
<judofyr> Aria: I really wish we had something better than RubyGems :(
<Aria> Me too.
<Aria> rpa was on the right track, but tried to do too much.
<Aria> Not enough small pieces.
benanne has quit [Quit: kbai]
srbaker has quit [Quit: Computer has gone to sleep.]
MaddinXx_ has quit [Remote host closed the connection]
srbaker has joined #ruby-lang
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
<judofyr> anyway
<judofyr> time to sleep
<judofyr> Aria: what timezone are you in?
judofyr has quit [Remote host closed the connection]
Aria has quit [Remote host closed the connection]
Aria has joined #ruby-lang
<yxhuvud> aria: extra fun ensued when fedora/redhat decided to change the way they package gems between 1.8 and 1.9. so much extra migration work to no productive use :(
mrfelix has quit [Quit: Computer has gone to sleep.]
r0bby has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 248 seconds]
<yorickpeterse> manveru: mostly because I feel that would make it look like an advertisement at this point
mrfelix has joined #ruby-lang
alessio_rocco has quit [Remote host closed the connection]
r0bby is now known as robbyoconnor
pskosinski has quit [Quit: pskosinski]
MaddinXx_ has joined #ruby-lang
<zzak> corundum: seen drbrain
<corundum> drbrain was last seen 8 days, 16 hours, 46 minutes and 18 seconds ago, saying so you end up with an extra hop going through the express
<zzak> :(
<Aria> yxhuvud: Yup. Though the new way seems better.
wmoxam has joined #ruby-lang
<yxhuvud> well, I see some huge problems ahead if someone aims to run, say, mri 1.9 and jruby2.0 at the same time, as they have made gems global and have stripped the abi version.
<yxhuvud> but apart from that, I'm not really convinced the changes actually solve any problems, while it *does* make their version of rubygem/bundler less compatible with the stock version.
<Aria> Yeah.
<Aria> Grm
<yxhuvud> (my personal pet peeve is when they decide to change the dependencies of a gem, but that is really a different question)
<Aria> (Hm.)
wmoxam has quit [Ping timeout: 252 seconds]
cirenyc has joined #ruby-lang
fjfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
sailias has quit [Ping timeout: 258 seconds]
<yxhuvud> because it kills bundler cold when I add stuff in my dev env and then try to use prepackaged versions. (yes, I use both bundler and packaged gems, mostly cause it makes developing a lot simpler and it protects against stupid errors since it makes certain dependency failures are found as soon as possible).
francisfish has quit [Ping timeout: 256 seconds]
<yxhuvud> oh well I should get some sleep. night.
Weems has joined #ruby-lang
Weems has quit [Changing host]
Weems has joined #ruby-lang
cirenyc has quit [Ping timeout: 248 seconds]
carloslopes has quit [Remote host closed the connection]
solars has quit [Ping timeout: 256 seconds]
kain has joined #ruby-lang
wmoxam has joined #ruby-lang
r0bby has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 264 seconds]
mrfelix has quit [Quit: Computer has gone to sleep.]
jacktrick has quit [Quit: Leaving]
chessguy has joined #ruby-lang
face has joined #ruby-lang
r0bby is now known as robbyoconnor
faces has quit [Ping timeout: 276 seconds]
MaddinXx_ has quit [Remote host closed the connection]