ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
dreinull has quit [Quit: and away]
<bubonicpestilenc> clear
matti has joined #ruby-lang
WillMarshall has joined #ruby-lang
<erikh> hello internet
vesan_ has quit [Read error: Connection reset by peer]
andrewhl has quit [Quit: andrewhl]
<drbrain> a = b != a && c
<erikh> is b defined?
mistym has joined #ruby-lang
<drbrain> all are defined
mistym has quit [Changing host]
mistym has joined #ruby-lang
<erikh> ah
fgomez has quit [Quit: leaving]
<erikh> I didn't write that did I?
* erikh hides
<drbrain> erikh: no, you did not
<drbrain> oh, and a is not used as a boolean after this
Defusal has quit [Ping timeout: 245 seconds]
<erikh> lovely
<drbrain> to be more specific, a is used as a String
<erikh> hahah
<drbrain> unless I missed another line in that
<erikh> ooh, does it try to .dup it?
<erikh> that'd be marginally amusing
<drbrain> it's treated as a path
mrsolo has quit [Quit: Leaving]
<drbrain> in other code travesties, today I wrote this:
<drbrain> uri = URI uri.to_s.sub(/^https?/, scheme) unless new_scheme == uri.scheme
<drbrain> oops, s/ scheme/ new_scheme/
vesan has joined #ruby-lang
<drbrain> I can't think of a better way, uri#component_ary is protected, so I can't pass the result to ::build after munging the scheme entry
Defusal has joined #ruby-lang
joedj has joined #ruby-lang
<erikh> you can't uri.scheme = new_scheme ?
<drbrain> erikh: no, because it will display funny and == won't work
macmartine has joined #ruby-lang
<erikh> public setter for the scheme component v. (with validation)
<erikh> hrm
<erikh> because of the different classes
<erikh> phooey
<drbrain> URI::HTTP and URI::HTTPS are distinct classes
<drbrain> yeah
<erikh> you could always override the scheme_list
<erikh> :P
<erikh> dirty pool though
<erikh> (iow, I'm not sure it's any less dirtier than your solution)
<zenspider> I think URIs should be treated like date or time instances
<erikh> URI() should take a hash
<drbrain> u = URI("http://example"); u.scheme = "https"; u.port = 443; puts u' # => https://example:443
<drbrain> but if you change to u = URI("https://example") you get https://example
<erikh> yeah but u is still a URI::HTTP right?
<drbrain> yes
<erikh> feh
<zenspider> fuck it. pushing the button
<zenspider> ruby_parser 3.0.0.a1 released
<erikh> congrats
<zenspider> RAWR
<erikh> ok, time for me to scoot
<erikh> if diablo doesn't suck me in, see you all later tonight
joedj has left #ruby-lang ["Leaving"]
mattonrails has quit [Remote host closed the connection]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
andrewhl has joined #ruby-lang
savage- has quit [Remote host closed the connection]
fgomez has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
avdi has quit [Ping timeout: 276 seconds]
Andrevan has joined #ruby-lang
Andrevan has joined #ruby-lang
bubonicpestilenc has quit [Quit: My blog @ http://bubonicpestilence.ru/]
jtoy has quit [Quit: jtoy]
mattonrails has joined #ruby-lang
perryh_away is now known as perryh
mattonrails has quit [Remote host closed the connection]
harukomoto has joined #ruby-lang
wmoxam has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
s0ber_ has joined #ruby-lang
tr-808_ has joined #ruby-lang
replore has joined #ruby-lang
wasnotrice has joined #ruby-lang
Xzyx987X has joined #ruby-lang
rtl_ has joined #ruby-lang
peppyheppy has quit [Quit: peppyheppy]
qpingu has quit [Quit: Leaving.]
harukomoto has quit [*.net *.split]
naz has quit [*.net *.split]
nashby_ has quit [*.net *.split]
tr-808 has quit [*.net *.split]
s0ber has quit [*.net *.split]
voker57 has quit [*.net *.split]
dasibre has quit [*.net *.split]
ioga_wrk has quit [*.net *.split]
imajes has quit [*.net *.split]
rtl has quit [*.net *.split]
jorgenpt has quit [*.net *.split]
kaz_____ has quit [*.net *.split]
_br_- has quit [*.net *.split]
zz_wasnotrice has quit [*.net *.split]
s0ber_ is now known as s0ber
qpingu has joined #ruby-lang
ConstantineXVI has quit [Remote host closed the connection]
harukomoto has joined #ruby-lang
naz has joined #ruby-lang
nashby_ has joined #ruby-lang
voker57 has joined #ruby-lang
dasibre has joined #ruby-lang
ioga_wrk has joined #ruby-lang
imajes has joined #ruby-lang
kaz_____ has joined #ruby-lang
jorgenpt has joined #ruby-lang
_br_- has joined #ruby-lang
Facefox has quit [Ping timeout: 260 seconds]
EvilJStoker has quit [Ping timeout: 245 seconds]
harukomoto has quit [*.net *.split]
naz has quit [*.net *.split]
nashby_ has quit [*.net *.split]
voker57 has quit [*.net *.split]
dasibre has quit [*.net *.split]
ioga_wrk has quit [*.net *.split]
imajes has quit [*.net *.split]
jorgenpt has quit [*.net *.split]
kaz_____ has quit [*.net *.split]
_br_- has quit [*.net *.split]
gregmoreno has quit [Remote host closed the connection]
Facefox has joined #ruby-lang
hahuang65 has quit [Quit: Computer has gone to sleep.]
Cykey has quit [Quit: Computer has gone to sleep.]
harukomoto has joined #ruby-lang
naz has joined #ruby-lang
nashby_ has joined #ruby-lang
voker57 has joined #ruby-lang
dasibre has joined #ruby-lang
ioga_wrk has joined #ruby-lang
imajes has joined #ruby-lang
_br_- has joined #ruby-lang
jorgenpt has joined #ruby-lang
kaz_____ has joined #ruby-lang
Facefox has quit [Ping timeout: 260 seconds]
Bwild has quit [Ping timeout: 245 seconds]
Facefox has joined #ruby-lang
solars has quit [Ping timeout: 244 seconds]
peppyheppy has joined #ruby-lang
gregmoreno has joined #ruby-lang
EvilJStoker has joined #ruby-lang
gix has quit [Ping timeout: 245 seconds]
gix has joined #ruby-lang
TheHunter_1039 has joined #ruby-lang
peppyheppy has quit [Quit: peppyheppy]
tenderlove has joined #ruby-lang
peppyheppy has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
replore has quit [Remote host closed the connection]
cored has quit [Ping timeout: 252 seconds]
flowerpot has joined #ruby-lang
Dreamer3 has quit [Quit: Leaving...]
stardiviner has joined #ruby-lang
seanstickle has joined #ruby-lang
fgomez has quit [Ping timeout: 252 seconds]
bfreeman has joined #ruby-lang
fgomez has joined #ruby-lang
fgomez has quit [Client Quit]
brianpWins has quit [Quit: brianpWins]
fgomez has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
halibut has joined #ruby-lang
harukomoto has quit [*.net *.split]
naz has quit [*.net *.split]
nashby_ has quit [*.net *.split]
voker57 has quit [*.net *.split]
dasibre has quit [*.net *.split]
ioga_wrk has quit [*.net *.split]
imajes has quit [*.net *.split]
jorgenpt has quit [*.net *.split]
kaz_____ has quit [*.net *.split]
_br_- has quit [*.net *.split]
voker57 has joined #ruby-lang
kaz____ has joined #ruby-lang
Facefox has quit [Ping timeout: 260 seconds]
naz has joined #ruby-lang
harukomoto has joined #ruby-lang
dasibre has joined #ruby-lang
imajes has joined #ruby-lang
jorgenpt has joined #ruby-lang
_br_- has joined #ruby-lang
Facefox has joined #ruby-lang
nashby_ has joined #ruby-lang
fgomez has quit [Quit: Lost terminal]
fgomez has joined #ruby-lang
fgomez has quit [Client Quit]
fgomez_ has joined #ruby-lang
slaytanic has quit [Remote host closed the connection]
slaytanic has joined #ruby-lang
slaytanic has quit [Ping timeout: 248 seconds]
slaytanic has joined #ruby-lang
bryancp has joined #ruby-lang
voker57 has quit [Read error: Connection reset by peer]
qpingu has quit [Ping timeout: 260 seconds]
tenderlove has quit [Remote host closed the connection]
M4g1c5t0rM has quit [Ping timeout: 276 seconds]
savage- has joined #ruby-lang
pkondzior has quit [Excess Flood]
pkondzior has joined #ruby-lang
bojicas has quit [Remote host closed the connection]
<slyphon> how the fuck do you get "ThreadError: current thread not owner" if you hand a *block* to @mutex.synchronize?!
slaytanic has quit [Ping timeout: 265 seconds]
slaytanic has joined #ruby-lang
fgomez_ has quit [Quit: Lost terminal]
fgomez has joined #ruby-lang
arooni-mobile__ has quit [Quit: Leaving]
<zenspider> petercooper: I'd appreciate some bloggy love on ruby_parser 3.0.0.a1 if you have time
<petercooper> I don't (leaving to chair a conference in a cpl days) but I can give it Ruby Weekly love instead!
<petercooper> Queued it, I'll check it out when I put it together :)
<slyphon> dammit, Monitor
<slyphon> it's always so disheartening when you switch from Monitor to Mutex and that solves your problems
<petercooper> although it's better than switching from Ruby to Node.js
<slyphon> that's just a sign you should get your resume ready
<petercooper> apparently people do that *mouth agape*
<zenspider> petercooper: thankyoumuch
peppyheppy has quit [Quit: peppyheppy]
felipe__ has joined #ruby-lang
peppyheppy has joined #ruby-lang
<erikh> remember when companies were the ones frantically switching techs because of some hare-brained manager that thought whatever microsoft shat out this week was worth rewriting for?
RomyRomy has joined #ruby-lang
harukomoto has quit [Ping timeout: 256 seconds]
mistym has quit [Remote host closed the connection]
arooni-mobile has quit [Quit: Leaving]
bryancp has quit [Remote host closed the connection]
harukomoto has joined #ruby-lang
RomyRomy has quit [Quit: RomyRomy]
Defusal has quit [Quit: Quit message goes here]
peppyheppy has quit [Quit: peppyheppy]
fgomez has quit [Quit: Lost terminal]
fgomez has joined #ruby-lang
peppyheppy has joined #ruby-lang
igotnolegs has joined #ruby-lang
duper has quit [Quit: leaving]
peppyheppy has quit [Quit: peppyheppy]
peppyheppy has joined #ruby-lang
peppyheppy has quit [Client Quit]
peppyheppy has joined #ruby-lang
peppyheppy has quit [Quit: peppyheppy]
rippa has joined #ruby-lang
peppyheppy has joined #ruby-lang
peppyheppy has quit [Client Quit]
peppyheppy has joined #ruby-lang
yxhuvud has joined #ruby-lang
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby-lang
bojicas has joined #ruby-lang
benteaa has quit [Ping timeout: 252 seconds]
benteaa has joined #ruby-lang
Choobie has quit [Ping timeout: 252 seconds]
peppyheppy has quit [Quit: peppyheppy]
tomzx has quit [Ping timeout: 245 seconds]
ryanf has joined #ruby-lang
felipe__ has quit [Remote host closed the connection]
tomzx has joined #ruby-lang
petercooper has quit [Remote host closed the connection]
andrewhl has quit [Quit: andrewhl]
Andrevan has quit []
dalekurt has joined #ruby-lang
wmoxam has quit [Ping timeout: 245 seconds]
tRAS has joined #ruby-lang
harukomoto has quit [Ping timeout: 245 seconds]
ryanf has quit [Quit: broken pipes |||]
Asher has quit [Remote host closed the connection]
Asher has joined #ruby-lang
deryl has joined #ruby-lang
countdigi has quit [Ping timeout: 248 seconds]
countdigi has joined #ruby-lang
TheHunter_1039 has quit [Quit: TheHunter_1039]
tRAS has quit [Quit: Mother, did it need to be so high?]
countdigi has quit [Quit: Lost terminal]
crudson has quit [Quit: Leaving.]
slyphon has quit [Quit: WeeChat 0.3.6]
tRAS has joined #ruby-lang
gregmore_ has joined #ruby-lang
gregmoreno has quit [Ping timeout: 252 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
Jade has joined #ruby-lang
ryanf has joined #ruby-lang
bojicas_ has joined #ruby-lang
seanstickle has quit [Quit: Nihil sub sole novum]
bojicas__ has joined #ruby-lang
bojicas_ has quit [Read error: Connection reset by peer]
bojicas_ has joined #ruby-lang
bojicas has quit [Ping timeout: 260 seconds]
bojicas__ has quit [Read error: Connection reset by peer]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
bojicas has joined #ruby-lang
shevy has quit [Ping timeout: 244 seconds]
mytrile has joined #ruby-lang
bojicas__ has joined #ruby-lang
bojicas_ has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby-lang
peppyheppy has joined #ruby-lang
bojicas has quit [Ping timeout: 260 seconds]
thrcka has joined #ruby-lang
shevy has joined #ruby-lang
bojicas has joined #ruby-lang
bojicas has quit [Read error: Connection reset by peer]
bojicas has joined #ruby-lang
bojicas__ has quit [Ping timeout: 245 seconds]
flowerpot has quit [Quit: Ex-Chat]
macmartine has quit [Quit: macmartine]
hexreel has joined #ruby-lang
gix has quit [Ping timeout: 248 seconds]
WillMarshall has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
diegoviola has quit [Quit: leaving]
qjb has joined #ruby-lang
jkprg has joined #ruby-lang
thrcka has quit [Remote host closed the connection]
JohnBat26 has joined #ruby-lang
jkprg_ has joined #ruby-lang
jkprg has quit [Read error: Connection reset by peer]
jkprg_ is now known as jkprg
igotnolegs has quit [Quit: Computer has gone to sleep.]
sandbags has quit [Remote host closed the connection]
sandbags has joined #ruby-lang
tomzx has quit [Ping timeout: 276 seconds]
thrcka has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
vmoravec has joined #ruby-lang
anekos has quit [Quit: Tiarra 0.1+svn-39036: SIGTERM received; exit]
anekos has joined #ruby-lang
zmack has joined #ruby-lang
Karmaon has quit [Ping timeout: 276 seconds]
jkprg has quit [Read error: Connection reset by peer]
jkprg_ has joined #ruby-lang
gasbakid has joined #ruby-lang
jkprg has joined #ruby-lang
FC34 has quit [Read error: Connection reset by peer]
FC34 has joined #ruby-lang
jkprg_ has quit [Ping timeout: 260 seconds]
ryez has joined #ruby-lang
Radium has joined #ruby-lang
dalekurt has quit [Quit: Zzz...]
tRAS has joined #ruby-lang
apeiros_ has joined #ruby-lang
rolfb has joined #ruby-lang
ramonmaruko has quit [Remote host closed the connection]
brianpWins has left #ruby-lang [#ruby-lang]
francisfish has joined #ruby-lang
ramonmaruko has joined #ruby-lang
solars has joined #ruby-lang
tallship has quit [Ping timeout: 260 seconds]
mssola has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
_br_- has quit [Quit: Bye, thanks for all the fish.]
^sandbags^ has joined #ruby-lang
brianpWins has joined #ruby-lang
_br_ has joined #ruby-lang
dasibre has quit [Remote host closed the connection]
sandbags has quit [Ping timeout: 276 seconds]
tRAS has quit [Quit: Mother, did it need to be so high?]
JohnBat26 has quit [Remote host closed the connection]
krz has quit [Quit: krz]
_br_ has quit [Quit: Bye, thanks for all the fish.]
_br_ has joined #ruby-lang
thrcka has quit [Remote host closed the connection]
tallship has joined #ruby-lang
Z33K|Lux has quit []
solars has quit [Read error: Operation timed out]
octavian2l has quit [Ping timeout: 245 seconds]
gsav has quit [Read error: Connection reset by peer]
tjadc has joined #ruby-lang
tjadc has quit [Read error: No route to host]
zz_chrismcg is now known as chrismcg
gentz has quit [Read error: Operation timed out]
gentz has joined #ruby-lang
Radium has quit [Read error: Connection reset by peer]
asaaki has quit [Quit: Verlassend]
gnufied has joined #ruby-lang
stardiviner has joined #ruby-lang
asaaki has joined #ruby-lang
stardiviner has quit [Client Quit]
gix has joined #ruby-lang
Radium_ has joined #ruby-lang
thrcka has joined #ruby-lang
futurechimp has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
Radium_ has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby-lang
gnufied1 has joined #ruby-lang
ryanf has quit [Quit: leaving]
peppyheppy has quit [Quit: peppyheppy]
gnufied has quit [Ping timeout: 244 seconds]
nrk is now known as JoL1hAHN
cdt has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
robgleeson|iphon has joined #ruby-lang
Radium_ has joined #ruby-lang
nevynxxx has joined #ruby-lang
asaaki has quit [Quit: Verlassend]
toretore has joined #ruby-lang
<andrewvos> postmodern: Sorry lost internet for a day. Just admiring that gem :)
tRAS has joined #ruby-lang
<robgleeson|iphon> Postmodern nice work on ore and ruby gems-tasks
nevynxxx has quit [Quit: Lost terminal]
<shevy> andrewvos I missed you
<andrewvos> I knew you would shevy.
<robgleeson|iphon> Hi sheet
<rue> Hi…bedspread?
<robgleeson|iphon> À la voicemail
nevynxxx has joined #ruby-lang
<robgleeson|iphon> Speech to text sucks on IRC aliases :P
<rue> An IRC…that you speak to? What is this madness?!
JohnBat26 has joined #ruby-lang
<robgleeson|iphon> Crazy I know
<robgleeson|iphon> It's the future
<postmodern> andrewvos, thank you, yeah i created out of anger because of various libraries that depended on one markdown lib or another
<postmodern> andrewvos, also im a secret fan of kramdown
<shevy> hmm
<shevy> that would be convenient
<shevy> I could speak my ruby code rather thant ype it out
<postmodern> although some libraries depend on redcarpet for it's Render engine, that's OK
<shevy> I use kramdown too
<robgleeson|iphon> It would be a disaster
<robgleeson|iphon> Lots of hit and miss
<shevy> it didnt give me any problems so far, so I like it
<postmodern> robgleeson|iphon, thank you, i hope it helps decouple things, project generators shouldn't be tied to rake tasks imho
<postmodern> kramdown is pretty much awesome
<postmodern> pure ruby, performant and can convert html back into markdown
<robgleeson|iphon> Postmodern I was a "all you need is a gem spec" person but as I create more projects the setup time is annoying so I'm going to try ore and ruby gems tasks
<postmodern> robgleeson|iphon, exactly this is where automation becomes popular
<postmodern> robbyrussell, and ore supports 3rd party templates, so you can override whatever you want, it's not a lock in
<postmodern> in other news, gin & tonic is delicious :)
bglusman_ has joined #ruby-lang
bglusman has quit [Read error: Connection reset by peer]
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
fjfish has joined #ruby-lang
solars has joined #ruby-lang
rolfb has quit [Quit: Linkinus - http://linkinus.com]
<rue> Ew
francisfish has quit [Ping timeout: 260 seconds]
Radium_ has quit [Ping timeout: 256 seconds]
Radium_ has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
<shevy> rue seems to like it
Zeddy911 has joined #ruby-lang
<Zeddy911> hi! I am trying to put my first ruby program to travis ci. Could anyone help to configure Rakefile ? I am stack on that :( https://github.com/nickzam/ruby-test-nickzam
<Zeddy911> I just need to start my test phone_test.rb
<Zeddy911> Anybody ?
kitallis has joined #ruby-lang
qjb has quit [Quit: qjb]
fvollero_ has left #ruby-lang [#ruby-lang]
kyrylo has quit [Read error: Connection reset by peer]
Radium_ has quit [Read error: Connection reset by peer]
tekin has joined #ruby-lang
robgleeson|iphon has quit [Remote host closed the connection]
asaaki has joined #ruby-lang
<andrewvos> Zeddy911: task :default do
<andrewvos> require "phone_test.rb"
<andrewvos> end
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
asaaki has quit [Quit: Computer has gone to sleep.]
Arsen7 has joined #ruby-lang
srbartlett has joined #ruby-lang
stamina has joined #ruby-lang
stamina has quit [Read error: Connection reset by peer]
stamina has joined #ruby-lang
rushed has joined #ruby-lang
<ged> Well, I *was* sleeping. :)
asaaki has joined #ruby-lang
asaaki has quit [Client Quit]
dalekurt has joined #ruby-lang
Zeddy911 has quit [Ping timeout: 248 seconds]
Zeddy911 has joined #ruby-lang
asaaki has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
asaaki has quit [Ping timeout: 244 seconds]
Guedes has quit [Quit: Saindo]
bojicas has quit [Remote host closed the connection]
perryh is now known as perryh_away
qjb has joined #ruby-lang
sallybaby has joined #ruby-lang
dalekurt has quit [Quit: Zzz...]
adambeynon has joined #ruby-lang
<rue> Didn’t work out?
dalekurt has joined #ruby-lang
dalekurt_ has joined #ruby-lang
<shevy> rue nah we kinda put stick into him on #ruby until he woke up
<shevy> poke ... poke ... poke ...
<shevy> how long you think anyone can endure that
<shevy> he woke up sleepily and even confused channels ;)
dalekurt has quit [Ping timeout: 265 seconds]
dalekurt_ is now known as dalekurt
imperator has joined #ruby-lang
nofxxx has joined #ruby-lang
nofxxxx has quit [Ping timeout: 252 seconds]
<zzak> good morn!
asaaki has joined #ruby-lang
postmodern has quit [Quit: Leaving]
<imperator> good morning zzak
kaspernj has joined #ruby-lang
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
soahccc` is now known as soahccc
tla has left #ruby-lang [#ruby-lang]
adambeynon has quit [Quit: adambeynon]
jkprg_ has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
tonniaagesen has joined #ruby-lang
jkprg has quit [Ping timeout: 245 seconds]
jkprg_ is now known as jkprg
mark_locklear has joined #ruby-lang
M4g1c5t0rM has joined #ruby-lang
tonniaagesen has left #ruby-lang ["Leaving..."]
bglusman_ has quit [Remote host closed the connection]
hebz0rl has joined #ruby-lang
bglusman has joined #ruby-lang
hebz0rl has quit [Client Quit]
hebz0rl has joined #ruby-lang
Defusal has joined #ruby-lang
Defusal has joined #ruby-lang
bryancp has joined #ruby-lang
bglusman has quit [Ping timeout: 245 seconds]
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
kyrylo has joined #ruby-lang
Guedes has joined #ruby-lang
Guedes has joined #ruby-lang
dasibre has joined #ruby-lang
hebz0rl has quit [Client Quit]
hebz0rl has joined #ruby-lang
beiter has joined #ruby-lang
tonniaagesen has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
tekin has quit [Quit: Computer has gone to sleep.]
mssola has quit [Quit: Konversation terminated!]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
dejongge has joined #ruby-lang
tomzx has joined #ruby-lang
mistym has quit [Remote host closed the connection]
s3mi0 has joined #ruby-lang
Zeddy911 has quit []
gnufied has joined #ruby-lang
gnufied1 has quit [Ping timeout: 252 seconds]
kitallis has quit [Quit: Computer has gone to sleep.]
kitallis has joined #ruby-lang
adambeynon has joined #ruby-lang
andrewhl has joined #ruby-lang
zwerg has joined #ruby-lang
hynkle has joined #ruby-lang
sallybaby has quit [Ping timeout: 245 seconds]
chrismcg is now known as zz_chrismcg
ezkl has joined #ruby-lang
mistym has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 276 seconds]
chendo_ has quit [Quit: Leaving...]
vesan_ has joined #ruby-lang
vesan has quit [Read error: Connection reset by peer]
andrewhl has quit [Quit: andrewhl]
bglusman has joined #ruby-lang
KU0N has joined #ruby-lang
tomzx has quit [Ping timeout: 245 seconds]
M4g1c5t0rM has quit [Ping timeout: 265 seconds]
thone has joined #ruby-lang
thone_ has quit [Read error: Operation timed out]
rmascarenhas has joined #ruby-lang
bryancp has joined #ruby-lang
matalangilbert has joined #ruby-lang
sonicpond has joined #ruby-lang
tekin_ has joined #ruby-lang
TheHunter_1039 has joined #ruby-lang
outoftime has joined #ruby-lang
singpolyma has joined #ruby-lang
rippa has quit [Quit: derp herp]
mistym has quit [Remote host closed the connection]
seanstickle has joined #ruby-lang
FC34 has quit [Quit: FC34]
matalangilbert has quit [Ping timeout: 245 seconds]
Facefox has quit [Ping timeout: 260 seconds]
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
asaaki has quit [Quit: Bye!]
Facefox has joined #ruby-lang
tubbo has quit [Remote host closed the connection]
tubbo has joined #ruby-lang
dv310p3r has joined #ruby-lang
<rue> GOOD MORNING
<seanstickle> allo
<rue> imperator: What did you end up watching?
<Hakon|mbp> MUNING
sonicpond has left #ruby-lang [#ruby-lang]
sonicpond has joined #ruby-lang
apeiros_ has joined #ruby-lang
mistym has joined #ruby-lang
beiter has quit [Remote host closed the connection]
futurechimp has quit [Ping timeout: 248 seconds]
krohrbaugh has joined #ruby-lang
futurechimp has joined #ruby-lang
qjb has quit [Quit: qjb]
nofxxx has quit [Read error: Connection reset by peer]
nofxxx has joined #ruby-lang
wmoxam has joined #ruby-lang
stardiviner has joined #ruby-lang
nofxxxx has joined #ruby-lang
tenaciousflea has joined #ruby-lang
tenaciousflea has left #ruby-lang [#ruby-lang]
nofxxx has quit [Ping timeout: 265 seconds]
s3mi0 has quit [Remote host closed the connection]
rushed has quit [Quit: rushed]
carloslopes has joined #ruby-lang
tenaciousflea has joined #ruby-lang
jperry2 has joined #ruby-lang
tenaciousflea has left #ruby-lang [#ruby-lang]
tenaciousflea has joined #ruby-lang
tenaciousflea has left #ruby-lang [#ruby-lang]
stamina has quit [Quit: Lost terminal]
hebz0rl has quit [Quit: Verlassend]
codewrangler has joined #ruby-lang
Defusal_ has joined #ruby-lang
Defusal_ has quit [Changing host]
Defusal_ has joined #ruby-lang
kurko_ has joined #ruby-lang
Tick-Tock has quit [Ping timeout: 245 seconds]
Defusal_ has quit [Ping timeout: 252 seconds]
Defusal has quit [Ping timeout: 276 seconds]
Defusal has joined #ruby-lang
Defusal has quit [Changing host]
Defusal has joined #ruby-lang
heftig has quit [Quit: leaving]
Tick-Tock has joined #ruby-lang
dejongge has quit [Quit: Leaving.]
Tref has joined #ruby-lang
jkprg has quit [Remote host closed the connection]
jkprg has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
<Jay_Levitt> I never use Perl-style booleans, but isn't something like |puts "true" and return if true| supposed to work? https://gist.github.com/2775621
wvdschel has joined #ruby-lang
wvdschel has joined #ruby-lang
elux has joined #ruby-lang
<erikh> (puts "true") and (return if true)
<erikh> does that help?
codesturgeon has joined #ruby-lang
mytrile has quit [Ping timeout: 252 seconds]
codesturgeon has quit [Client Quit]
<Jay_Levitt> erikh: yeah, that's what I'm seeing, but for some reason I had the impression it'd bind the other way
<Jay_Levitt> What's the case in which the very low precedence of "and" is useful?
<Jay_Levitt> oh, nm - it's "a = b and return"
<seanstickle> Which is of questionable "usefulness"
<Jay_Levitt> yeah, I've never actually used it myself :) but that's at least the *reason* for "and" having a low precedence
<erikh> the if binds tighter than any boolean operators I believe.
<Jay_Levitt> interesting: |puts "true" && exit if true| exits w/o any output.
<rking> Jay_Levitt: Hrm.
<Jay_Levitt> I know, right?
<erikh> ah, well I guess I was wrong
<rking> I don't have time to debug that right now, but I'm on the list of people curious about it.
<erikh> oh, no, I wasn't.
<erikh> derp.
<Jay_Levitt> is it something like right-to-left boolean shortcutting?
<erikh> (puts "true" && exit) if true
<erikh> there. I'm helping!
<rking> Jay_Levitt: OH, I get it.
<rking> erikh: No, that doesn't help.
<rking> && binds very tightly so "true" is evaluated, then exit is, then there's no chance for puts()
rippa has joined #ruby-lang
<shevy> it's the spirit that counts
<shevy> and beer
<rking> erikh: Oh, I mean, that is what is already happening.
<shevy> one of these. I tend to mix them up
<erikh> no it's not
<Jay_Levitt> rking: oh! hah. bottom-up interpretation. makes sense, thanks.
<rking> erikh: I meant it "doesn't help make "true" print before exiting", but you're right that it helps understand it.
<erikh> it's (puts "true") && (exit if true)
<rking> erikh: Nope
<rking> erikh: We'd see "true" then.
<erikh> only the if gets evaluated first
<Jay_Levitt> nope, because puts "one" && puts "two" if true #=> syntax error
Radium_ has joined #ruby-lang
<kurko_> true and puts "one" and puts "two"
<rking> erikh: Oh, Ok.
bfreeman has quit [Quit: bfreeman]
<rking> Jay_Levitt: I wonder how the parens breakdown on that one.
|Vargas| has quit [Quit: ...]
<rking> What is a gem that will show you the parse tree?
<Jay_Levitt> Does ParseTree work for 1.9 yet?
tubbo has quit [Quit: changing colors]
tubbo has joined #ruby-lang
gokul has joined #ruby-lang
heftig has joined #ruby-lang
<Jay_Levitt> answer: no, but ruby_parser kinda might and ripper does but may not give what you want
* Jay_Levitt is going back to PL/I
Defusal has quit [Ping timeout: 252 seconds]
nevynxxx has quit [Quit: time to run away]
yannis has joined #ruby-lang
vmoravec has quit [Read error: Connection reset by peer]
sora_h is now known as s0ra_h
tekin_ has quit [Quit: Computer has gone to sleep.]
Oloryn_lt2 has joined #ruby-lang
futurechimp has quit [Quit: This computer has gone to sleep]
asaaki has joined #ruby-lang
heftig has quit [Quit: leaving]
<asahi> i'm looking at a particular method in a gem, and I'm wondering how I can tell where it's defined
<seanstickle> asahi: use pry
futurechimp has joined #ruby-lang
<seanstickle> asahi: http://pry.github.com/
<asahi> seanstickle: I use pry quite a bit, but can you elaborate on that?
<seanstickle> Look at the example on that page, right in Quickstart
<seanstickle> "show-method"
<seanstickle> It'll show you where it is defined, and the source code.
<seanstickle> Very handy!
<zwerg> When doing price_in_cents.to_f / 100, do I have to worry about floating point imprecision?
beiter has joined #ruby-lang
<seanstickle> zwerg: yes
<asahi> seanstickle: ah okay, i'll try that out. thanks
<seanstickle> zwerg: use BigDecimal
slyphon has joined #ruby-lang
tekin has joined #ruby-lang
<oddmunds> Isn't there a money thing too?
<seanstickle> There is this: http://money.rubyforge.org/
Jay_Levitt has quit [Quit: Linkinus - http://linkinus.com]
apeiros_ has quit [Remote host closed the connection]
heftig has joined #ruby-lang
<zwerg> seanstickle: Thanks.
<zwerg> 1.9.2 cannot deal with integers in #new. Weird.
<oddmunds> it might be a little overkill, but i don't think you need to worry about floating point impercisions.
<kke> can i mix case when "xyz" then "foo" with when\n "bar"\n ?
<zwerg> oddmunds: I think I'll just calculate with cents and sprintf them.
<kke> looks like i can
<rippa> if cond1 then action end unless cond2
ezkl has quit [Quit: QUIT!]
savage- has quit [Remote host closed the connection]
fjfish has quit [Ping timeout: 260 seconds]
<kke> and to clarify the above: when "xxx"\n "bar"\n (and yes, you can do it)
francisfish has joined #ruby-lang
gregmore_ has quit [Ping timeout: 252 seconds]
tekin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jtoy has joined #ruby-lang
thone_ has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
futurechimp has quit [Quit: This computer has gone to sleep]
<shevy> kke not sure I understand
<shevy> you want to split up the single lines with newlines?
<shevy> I still think you require a , between
heftig has quit [Quit: leaving]
<shevy> lemme test...
carloslopes has quit [Ping timeout: 256 seconds]
thone has quit [Ping timeout: 248 seconds]
apeiros_ has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
tubbo`work has joined #ruby-lang
tubbo`work has quit [Remote host closed the connection]
tubbo has quit [Remote host closed the connection]
futurechimp has joined #ruby-lang
tubbo has joined #ruby-lang
gsav has joined #ruby-lang
<shevy> hmm odd
<shevy> kke seems to indeed work
<shevy> oh no wait
<shevy> that's just a single string there :P
heftig has joined #ruby-lang
Radium_ has quit [Ping timeout: 264 seconds]
lsegal has joined #ruby-lang
Radium_ has joined #ruby-lang
savage- has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 245 seconds]
gregmoreno has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
andrewhl has joined #ruby-lang
jtoy has quit [Quit: jtoy]
kaspernj has quit [Ping timeout: 244 seconds]
bfreeman has joined #ruby-lang
butchanton has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
heftig has joined #ruby-lang
seanstickle has quit [Quit: Nihil sub sole novum]
peppyheppy has joined #ruby-lang
mattonrails has joined #ruby-lang
<tenderlove> drbrain: do gemspecs have a license field now?
<tenderlove> drbrain: is this safe to merge? https://github.com/rails/rails/pull/6462
matalangilbert has joined #ruby-lang
<imperator> tenderlove, had it for a while
<tenderlove> imperator: great, thanks! :-)
kith has quit [Remote host closed the connection]
kith has joined #ruby-lang
tRAS has joined #ruby-lang
Sheperson has joined #ruby-lang
<Sheperson> I have Ubuntu 12.04, and I have installed both Ruby 1.8.7 and 1.9.3, with 1.8.7 as the default. How can I set 1.9.3 as the default ruby interpreter?
<imperator> alter your $PATH
<apeiros_> imperator, tenderlove: oh, good to know. need to amend my gemspecs.
heftig has quit [Quit: leaving]
imajes has quit [Excess Flood]
<shevy> Sheperson I think you could use /etc/alternatives too
dax has quit [Quit: brb]
heftig has joined #ruby-lang
imajes has joined #ruby-lang
heftig has quit [Client Quit]
<shevy> Sheperson did you try... "update-alternatives --config ruby" yet
<shevy> update-alternatives --set ruby /usr/bin/ruby1.9.1
<shevy> so by providing the full path to the ruby binary, you should be able to switch
soahccc is now known as soahccc`
dax has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
peppyheppy_ has joined #ruby-lang
S3kx has left #ruby-lang [#ruby-lang]
peppyheppy has quit [Ping timeout: 276 seconds]
peppyheppy_ is now known as peppyheppy
kaspernj has joined #ruby-lang
futurechimp has quit [Quit: This computer has gone to sleep]
workmad3 has quit [Ping timeout: 250 seconds]
carloslopes has joined #ruby-lang
gasbakid has quit [Ping timeout: 240 seconds]
kilovolt42 has joined #ruby-lang
heftig has joined #ruby-lang
<epitron> two cents: i find it easier to use rvm to manage ruby in ubuntu
<epitron> i just install ruby1.8 for dependency satisfaction, then do a system-wide rvm install
<Sheperson> sorry guys, I was AFK
<epitron> how could you abandon us like that Sheperson!
<Sheperson> :D
hahuang65 has joined #ruby-lang
peppyheppy has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
<Sheperson> shevy, update-alternatives solved it
<Sheperson> thanks
peppyheppy has joined #ruby-lang
rtl_ has left #ruby-lang [#ruby-lang]
rtl has joined #ruby-lang
asaaki has quit [Quit: Bye!]
sonicpond has quit [Remote host closed the connection]
andrewhl has quit [Quit: andrewhl]
kaspernj has quit [Ping timeout: 276 seconds]
heftig has quit [Ping timeout: 245 seconds]
gasbakid has joined #ruby-lang
<chris2> anyone remember cvs?
d3vic3 has quit [Quit: leaving]
<erikh> mind bleach
Radium_ has quit [Ping timeout: 256 seconds]
kilovolt42 has left #ruby-lang [#ruby-lang]
<chris2> what happened if you committed files while there were commits in the meantime?
heftig has joined #ruby-lang
<erikh> oh, man, I don't remember.
<epitron> didn't cvs just block you or something?
<imperator> what happens when you do it in git?
<erikh> merge
<erikh> and/or rebase
<imperator> eh? not my experience
beiter has quit [Remote host closed the connection]
<chris2> well, it merges on git push
<chris2> but you need to pull first
<chris2> whereas with cvs iirc you didnt need to update
<chris2> it just merged
<imperator> if i try to push a commit if there have been changes already pushed remotely, blows up every time
<imperator> "but you need to pull first" - yep
<imperator> and pray there isn't a merge conflict
<imperator> which there always is
<erikh> you can pull --rebase to get a lot of those
<erikh> rid*
<chris2> yes
<chris2> the problem is that were considering many committers
<chris2> and a large tree
cdt has quit [Quit: Ex-Chat]
asahi has quit [Quit: Leaving.]
<chris2> making it likely that someone pushes between you pull and then push
<erikh> how many is a lot?
<erikh> hundreds?
<chris2> well, the gentoo portage tree
<chris2> yes
<erikh> ah ok
<chris2> and a commit ~5min or something?
<chris2> still investigating that
<erikh> hrmmmmmm
<erikh> if you want good control of the baseline, aegis is a nice tool
<chris2> bleech
<erikh> but it's not a source control tool in the classic sense
<erikh> heh
<erikh> aegis definitely is for a certain mindset
<chris2> i'm pondering a workflow where everyone pushes into his branch, and the system tries to integrate them
<erikh> right. aegis does that and enforces it
<erikh> and it probably can use git just fine
<chris2> but it doesnt work with git?
<chris2> hm
<erikh> aegis is more-or-less a frontend
Radium has joined #ruby-lang
<erikh> I think perforce might be worth looking at too, but I don't know enough about it
<epitron> more front than end
<erikh> probably want to talk to the brain or the spider
<chris2> i'd really prefer git
<erikh> there's also a couple of commit sign-off tools for git but I've never used them, either.
<chris2> yeah
<chris2> i used this google thing one
<chris2> its awful
<erikh> and git-flow ofc
<chris2> named after some painter
<chris2> rietviel
<chris2> d
<erikh> but that's really expecting people to play nice
<erikh> (and you shouldn't for a project like that, for what I hope are obvious reasons)
<chris2> yes
<chris2> far too many people
sonicpond has joined #ruby-lang
tenaciousflea has joined #ruby-lang
qjb has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
zwerg has quit [Remote host closed the connection]
DRCALKIN has joined #ruby-lang
adambeynon has quit [Quit: adambeynon]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
achiu has joined #ruby-lang
heftig has joined #ruby-lang
heftig is now known as Guest68990
tenaciousflea has quit [Read error: Connection reset by peer]
tenaciousflea has joined #ruby-lang
tenaciousflea has quit [Client Quit]
<epitron> it's always good to name your project after a hard-to-spell painter that your target audience doesn't know
jobicoppola has joined #ruby-lang
peppyheppy_ has joined #ruby-lang
<erikh> chris2: have you considered lots and lots and lots of git repos?
<chris2> that sucks awfully
<erikh> ok, heh
<chris2> iirc fedora does it
solars has quit [Read error: No route to host]
<chris2> they also have a branch for each "tag"
<chris2> a terrible mess imo
<chris2> and takes eternities to checkout
peppyheppy has quit [Ping timeout: 244 seconds]
peppyheppy_ is now known as peppyheppy
andrewhl has joined #ruby-lang
Cykey has joined #ruby-lang
mattonrails has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
brianpWins has quit [Client Quit]
brianpWins has joined #ruby-lang
ryanf has joined #ruby-lang
gregmore_ has joined #ruby-lang
gregmoreno has quit [Ping timeout: 245 seconds]
scampbell has joined #ruby-lang
<rue> Sucky git usage sucks
jkprg_ has joined #ruby-lang
arooni-mobile has joined #ruby-lang
jkprg has quit [Ping timeout: 248 seconds]
jkprg_ is now known as jkprg
Tref has quit [Quit: Tref]
ridders24 has joined #ruby-lang
kitallis has quit [Quit: Computer has gone to sleep.]
DRCALKIN has quit [Ping timeout: 244 seconds]
ridders24 has quit [Ping timeout: 248 seconds]
thrcka has quit [Remote host closed the connection]
Guest68990 has quit [Changing host]
Guest68990 has joined #ruby-lang
Guest68990 is now known as heftig
soahccc` is now known as soahccc
kith has quit [Remote host closed the connection]
kith has joined #ruby-lang
<andrewvos> So eloquent
VGoff is now known as VGoff_afk
DRCALKIN has joined #ruby-lang
<rue> Ur
DRCALKIN has quit [Client Quit]
beiter has joined #ruby-lang
<TTilus> anus
<erikh> penis
<TTilus> no, no, you got it all wrong!
<erikh> WRONG WRONG WRONG
<TTilus> you see, that was no profanity, but my last project
<erikh> hrm
<shevy> SEX SEX SEX
<erikh> can I click on that at work?
<shevy> always
<shevy> :>
<jaska> yeah
<TTilus> tell them about picking a domain
<erikh> ah
<TTilus> perfectly worksafe
<TTilus> for real
VGoff_afk is now known as VGoff
ridders24 has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
ridders24 has quit [Ping timeout: 244 seconds]
qpingu has joined #ruby-lang
ridders24 has joined #ruby-lang
kvirani has joined #ruby-lang
mattonrails has joined #ruby-lang
hahuang65 has quit [Quit: Computer has gone to sleep.]
imperator has quit [Quit: This computer has gone to sleep]
gsav has quit [Read error: Connection reset by peer]
gsav has joined #ruby-lang
mattonrails has quit [Remote host closed the connection]
dalekurt has quit [Ping timeout: 248 seconds]
tenderlove has quit [Remote host closed the connection]
mattonrails has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 256 seconds]
qjb has quit [Quit: qjb]
Facefox has quit [Remote host closed the connection]
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
Facefox has joined #ruby-lang
asaaki has joined #ruby-lang
ridders24 has quit [Ping timeout: 244 seconds]
jkprg has quit [Read error: Connection reset by peer]
jkprg has joined #ruby-lang
dejongge has joined #ruby-lang
kurko__ has joined #ruby-lang
peppyheppy has quit [Remote host closed the connection]
KU0N has quit [Quit: Linkinus - http://linkinus.com]
kurko_ has quit [Ping timeout: 244 seconds]
ridders24 has joined #ruby-lang
peppyheppy has joined #ruby-lang
crackity_jones has quit [Ping timeout: 265 seconds]
dalekurt has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
krz has joined #ruby-lang
adambeynon has joined #ruby-lang
adambeynon has quit [Client Quit]
adambeynon has joined #ruby-lang
blowmage has quit [Quit: Coyote finally caught me]
ridders24 has quit [Ping timeout: 244 seconds]
ridders24 has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
jonny has joined #ruby-lang
benanne has joined #ruby-lang
Austin__ has joined #ruby-lang
jonny has quit []
heftig has joined #ruby-lang
francisfish has joined #ruby-lang
jobicoppola has quit [Quit: Computer has gone to sleep.]
francisfish has quit [Read error: Connection reset by peer]
francisfish has joined #ruby-lang
jobicoppola has joined #ruby-lang
singpolyma has quit [Quit: leaving]
heftig has quit [Client Quit]
singpolyma has joined #ruby-lang
IPGlider has joined #ruby-lang
apeiros_ has joined #ruby-lang
hahuang65 has joined #ruby-lang
Guedes is now known as Guedes_out
beiter has quit [Remote host closed the connection]
ridders24 has quit [Ping timeout: 248 seconds]
bfreeman has quit [Quit: bfreeman]
bfreeman has joined #ruby-lang
heftig has joined #ruby-lang
harukomoto has joined #ruby-lang
mistym has quit [Remote host closed the connection]
rippa has quit [Read error: Connection reset by peer]
bfreeman has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
bfreeman has joined #ruby-lang
ryanf has quit [Ping timeout: 260 seconds]
kyrylo has quit [Ping timeout: 252 seconds]
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
kyrylo has joined #ruby-lang
Sheperson has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
savage-_ has joined #ruby-lang
mark_locklear has quit [Remote host closed the connection]
savage- has quit [Ping timeout: 240 seconds]
mattonrails has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
<akahn> I have a hash of names and email addresses. I would like to throw out key value pairs where email address is duplicated. what would be a good way to do that?
ridders24 has joined #ruby-lang
<Tasser> akahn, what's the key?
ryez has quit [Ping timeout: 245 seconds]
singpolyma has quit [Quit: Lost terminal]
<frem> where `a` is a string, is this the best way to get all characters after a certain point? `a[0..a.length]`
<heftig> x..-1
<frem> ah! thank you. :)
tjadc has joined #ruby-lang
ridders24 has quit [Ping timeout: 276 seconds]
francisfish has joined #ruby-lang
ridders24 has joined #ruby-lang
fayimora has joined #ruby-lang
<drbrain> akahn: Hash#invert twice?
<akahn> drbrain: devious... I like it
singpolyma has joined #ruby-lang
petercooper has joined #ruby-lang
<akahn> oh, I misunderstood my problem. it's actually an array of hashes, and I want to array elements whose hash value of a certain key is repeated with other array elements' hashes
francisfish has quit [Remote host closed the connection]
<Tasser> akahn, why an array of hashes? array of structs?
ridders24 has quit [Ping timeout: 248 seconds]
<akahn> Tasser: no particular reason. are you suggesting that I use a struct instead of a hash?
<Tasser> akahn, nah, doesn't matter. is the semantics a struct?
<akahn> yeah, basically. [{:name => Tasser, :email => foo@bar.com}, {:name => akahn, :email => "foo2@bar.com"}]
<heftig> too bad there's no uniq_by
<akahn> exactly
<Tasser> akahn, OO way would be to define a struct, #hash and #== and use Set
<Tasser> heftig, does AS have somthing like that?
<akahn> Tasser: that sounds good. do you know of an example that does that?
<drbrain> heftig: Tasser: uniq takes a block: ruby -e 'p [1, 2, 3].uniq { |e| e % 2 == 0 }'
<drbrain> # => [1, 2]
Facefox has quit [Remote host closed the connection]
<heftig> Hash[a.map{|x| [x.email, x]}].values
<heftig> er
<heftig> x[:email]
<Tasser> akahn, go with uniq and that block
Facefox has joined #ruby-lang
<heftig> ah, a.uniq { |x| x[:email] } is a uniq_by
<akahn> thanks, Tasser, heftig, drbrain
fayimora has quit [Ping timeout: 240 seconds]
<akahn> I should have seen that it takes a block in the documentation
<heftig> the docs could be better
<heftig> it's just in the example, easily ignored
<akahn> some methods indicate more obviously that they take a block
<akahn> I bet drbrain would take a patch for it ;)
<Tasser> file a bug?
<drbrain> akahn: the latest ri seems to be OK: http://paste.segment7.net/wy.html
adambeynon has quit [Quit: adambeynon]
<akahn> drbrain: ah, so http://ruby-doc.org/core-1.9.3/Array.html#method-i-uniq is just out of date?
rmascarenhas has quit [Quit: leaving]
<drbrain> akahn: looks like it was updated since then, yes
<akahn> gotcha. thanks
tomb_ has joined #ruby-lang
rippa has quit [Ping timeout: 265 seconds]
<akahn> I want the last duplicate to be the one to be kept, so now I'm doing reverse.uniq {...}.reverse
jperry2 has quit [Quit: Leaving.]
Facefox has quit [Ping timeout: 250 seconds]
^sandbags^ has quit [Remote host closed the connection]
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
scampbell has quit [Remote host closed the connection]
tomb_ has quit [Quit: Computer has gone to sleep.]
Facefox has joined #ruby-lang
fayimora has joined #ruby-lang
rowsdower has joined #ruby-lang
benanne has quit [Ping timeout: 245 seconds]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ryanf has joined #ruby-lang
carloslopes has quit [Quit: Leaving]
ryanf_ has joined #ruby-lang
fayimora has quit [Ping timeout: 264 seconds]
Carnage\ has joined #ruby-lang
ryanf_ has quit [Client Quit]
cored has joined #ruby-lang
hynkle has quit [Quit: hynkle]
hynkle has joined #ruby-lang
hynkle has quit [Client Quit]
rowsdower has left #ruby-lang [#ruby-lang]
rowsdower has joined #ruby-lang
benanne has joined #ruby-lang
<soahccc> What is the best way to require relative from where the requiring file is saved. I've got a shell script which only work if you call it in it's directory :(
rowsdower has quit [Remote host closed the connection]
<drbrain> soahccc: require_relative won't do it?
novodinia has joined #ruby-lang
gasbakid has quit [Remote host closed the connection]
singpolyma has quit [Quit: Lost terminal]
<soahccc> drbrain: Thanks, that works fine. I should have know this :)
matalangilbert has quit [Ping timeout: 260 seconds]
<drbrain> soahccc: no problem, it's a new(ish) method
<soahccc> I only know about this approach but it isn't really nice... File.dirname(File.realpath(File.expand_path(__FILE__)))
<drbrain> shorter: File.expand_path '..', __FILE__
rowsdower has joined #ruby-lang
krohrbaugh has joined #ruby-lang
dalekurt has quit [Ping timeout: 265 seconds]
<rowsdower> I try to define a global method dynamically. Any ideas to make this work? << http://pastebin.com/8TMVBCVE >>
gasbakid has joined #ruby-lang
<drbrain> rowsdower: put the methods in a module and include it in Kernel
<drbrain> rowsdower: a terrible way to do it is with eval and TOPLEVEL_BINDING
zmack has quit [Remote host closed the connection]
<rowsdower> well, that was easy. << http://pastebin.com/index/8TMVBCVE >> thanks.
tjadc has quit [Remote host closed the connection]
<soahccc> drbrain: Hmm smart way of doing it :)
Austin__ has quit [Quit: Leaving.]
bglusman has quit [Remote host closed the connection]
bglusman has joined #ruby-lang
bglusman has quit [Read error: Connection reset by peer]
singpolyma has joined #ruby-lang
IPGlider has quit []
sonicpond has left #ruby-lang [#ruby-lang]
brianpWins has quit [Quit: brianpWins]
asaaki has quit [Quit: Verlassend]
s0ra_h is now known as sora_h
butchanton has quit [Ping timeout: 244 seconds]
yxhuvud has quit [Ping timeout: 248 seconds]
ridders24 has joined #ruby-lang
diegoviola has joined #ruby-lang
savage-_ has quit [Remote host closed the connection]
savage- has joined #ruby-lang
solars has joined #ruby-lang
sora_h is now known as s0ra_h
andrewhl has quit [Remote host closed the connection]
andrewhl has joined #ruby-lang
toretore has quit [Quit: Leaving]
butchanton has joined #ruby-lang
butchanton has quit [Client Quit]
jkprg has quit [Read error: Connection reset by peer]
jkprg has joined #ruby-lang
TTilus has quit [Read error: Operation timed out]
TTilus has joined #ruby-lang
dejongge has quit [Quit: Leaving.]
butchanton has joined #ruby-lang
dv310p3r has quit [Read error: Operation timed out]
heftig has quit [Ping timeout: 245 seconds]
nofxxx has joined #ruby-lang
matalangilbert has joined #ruby-lang
nofxxxx has quit [Ping timeout: 244 seconds]
Radium has quit []
Carnage\ has quit [Remote host closed the connection]
Karmaon has joined #ruby-lang
heftig has joined #ruby-lang
flori has joined #ruby-lang
Carnage\ has joined #ruby-lang
Lee_A has joined #ruby-lang
bryancp has joined #ruby-lang
rowsdower has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
Carnage\ has quit [Client Quit]
kurko__ has quit [Quit: This computer has gone to sleep]
Guest63362 has left #ruby-lang [#ruby-lang]
steez has joined #ruby-lang
s0ra_h is now known as sora_h
kurko_ has joined #ruby-lang
vpamulap has joined #ruby-lang
wmoxam has quit [Ping timeout: 276 seconds]
kurko_ has quit [Client Quit]
nofxxxx has joined #ruby-lang
Radium has joined #ruby-lang
nofxxx has quit [Ping timeout: 260 seconds]
spuk has quit [Remote host closed the connection]
spuk has joined #ruby-lang
ridders24 has quit [Quit: Leaving]
publicvoid__ has joined #ruby-lang
kitallis has joined #ruby-lang
Facefox has quit [Remote host closed the connection]
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
publicvoid_ has quit [Ping timeout: 245 seconds]
Facefox has joined #ruby-lang
novodinia has quit [Quit: leaving]
mistym has joined #ruby-lang
Tuga101 has joined #ruby-lang
musl has quit [Remote host closed the connection]
musl has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
sora_h is now known as s0ra_h
QaDeS has joined #ruby-lang
qpingu has left #ruby-lang [#ruby-lang]
Axsuul has joined #ruby-lang
vesan_ has quit [Ping timeout: 248 seconds]
srbartlett has joined #ruby-lang
tomb_ has joined #ruby-lang
Boohbah has quit [Ping timeout: 276 seconds]
Boohbah has joined #ruby-lang
vesan has joined #ruby-lang
flowerpot has joined #ruby-lang
outoftime has quit [Quit: Leaving]
Mikoangelo has quit [Read error: Operation timed out]
Mikoangelo has joined #ruby-lang
mistym has quit [Remote host closed the connection]
crackity_jones has joined #ruby-lang
dtang has joined #ruby-lang
benanne has quit [Quit: kbai]
woollyams has joined #ruby-lang
Lee_A has quit [Remote host closed the connection]
Slackwise has quit [Read error: Connection reset by peer]
vpamulap has quit [Ping timeout: 244 seconds]
Z33K|Lux has joined #ruby-lang
Radium has quit [Ping timeout: 260 seconds]
s0ra_h is now known as sora_h
Slackwise has joined #ruby-lang
tomzx has joined #ruby-lang
bruno_coelho has joined #ruby-lang
singpolyma has quit [Ping timeout: 245 seconds]
bryancp has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
Asher has quit [Remote host closed the connection]
Asher has joined #ruby-lang
matalangilbert has quit [Ping timeout: 252 seconds]
ahf has quit [Read error: Connection reset by peer]
bryanl has quit [Ping timeout: 248 seconds]
dalekurt has joined #ruby-lang
cid404 has quit [Ping timeout: 250 seconds]
skinny_m has quit [Ping timeout: 276 seconds]
wmoxam has joined #ruby-lang
wmoxam has quit [Changing host]
wmoxam has joined #ruby-lang
devn has quit [Ping timeout: 276 seconds]
dalekurt has quit [Client Quit]
kain has quit [Quit: Sto andando via]
kain has joined #ruby-lang
erpuds has quit [Quit: erpuds]
Dreamer3 has joined #ruby-lang
erpuds has joined #ruby-lang
peppyheppy_ has joined #ruby-lang
vesan has quit [Read error: Connection reset by peer]
vesan has joined #ruby-lang
peppyheppy has quit [Read error: Operation timed out]
peppyheppy_ is now known as peppyheppy
butchanton has quit [Quit: Leaving.]
tr-808_ has quit [Ping timeout: 248 seconds]
Hakon|mbp has quit [Quit: Leaving...]