apeiros_ changed the topic of #ruby-lang to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste code on http://gist.github.com
oleo has quit [Quit: Verlassend]
yock has quit [Ping timeout: 252 seconds]
Musashi007 has quit [Read error: Connection reset by peer]
dorei has quit []
Musashi007 has joined #ruby-lang
tmi_ has joined #ruby-lang
symm- has quit [Ping timeout: 256 seconds]
caseypatrickdris has quit [Remote host closed the connection]
RickHull has joined #ruby-lang
oleo has joined #ruby-lang
mcclurmc has joined #ruby-lang
koderok has joined #ruby-lang
koderok has quit [Client Quit]
caseypatrickdris has joined #ruby-lang
Technodrome has joined #ruby-lang
mcclurmc has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Remote host closed the connection]
tmi_ has quit [Quit: .]
loincloth has joined #ruby-lang
symm- has joined #ruby-lang
claudiuinberlin has quit [Quit: Leaving.]
mistym has quit [Remote host closed the connection]
loincloth has quit [Ping timeout: 272 seconds]
caseypatrickdris has quit [Remote host closed the connection]
ta has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
Technodrome has quit [Quit: Technodrome]
devgiant_ has quit [Quit: Leaving]
kiyote23 has joined #ruby-lang
shubhamg_ has quit [Remote host closed the connection]
banister has joined #ruby-lang
<brixen> whitequark: turn off coverage
<brixen> whitequark: you're running rbx with the slowest possible interpreter
<brixen> it's basically making a function call at every instruction pointer advance
<whitequark> hrm
<brixen> I'm fixing that soon
<brixen> but that's your issue
<whitequark> mri and jruby don't get the slowdown, no?
kiyote23 has quit [Remote host closed the connection]
<whitequark> both run coverage
<brixen> rbx has a very naive coverage implementation at the moment
<brixen> rbx can basically do zero-cost production coverage
<brixen> but that's not how Coverage was implemented
<whitequark> ok
<brixen> it's using the tooling interpreter, which has a function hook at every IP
<brixen> like I said, I'm fixing that soon
caseypatrickdris has joined #ruby-lang
|jemc| has joined #ruby-lang
mcclurmc has joined #ruby-lang
nisscrooge has quit [Changing host]
nisscrooge has joined #ruby-lang
nisscrooge is now known as nisstyre
shubhamg_ has joined #ruby-lang
Sadin has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
Sadin has joined #ruby-lang
yfeldblum has joined #ruby-lang
marr has quit [Ping timeout: 255 seconds]
Menorah has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
boadie has quit [Read error: Connection reset by peer]
boadie has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
micmus has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
loincloth has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 244 seconds]
havenwood has quit [Remote host closed the connection]
loincloth has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
caseypatrickdris has joined #ruby-lang
symm- has quit [Ping timeout: 252 seconds]
Menorah has quit [Quit: This computer has gone to sleep]
daften has joined #ruby-lang
daften has left #ruby-lang [#ruby-lang]
mistym has joined #ruby-lang
Menorah has joined #ruby-lang
charliesome has joined #ruby-lang
cornerma1 has joined #ruby-lang
cornerman has quit [Ping timeout: 245 seconds]
cornerma1 is now known as cornerman
[H]unt3r has joined #ruby-lang
yock has joined #ruby-lang
yock has quit [Ping timeout: 244 seconds]
Technodrome has joined #ruby-lang
tombroomfield has joined #ruby-lang
red_menace has joined #ruby-lang
mcclurmc has joined #ruby-lang
loincloth has joined #ruby-lang
djbkd_ has quit [Read error: Connection reset by peer]
djbkd has joined #ruby-lang
pwelch has quit [Quit: Connection closed for inactivity]
loincloth has quit [Ping timeout: 245 seconds]
mcclurmc has quit [Ping timeout: 244 seconds]
djbkd has quit [Ping timeout: 244 seconds]
Bedov-Kutoniva has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
apeiros_ has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
|jemc| has quit [Ping timeout: 250 seconds]
Jet4Fire has quit []
yfeldblum has joined #ruby-lang
mistym_ has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
mistym has quit [Disconnected by services]
mistym_ is now known as mistym
yfeldblum has quit [Ping timeout: 258 seconds]
kiyote23 has joined #ruby-lang
hotpancakes has quit []
j4cknewt has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
Menorah has quit [Quit: This computer has gone to sleep]
Menorah has joined #ruby-lang
j4cknewt has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
shubhamg_ has quit [Remote host closed the connection]
<RickHull> has inkjet been around? i notice slop went 4.0 :)
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
weaksauce has joined #ruby-lang
Lewix has joined #ruby-lang
tombroomfield has quit [Read error: No route to host]
tombroomfield has joined #ruby-lang
dane has joined #ruby-lang
red_menace has quit [Quit: Quit]
yock has joined #ruby-lang
Musashi007 has joined #ruby-lang
<dane> How can I use a method within a class to access tbe method with a nested class
<dane> need help pls can go further without the solution
kiyote23 has quit [Remote host closed the connection]
yock has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby-lang
dane has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: zzz]
yfeldblum has quit [Ping timeout: 255 seconds]
dane has joined #ruby-lang
dane has quit [Ping timeout: 245 seconds]
futilegames has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
mcclurmc has quit [Ping timeout: 244 seconds]
<whitequark> RickHull: ljarvis ^
caseypatrickdris has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby-lang
<RickHull> ljarvis: aha, i tried leejarvis :)
<RickHull> what's new in slop 4.0 aside from ruby 2.0? I didn't see a changelog
shubhamgoyal has joined #ruby-lang
<RickHull> whitequark: thanks
|jemc| has joined #ruby-lang
<RickHull> i have a slop dependency at ~> 3.0, and i think I am 4.0 compatible. should I change it to >= 3.0 or ~> 4.0 or?
djbkd has quit [Ping timeout: 244 seconds]
tombroomfield has quit [Read error: Connection reset by peer]
tombroomfield has joined #ruby-lang
|jemc| has quit [Ping timeout: 272 seconds]
tombroomfield has quit [Read error: Connection reset by peer]
tombroomfield has joined #ruby-lang
[H]unt3r has quit [Ping timeout: 258 seconds]
shubhamgoyal has quit [Remote host closed the connection]
shubhamgoyal has joined #ruby-lang
shubhamgoyal has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
Musashi007 has joined #ruby-lang
gjaldon has joined #ruby-lang
yfeldblum has joined #ruby-lang
shubhamgoyal has joined #ruby-lang
Musashi007 has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
shubhamg_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
shubhamgoyal has quit [Ping timeout: 245 seconds]
shubhamg_ has quit [Remote host closed the connection]
Musashi007 has joined #ruby-lang
jxie has quit [Ping timeout: 252 seconds]
Lewix has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
jxie has joined #ruby-lang
mcclurmc has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
mcclurmc has quit [Ping timeout: 256 seconds]
rbrs has joined #ruby-lang
caseypatrickdris has quit [Ping timeout: 244 seconds]
Menorah has quit [Quit: This computer has gone to sleep]
jxie has quit [Remote host closed the connection]
klmlfl has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
<RickHull> note, having a problem with `banner` in a Slop.parse block: undefined method `banner' for main:Object (NoMethodError)
revath has joined #ruby-lang
ubermonkey has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ubermonkey has quit []
jxie has joined #ruby-lang
dabradley has quit [Ping timeout: 250 seconds]
Sgeo has quit [Read error: Connection reset by peer]
Sgeo has joined #ruby-lang
charliesome has quit [Quit: zzz]
yock has joined #ruby-lang
jxie has quit [Ping timeout: 245 seconds]
shubhamgoyal has joined #ruby-lang
jxie has joined #ruby-lang
yock has quit [Ping timeout: 245 seconds]
shubhamg_ has joined #ruby-lang
klmlfl has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
dabradley has joined #ruby-lang
shubhamgoyal has quit [Ping timeout: 256 seconds]
djbkd has quit [Remote host closed the connection]
drewdavis has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
chinmay_dd has joined #ruby-lang
drewdavis has joined #ruby-lang
centrx has joined #ruby-lang
mcclurmc has quit [Ping timeout: 245 seconds]
mistym has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
boadie has quit []
boadie has joined #ruby-lang
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
wallerdev has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby-lang
pwnz0r has joined #ruby-lang
kiyote23 has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
hahuang61 has quit [Quit: WeeChat 1.0.1]
rahul_j has joined #ruby-lang
kiyote23 has quit [Ping timeout: 264 seconds]
rahul_j has quit [Client Quit]
rahul_j has joined #ruby-lang
hahuang61 has joined #ruby-lang
ikrima has joined #ruby-lang
gjaldon has joined #ruby-lang
Forgetful_Lion has quit [Ping timeout: 244 seconds]
Menorah has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
ikrima has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby-lang
mcclurmc has joined #ruby-lang
ikrima has joined #ruby-lang
djbkd has quit [Ping timeout: 250 seconds]
mcclurmc has quit [Ping timeout: 258 seconds]
Musashi007 has quit [Quit: Musashi007]
Sadin has quit [Remote host closed the connection]
chinmay_dd has quit [Quit: Leaving]
RickHull has quit [Ping timeout: 246 seconds]
fusillicode has joined #ruby-lang
AmirolAhmad has joined #ruby-lang
fusillicode has quit [Ping timeout: 264 seconds]
Musashi007 has joined #ruby-lang
futilegames has quit [Ping timeout: 252 seconds]
futilegames has joined #ruby-lang
nofxx has quit [Ping timeout: 244 seconds]
Technodrome has quit [Read error: Connection reset by peer]
druznek has joined #ruby-lang
yock has joined #ruby-lang
pwnz0r has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
ikrima has quit [Ping timeout: 240 seconds]
yock has quit [Ping timeout: 252 seconds]
Missphoenix has joined #ruby-lang
fusillicode has joined #ruby-lang
Miphix has quit [Read error: Connection reset by peer]
gjaldon has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
onlyme has joined #ruby-lang
rahul_j has joined #ruby-lang
Bwild has quit [Ping timeout: 244 seconds]
gjaldon has quit [Remote host closed the connection]
GBrawl has joined #ruby-lang
onlyme has quit [Quit: Be back later ...]
shubhamg_ has quit [Remote host closed the connection]
shubhamgoyal has joined #ruby-lang
mcclurmc has joined #ruby-lang
druznek has quit [Ping timeout: 244 seconds]
rippa has joined #ruby-lang
shubhamgoyal has quit [Ping timeout: 244 seconds]
mcclurmc has quit [Ping timeout: 264 seconds]
rahul_j has quit [Quit: rahul_j]
shubhamgoyal has joined #ruby-lang
ur5us has joined #ruby-lang
rahul_j has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
rahul_j has quit [Quit: rahul_j]
rahul_j has joined #ruby-lang
kapil__ has joined #ruby-lang
amclain has quit [Quit: Leaving]
tkuchiki has quit [Remote host closed the connection]
Menorah has quit [Quit: This computer has gone to sleep]
rahul_j has quit [Quit: rahul_j]
onlyme has joined #ruby-lang
Menorah has joined #ruby-lang
yfeldblum has joined #ruby-lang
solars has joined #ruby-lang
djbkd has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
djbkd has quit [Ping timeout: 255 seconds]
mcclurmc has joined #ruby-lang
futilegames has quit [Ping timeout: 240 seconds]
mcclurmc has quit [Ping timeout: 272 seconds]
ledestin has joined #ruby-lang
j4cknewt has quit [Ping timeout: 240 seconds]
tombroomfield has quit [Read error: Connection reset by peer]
tombroomfield has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
j4cknewt_ has joined #ruby-lang
gjaldon has joined #ruby-lang
j4cknewt_ has quit [Read error: Connection reset by peer]
Blaguvest has joined #ruby-lang
druznek has joined #ruby-lang
revath has quit [Ping timeout: 258 seconds]
rahul_j has joined #ruby-lang
yock has joined #ruby-lang
ta has joined #ruby-lang
j4cknewt has joined #ruby-lang
yock has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby-lang
ta has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby-lang
ta_ has quit [Ping timeout: 264 seconds]
gogooo has joined #ruby-lang
aa_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
gogooo has quit [Remote host closed the connection]
aaaa has joined #ruby-lang
gogooo has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
aaaa has quit [Client Quit]
gogooo has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
aa_ has quit [Ping timeout: 246 seconds]
gjaldon has joined #ruby-lang
loincloth has quit [Ping timeout: 244 seconds]
mistym has quit [Remote host closed the connection]
symm- has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
mcclurmc has quit [Ping timeout: 256 seconds]
revath has joined #ruby-lang
ikrima has joined #ruby-lang
donove has joined #ruby-lang
ikrima has quit [Ping timeout: 244 seconds]
Forgetful_Lion has joined #ruby-lang
gjaldon has quit []
rahul_j has quit [Quit: rahul_j]
rahul_j has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
ihme-TTilus is now known as TTilus
dellavg_ has joined #ruby-lang
oleo is now known as Guest96167
oleo__ has joined #ruby-lang
loincloth has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
Guest96167 has quit [Ping timeout: 265 seconds]
oleo__ has quit [Read error: Connection reset by peer]
oleo__ has joined #ruby-lang
oleo__ is now known as oleo
loincloth has quit [Ping timeout: 265 seconds]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
wigggle has joined #ruby-lang
<wigggle> Do you guys prefer if ! or unless?
<chris2> use what reads better
<chris2> and dont use unless with else
<wigggle> Thanks
<wigggle> Feels like unless takes a little bit more time to read
oak1 has quit [Ping timeout: 258 seconds]
<apeiros_> wigggle: I generally keep the condition "positive"
<apeiros_> and composite conditions -> almost always `if`
<apeiros_> `unless a`, `unless a == b`, `if a == b && b != c`
<wigggle> Ahaa I see
rahul_j has quit [Quit: rahul_j]
<wigggle> Yeah that seems like a good rule
tombroomfield has quit [Read error: Connection reset by peer]
tombroom_ has joined #ruby-lang
<wigggle> Just that every time I read unless my brain has to go "what was unless again?", "oh it's like if !"
<apeiros_> though I tend to move long conditions into methods, or at least break them out into local variable assignments
<wigggle> Vs just going straight to if !
<wigggle> * has to go like
<wigggle> apeiros_: I see you pros like breaking stuff up into smaller pieces, one day I hope to be able to do the same
AmirolAhmad has quit []
charliesome has joined #ruby-lang
rahul_j has joined #ruby-lang
druznek has quit [Ping timeout: 272 seconds]
wallerdev has quit [Quit: wallerdev]
<apeiros_> wigggle: nothing stops you from starting right now ;-)
yfeldblum has joined #ruby-lang
<wigggle> lol
yfeldblum has quit [Ping timeout: 244 seconds]
tombroom_ has quit [Remote host closed the connection]
tombroomfield has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
mcclurmc has joined #ruby-lang
mcclurmc has quit [Ping timeout: 265 seconds]
tombroomfield has quit [Remote host closed the connection]
dorei has joined #ruby-lang
<wigggle> % /bin/replace "unless " "if !"
rahul_j has joined #ruby-lang
<godd2> great talk for learning how to break things up
<wigggle> Awesome thank you
<godd2> also, replacing "unless " with "if !" wont work every time
<wigggle> How so?
[spoiler] has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
<godd2> it won't work whenever there's more than one thing
<godd2> you'd need to wrap the predicate in parentheses
Musashi007 has quit [Quit: Musashi007]
ikrima has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
<wigggle> godd2: Wow I did not know that
<wigggle> Cheers!
<wigggle> godd2: Or I could do this right? if !user.logged_in? && !home_page.modified?
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
<godd2> you'd also have to change the && to ||
<wigggle> Damn
<wigggle> That's deep =)
loincloth has joined #ruby-lang
<godd2> think of it like distribution in math
<godd2> when you "multiply" by a not, ands become ors and ors become ands
djbkd has joined #ruby-lang
loincloth has quit [Ping timeout: 255 seconds]
<wigggle> Ah yeah
<wigggle> I remember that stuff from elem school
ledestin has quit [Quit: ledestin]
djbkd has quit [Ping timeout: 272 seconds]
caseypatrickdris has joined #ruby-lang
djbkd has joined #ruby-lang
mcclurmc has joined #ruby-lang
yfeldblum has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
mcclurmc has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
go|dfish has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
houhoulis has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
rahul_j has joined #ruby-lang
mattwildig has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
spastorino has joined #ruby-lang
chills42 has joined #ruby-lang
red_menace has joined #ruby-lang
mattwildig has quit []
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
rippa has joined #ruby-lang
GBrawl has quit [Quit: (null)]
druznek has joined #ruby-lang
yfeldblum has joined #ruby-lang
ikrima has quit [Ping timeout: 240 seconds]
jxie has quit [Ping timeout: 244 seconds]
chills42 has quit [Remote host closed the connection]
revath has quit [Ping timeout: 265 seconds]
jxie has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
mcclurmc has joined #ruby-lang
mcclurmc has quit [Ping timeout: 252 seconds]
tombroomfield has joined #ruby-lang
onlyme has quit [Quit: Be back later ...]
cornerma1 has joined #ruby-lang
arBmind has joined #ruby-lang
tombroomfield has quit [Ping timeout: 240 seconds]
cornerman has quit [Ping timeout: 258 seconds]
cornerma1 is now known as cornerman
kiyote23 has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
caseypatrickdris has quit [Quit: Leaving...]
rahul_j has quit [Quit: rahul_j]
symm- has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
rahul_j has joined #ruby-lang
xcesariox has joined #ruby-lang
lexruee has joined #ruby-lang
shubhamgoyal has quit [Remote host closed the connection]
druznek has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
onlyme has joined #ruby-lang
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
marcel has left #ruby-lang ["Textual IRC Client: www.textualapp.com"]
shubhamg_ has joined #ruby-lang
mcclurmc has joined #ruby-lang
mcclurmc has quit [Ping timeout: 244 seconds]
onlyme has quit [Quit: Be back later ...]
djbkd has quit [Remote host closed the connection]
jkad has joined #ruby-lang
<jkad> does anyone use gentoos eselect ruby function to manage ruby versions?
rahul_j has quit [Quit: rahul_j]
rahul_j has joined #ruby-lang
symm- has joined #ruby-lang
tsou has quit [Ping timeout: 245 seconds]
tsou has joined #ruby-lang
diegoviola has joined #ruby-lang
neurodamage has quit [Ping timeout: 258 seconds]
houhoulis has joined #ruby-lang
klmlfl has joined #ruby-lang
<nofxx> Where should static data files (yml,csv whatever) should go in a gem? ./data ? ./lib/gem/data ? The later no? Isn't there a 'only lib shoud get in load path thingy?'
<nofxx> often see it on root path tho
<bougyman> if I need data I create ./data
<nofxx> bougyman, and require with File.dir(__FILE__ ?
<nofxx> join '..' heh
<bougyman> no I always know where my ROOT is
<bougyman> so it would be R 'data/file.json'
<nofxx> bougyman, hum... but shouldn't your root be lib/mygem/ ?
<bougyman> that's LIBROOT
mcclurmc has joined #ruby-lang
<bougyman> nofxx: I basically have this in everything: https://github.com/geoforce/dyndnsr/blob/master/lib/dyn_dns_r.rb#L14-L19
<bougyman> then those helper models so I can use use L 'libname', R 'path/to/thing', M 'model_name'
<bougyman> er helper methods
mcclurmc has quit [Ping timeout: 245 seconds]
<apeiros_> nofxx: I usually have a 3 level mechanism: pass location explicitly > env variable > backup in gem/data
<apeiros_> nofxx: and for gem/data, there's Gem.data_dir which expects GEM_ROOT/data/GEM_NAME
<apeiros_> sorry, Gem.datadir
symm- has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
fsvehla has quit [Quit: fsvehla]
<nofxx> bougyman, apeiros_ thank you
djbkd has quit [Ping timeout: 244 seconds]
slawrenc_ has joined #ruby-lang
slawren__ has joined #ruby-lang
mcclurmc has joined #ruby-lang
jkad has left #ruby-lang ["WeeChat 0.4.3"]
klmlfl has quit [Remote host closed the connection]
lexruee has quit [Quit: Verlassend]
yfeldblum has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
bougytoo has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
bougyman has quit [Ping timeout: 258 seconds]
ruby-lang746 has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
symm- has joined #ruby-lang
kapil__ has quit [Quit: Connection closed for inactivity]
ruby-lang746 has quit [Ping timeout: 246 seconds]
loincloth has joined #ruby-lang
<nofxx> In minitest I'm supposed to have all my tests in spec/ ? w/o subfolders?
loincloth has quit [Ping timeout: 244 seconds]
<nofxx> what a mess
<ljarvis> nofxx: I don't believe minitest has such restriction
<ljarvis> they're just ruby files
<nofxx> ljarvis, I mean, per convention.... like in rspec you just require 'spec_helper'
<ljarvis> ah, I use minitest and have my tests in test/ with _test.rb suffix
<nofxx> I prefer rspec way, if you got lib/slop/parser.rb the unit for it is spec/slop/parser_spec.rb
<ljarvis> well,you can do that for minitest too
<nofxx> makes more sense, and also , my emacs is aware of that
havenwood has joined #ruby-lang
<ljarvis> I just have a rake task for running the tests, which can be modified to adapt any layout https://github.com/leejarvis/slop/blob/master/Rakefile#L10
<nofxx> ljarvis, but nothing built in I mean, going need to File.join my path to find the spec helper on each test file
<ljarvis> no
<ljarvis> just use require
bennyklotz has quit [Quit: leaving]
<nofxx> must be calling it wrong than... it's not finding spec/spec_helper.rb
<nofxx> just the rake task
<ljarvis> that's what I do, if you want to run just 1 single spec you can do so by running `ruby -Itest test/foo_test.rb`
bennyklotz has joined #ruby-lang
<ljarvis> nofxx: just use 'spec_helper' for the require, and then ensure 'spec' is in LOAD_PATH
<nofxx> ljarvis, ah thanks, but in the rakefile? $LOAD_PATH << ?
<ljarvis> nofxx: see my Rakefile, I use t.libs << 'test' which does that for me
<nofxx> ljarvis, thank you
<ljarvis> nofxx: np
<nofxx> working
SHyx0rmZ has joined #ruby-lang
RickHull has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
<RickHull> ljarvis: does slop 4.0 have the ability to use the option type and default in the help/usage output?
<RickHull> if not, would it be plausible as a feature?
rahul_j has joined #ruby-lang
slawren__ has quit [Quit: Textual IRC Client: www.textualapp.com]
<RickHull> e.g. no need to restate the default as in: `o.int '-p', '--port', 'port (default: 80)', default: 80`
<ljarvis> RickHull: it doesn't, I'd definitely consider it as a feature (and it was requested for v3), the problem is there are so many variations and options to consider, that I usually just end up saying writing your own help would be simpler
<RickHull> gotcha. wasn't that a feature of slop in the early days?
<RickHull> i like the changes for 4.0 :)
<ljarvis> it supported 'custom' help messages, but never inserted the default
<ljarvis> great :)
Rodya_ has joined #ruby-lang
<RickHull> i've always liked slop for being terse and easy to use. but i'm thinking reasonably-sophisiticated-self-documenting is my goal for non-prototypes
<RickHull> sophisticated, even
<RickHull> any recommendations? i came across a multi-lang text-based option parser about a year ago
<RickHull> can't remember what it's called. i played around with it a little bit.
<RickHull> sort of the inverse, you write the documentation and it generates the parser, IIRC
<ljarvis> RickHull: I built something into v3 that supported just writing the help string and the parser then did the rest, but it's not really very customizable that way
<ljarvis> I generally think that when people want something bigger than Slop they probably want something custom
<RickHull> yeah, i've never been totally happy with the autodoc parsers -- always some limitation at odds with my needs
<RickHull> but it's been a long time since i've done any thorough evaluations
<ljarvis> I've built a couple of custom parsers that wrap around slop, but of course i'm quite bias
<ljarvis> thor is obviously a popular 'larger' alternative
kiyote23 has joined #ruby-lang
<godd2> plus it has a way cooler name
<RickHull> ah, docopt is the one i was looking at a year ago
mattyohe has joined #ruby-lang
<RickHull> it's missing arg types and defaults AFAICT
kiyote23 has quit [Ping timeout: 264 seconds]
<RickHull> for a slop feature, i'd be happy with a reasonable way to display: text_str (type) [default] for each option
<RickHull> i'm happy to handle defaults outside of the option parser, but types are tedious to coerce and validate manually
jds has joined #ruby-lang
<jds> Is anyone maintaining the builder gem any more?
donove has quit [Quit: Leaving]
<RickHull> jds: have you considered nokogiri as an alternative?
<jds> Funny story: yes, and it halved the memory usage of my Rails instances, which were generating some pretty heavy RSS feeds
<jds> but I thought I ought to investigate why Builder did so badly at it, and I found a few places where its memory usage can be much improved
bougytoo has quit [Changing host]
bougytoo has joined #ruby-lang
<RickHull> what is Builder based on? nokogiri wraps libxml2, basically, so it is feature complete and performant, etc.
bougytoo is now known as bougyman
<RickHull> unless Builder has a compelling advantage, it might be time to wave goodbye
<jds> It's just ruby. Interestingly, it's actually slightly faster than nokogiri for my use case
<jds> but I'm planning to drop it just based on the memory allocations
yfeldblum has joined #ruby-lang
<RickHull> ljarvis: did you drop support for Float type?
<ljarvis> RickHull: aha, shit.
<RickHull> :)
<ljarvis> I knew I'd missed something
<ljarvis> well, at least with the new system it's really easy to add yourself :)
<RickHull> how does that work? is it in the README?
Rodya_ has quit [Ping timeout: 244 seconds]
<RickHull> also, i'm thinking augmenting the text description with type and default shouldn't be too tough
yfeldblum has quit [Ping timeout: 240 seconds]
<RickHull> thx, afk brb
houhoulis has quit [Remote host closed the connection]
andrewvos has joined #ruby-lang
<andrewvos> Anyone know activerecord (asked this in RubyOnRails too)? #to_sql has the $1 $2 replacements in it. Is there any way I can get the raw sql executed?
GBrawl has joined #ruby-lang
Rodya_ has joined #ruby-lang
loincloth has joined #ruby-lang
iamninja has joined #ruby-lang
Menorah has quit [Quit: This computer has gone to sleep]
djbkd has joined #ruby-lang
loincloth has quit [Ping timeout: 244 seconds]
djbkd has quit [Ping timeout: 258 seconds]
Jet4Fire has joined #ruby-lang
amclain has joined #ruby-lang
neurodamage has joined #ruby-lang
Menorah has joined #ruby-lang
yfeldblum has joined #ruby-lang
GBrawl has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
donove has joined #ruby-lang
donove has quit [Changing host]
donove has joined #ruby-lang
RickHull has quit [Ping timeout: 246 seconds]
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
wallerdev has joined #ruby-lang
chouhoulis has joined #ruby-lang
loincloth has joined #ruby-lang
loincloth has quit [Ping timeout: 258 seconds]
chouhoulis has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
ozialien_ has quit [Remote host closed the connection]
<darix> Police chief: Respecting cops means respecting protestors. http://gaw.kr/gPV9KYc
pwnz0r has joined #ruby-lang
symm- has quit [Ping timeout: 255 seconds]
diegoviola has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
Missphoenix has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby-lang
Missphoenix has joined #ruby-lang
symm- has joined #ruby-lang
rbrs has quit [Quit: Leaving]
iamninja has quit [Quit: ZZZzzz…]
Menorah has quit [Quit: This computer has gone to sleep]
Menorah has joined #ruby-lang
micmus has joined #ruby-lang
mistym has joined #ruby-lang
ur5us has joined #ruby-lang
djbkd has joined #ruby-lang
tmi_ has joined #ruby-lang
djbkd has quit [Ping timeout: 240 seconds]
jds has quit [Quit: Connection closed for inactivity]
havenwood has quit [Remote host closed the connection]
Bwild has joined #ruby-lang
pwnz0r has quit [Remote host closed the connection]
Blaguvest has quit []
yfeldblum has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Jet4Fire has quit []
j4cknewt has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
yock has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
yock has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby-lang
Asher has quit [Quit: Leaving.]
dangerousdave has joined #ruby-lang
dangerousdave has quit [Read error: No route to host]
loincloth has joined #ruby-lang
dangerou_ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
mcclurmc has joined #ruby-lang
dangerou_ has quit [Read error: Connection reset by peer]
djbkd has joined #ruby-lang
wallerdev has joined #ruby-lang
loincloth has quit [Ping timeout: 240 seconds]
yield_rb has joined #ruby-lang
lsegal has joined #ruby-lang
levifig has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
levifig has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
mattyohe has quit [Quit: Connection closed for inactivity]
Asher has joined #ruby-lang
chouhoulis has joined #ruby-lang
mattyohe has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
LBo has quit [Read error: Connection reset by peer]
LBo has joined #ruby-lang
loincloth has joined #ruby-lang
fusillicode has quit [Ping timeout: 255 seconds]
loincloth has quit [Ping timeout: 252 seconds]
yatish27 has joined #ruby-lang
ta has joined #ruby-lang
marr has joined #ruby-lang
ta_ has joined #ruby-lang
Sadin has joined #ruby-lang
donove has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 272 seconds]
micmus has quit [Ping timeout: 264 seconds]
yock has joined #ruby-lang
solars has quit [Ping timeout: 244 seconds]
yock has quit [Ping timeout: 256 seconds]
ta_ has quit [Remote host closed the connection]
Menorah has quit [Quit: This computer has gone to sleep]
djbkd has quit [Quit: My people need me...]
djbkd has joined #ruby-lang
ta_ has joined #ruby-lang
djbkd has quit [Ping timeout: 252 seconds]
Menorah has joined #ruby-lang
yfeldblum has joined #ruby-lang
arBmind has quit [Ping timeout: 245 seconds]
arBmind has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
yfeldblum has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby-lang
chouhoul_ has joined #ruby-lang
chouhoulis has quit [Ping timeout: 250 seconds]
mcclurmc has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
Menorah has quit [Quit: This computer has gone to sleep]
Menorah has joined #ruby-lang