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
tylersmith has quit [Quit: tylersmith]
jfelchner1 has quit [Quit: WeeChat 0.3.9.2]
<zzak> zenspider: i havent done much yet but heres the helper: https://github.com/zzak/sdoc/blob/rdoc-4.0.0.rc2/spec/spec_helper.rb
<zzak> im not using any of the test helpers yet, but soon
<zenspider> zzak: ???
<zenspider> I need context
<zzak> its an rdoc generator
francisfish has quit [Read error: Connection reset by peer]
<zzak> im forking it to add support for rdoc 4
<zzak> otherwise rails 4 will depend on rdoc 3.x
<zzak> :(
francisfish has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
dingus_khan has joined #ruby-lang
<zenspider> maybe I'm out of it because I've been nose down all day thinking about diffing tree based structures... but ... have we talked about this before?
rwk1 has joined #ruby-lang
<zzak> not really, just nice to have MiniTest::Spec::DSL
<zenspider> ah. right. THAT was the context I was missing
<zzak> :D
Averna has joined #ruby-lang
spuk has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
rwk1 has quit [Ping timeout: 245 seconds]
sepp2k has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
ykk has joined #ruby-lang
jMCg has quit [Ping timeout: 260 seconds]
ros3bud has joined #ruby-lang
ykk has quit [Ping timeout: 272 seconds]
ros3bud has quit [Remote host closed the connection]
ros3bud has joined #ruby-lang
mrfoo has quit [Quit: Page closed]
madb055 has joined #ruby-lang
r0bgleeson has joined #ruby-lang
r0bgleeson has quit [Quit: WeeChat 0.3.8]
mistym has joined #ruby-lang
jMCg has joined #ruby-lang
jMCg has quit [Changing host]
jMCg has joined #ruby-lang
maerch has joined #ruby-lang
<zenspider> rawr
Xzyx987X has quit [Ping timeout: 272 seconds]
maerch has quit [Ping timeout: 272 seconds]
soknee has joined #ruby-lang
soknee has quit [Client Quit]
bzalasky has joined #ruby-lang
Xzyx987X has joined #ruby-lang
havenwood has joined #ruby-lang
spuk has quit [Ping timeout: 245 seconds]
spuk has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
jacktrick has quit [Quit: Leaving]
<postmodern> besides Gem::Version, are there any other libraries that can handle arbitrary versions, such as 3.5.30729 or 6,1,7601,17514
amerine has joined #ruby-lang
pygmael has joined #ruby-lang
EvilJStoker has quit [Quit: EvilJStoker is gone :(]
brianpWins has quit [Quit: brianpWins]
rwk1 has joined #ruby-lang
chendo has quit [Ping timeout: 256 seconds]
maxmanders has joined #ruby-lang
bzalasky has joined #ruby-lang
rwk1 has quit [Ping timeout: 258 seconds]
chendo has joined #ruby-lang
gix has quit [Quit: Client exiting]
maxmande_ has joined #ruby-lang
maxmanders has quit [Ping timeout: 240 seconds]
pygmael has quit [Quit: pygmael]
pygmael has joined #ruby-lang
bpot__ has quit []
dreinull_ has quit []
L0rdShrek____ has quit []
pygmael has quit [Client Quit]
<zenspider> yay... much much faster
amerine has quit [Quit: Computer has gone to sleep.]
pkondzior___ has quit []
franckverrot has quit []
Domon_ has joined #ruby-lang
maxmande_ has quit [Ping timeout: 258 seconds]
kain_ has joined #ruby-lang
kain has quit [Ping timeout: 240 seconds]
r0bgleeson has joined #ruby-lang
swav has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
EvilJStoker has joined #ruby-lang
EvilJStoker is now known as Guest31852
dhruvasagar has joined #ruby-lang
Gaelan has joined #ruby-lang
Gaelan_ has quit [Ping timeout: 252 seconds]
jbsan has quit [Quit: jbsan]
maerch has joined #ruby-lang
lcdhoffman has joined #ruby-lang
jbsan has joined #ruby-lang
ruby-lang896 has joined #ruby-lang
ruby-lang896 has quit [Client Quit]
maerch has quit [Ping timeout: 256 seconds]
tylersmith has joined #ruby-lang
Guest31852 has quit [Changing host]
Guest31852 has joined #ruby-lang
<ros3bud> "/[^aeiou]/.match('apple')" <--- I would like this to return false bc the first letter is a vowel, but it's returning 'p' - suggestions?
Guest31852 is now known as JStoker
ros3bud has quit [Remote host closed the connection]
fosky has joined #ruby-lang
ruby-lang078 has joined #ruby-lang
JStoker is now known as EvilJStoker
havenwood has quit [Remote host closed the connection]
ruby-lang078 has quit [Client Quit]
kurko_ has quit [Ping timeout: 240 seconds]
gregmoreno has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
dingus_khan has quit [Ping timeout: 252 seconds]
gix has joined #ruby-lang
rwk1 has joined #ruby-lang
rwk1 has quit [Read error: Connection reset by peer]
rwk1_ has joined #ruby-lang
agarie has quit [Remote host closed the connection]
tomzx_mac has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
perry has joined #ruby-lang
havenwood has joined #ruby-lang
chendo has quit [Remote host closed the connection]
chendo has joined #ruby-lang
kain_ is now known as kain
mistym has quit [Remote host closed the connection]
his_shadow has quit [Ping timeout: 245 seconds]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Quit: brianpWins]
ivanoats has quit [Remote host closed the connection]
Guest___ has joined #ruby-lang
davejlong has joined #ruby-lang
xxaM has joined #ruby-lang
swav has joined #ruby-lang
hahuang65 has joined #ruby-lang
rwk1_ has quit [Remote host closed the connection]
swav has quit [Ping timeout: 272 seconds]
matti has joined #ruby-lang
intellitech has quit [Ping timeout: 272 seconds]
<rking> Anyone have a coverage tool they prefer over cover_me ?
kain has quit [Quit: exit]
tcopp has joined #ruby-lang
wmoxam has quit [Ping timeout: 272 seconds]
davejlong has quit [Quit: Leaving.]
Gaelan has quit [Remote host closed the connection]
Guest___ has quit [Ping timeout: 245 seconds]
chendo has quit [Ping timeout: 246 seconds]
bzalasky has quit [Remote host closed the connection]
chendo has joined #ruby-lang
rwk1 has joined #ruby-lang
face has joined #ruby-lang
agarie has joined #ruby-lang
ros3bud has joined #ruby-lang
security has joined #ruby-lang
rwk1 has quit [Ping timeout: 272 seconds]
megha has quit [Ping timeout: 272 seconds]
bzalasky has joined #ruby-lang
intellitech has joined #ruby-lang
rwk1 has joined #ruby-lang
Gaelan has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
ros3bud has quit [Remote host closed the connection]
jxie has joined #ruby-lang
bluepojo has quit [Remote host closed the connection]
pygmael has joined #ruby-lang
maerch has joined #ruby-lang
maerch has quit [Ping timeout: 272 seconds]
bluepojo has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 258 seconds]
bluepojo has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
brianpWins has joined #ruby-lang
cschneid has quit [Ping timeout: 245 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
Gaelan has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 252 seconds]
chendo has quit [Quit: Computer has gone to sleep.]
ivanoats has joined #ruby-lang
cschneid has joined #ruby-lang
davidbalber|away is now known as davidbalbert
bzalasky has joined #ruby-lang
woollyams has joined #ruby-lang
TheNotary has quit [Ping timeout: 245 seconds]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
priodev has quit [Ping timeout: 245 seconds]
priodev has joined #ruby-lang
JohnBat26 has joined #ruby-lang
Gaelan has joined #ruby-lang
kgrz has joined #ruby-lang
chessguy has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
vlad_starkov has quit [Remote host closed the connection]
rippa has joined #ruby-lang
TheNotary has joined #ruby-lang
davidbalbert is now known as davidbalber|away
asio has quit [Ping timeout: 264 seconds]
rwk1 has quit [Remote host closed the connection]
yianna has joined #ruby-lang
yianna is now known as ykk
kgrz has quit [Quit: Computer has gone to sleep.]
maerch has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
maerch has quit [Ping timeout: 256 seconds]
madb055 has quit [Ping timeout: 272 seconds]
kain has joined #ruby-lang
tomzx_mac has quit [Read error: Operation timed out]
madb055 has joined #ruby-lang
Gaelan has quit [Ping timeout: 240 seconds]
ivanoats has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
madb055 has quit [Ping timeout: 256 seconds]
maerch has joined #ruby-lang
ryanf has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
ykk has quit [Remote host closed the connection]
DEac- has quit [Read error: Connection reset by peer]
DEac- has joined #ruby-lang
thufir_ has joined #ruby-lang
tcopp has quit [Ping timeout: 272 seconds]
ykk has joined #ruby-lang
rwk1 has joined #ruby-lang
ykk has quit [Remote host closed the connection]
rwk1 has quit [Ping timeout: 272 seconds]
r0bgleeson has quit [Ping timeout: 245 seconds]
Axsuul has joined #ruby-lang
kgrz has joined #ruby-lang
MehLaptop has joined #ruby-lang
noop has joined #ruby-lang
ndch has joined #ruby-lang
rwk1 has joined #ruby-lang
ritek has quit [Read error: Connection reset by peer]
ritek has joined #ruby-lang
dmoctezuma has joined #ruby-lang
dmoctezuma has quit [Read error: Connection reset by peer]
ritek has quit [Ping timeout: 272 seconds]
gregmoreno has quit [Remote host closed the connection]
MehLaptop has quit [Remote host closed the connection]
kgrz has quit [Quit: Computer has gone to sleep.]
benlovell has joined #ruby-lang
thufir_ has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
benlovell has quit [Client Quit]
maerch has quit [Ping timeout: 252 seconds]
agarie has quit [Remote host closed the connection]
ndch has quit [Remote host closed the connection]
mjio has quit []
dhruvasagar has joined #ruby-lang
concernedcitizen has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
agarie has joined #ruby-lang
cored has quit [Ping timeout: 264 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
fragamus has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
agarie has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
gregmoreno has joined #ruby-lang
dhruvasagar has joined #ruby-lang
gregmoreno has quit [Ping timeout: 246 seconds]
apeiros_ has joined #ruby-lang
security is now known as fire
agarie has joined #ruby-lang
mistym has quit [Remote host closed the connection]
amerine has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 252 seconds]
maerch has joined #ruby-lang
kgrz has joined #ruby-lang
maerch has quit [Ping timeout: 272 seconds]
dr_bob has joined #ruby-lang
ryanf has quit [Quit: leaving]
brianpWins has quit [Quit: brianpWins]
tbuehlmann has joined #ruby-lang
maerch has joined #ruby-lang
benlovell has joined #ruby-lang
lewis1711 has joined #ruby-lang
stef_204 has joined #ruby-lang
fragamus has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<lewis1711> what is the point of having blocks? why not just pass lambda objects to methods?
<apeiros_> what's the point of lambdas? why not just write methods
<apeiros_> what's the point of methods? why not just write everything inline?
fragamus has joined #ruby-lang
<lewis1711> well now you're just being silly
crynix has joined #ruby-lang
<apeiros_> more questions along this line: why case/when instead of if/else, why unless instead of if not, why until instead of while not etc.
<apeiros_> the answer is the same to all
<crynix> Can I create a hash using Hash.new and by providing a list of key pairs?
<drbrain> OMG! drbdump just dumped its first DRb messages
vlad_starkov has joined #ruby-lang
<drbrain> crynix: use Hash[]
<crynix> How can I combine the creation of the hash into one statement? http://i.imgur.com/ZmEeGMn.png
concernedcitizen has quit [Read error: Connection reset by peer]
<drbrain> crynix: do you not know about gist.github.com?
tbuehlmann has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
<crynix> facepalm
<drbrain> :D
solars has joined #ruby-lang
<lewis1711> crynix: Hash[['a', 'b'].zip [1, 2]]
<crynix> ls
<drbrain> crynix: it's just my middle-aged eyes don't do so well with text I can't resize
<crynix> Let me give you a gist.
<crynix> My bad.
faces has joined #ruby-lang
<drbrain> anyhow, I dumped DRb messages and you seem to be in good hands, so it's time for me to go to bed
<apeiros_> cyndis: Hash.new(default).replace(values)
<apeiros_> crynix: ^
<apeiros_> (sry @ cyndis)
woollyams has quit [Quit: Computer has gone to sleep.]
face has quit [Ping timeout: 256 seconds]
tbuehlmann has joined #ruby-lang
<crynix> apeiros: Is this the proper syntax? The default doesn't appear to be showing up when trying to access a value that doesn't exist https://gist.github.com/zachlatta/accef3ccdf6a9c6454b9
kgrz has quit [Quit: Computer has gone to sleep.]
<apeiros_> crynix: sorry, meeting, brb
kgrz has joined #ruby-lang
<crynix> I got it sorted out. Thanks for the help!
<crynix> I didn't realize Ruby has such great documentation!
<bnagy> you used replace when you probably wanted merge
<bnagy> but I guess I was seconds too late :)
vlad_starkov has quit [Remote host closed the connection]
rwk1 has quit [Remote host closed the connection]
burgestrand has joined #ruby-lang
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
kgrz has quit [Quit: Computer has gone to sleep.]
gnufied has joined #ruby-lang
<apeiros_> bnagy: no, replace there is good
<apeiros_> oh, wait, what? replace removes the default value? wtf
<apeiros_> merge in that case indeed
<apeiros_> I was pretty sure I had used replace for that kind of use case before :-/
swav has joined #ruby-lang
dkannan has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
<lewis1711> running commands with "system" fails on my linux machine for files with spaces in the name. how can this be solved?
rwk1 has joined #ruby-lang
thufir_ has joined #ruby-lang
swav has quit [Remote host closed the connection]
Axsuul has quit [Ping timeout: 240 seconds]
<dkannan> hi. i am pushing a gem but it is stuck at "GET http://production.s3.rubygems.org/latest_specs.4.8.gz"
<dkannan> it this normal ?
chendo has joined #ruby-lang
<dkannan> eh. is this normal ?
woollyams has joined #ruby-lang
woollyams has quit [Client Quit]
<dkannan> because this is the first gem i am publishing
<lewis1711> aha, thanks dkannan
<dkannan> uploaded successfully. just took some time
<dkannan> lewis1711: np
voker57_ has joined #ruby-lang
voker57 has quit [Ping timeout: 272 seconds]
kgrz has joined #ruby-lang
xcombelle has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
<gnufied> wondering what gem it is ?
<gnufied> :-)
maxmanders has joined #ruby-lang
rwk1 has quit [Read error: Connection timed out]
vlad_starkov has joined #ruby-lang
maerch has quit [Quit: leaving]
kgrz has quit [Ping timeout: 258 seconds]
maxmanders has quit [Ping timeout: 258 seconds]
dkannan has quit [Quit: dkannan]
maxmanders has joined #ruby-lang
<injekt> 'easy_rails_money'
<injekt> also g'morning
gnufied has quit [Quit: Leaving.]
<yorickpeterse> morning kids
maxmanders has quit [Quit: Computer has gone to sleep.]
<whitequark> moo
maxmanders has joined #ruby-lang
Averna has quit [Quit: Leaving.]
maxmanders has quit [Client Quit]
gnufied has joined #ruby-lang
maxmanders has joined #ruby-lang
<injekt> indeed
thebastl has joined #ruby-lang
xxaM has quit [Quit: taskkill /f y u no work]
rwk1 has joined #ruby-lang
intellitech has quit [Quit: intellitech]
<lewis1711> "incorrect header check (Zlib::DataError)" any idea what that means? Do i have an incorrect version of zlib? I get it when I try to use the open method of open-uri
<injekt> it means the response zlib headers are probably broken
<injekt> lewis1711: what's the url?
<lewis1711> injekt: http://www.wunderground.com/
<lewis1711> hmm
alessio_rocco has joined #ruby-lang
xxaM has joined #ruby-lang
dkannan has joined #ruby-lang
<dkannan> gnufied: mostly a rewrite of https://github.com/RubyMoney/money-rails. But API will hopefully be simpler :-)
<gnufied> sounds good.
<dkannan> was also facing some other errors with money-rails. could not save non-default currency
<dkannan> and the database schema is also a bit different
Criztian has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
<dkannan> gnufied: thanks :-)
kgrz has joined #ruby-lang
chendo has quit [Quit: Computer has gone to sleep.]
intellitech has joined #ruby-lang
chendo has joined #ruby-lang
swav has joined #ruby-lang
chendo has quit [Client Quit]
kgrz has quit [Ping timeout: 245 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby-lang
<yorickpeterse> > no implicit conversion from nil to integer
<yorickpeterse> wat
rwk1 has quit [Read error: Connection timed out]
<whitequark> yorickpeterse: you executed nil + 1
<yorickpeterse> nope
<whitequark> err 1 + nil
<yorickpeterse> nope
<yorickpeterse> BSON::ObjectId.new('herpderpvalididhere') # apparently you have to use from_string
<whitequark> mongodb?
<yorickpeterse> also, 1 + nil returns a different error
<yorickpeterse> yes
<yorickpeterse> >> 1 + nil
<yorickpeterse> ...
<yorickpeterse> => TypeError: nil can't be coerced into Fixnum
<yorickpeterse> whatevah
<whitequark> blame charliesome
<whitequark> I think that the message above is produced by config.whiny_nils = true
<whitequark> in rails
<yorickpeterse> ha wtf
<yorickpeterse> lets fuck up error messages! what would possibly go wrong
thufir_ has quit [Remote host closed the connection]
<whitequark> nothing? error messages are not machine-readable
<yorickpeterse> it's not supposed to make a somewhat sane error into a batshit crazy one
<yorickpeterse> might as well raise E_GO_FUCK_YOURSELF_PAAMAAYUM_NEKOWHATEVER
<whitequark> NEKUDOTAYIM
<whitequark> why the hell do I know that
mixandgo has joined #ruby-lang
<yorickpeterse> Maaybe I should write a gem called "ruby-stront" and replace all error messages with shitty Dutch ones
<yorickpeterse> * maybe
wallclockbuilder has joined #ruby-lang
<yorickpeterse> also
<yorickpeterse> I wrote some code that converts Ruby to Python
<yorickpeterse> mostly to see how easy it is to iterate over an AST in ruby-lint
* lewis1711 did not know there was a ruby-lint
<yorickpeterse> it's still very much a work in progress
<lewis1711> I remember some people made an lint type tool that parsed special comments with type information a while back. it was written in ocaml
dkannan_ has joined #ruby-lang
dkannan has quit [Ping timeout: 245 seconds]
dkannan_ is now known as dkannan
runeb has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
dkannan_ has joined #ruby-lang
<whitequark> lewis1711: DiamondbackRuby
dkannan has quit [Ping timeout: 258 seconds]
dkannan_ is now known as dkannan
<whitequark> it's not really a linter
xxaM has quit [Quit: sleeping with the fishes...]
soknee has joined #ruby-lang
soknee has quit [Client Quit]
Mon_Ouie has joined #ruby-lang
soknee has joined #ruby-lang
soknee has quit [Client Quit]
xcombelle has quit [Remote host closed the connection]
fosky has quit [Remote host closed the connection]
maxmanders has joined #ruby-lang
kgrz has joined #ruby-lang
rwk1 has joined #ruby-lang
soknee has joined #ruby-lang
stef_204 has joined #ruby-lang
soknee has quit [Client Quit]
rwk1 has quit [Ping timeout: 252 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
kgrz has quit [Ping timeout: 252 seconds]
voker57_ has left #ruby-lang [#ruby-lang]
<yorickpeterse> heh, sometimes I don't mind Mongo that much
<yorickpeterse> it's aggregation framework is soooooo much faster than querying the normal way, part of that is probably Mongoid being a cunt
Domon_ has quit [Remote host closed the connection]
<yorickpeterse> rather inefficient query of 5 seconds? k, 800ms now
herpless___ has quit [Ping timeout: 246 seconds]
herpless___ has joined #ruby-lang
maxmanders has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
kgrz has joined #ruby-lang
<andrewvos> I love mongo
<andrewvos> I even love the name
<andrewvos> Though I haven't used it for anything critical
srbaker has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
alessio_rocco has quit [Ping timeout: 272 seconds]
alessio_rocco has joined #ruby-lang
maxmanders has joined #ruby-lang
<yorickpeterse> error "embedded document meats end of file (and they embark on a romantic journey)"
<yorickpeterse> :D
wallclockbuilder has quit [Remote host closed the connection]
<yorickpeterse> whitequark: wth, you dun goof'd your branches
runeb has quit [Read error: Connection reset by peer]
agarie_ has joined #ruby-lang
agarie has quit [Read error: Connection reset by peer]
soknee has joined #ruby-lang
S2kx has joined #ruby-lang
matled- has joined #ruby-lang
zzak_ has joined #ruby-lang
codejury_ has joined #ruby-lang
FlyingLeap has joined #ruby-lang
snk_ has joined #ruby-lang
shachaf_ has joined #ruby-lang
duckinator has quit [Ping timeout: 255 seconds]
canton7 has quit [Ping timeout: 260 seconds]
dbussink has quit [Ping timeout: 255 seconds]
snk has quit [Ping timeout: 255 seconds]
ged has quit [Ping timeout: 260 seconds]
_dumfries has quit [Ping timeout: 260 seconds]
zygen_ has quit [Ping timeout: 260 seconds]
brixen_ has quit [Ping timeout: 255 seconds]
matled has quit [Ping timeout: 255 seconds]
notwen has quit [Ping timeout: 255 seconds]
scrr has quit [Ping timeout: 255 seconds]
zzak has quit [Ping timeout: 255 seconds]
mfn has quit [Ping timeout: 255 seconds]
tos9 has quit [Ping timeout: 255 seconds]
lianj has quit [Ping timeout: 260 seconds]
pcboy_ has quit [Ping timeout: 260 seconds]
wang_ has quit [Ping timeout: 260 seconds]
mahlon has quit [Ping timeout: 260 seconds]
meise_ has quit [Ping timeout: 260 seconds]
blowmage has quit [Ping timeout: 260 seconds]
s4muel has quit [Ping timeout: 255 seconds]
meizaps has quit [Ping timeout: 255 seconds]
aef has quit [Ping timeout: 255 seconds]
FlyingLeap_ has quit [Ping timeout: 255 seconds]
ericwood has quit [Ping timeout: 255 seconds]
eban has quit [Ping timeout: 255 seconds]
codejury has quit [Ping timeout: 255 seconds]
kith has quit [Ping timeout: 260 seconds]
jwollert- has quit [Ping timeout: 260 seconds]
S1kx has quit [Ping timeout: 260 seconds]
shachaf has quit [Ping timeout: 260 seconds]
rheddry has quit [Ping timeout: 260 seconds]
sora_h_ has quit [Ping timeout: 260 seconds]
davidbalber|away has quit [Ping timeout: 260 seconds]
meise has joined #ruby-lang
mahlon has joined #ruby-lang
meizaps_ has joined #ruby-lang
ged has joined #ruby-lang
sora_h_ has joined #ruby-lang
dbussink_ has joined #ruby-lang
<whitequark> yorickpeterse: do you know where the quote is from? :D
wang has joined #ruby-lang
blowmage has joined #ruby-lang
matled- is now known as matled
snk_ has quit [Changing host]
snk_ has joined #ruby-lang
wang has quit [Changing host]
wang has joined #ruby-lang
s4muel has joined #ruby-lang
zygen has joined #ruby-lang
lianj has joined #ruby-lang
pcboy_ has joined #ruby-lang
lianj has quit [Changing host]
lianj has joined #ruby-lang
ericwood has joined #ruby-lang
skade has joined #ruby-lang
scrr has joined #ruby-lang
tos9 has joined #ruby-lang
davidbalbert has joined #ruby-lang
eban has joined #ruby-lang
lcdhoffman has joined #ruby-lang
notwen_ has joined #ruby-lang
lcdhoffman has quit [Client Quit]
mfn has joined #ruby-lang
jwollert has joined #ruby-lang
brixen has joined #ruby-lang
levifig has joined #ruby-lang
techlife has quit [Ping timeout: 256 seconds]
thone_ has joined #ruby-lang
aef has joined #ruby-lang
_dumfries has joined #ruby-lang
dbussink_ has quit [Remote host closed the connection]
duckinator has joined #ruby-lang
Guedes0 has joined #ruby-lang
dbussink has joined #ruby-lang
stevechiagozie has joined #ruby-lang
thone has quit [Ping timeout: 245 seconds]
wudofyr has quit [*.net *.split]
cyndis has quit [*.net *.split]
Guedes has quit [*.net *.split]
bnagy has quit [*.net *.split]
shtirlic has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
hackeron has quit [*.net *.split]
fumduq- has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
tris has quit [*.net *.split]
oddmunds has quit [*.net *.split]
shinh has quit [*.net *.split]
jsaak has quit [*.net *.split]
spectra has quit [*.net *.split]
tpope has quit [*.net *.split]
hachiya has quit [*.net *.split]
SubSpawn has quit [*.net *.split]
nirix has quit [*.net *.split]
droptone_ has quit [*.net *.split]
anekos has quit [*.net *.split]
injekt has quit [*.net *.split]
kirin` has quit [Ping timeout: 264 seconds]
techlife has joined #ruby-lang
alessio_rocco has quit [Ping timeout: 246 seconds]
ged has quit [Read error: Connection reset by peer]
mahlon has quit [Read error: Connection reset by peer]
alessio_1occo has joined #ruby-lang
soknee has quit [Quit: Leaving.]
cyndis has joined #ruby-lang
samuelkadolph has joined #ruby-lang
oddmunds has joined #ruby-lang
injekt has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
shtirlic has joined #ruby-lang
tpope has joined #ruby-lang
spectra has joined #ruby-lang
anekos has joined #ruby-lang
nirix has joined #ruby-lang
hachiya has joined #ruby-lang
shinh has joined #ruby-lang
droptone_ has joined #ruby-lang
tris has joined #ruby-lang
wudofyr has joined #ruby-lang
SubSpawn has joined #ruby-lang
bnagy has joined #ruby-lang
jsaak has joined #ruby-lang
fumduq- has joined #ruby-lang
hackeron has joined #ruby-lang
mahlon has joined #ruby-lang
ged has joined #ruby-lang
<yorickpeterse> nope
kirin`_ has joined #ruby-lang
<whitequark> yorickpeterse: http://en.wikipedia.org/wiki/Spice_and_Wolf then
stevechiagozie has quit [Quit: Computer has gone to sleep.]
baba has joined #ruby-lang
fire has quit [Read error: Connection reset by peer]
lewis1711 has left #ruby-lang [#ruby-lang]
postmodern has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
davejlong has joined #ruby-lang
MaddinXx has joined #ruby-lang
kirin`_ has quit [Ping timeout: 245 seconds]
kirin` has joined #ruby-lang
kirin` has quit [Read error: Connection reset by peer]
kirin` has joined #ruby-lang
smt has joined #ruby-lang
<yorickpeterse> oh, anime
<yorickpeterse> that explains
<yorickpeterse> (zero interest in it)
smt has left #ruby-lang [#ruby-lang]
poga has joined #ruby-lang
<whitequark> meh.
srbaker has quit [Quit: Computer has gone to sleep.]
dr_bob has quit [Quit: Leaving.]
<yorickpeterse> woooo, Euruko CFP
kgrz has quit [Quit: Computer has gone to sleep.]
benlovell has quit [Quit: Computer has gone to sleep.]
rwk1 has joined #ruby-lang
dr_bob has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
jxpx777 has quit [Quit: Leaving...]
rwk1 has quit [Ping timeout: 256 seconds]
maxmanders has joined #ruby-lang
<yorickpeterse> whitequark: you need to submit a talk as well
<yorickpeterse> so I can buy you beer without having to fly over to mother Russia
<whitequark> yorickpeterse: hrm
<whitequark> I did not finish RP hacking yet
<yorickpeterse> so?
Mon_Ouie has quit [Ping timeout: 248 seconds]
<injekt> That ragel file is still actually more simple that I expected
<yorickpeterse> and it has docs, unlike parse.y
<whitequark> injekt: you won't believe how much work did I pour into it to make it that simple.
<injekt> whitequark: you are awesome
sailias has joined #ruby-lang
<injekt> is it complete?
<whitequark> injekt: almost
<yorickpeterse> I think I should show parse.y to every person that says code is self explaining
<injekt> :D
<whitequark> there's a weird newline issue I'm dealing with, right now
<whitequark> injekt: and also cond/cmdarg stack states, for which I wait for the RHG chapter 11 to be translated from jp
<whitequark> yorickpeterse: I think that torture is prohibited by law in most civilized countries
stevechiagozie has joined #ruby-lang
<injekt> heh
lcdhoffman has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
<apeiros_> whitequark: I would have made a random anti US joke here, but you said "civilized".
MaddinXx_ has joined #ruby-lang
rwk1 has joined #ruby-lang
thebastl has quit [Remote host closed the connection]
<whitequark> apeiros_: :D
<yorickpeterse> whitequark: depends on how much money you have to bribe people
<yorickpeterse> injekt: you also need to come so I can make lame printer jokes
<injekt> yorickpeterse: :(
lcdhoffman has quit [Client Quit]
<whitequark> yorickpeterse: the problem with euruko is that I suck at English
<yorickpeterse> hey, I didn't choose that nickname
<yorickpeterse> you did
<whitequark> (surprisingly)
<yorickpeterse> whitequark: so?
<yorickpeterse> matz isn't very good at it either
<injekt> yeah i made a huge mistake
<yorickpeterse> injekt: omakase eh?
<injekt> yorickpeterse: :D
* apeiros_ can't wait for injekt to join the 'hyper programmers' team and get an [hp] clan-tag
<injekt> haha
<injekt> oh god
<whitequark> apeiros_: you misspelled his name in that sentence
<apeiros_> d'oh
<yorickpeterse> [hp] xXInkjet-1999Xx
injekt is now known as inkjet
<yorickpeterse> :D
<inkjet> quite.
mytrile has joined #ruby-lang
ruby-lang501 has joined #ruby-lang
ruby-lang501 has quit [Client Quit]
sailias has quit [Quit: Leaving.]
<ddfreyne> I think I missed something there :)
soknee has joined #ruby-lang
Averna has joined #ruby-lang
<yorickpeterse> inkjet: I think we shouldn't make any cartridge jokes on Euroko though
<yorickpeterse> "Hey, let me refill your magenta" Yeah, that's probably best kept to myself
<yorickpeterse> In my defense: magenta is usually the first colour that needs to be replaced
<ddfreyne> haha
<yorickpeterse> (in my case at least)
<whitequark> ooooh, I tried to generate a chart for ruby_lexer state machine
<whitequark> 194K of dot sources
stevechiagozie has quit [Quit: Computer has gone to sleep.]
<whitequark> and graphviz fails to generate anything
<ddfreyne> Anybody from Berlin or around Berlin here?
* ddfreyne is moving to Berlin in < 2 months and is looking for a permanent place to stay (nice apartment) from mid-june on
thebastl has joined #ruby-lang
<yorickpeterse> dominikh from .de I believe, not sure if he lives nearby Berlin
<dominikh> I do not live nearby Berlin
<yorickpeterse> ah
<dominikh> sorry :<
<ddfreyne> Germania is hueg!
<whitequark> yorickpeterse: wanna take a look? it's a 2.7 megabyte SVG
<yorickpeterse> git it
<yorickpeterse> err, hit it
<yorickpeterse> Nice Freudian slip there
kgrz has joined #ruby-lang
chendo has joined #ruby-lang
<inkjet> dominikh: gb2s
<yorickpeterse> hmpf, GImp doesn't open it
<dominikh> inkjet: come again?
<inkjet> dominikh: go back to sleep
<yorickpeterse> fuckit, lets see if Chrome opens it
<dominikh> inkjet: :D
<whitequark> yorickpeterse: in my experience, only chromium can
<yorickpeterse> ha, it does
<whitequark> everything else fails in funny ways
<yorickpeterse> wow wtf
<inkjet> dominikh: how's the lisp?
carloslopes has joined #ruby-lang
<dominikh> inkjet: pretty much done with the project, until someone finds a bug
<yorickpeterse> whitequark: duuuuude
<yorickpeterse> I like the recursion in the middle
<inkjet> dominikh: :D
<whitequark> yorickpeterse: it's not recursion
emocakes has joined #ruby-lang
<whitequark> it is an FSM
<yorickpeterse> ah
ruby-lang935 has joined #ruby-lang
<dominikh> inkjet: you laugh, but my code will be bundled with the Go distribution :>
<inkjet> dominikh: i think its awesome
<yorickpeterse> dominikh: so that means 1 person will use it right?
<yorickpeterse> :>
<dominikh> yorickpeterse: I think the intersection of go users and emacs users is somewhere around 10-20 ;)
kith has joined #ruby-lang
<inkjet> heh
<inkjet> because everyone else uses vim <3
<dominikh> inkjet: most people seem to be using sublime text, actually
<antbody> word
<inkjet> dominikh: ah, heh.. yeah I actually have been using st2 more than vim lately. and GoSublime is awesome
<inkjet> that's an awkward period
<yorickpeterse> SINNERS!
<yorickpeterse> REPENT!
<dominikh> inkjet: go-mode for emacs is actually better than GoSublime now
<inkjet> dominikh: because you?
<dominikh> yes.
lcdhoffman has joined #ruby-lang
<dominikh> I'm serious though :> more features, less bugs :P
<inkjet> heh probably features I wouldn't use, I dont use most of gosublime features
jxpx777 has joined #ruby-lang
<inkjet> that's pretty cool
<dominikh> makes working on others' code a lot easier
<inkjet> you wrote the jump to func/docs impl?
<dominikh> of course not.
<inkjet> I wonder if gosublime can do that stuff
<dominikh> under the hood, that's using godef, a tool. point it at a file and offset, it tells you where the symbol is defined
<inkjet> ah
kith has quit [Quit: kith]
<dominikh> acme, emacs and vim have bindings for it. I wrote the emacs ones
r0bgleeson has joined #ruby-lang
<inkjet> :D
bjensen has joined #ruby-lang
<bjensen> Hash initialization with keys: http://pastie.org/7149495 please tell me there is a simpler way?
<dominikh> inkjet: did you not see my blog post about go-mode and all its features and related packages? :P
<inkjet> dominikh: no :)
<lianj> bjensen: Hash[ [:a, :b].map{|i| [i, nil] } ]
<dominikh> inkjet: I am disappoint
<ddfreyne> bjensen: calling #[] on an empty hash will return the default value, which is nil (unless you’ve initialized with a non-nil default value)
<ddfreyne> bjensen: hash = {} ; hash[:asdlkfj] # => nil
<lianj> that too
vlad_starkov has joined #ruby-lang
<bjensen> ddfreyne: Right, but I need to record the keys for now
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
<yorickpeterse> bjensen: @competences = dates.inject({}) { |target, current| target[current] = nil }
<yorickpeterse> that's the shortest I can think of
<ddfreyne> yorickpeterse: Ew, don’t use #injekt that way
<ddfreyne> … inject
ruby-lang935 has quit [Ping timeout: 245 seconds]
wmoxam has joined #ruby-lang
<ddfreyne> #inject is meant to be side effect free
<yorickpeterse> eh?
kith has joined #ruby-lang
<inkjet> ddfreyne: :D
<yorickpeterse> Array#inject is a super useful method for this kind of stuff
<ddfreyne> It is also abuse.
thebastl has quit [Remote host closed the connection]
<yorickpeterse> of what?
<yorickpeterse> errrr, that snippet is broken btw
<lianj> ddfreyne: doesnt even work
<bjensen> thanks guys
<yorickpeterse> you need to return `target` as well
<bjensen> Im going with Hash[ dates.map{|i| [i, nil] } ]
<yorickpeterse> so { |target, current| target[whatever] = 10; target }
<ddfreyne> yorickpeterse: the block given to #inject is not supposed to have side effects. Now you’re just using a glorified loop
<inkjet> dates.each_with_object({}) { |o, h| h[o] = nil }
<yorickpeterse> "to have side effects" what side effects?
<ddfreyne> yorickpeterse: You’re modifying target
<yorickpeterse> ehm, yes? You always do with inject
MaddinXx_ has quit [Read error: Connection reset by peer]
<yorickpeterse> target is an empty Hash here
<ddfreyne> yorickpeterse: You shouldn’t, ever
<ddfreyne> yorickpeterse: a good example of #inject is arr.inject(0) { |m,e| m+e }
<yorickpeterse> inject({}) # <= it uses {}, not `dates`
<ddfreyne> I’m not modifying m here
MaddinX__ has joined #ruby-lang
<ddfreyne> A proper implementaiton would be
<ddfreyne> dates.inject({}) { |hash, date| hash.merge({ date => nil }) }
Averna has quit [Remote host closed the connection]
<yorickpeterse> how is that any better?
<ddfreyne> It is side-effect free
<yorickpeterse> ehm, it's doing exactly the same
<ddfreyne> Unfortunately, it generates intermediate objects, which is why I never use it
<ddfreyne> yorickpeterse: #merge does not modify the object, but merely returns a new one
<lianj> no Hash#[] love?
<ddfreyne> I’d just create a hash and loop over it… no shame there
<yorickpeterse> ddfreyne: it has literally zero benefits that I can think of since `hash` is still modified internally by #inject
<ddfreyne> yorickpeterse: It isn’t… if everything were immutable, it would still work
<yorickpeterse> On top of that hash.merge actually creates a new object instead of re-using it
idkazuma has joined #ruby-lang
ros3bud has joined #ruby-lang
<ddfreyne> yorickpeterse: This is exactly why #inject is not useful in this situation
poga_ has joined #ruby-lang
<yorickpeterse> Regardless, I really don't see the bad thing of modifying the target object as long as you're initially creating a blank one
<yorickpeterse> If you were modifying something passed as an argument then yes, it would be wrong
<dominikh> rule of thumb: if you have need `; foo` in your inject block, you're abusing it.
<yorickpeterse> rule of thumb: if you make such statements come up with good examples that don't add extra overhead
<dominikh> #each.
<lianj> dominikh: addition: if you work around `; foo`, its still abusing
<ddfreyne> yorickpeterse: Use #each
dr_bob has quit [Quit: Leaving.]
<ddfreyne> yorickpeterse: Just like foldl/foldr in functional programming languages (and #inject:into: in Smalltalk), the block is not supposed to have side effects
<dominikh> inject is an alias for reduce. now look up what reduce is for. it's not used for "convoluted loop"
poga has quit [Ping timeout: 245 seconds]
<yorickpeterse> I'm still waiting for good reasons but having said that I have better things to do
maxmanders has quit [Quit: Computer has gone to sleep.]
<ddfreyne> yorickpeterse: inject/fold/reduce is meant for reducing/folding a collection into a single value, hence the name
<ddfreyne> For instance, a list becomes a single value that is the maximum value found in the list, or the minimum, or the product, or the sum…
maxmanders has joined #ruby-lang
<whitequark> there's also #each_with_object
<inkjet> I went there
<yorickpeterse> each_with_object is new to me
<whitequark> specifically for #inject abusers
<lianj> :D
<whitequark> module Enumerable; alias inkjet inject; end
<inkjet> ^
<whitequark> ... cannot ... resist
maxmanders has quit [Client Quit]
<lianj> module Enumerable; alias inkjet each_with_object; end
benlovell has joined #ruby-lang
zzak_ is now known as zzak
ustrajunior has joined #ruby-lang
<zzak> haha
<inkjet> but yeah, @competences = dates.each_with_object({}) { |o, h| h[o] = nil }
<yorickpeterse> damn it, eval.in is down
dr_bob has joined #ruby-lang
<ddfreyne> tryruby?
breakingthings has joined #ruby-lang
<yorickpeterse> http://ideone.com/uNwJ5d reasons why a #merge would be dumb
<yorickpeterse> either way, back to my API
<lianj> ddfreyne: FakeFS::Dir.eval('`echo wat?`')
<inkjet> holy mother of ads
<yorickpeterse> yeah that pastebin is pretty shit
chendo has quit [Quit: Computer has gone to sleep.]
<lianj> ads, i see none
<ddfreyne> yorickpeterse: Oh yeah, I definitely do not recommend using #merge at all
inkjet is now known as injekt
tbuehlmann has quit [Remote host closed the connection]
chrismar035 has joined #ruby-lang
hramrach has quit [Ping timeout: 276 seconds]
maxmanders has joined #ruby-lang
lele|w has quit [Ping timeout: 264 seconds]
lele|w has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby-lang
Gaelan has joined #ruby-lang
jtperreault has left #ruby-lang ["WeeChat 0.3.7"]
sailias1 has joined #ruby-lang
ykk has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
snk_ is now known as snk
emocakes has quit [Quit: emocakes]
kgrz has quit [Quit: Computer has gone to sleep.]
llaskin has joined #ruby-lang
llaskin has quit [Changing host]
llaskin has joined #ruby-lang
<llaskin> is there any reason why this: "#{(date + 5).strftime("%m/%d/%Y")}#{(time + 600).strftime("%l:%M %p")}" would sometimes output "04/02/2013 12:14 PM" and sometimes output 04/02/201312:14 PM
<yxhuvud> Dunno, but I'd recommend using DateTime instead.
<whitequark> yorickpeterse: I've spent last 20 minutes fixing reporting of location for tNL
<whitequark> it just occured to me that it might be that no one ever needs to look at that
ustrajun_ has joined #ruby-lang
<yxhuvud> llaskin: but if I were to guess, %l pads with empty space if there is only one digit.
<whitequark> meh just fixed it.
stevechiagozie has joined #ruby-lang
<yorickpeterse> whitequark: tNL being newlines?
<whitequark> yorickpeterse: yes
<whitequark> yorickpeterse: 37!!!!!
<whitequark> hell yes I spent last two days trying to achieve that
jerrytgarcia has joined #ruby-lang
<yorickpeterse> Not sure if location info for newlines would be useful
<llaskin> yxhuvud: interesting, how would you fix that then?
maxmanders has joined #ruby-lang
kgrz has joined #ruby-lang
<yorickpeterse> and congrats on the tests
ustraju__ has joined #ruby-lang
ustrajunior has quit [Ping timeout: 264 seconds]
<yxhuvud> llaskin: by reading the docs and choosing an option that outputs what you need.
<yorickpeterse> that's not a really useful answer
ustrajun_ has quit [Ping timeout: 243 seconds]
bjensen has left #ruby-lang [#ruby-lang]
<llaskin> i thought %l would actually do it...
runeb has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 258 seconds]
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
poga_ has quit [Remote host closed the connection]
lele|w has quit [Ping timeout: 240 seconds]
forrest has joined #ruby-lang
lele|w has joined #ruby-lang
Gaelan has quit [Ping timeout: 260 seconds]
pygmael has quit [Quit: pygmael]
ustraju__ has left #ruby-lang [#ruby-lang]
<whitequark> ok I guess I need to fix line numbers now...
MaddinX__ has quit [Remote host closed the connection]
<yorickpeterse> YES PLEASE
<yorickpeterse> and column numbers :>
<yorickpeterse> I'll buy your babbies
<yorickpeterse> hmmm....carrot cake
ustrajunior has joined #ruby-lang
ustrajunior has quit [Client Quit]
MartynKeigher has quit [Excess Flood]
ustrajunior has joined #ruby-lang
sepp2k has joined #ruby-lang
randallagordon has quit [Ping timeout: 245 seconds]
MartynKeigher has joined #ruby-lang
stef_204 has joined #ruby-lang
<yorickpeterse> oh boy, sugar rush
randallagordon has joined #ruby-lang
ustrajunior has quit [Remote host closed the connection]
ustrajunior has joined #ruby-lang
kgrz has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
<whitequark> yorickpeterse: u drunk?
<yorickpeterse> Can you get drunk from drinking tea?
<yorickpeterse> Because if so I'm smashed
ustrajunior has quit [Quit: ustrajunior]
<whitequark> omg whyyyyy
ustrajunior has joined #ruby-lang
<whitequark> why the fuck does old ruby_lexer use random strings as yacc_value for operators and stuff, but for keywords it suddenly uses LINE NUMBERS?!
* whitequark ragequits
ustrajunior has quit [Client Quit]
ustrajunior has joined #ruby-lang
<yorickpeterse> because line numbers are webscale and truly unique
<whitequark> yorickpeterse: no the unique part is the token itself
<whitequark> but e.g. :kDEF, 1 means that it is a def encountered on line 1
<whitequark> this is kinda typical.
outoftime has joined #ruby-lang
<whitequark> both the snarky noninformative commit message (I'd say "and comments" but which comments?) and the hacky code.
<yorickpeterse> In general I don't really get the idea of writing snarky commit messages, docs, etc
<yorickpeterse> After all, you're the one dealing with it primarily
<yorickpeterse> So either you don't give a fuck or....something I don't understand
<yorickpeterse> (this is not aimed at anybody in specific, just in general)
<yorickpeterse> s/in//
<whitequark> yorickpeterse: I do write those sometimes, when I'm really freakin' tired. I almost always make them informative, i.e. you can sed out the swearing and something useful is still left.
<whitequark> you're right after all.
<whitequark> arrrgh
<whitequark> helper methods in _extras.rb are tied to particular structure of rules in parser.y
<whitequark> what is this I don't even
<whitequark> especially considering how ruby20 will probably get another parse.y in there
<whitequark> yorickpeterse: note though, right now I'm hacking ruby_parser so that it would write line numbers in zenspider-style, i.e. as it was before
<whitequark> (I broke it due to removing aforementioned lexer quirk)
<whitequark> 31!
<yorickpeterse> zenspider-style?
<whitequark> yorickpeterse: as it was before.
<yorickpeterse> can't remember what it was before tbh
<whitequark> um...
<yorickpeterse> "weird" will suffice
<whitequark> * Known Issue: line number values can be slightly off. Parsing LR sucks.
<whitequark> (esp given that has precisely nothing to do with parsing LR)
<yorickpeterse> ah
<whitequark> I'm just fixing the code so that existing tests would pass
<yorickpeterse> Ragel/Bison don't provide info such as line/column numbers?
<whitequark> also Sexps from sexp_processor cannot even *represent* column numbers
<whitequark> yorickpeterse: Bison doesn't care about them (and it should not)
<whitequark> Ragel doesn't care about them (and it should not)
<yorickpeterse> well yeah, but I can imagine that they keep track of it somewhere
<whitequark> nope, that's your job
<yorickpeterse> hmpf
<whitequark> you can trivially do that in ragel, like in one line
<whitequark> there's some more magic required to transform "stream position" to line/column number but it's pretty simple
rwk1 has quit [Remote host closed the connection]
<whitequark> for bison, more code is needed to accomodate for stuff spanning multiple tokens/lines
<whitequark> but it's your code again
<yorickpeterse> Hm, I feel I should gemify my Ripper layer at some point in case some poor soul has to use Ripper
<yorickpeterse> It's by no means perfect and has a few quirks but it's a lot better than standard Ripper
<whitequark> yorickpeterse: why not use my better ruby_parser? :|
<yorickpeterse> oh I would once it's usable
<yorickpeterse> but still, it's a waste to throw away what might save others time
maxmanders has quit [Quit: Computer has gone to sleep.]
lcdhoffman has quit [Quit: lcdhoffman]
<whitequark> ok, let's now try to hack unicode support in... :/
<yorickpeterse> hahaha
<yorickpeterse> good luck
maxmanders has joined #ruby-lang
<whitequark> I'm not sure. Ragel is table based. Does that mean that if I make a character range 128-0x10ffff, it will create table entries accordingly?
<whitequark> probably yes
dustint has joined #ruby-lang
<whitequark> oh actually this would be pretty easy
pygmael has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
rwk1 has joined #ruby-lang
rwk1 has quit [Read error: Connection reset by peer]
rwk1 has joined #ruby-lang
spuk has quit [Read error: Connection reset by peer]
runeb has quit [Ping timeout: 260 seconds]
<whitequark> >> $-Й
<whitequark> grh
<whitequark> why the hell $-Й is not a valid gvar name even in 2.0?!
<whitequark> whereas $Й is valid
<yxhuvud> I'm not certain I understand why that is a problem.
<yorickpeterse> because it doesn't make sense
<yorickpeterse> Ruby claims to have proper support for various encodings, allowing you to use weird names like that (at least that's the idea)
<whitequark> yorickpeterse: um so I just added unicode support
<whitequark> that was REALLY wasy
<whitequark> *easy
<yorickpeterse> oh?
<whitequark> yea, just define proper alnum, lower and upper character classes
<whitequark> and that's it
<whitequark> c_unicode = c_any - [\x00-\x7f];
<yorickpeterse> wat
<whitequark> ugh
<yorickpeterse> that's it?
<whitequark> I already leverage ruby's own unicode support for parsing utf-8
swav has quit [Ping timeout: 252 seconds]
pygmael has quit [Quit: pygmael]
<whitequark> so the only thing I need is to convince ragel that anything > 0x7f is a lowercase character
<whitequark> (because ruby thinks so)
maxmanders has quit [Quit: Computer has gone to sleep.]
swav has joined #ruby-lang
pygmael has joined #ruby-lang
<whitequark> oh I think I accidentally most tests
maxmanders has joined #ruby-lang
Kenpachi has joined #ruby-lang
rippa has joined #ruby-lang
maxmanders has quit [Client Quit]
vbatts2 has left #ruby-lang [#ruby-lang]
vbatts has joined #ruby-lang
gnufied has joined #ruby-lang
alessio_1occo has quit [Ping timeout: 258 seconds]
alessio_rocco has joined #ruby-lang
chrismar035 has quit [Ping timeout: 256 seconds]
ndch has joined #ruby-lang
chrismar035 has joined #ruby-lang
bin7me has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
XxBlakeFailxX has quit [Ping timeout: 256 seconds]
bzalasky has joined #ruby-lang
superlou has joined #ruby-lang
jerrytgarcia has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
davejlong1 has joined #ruby-lang
davejlong1 has quit [Client Quit]
kgrz has joined #ruby-lang
davejlong has quit [Ping timeout: 240 seconds]
<yorickpeterse> ugh, I really didn't sleep well last night
<yorickpeterse> trying to fight falling asleep here in the office
<zzak> youre probably crashing from too much tea and cake
tomzx_mac has joined #ruby-lang
<yorickpeterse> Nah, I played Bioshock for a bit too long last night
ndch has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
tomzx_mac_ has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 256 seconds]
XxBlakeFailxX has joined #ruby-lang
<injekt> tea and crumpets
rwk1 has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
<superlou> Does anyone know how to set the value in a hash at nested keys specified in an array? For example, my_hash.set_value(['a','b','c']) = 'new value' would do my_hash['a']['b']['c'] = 'new value'
gregmoreno has quit [Ping timeout: 255 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
<superlou> pulling my hair out trying to find something that uses a dynamic number of keys but isn't gross
XxBlakeFailxX has quit [Ping timeout: 260 seconds]
mixandgo has quit [Quit: mixandgo]
<yorickpeterse> haha Ruby:
<yorickpeterse> hash = {}; Hash[:a, :b, :c] = 10 # => ArgumentError: wrong number of arguments(4 for 2)
<yorickpeterse> superlou: don't think that's possible out of the box
pygmael has quit [Quit: pygmael]
<yorickpeterse> (note that said error stays the same when you increase the amount of values that are being assigned)
<superlou> yorickpeterse: yeah, i've been digging through the api trying to find something that matches
<superlou> i'm willing to write something, but it seems gross to rebuild the entire hash just to set one value
<yorickpeterse> eh, sec
<superlou> problem is I can't find a way to get a hash value by reference
<injekt> why dont you just use a recursive hash?
<yorickpeterse> damn it inkjet, that's what I was going for
<zzak> i should buy a boat
<superlou> inkjet, not sure i understand? I can use a recursive function to find the value, but setting it on the original hash is where I'm stuck
bzalasky has quit [Remote host closed the connection]
<superlou> since when you get the value, you get a copy of it
<injekt> damn it yorickpeterse see what you did
<injekt> superlou: right, your hash needs to be a recursive hash
tonni_ has quit [Remote host closed the connection]
GarethAdams has joined #ruby-lang
<injekt> hash = Hash.new{|h,k| h[k]=Hash.new(&h.default_proc) }
<injekt> hash[:a][:b][:c] = 'd'
<injekt> enjoy!
<yorickpeterse> superlou: something like this? http://pastie.org/7151687
<yorickpeterse> injekt: dayum nigga
<superlou> inkjet, if that works you're a wizard
<yorickpeterse> I suck at Ruby golf :<
<injekt> yorickpeterse: now I feel bad you went to all that trouble :(
<yorickpeterse> pfff, good exercise
<yorickpeterse> good excuse to not write docs too
tonni has joined #ruby-lang
<injekt> hash = Hash.new(&->(h,k){h[k]=Hash.new(&b))
<injekt> hash[:a][:b] = 'c'
<injekt> but yeah dont do that im just being a food
<injekt> a fool, too
<GarethAdams> &b ?
<injekt> oops
<injekt> good catch
<GarethAdams> autovivifying hashes always catch me out
<GarethAdams> they make me feel powerful
<superlou> i think i'm missing something important. How do you put in the reference to the existing hash you're modifying?
<GarethAdams> and then someone else writes a condition `if hsh[key]` and it isn't intuitive why that always passes
<superlou> (Also, why does this bloody javascript irc client not scroll down to the most recent messages automatically)
<injekt> GarethAdams: aye :/
<GarethAdams> and I tell them to use hsh.key?(key) and they tell me to shut up
<injekt> I always tell people to use #key?
pygmael has joined #ruby-lang
<injekt> but injekt :x exists why doesn't it pass?? is the value nil or false? yeah so?
<injekt> superlou: make your original hash a nested hash
kristofferrr has joined #ruby-lang
<injekt> superlou: or just do this: hash.default_proc = proc { |h, k| h[k] = Hash.new(&h.default_proc) }
<injekt> where 'hash' is your original hash object
<injekt> >> 1
<injekt> darnit
<superlou> inkjet, trying out
<injekt> cant tell if you're still being funny with my username or haven't read it
<yorickpeterse> haha
<whitequark> yorickpeterse: fixed that. 29!
<superlou> injet, wait a second. I'm an idiot. How do you give it the array of keys?
<superlou> also, i can't read
<superlou> injekt
<superlou> dang it
<superlou> i'm apparently the worst
<injekt> superlou: use i[tab] to autocomplete the usernames
<injekt> superlou: and you dont set the keys
<injekt> superlou: you've set the default proc for each new hash value, which in turn is another hash
<yorickpeterse> superlou: note that we usually make fun of inkjet because of the name
<yorickpeterse> it's perfectly fine if you miswrite it :>
<superlou> yorickpeterse: only if i could understand the code. Code, then name games. It's the rules.
brianpWins has joined #ruby-lang
dhruvasagar has joined #ruby-lang
XxBlakeFailxX has joined #ruby-lang
__butch__ has joined #ruby-lang
<injekt> superlou: check out the docs for Hash.new and Hash default_proc
<injekt> it's quite simply once you understand how default_proc works
<superlou> injekt: I think i understand now that we've created a hash that lets us set at arbitrary depth without giving an undefined method []
<superlou> which is cool, but still need to use the hash[a][b][c]... syntax
<superlou> and since i have [a, b, c], not sure what ruby magic does this
<injekt> you can..
<injekt> oh, you want to change the syntax from [a][b][c] to [a, b, c] of some sort
<superlou> yeah :)
chrismar035 has quit [Quit: chrismar035]
<injekt> why?
<superlou> i'm modifying a hash given keys in the format "a/b/c", and splitting those by '/' and converting to_sym is straightforward
<superlou> basically the goal is a Rails wrap at an arbitrary depth in the hash
<injekt> you just want a recursive method to entering keys
<superlou> injekt: pretty much. got this far http://pastie.org/7151939
<superlou> recursive getting is straightfowrad
<yorickpeterse> whitequark: hey
chrismar035 has joined #ruby-lang
<whitequark> yorickpeterse: wat about it
<whitequark> op_asgn_or is ||=
<yorickpeterse> note the when statements
<injekt> superlou: you want to set the value whilst you do it too no?
<whitequark> yorickpeterse: what's the problem?
glebm has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 260 seconds]
<superlou> injekt: that would be ideal, but since i end up getting a copy of the value, i was resorting to finding another way to set it later on. Having to only recurse once would be better.
<yorickpeterse> it's dirty?
<yorickpeterse> I can't see myself maintaining such a large case statement
<whitequark> yorickpeterse: ok?
<yorickpeterse> in unrelated news, it seems that it's hard to find decent slides on the web about static code analysis
<yorickpeterse> (where "the web" is slideshare)
<whitequark> ummm no
<whitequark> search ACM
<whitequark> then you can fetch the articles from behind the paywall with, um, some services (or through your uni access)
<yorickpeterse> uni?
<whitequark> university
<yorickpeterse> I don't have any?
<yorickpeterse> Also, I'm just looking to see how others did talks about this
<whitequark> ahh
runeb has joined #ruby-lang
Gaelan has joined #ruby-lang
ivanoats has joined #ruby-lang
<Paradox> ran ran ru
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<yorickpeterse> whitequark: reason is what I don't want to walk on stage and be like "Yeah bro, analysing Ruby is fun. Questions?"
gnufied has quit [Quit: Leaving.]
rwk1 has quit [Remote host closed the connection]
benlovell has quit [Quit: Computer has gone to sleep.]
runeb has quit [Read error: Connection reset by peer]
runeb- has joined #ruby-lang
runeb- is now known as runeb
stef_204 has joined #ruby-lang
<injekt> great mixed intro/outro
<superlou> injekt: i would attend
<superlou> i tend to forget what happens during long presentations
<superlou> i forget short presentations too, but there's less forgotten
* whitequark installs ruby 1.8
kgrz has quit [Quit: Computer has gone to sleep.]
<superlou> anyway, thanks for trying folks
<superlou> going to go work on something less frustrating for a bit
cmckni3 has quit [Quit: Textual IRC Client: www.textualapp.com]
gregmoreno has joined #ruby-lang
cmckni3 has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
dr_bob has left #ruby-lang [#ruby-lang]
dhruvasagar has joined #ruby-lang
llaskin has left #ruby-lang [#ruby-lang]
apeiros_ has quit [Remote host closed the connection]
tonni has quit [Read error: Connection reset by peer]
pygmael has quit [Quit: pygmael]
tonni has joined #ruby-lang
vlad_starkov has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
MartynKeigher has quit [Excess Flood]
sush24 has joined #ruby-lang
runeb has quit [Remote host closed the connection]
MartynKeigher has joined #ruby-lang
jxpx777 has quit [Quit: Leaving...]
tomzx_mac_ has quit [Quit: return 0;]
rwk1 has joined #ruby-lang
tomzx_mac has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
rwk1 has quit [Ping timeout: 256 seconds]
alessio_rocco has quit [Remote host closed the connection]
sush24 has quit [Read error: Connection timed out]
amerine has joined #ruby-lang
sush24 has joined #ruby-lang
canton7 has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
kristofferrr has quit [Ping timeout: 240 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
gnufied has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
Gaelan has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
agarie has joined #ruby-lang
Gaelan has quit [Ping timeout: 260 seconds]
io_syl has joined #ruby-lang
agarie_ has quit [Ping timeout: 258 seconds]
Paradox is now known as trollface
trollface is now known as Paradox
agarie has quit [Remote host closed the connection]
agarie has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
vmoravec__ has quit [Quit: Leaving]
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 256 seconds]
apeiros_ has joined #ruby-lang
superlou has quit [Quit: Page closed]
glebm has joined #ruby-lang
jerrytgarcia has quit [Read error: Connection reset by peer]
jerrytgarcia has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
grandy has quit [Ping timeout: 258 seconds]
Guest85414 has quit [Ping timeout: 258 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
jonahR has joined #ruby-lang
robbyoconnor has joined #ruby-lang
beawesomeinstead has quit [Ping timeout: 258 seconds]
breakingthings has quit []
cored has quit [Ping timeout: 245 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
herpless___ has quit [Ping timeout: 245 seconds]
mistym has quit [Remote host closed the connection]
glebm has quit [Quit: Computer has gone to sleep.]
tonni has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
idkazuma has joined #ruby-lang
tonni has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ustrajunior has quit [Quit: ustrajunior]
lele has quit [Ping timeout: 264 seconds]
rwk1 has joined #ruby-lang
lele has joined #ruby-lang
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
rwk1 has quit [Ping timeout: 240 seconds]
Guest85414 has joined #ruby-lang
herpless___ has joined #ruby-lang
grandy has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
agarie has quit [Remote host closed the connection]
maxmanders has joined #ruby-lang
srbaker has joined #ruby-lang
symm- has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
maxmanders has quit [Ping timeout: 256 seconds]
dc5ala has joined #ruby-lang
mr_white_ has joined #ruby-lang
anonymuse has joined #ruby-lang
symm- has quit [Read error: Connection reset by peer]
symm- has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
jonahR has quit [Quit: jonahR]
breakingthings has joined #ruby-lang
anildigital_work has quit [Ping timeout: 258 seconds]
UziMonkey__ has quit [Ping timeout: 258 seconds]
jxpx777 has joined #ruby-lang
randym has quit [Ping timeout: 245 seconds]
swav has quit [Remote host closed the connection]
wycats__ has quit [Ping timeout: 258 seconds]
rwk1 has joined #ruby-lang
musl has quit [Remote host closed the connection]
musl has joined #ruby-lang
Spaceghost|cloud has quit [Ping timeout: 272 seconds]
grandy has quit [Ping timeout: 240 seconds]
dkannan has quit [Quit: dkannan]
dc5ala has quit [Quit: Ex-Chat]
mr_white_ has quit [Remote host closed the connection]
norplr has quit [Ping timeout: 258 seconds]
akahn has quit [Ping timeout: 252 seconds]
rwk1 has quit [Ping timeout: 264 seconds]
ykk has quit [Read error: Connection reset by peer]
gix has quit [Read error: Connection reset by peer]
ykk has joined #ruby-lang
gix has joined #ruby-lang
Guest85414 has quit [Ping timeout: 264 seconds]
ryanf has joined #ruby-lang
beawesomeinstead has quit [Ping timeout: 264 seconds]
chrismar035 has quit [Ping timeout: 248 seconds]
ros3bud has quit [Remote host closed the connection]
chrismar035 has joined #ruby-lang
ros3bud has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 248 seconds]
maxmanders has joined #ruby-lang
maxmanders has quit [Client Quit]
thejspr_ has quit [Ping timeout: 258 seconds]
tonni_ has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby-lang
maxmande_ has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
jonahR has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
jonahR has quit [Client Quit]
vlad_starkov has joined #ruby-lang
maxmanders has quit [Ping timeout: 248 seconds]
norplr has joined #ruby-lang
maxmande_ has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby-lang
lcdhoffman has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]
dhruvasagar has quit [Ping timeout: 264 seconds]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
ivanoats has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
rwk1 has joined #ruby-lang
ritek has joined #ruby-lang
jerrytgarcia has quit [Read error: Connection reset by peer]
sush24 has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
rwk1 has quit [Ping timeout: 248 seconds]
Mon_Ouie has quit [Ping timeout: 255 seconds]
brianpWins has quit [Quit: brianpWins]
thebastl has joined #ruby-lang
tonni_ has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
thebastl has quit [Remote host closed the connection]
shachaf_ has quit [Changing host]
shachaf_ has joined #ruby-lang
jMCg has quit [Ping timeout: 252 seconds]
shachaf_ is now known as shachaf
jMCg has joined #ruby-lang
thebastl has joined #ruby-lang
sush24 has quit [Quit: Leaving]
thebastl has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
<yorickpeterse> *tumbleweed*
megha has joined #ruby-lang
baba has quit [Ping timeout: 256 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<whitequark> yorickpeterse: hey
mixandgo has joined #ruby-lang
<whitequark> I finished the hard part, could you help me with the easy part and rewrite RP's AST generation code?
<whitequark> (almost finished)
<yorickpeterse> sure, first I need to fucking fix my Rubies
<yorickpeterse> Somehow updating system Ruby to 2.0 fucked up my custom built ones
<injekt> :D
<yorickpeterse> hm, only 1.9 seems to be borken
kennyvb has quit [Quit: ZNC - http://znc.in]
<yorickpeterse> Oh, I was using 1.9.3 p327 anyway
<yorickpeterse> ah well, updates never hurt
kennyvb has joined #ruby-lang
maxmanders has joined #ruby-lang
<yorickpeterse> whitequark: make sure you fix your GH branches as well, they're still outdated
pr0ton has joined #ruby-lang
<whitequark> yorickpeterse: hrm
<whitequark> it's not yet ready for you to hack on until I fix that last issue
<yorickpeterse> k
<whitequark> but
<whitequark> I do have things to discuss with you, right now
vlad_sta_ has quit [Read error: Connection reset by peer]
sandbags has quit [Remote host closed the connection]
<whitequark> first. I do not like the design of sexp_processor, and I like its absence of support for column numbers, and the fact that it is probably supposed to be monkey-patched by every project like RP does, even less
<whitequark> considering all this, I think it makes sense to fork ruby_parser after (if?) I get the ragel lexer integrated to the upstream, and migrate it to Furnace's sexps.
MaddinXx has joined #ruby-lang
<yorickpeterse> throwing this in: why not get rid of that sexp crap, use foundry and disregard keeping it somewhat compatible with that's out there?
<yorickpeterse> errr, furnace
<yorickpeterse> heh
snarfmason has quit [Quit: Textual IRC Client: www.textualapp.com]
rippa has quit [Ping timeout: 240 seconds]
<whitequark> well, because I wanna let the community use the better version
<yorickpeterse> releasing a separate gem would allow that as well
<yorickpeterse> Also, I'm going to be hated for saying this but I have to: I don't like dealing with people that originally wrote that code
<injekt> you've pretty much rewritten it no? or am i missing that
<whitequark> I think it makes sense to ship a converter to sexp_processor format with my fork. people shouldn't really change their code, and I suspect that change will be required.
<yorickpeterse> The fact that it's riddled with angry/snarky comments is enough for me to dispise it
<whitequark> injekt: rewritten the lexer, will rewrite the parser.
<injekt> whitequark: so you deserve credit for the entire thing in the form of a new gem
<whitequark> basically I rewrote, or will rewrite everything except most parse.y originated rules
<whitequark> injekt: I still use zenspider's test cases though.
<whitequark> he deserves attribution for that, they've helped enormously. but you're also right.
<injekt> whitequark: then give credit within those files
<injekt> I'd personally prefer to see a new gem
<yorickpeterse> Realistically speaking I think the chance of this getting merged in is rather small
<whitequark> injekt: it won't hurt to try to integrate the ragel lexer to upstream. why not?
<whitequark> so far I've kept it compatible.
<yorickpeterse> well, consider this:
<injekt> whitequark: sure if you can get it merged upstream and have commit bit that's great
<yorickpeterse> The lexer is rewritten from scratch, the parser will be as well. The S-expression stuff will also be rewritten
<whitequark> commit bit ROFL, I do not think that will ever happen
<yorickpeterse> That leaves you with about 80% of code being rewritten from scratch
<whitequark> injekt: yorickpeterse: yeah yeah, I'll release the gem
<whitequark> also, suggestion on name?
<yorickpeterse> whitequark-parser
<whitequark> meh no.
<yorickpeterse> eh, give me a second
<injekt> lol
<injekt> inkjet
<injekt> of course
<yorickpeterse> inkjet-parser
<yorickpeterse> powered by HP
<whitequark> inkjet_parser
<injekt> haha
<whitequark> well, I think I would even seriously consider that, maybe
<yorickpeterse> https://rubygems.org/gems/rb-ruby_parser what a name
<whitequark> if no better options
randym has joined #ruby-lang
<whitequark> so far I've only thought up "awesome_ruby_parser"
<yorickpeterse> parser_omakase
* whitequark slaps yorickpeterse around a bit with a large trout
<yorickpeterse> heh, ruby-parser is available
<injekt> no
<yorickpeterse> too confusing though
<whitequark> yorickpeterse: nay, that would be Ruby::Parser
<injekt> ^^
<whitequark> also confusing
<yorickpeterse> hm, maybe some Japanese word
<yorickpeterse> not sure what "parser" would be in weeaboo
<whitequark> hrm
<yorickpeterse> hold on, let me ask ceo-man
robbyoconnor has quit [Read error: Connection reset by peer]
<yorickpeterse> errr, cto-man
maxmanders has quit [Ping timeout: 260 seconds]
<yorickpeterse> parse.rb :>
<yorickpeterse> (I hate gems with extensions)
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
djwonk has joined #ruby-lang
sandbags has joined #ruby-lang
<injekt> anatomize
<yorickpeterse> that sounds like some nuclear project
<injekt> :D
<injekt> IT IS
<yorickpeterse> "ANATOMIZE THE FOREIGN SCUM"
pr0ton has quit [Ping timeout: 240 seconds]
<whitequark> Anatomize::Ruby19Parser
<yorickpeterse> one day somebody will take that out of context
<whitequark> or Anatomize::Parser19?
<yorickpeterse> whitequark: is there a particular need for version specific parsers?
<yorickpeterse> I only see that being required when they drop some syntax bit in a newer version instead of adding stuff
<whitequark> yorickpeterse: well, yes
<whitequark> it is quite complicated
<yorickpeterse> I take it these parsers/lexers extend a base lexer/parser instead of rewriting everything?
<whitequark> ruby20 changed some syntax in very subtle ways I have mostly yet to discover
<yorickpeterse> hmm
<whitequark> also 2.0 support will probably be a killer feature of my gem, 'cause it doesn't seem that 'spider cares about 2.0 a sligthest bit
<whitequark> hell, it's not like he cares much about 1.9.
<whitequark> yorickpeterse: no, not really
robbyoconnor has joined #ruby-lang
<whitequark> but there are distinct parse.y for 1.8/1.9 and will be one for 2.0
<yorickpeterse> hm
<whitequark> the lexer is shared but there are some evil, evil hacks around
<whitequark> the lexer does not and will not correctly lex all versions
<yorickpeterse> I'd say it would be a bit of a waste to completely redefine a parser for each version (when needed)
<whitequark> right now it's an 1.9 lexer with a bolted on appendage to support 1.8 syntax
<yorickpeterse> especially since usually only small bits differ
<whitequark> yorickpeterse: there's no other way
<whitequark> that's how bison works.
<yorickpeterse> hm
<whitequark> so, about lexer
skade has joined #ruby-lang
<whitequark> lexer is permissive, and they only relax the rules (which matter to lexer) and add syntax across versions, so far
jerrytgarcia has quit [Quit: Linkinus - http://linkinus.com]
<whitequark> e.g. "m () {}" is not valid 1.9 but valid 2.0
<whitequark> also "if true; else a:b end" is not valid 1.9 but is valid 2.0
<whitequark> etc
<yorickpeterse> ah
<whitequark> when I say subtle I do mean subtle.
<whitequark> so the lexer cannot affect the "m () {}", it's just a parser issue
<whitequark> but
<whitequark> the lexer is the one which fixes the "else a:b" thing
<yorickpeterse> how about "moscow" for the Gem :D
<yorickpeterse> in spirit of Melbourne
<yorickpeterse> or "vodka"
<whitequark> so when I implement 2.0 support the "1.9" parser will accept the "else a:b" as well
<whitequark> (vodka) :(
<whitequark> moscow... not sure. I'm not exactly fond of this sity. Just fuck it, seriously.
<whitequark> Otherwise it would be a neat way.
<yorickpeterse> I can think of a bunch of other names (e.g. phoenix) but they're a bit too cryptic
thinkdevcode has joined #ruby-lang
robbyoconnor has quit [Remote host closed the connection]
<yorickpeterse> fuck, phoenix is taken
<whitequark> obviously
adurity has joined #ruby-lang
<yorickpeterse> hm, something related to Ruby/gems
<whitequark> leukosapphire
<yorickpeterse> heh, if it was a Pratt parser you could call it "prattman"
<yorickpeterse> It's a bird! It's a plane! No, it's a
<yorickpeterse> p
<yorickpeterse> r
<yorickpeterse> a
<yorickpeterse> t
<yorickpeterse> parser!
<yorickpeterse> I'll show myself out
Kenpachi has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
anildigital_work has joined #ruby-lang
devoper has joined #ruby-lang
<yorickpeterse> "saphire" is available
UziMonkey__ has joined #ruby-lang
<rue> yorickpeterse: How about ‘parser’?
<whitequark> it's sapphire?
<yorickpeterse> hey I'm just throwing out names
apeiros_ has joined #ruby-lang
<yorickpeterse> we can also call it "cats-in-sauna-in-finland-parser"
Spaceghost|cloud has joined #ruby-lang
robbyoconnor has joined #ruby-lang
<whitequark> rue: that's an idea
<yorickpeterse> Parser::Ruby19Parser
<yorickpeterse> meh
<whitequark> Parser::Ruby19
<rue> ^
<yorickpeterse> I can see that namespace conflicting easily
<whitequark> yorickpeterse: no gems starting with parser- or parser_ as well
<rue> 19thParcentury
wycats__ has joined #ruby-lang
<rue> Parcenturion
<rue> But seriously Parser
<rue> parser-of-ruby
<yorickpeterse> https://rubygems.org/gems/buffalo FFFFFFFFFUUUUUUCCCCC
<yorickpeterse> I hate it when people squat gems like that
<yorickpeterse> god damn it, "yak" is also taken
apeiros_ has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Remote host closed the connection]
akahn has joined #ruby-lang
fraggle has joined #ruby-lang
<breakingthings> yorickpeterse: I feel like it's a kneejerk reaction after all the years we've dealt with domain snatchers
pr0ton has joined #ruby-lang
<breakingthings> but also there's like… no way to un-squat
<yorickpeterse> you can take over by requesting it I believe
<yorickpeterse> but I did suggest a better feature for that a while ago
ros3bud has quit [Remote host closed the connection]
<breakingthings> I'm squatting parakeet which I regret as I've changed the name of the project :d
<breakingthings> And I can't… just remove it, or anything.
<yorickpeterse> you can request it to be removed as well I believe
skade has quit [Quit: Computer has gone to sleep.]
<rue> If there’s one good thing about the community’s penchant for not really clever clever names, it’s that good, descriptive names are often available.
<yorickpeterse> heh
<whitequark> breakingthings: you can
Guest85414 has joined #ruby-lang
<whitequark> gem yank every single version of it
<breakingthings> whitequark: I believe I tried that.
<breakingthings> Maybe I f'ed up.
<whitequark> breakingthings: it should work.
ros3bud has joined #ruby-lang
<breakingthings> I suppose I might give it a go again at some point.
beawesomeinstead has joined #ruby-lang
<whitequark> yorickpeterse: what I actually want help with is a) AST and b) location merging
<whitequark> the ast part is kinda easy. I do not break RP compatibility for no reason, but I will fix pointless idiosyncrasies
<whitequark> like 0 instead of s(:args) for proc { || }
<whitequark> the location mering part is much more tricky
<whitequark> as in, there's an s(:defn) node. what do you want its location to point to? function name? the `def`?
<whitequark> note that the function name itself is a symbol and doesn't have associated location itself, ie s(:defn, :whatever, s(:args, ...))
<yorickpeterse> let me see what Ripper does
<yorickpeterse> oh yeah that's right
<whitequark> the def keyword, of course
<yorickpeterse> it's fucking crazy
<yorickpeterse> nope
<whitequark> nope?
<yorickpeterse> the end of the whole method
<yorickpeterse> let me verify that to be sure
<whitequark> oh perfect
<whitequark> the most useless choice of all
<whitequark> why am i not surprised
thejspr_ has joined #ruby-lang
<yorickpeterse> fucking eval.in is still down
<yorickpeterse> ah yes
<yorickpeterse> Ripper doesn't store the exact line numer in the :def node. However, when you call `lineno` in the corresponding callback it will point to the `end` block of the definition
<yorickpeterse> *However*, the location of the method name *is* correct
<yorickpeterse> err wait wait, I believe that was the column number
<yorickpeterse> shit's long ago, let me verify (again)
<yorickpeterse> (this is what you get when you write a layer around it and then forget about it)
<whitequark> also I'm going to make this shit work with Bundler so I could test dependent apps with the git version of the parser on travis
<yorickpeterse> get rid of all the hoe crap
<whitequark> oh definitely
Gaelan has joined #ruby-lang
swav has joined #ruby-lang
ivanoats has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby-lang
wmoxam has quit [Ping timeout: 258 seconds]
wmoxam has joined #ruby-lang
rushed has joined #ruby-lang
<whitequark> yorickpeterse: also there are two things to consider
<whitequark> BEGIN{} nodes which aren't supposed to go in AST
<whitequark> (jruby wraps the ast into a special object specifically for these nodes)
stef_204 has joined #ruby-lang
<whitequark> and the diagnostics
<whitequark> RP sends warnings to /dev/null
<whitequark> def warning s; # nothing for now; end
<whitequark> I think that there should be an ability to request lists of warnings, and maybe even recoverable errors, from the parser
<whitequark> like you can from clang
<whitequark> warnings would certainly be a great benefit for your linter
<yorickpeterse> well yeah. Also, I kinda like the SAX approach of Ripper for a parser
<yorickpeterse> though how it handles errors is, surprise, stupid
<whitequark> argh
<yorickpeterse> unless you define `on_parse_error` it silently ignores it and tries to continue parsing
<whitequark> yorickpeterse: you kinda can add SAX-style parsing to the parse.y's in the parser
<whitequark> I'm not really into it and I would just make it emit an AST
<whitequark> but I'm not opposed to the idea. if you want to implement it, I'll accept the code
<whitequark> ofcourse there should be an AST builder on top of that interface.
wmoxam has quit [Ping timeout: 264 seconds]
<yorickpeterse> well, come to think of it a SAX parser is only needed when the default AST is shit
<yorickpeterse> which is the case with Ripper
djwonk has quit []
<yorickpeterse> If it emits a sane AST to begin with that should be fine for, say, 95% of all cases
<whitequark> yea
<whitequark> I'm fairly sure that SAX is mostly useful in XML because for 100-megabyte files the DOM storage space would be truly enormous
<whitequark> not so for executable code
brianpWins has joined #ruby-lang
<yorickpeterse> also, what exactly do you mean with BEGIN{} nodes?
<whitequark> yorickpeterse: um, BEGIN{} ?
<whitequark> don't you know that BEGIN and END are keywords?
<yorickpeterse> Nope
<whitequark> ohhh
<yorickpeterse> What do they do?
<whitequark> it's a remnant from awk(1)
<yorickpeterse> wat
<whitequark> well they were taken from awk to perl
<whitequark> then from perl to ruby
mistym has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
<whitequark> BEGIN{} takes whatever code is in it, and hoists it to the top of the file.
<whitequark> like: puts "a"; BEGIN { puts "b" }; prints ab
<whitequark> the fun part is that BEGIN accepts a 'closure'
<yorickpeterse> Why would these not be considered part of the AST?
<yorickpeterse> Isn't it a runtime task to figure out wtf to do with those nodes?
<whitequark> yorickpeterse: because there isn't a place in the AST where they are acceptable
<yorickpeterse> hm
<yorickpeterse> I wonder what Ripper does
<yorickpeterse> Ripper.sexp('BEGIN { 10 }') # => [:program, [[:BEGIN, [[:@int, "10", [1, 8]]]]]]
<yorickpeterse> heh
<whitequark> expected, isn't it?
<yorickpeterse> I'm not surprised
<whitequark> yorickpeterse: also that doc is false
<whitequark> $ ruby -e 'if false; a = nil; end; BEGIN { a = 1 }; p a'
<whitequark> 1
<whitequark> they DO share variables with outer statements, but if you write code like that, no amount of pain is enough for you
<yorickpeterse> The doc was last updated in 2000
<yorickpeterse> So it might've changed since then
<whitequark> also I have totally no clue how to ever represent that in AST, so it won't be supported
<yorickpeterse> heh, `BEGIN do; end` is invalid
sailias1 has quit [Ping timeout: 245 seconds]
<whitequark> ... actually. if I just leave these nodes where they are supposed to be...
<yorickpeterse> whitequark: create a node for it, fuck it
<whitequark> yeah, you are probably right and they just should be a part of AST.
<whitequark> (:BEGIN)
<yorickpeterse> if people need it they'll have to resolve it themselves
<whitequark> also simplifies result format
<yorickpeterse> yup
<yorickpeterse> oh nice, Ruby treats it as a syntax error when it's not in the top level
<yorickpeterse> and it can't get the column number right, lawl
<yorickpeterse> note to self: add this to my linter so it throws errors when it sees it
<yorickpeterse> "warning: this code is stupid"
<whitequark> what code?
<yorickpeterse> the use of BEGIN {}
<whitequark> h. sure.
<yorickpeterse> I wonder if it even parses it..
<yorickpeterse> nope, need to add a callback for it
ros3bud has quit [Read error: Connection reset by peer]
ros3bud_ has joined #ruby-lang
tylersmith has quit [Quit: tylersmith]
s0ber has quit [Read error: Connection reset by peer]
thebastl has joined #ruby-lang
s0ber has joined #ruby-lang
djwonk has joined #ruby-lang
<yorickpeterse> whitequark: also, I'm not sure how many parser tests you currently have but you could probably take a bunch from ruby-lint
<yorickpeterse> though the expectations probably have to be modified
<whitequark> yorickpeterse: all of the ruby-parser ones
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<whitequark> plus I'll write tests for every RP issue currently open
<whitequark> oh I know what should I do now.
<yorickpeterse> take a break?
<whitequark> yorickpeterse: write more tests
<yorickpeterse> heh
wmoxam has joined #ruby-lang
symm- has quit [Quit: Leaving...]
ivanoats has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
<yorickpeterse> I'm off for the night, taters. And whitequark, thanks for your work so far
<whitequark> haha you're welcome.
<whitequark> oh also you can probably mention this in your talk. or even explain briefly what it is
<whitequark> I'll surely be grateful
<injekt> whitequark: did you come up with a name?
davejlong has joined #ruby-lang
<whitequark> injekt: parser.
<injekt> whitequark: :D
thebastl has quit [Remote host closed the connection]
pr0ton has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby-lang
pr0ton has joined #ruby-lang
fragamus has quit [Ping timeout: 240 seconds]
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
<rue> <3
mixandgo has quit [Quit: mixandgo]
tonni has quit [Read error: Connection reset by peer]
solars has quit [Ping timeout: 252 seconds]
wmoxam has quit [Ping timeout: 264 seconds]
tonni has joined #ruby-lang
<zenspider> ruby2ruby version 2.0.4 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2013/03/ruby2ruby-version-2-0-4-has-been-released.html
<cout> \o/
ivanoats has quit [Remote host closed the connection]
rushed has quit [Quit: rushed]
dustint has quit [Quit: Leaving]
soknee has quit [Quit: Leaving.]
devoper has quit [Ping timeout: 264 seconds]
swav has quit [Remote host closed the connection]
<zenspider> the next version of flay is gonna be fucking rad
<zenspider> between the new liberal pruning algorithm and subset detection... NOTHING will get by flay :P
<zenspider> rawr
mistym has joined #ruby-lang
mistym has joined #ruby-lang
breakingthings has quit []
davejlong has quit [Quit: Leaving.]
Gaelan has quit [Remote host closed the connection]
davejlong has joined #ruby-lang
djwonk has quit []
stef_204 has joined #ruby-lang
adurity has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
<zenspider> man... it is obvious that NOBODY has run flay against rails. heh.
<zenspider> wait... they have to be looking at code climate
maxmanders has joined #ruby-lang
benwoody_ has left #ruby-lang [#ruby-lang]
benwoody has joined #ruby-lang
gix has quit [Ping timeout: 255 seconds]
maxmande_ has joined #ruby-lang
maxmanders has quit [Ping timeout: 260 seconds]
melter has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
<zenspider> ENTERTAIN ME IM BORED
rushed has joined #ruby-lang
gix has joined #ruby-lang
davejlong has quit [Quit: Leaving.]
rushed has quit [Client Quit]
postmodern has joined #ruby-lang
forrest has quit [Quit: Leaving]
<zenspider> man... you guys suck
thebastl has joined #ruby-lang
<injekt> QUICHE
fraggle has quit [Quit: Textual IRC Client: www.textualapp.com]
mrfelix has joined #ruby-lang
burgestrand has joined #ruby-lang
idkazuma has joined #ruby-lang
chrismar035 has quit [Quit: chrismar035]
Gaelan has quit [Ping timeout: 260 seconds]
mrfelix has quit [Client Quit]
mrfelix has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
srbaker has joined #ruby-lang
davejlong has joined #ruby-lang
mrfelix is now known as mrfelix_
mrfelix_ is now known as mrfelix
Gaelan has joined #ruby-lang
<injekt> :/
pr0ton has quit [Quit: pr0ton]
burgestrand has quit [Quit: Leaving.]
thinkdevcode has quit [Remote host closed the connection]
pr0ton has joined #ruby-lang
<zenspider> RAWR... fuzzy duplication detection added to flay
srbaker has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has quit [Ping timeout: 240 seconds]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Gaelan has quit [Remote host closed the connection]
thebastl has quit [Remote host closed the connection]
srbaker has joined #ruby-lang
outoftime has quit [Quit: Leaving]
<TheNotary> I read the ruby2ruby and I'm deeply intrigued yet I have no idea what it's used for
srbaker has quit [Client Quit]
<injekt> generate ruby code from sexps which can be generated via ruby_parser
glebm has joined #ruby-lang
<TheNotary> *scratches head and opens a new google tab*
glebm has quit [Client Quit]
<injekt> TheNotary: http://docs.seattlerb.org/ruby2ruby/ the synopsis pretty much explains it
<injekt> lol "synopsys"
<zenspider> injekt: ?
<injekt> zenspider: spelling error?
<zenspider> not according to my dictionary
stevechiagozie has quit [Quit: Computer has gone to sleep.]
<zenspider> oh. oops. yes. the second y
<injekt> sure, but synopsys is an electrical company
<zenspider> huh. I wonder how far spread that is
<injekt> aye
<zenspider> shit
<injekt> I checked seattlerb's other stuff haven't found another yet
<zenspider> fuck
<injekt> I think it's just that one :)
<zenspider> nope. plenty have it
<zenspider> all old projects
glebm has joined #ruby-lang
<injekt> hah
<zenspider> fixed
<zenspider> thanks
glebm has quit [Client Quit]
<zenspider> TheNotary: plenty of applications for something like that. write a tool that parses a file, modifies the ast, and generates new ruby from it
Gaelan has joined #ruby-lang
<zenspider> flay uses it to generate N-way diffs in similar code
<zenspider> the nice thing is, the AST is unambiguous where the actual ruby might be totally different
<zenspider> x if y
<zenspider> vs
<zenspider> if y then x end
<TheNotary> aha! I'm with you now!
<TheNotary> I'm really bad with language parsing right now, I should make that my next research subject.
wmoxam has joined #ruby-lang
TheNotary has quit [Quit: Leaving]
anonymuse has quit [Quit: Leaving...]
glebm has joined #ruby-lang
robbyoconnor has joined #ruby-lang
davejlong has quit [Quit: Leaving.]
rwk1 has joined #ruby-lang
setmeaway2 has quit [Read error: Connection reset by peer]
emocakes has joined #ruby-lang
robbyoconnor has quit [Remote host closed the connection]
<zenspider> Fuzzy Duplication Detection in Flay | polishing ruby by ryan davis - http://t.co/aOIfCntzrM
Gaelan has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
<zenspider> man... I have wanted that for YEARS
<drbrain> postmodern: … and bogo bit flipped
<postmodern> drbrain, isn't this the streisand effect?
<drbrain> postmodern: not exactly
<drbrain> similar, though
<postmodern> drbrain, i guess i wont troll flameeyes about having to compile a stage1 gentoo system just to visit https://bugs.gentoo.org/ :P
Gaelan has joined #ruby-lang
<postmodern> drbrain, although i am seeing a pattern of contributors leaving because their patches got ignored
<drbrain> there's no patch here, just an abandoned bug report
<drbrain> I'm pretty sure that if Nobu says "I need more data" then he needs more data
<postmodern> drbrain, i guess that's a side effect of how many bugs are submitted and not having enough bug ranglers
<drbrain> he does commit nearly four times more often than anyone else
wmoxam has quit [Ping timeout: 264 seconds]
<postmodern> right, he doesn't have the time to babysit every issue
<drbrain> nobu responded to the issue the day after it was filed
<drbrain> then no response for 8 months, so I closed it
<postmodern> seems reasonable
<drbrain> then somebody cares about it, but wants to participate in a drama-fest instead of contributing
<postmodern> yeah, whenever i get my bugs rejected, i re-submit with more information / a better patch
ros3bud_ has quit [Remote host closed the connection]
mrfelix has quit [Quit: Computer has gone to sleep.]
Weems has quit [Ping timeout: 248 seconds]
idkazuma has quit [Remote host closed the connection]
sepp2k1 has quit [Remote host closed the connection]
rwk1 has quit [Remote host closed the connection]
maek has joined #ruby-lang
maxmande_ has quit [Quit: Computer has gone to sleep.]
<maek> anyone know why I cant run gem mirror even thought I have the rubygems-mirror gem installed? https://gist.github.com/clifferson/5267677
maxmanders has joined #ruby-lang
maxmande_ has joined #ruby-lang
maxmanders has quit [Ping timeout: 255 seconds]
benanne has joined #ruby-lang
maxmanders has joined #ruby-lang
idkazuma has joined #ruby-lang
maxmande_ has quit [Ping timeout: 248 seconds]
maxmande_ has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
maxmanders has quit [Ping timeout: 248 seconds]
<mistym> maek: Looks like you're running rbenv. Did you run `rbenv rehash`?
lcdhoffman has joined #ruby-lang
<maek> mistym: i think yes. Also if I revert rubygems it self to 1.8.24 it 'just works'
<maek> im also using rbenv exec gem
<maek> fwiw
maxmande_ has quit [Ping timeout: 248 seconds]
<maek> mistym: yeah even with rehash no dies
<maek> dice, even.
tsion has joined #ruby-lang
<drbrain> maek: it may be a bug in rubygems-mirror or rubygems
<postmodern> maek, you could try using chruby and not bother with rehashing
<maek> postmodern: ty. I will look
<maek> rbenv is pretty backed into our chef/deployment setup
<maek> about to build a ruby outside rbenv to see if its the problem
<maek> also rbenv exec saves you from the rehash I think
<andrewvos> chruuuuuuby
<maek> postmodern: since you are here. anything like gemsets or is that up to bundler?
brianpWins has quit [Quit: brianpWins]
ndch has joined #ruby-lang
<postmodern> maek, i either use bundler or chgems
<postmodern> maek, chgems is like chroot for gems
<maek> oh chgems
<maek> ty
<maek> i feel like I will be using this on my work station
<maek> appreciate the link/work :)
<drbrain> maek: why do you want to mirror gems?
<maek> drbrain: big company feels we should have all of our deployment dependencies internally and we have partners that dont have direct internet access
Weems has joined #ruby-lang
Weems has quit [Changing host]
Weems has joined #ruby-lang
<drbrain> maek: you should talk to evan in #rubygems about your requirements
<drbrain> he may have a better solution than `gem mirror`
<maek> when gem mirror worked it worked nicely. mirrored the whole of rubygems.org in about 2 hours
<maek> makes metadata, etc and the next time you run it it gets only the diffs
<maek> drbrain: but I will, thanks!