apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
workmad3 has joined #ruby
RegulationD has quit [Remote host closed the connection]
gkra has joined #ruby
MyGreenPickle has quit [Quit: WeeChat 1.2-dev]
Brozo has joined #ruby
gkra has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
predator117 has joined #ruby
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 252 seconds]
ismaelga has joined #ruby
charliesome has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
zorak8 has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
doodlehaus has joined #ruby
jobewan has joined #ruby
pietr0 has quit [Quit: pietr0]
tcrypt has joined #ruby
robustus has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
dfinninger has quit [Read error: Connection reset by peer]
griffindy has joined #ruby
dfinninger has joined #ruby
dc__ has joined #ruby
sargas has quit [Quit: Leaving]
dopie has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno has quit [Remote host closed the connection]
sibchcoder has joined #ruby
delinquentme has quit [Ping timeout: 265 seconds]
cpt_yossarian has quit [Quit: And then he took off.]
dfinninger has quit [Read error: Connection reset by peer]
cpt_yossarian has joined #ruby
dfinninger has joined #ruby
mleung has quit [Quit: mleung]
Mia has quit [Write error: Connection reset by peer]
dfinninger has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
doodlehaus has quit [Remote host closed the connection]
chishiki has quit [Quit: WeeChat 1.1.1]
chishiki has joined #ruby
chishiki has quit [Changing host]
chishiki has joined #ruby
themadcanudist has left #ruby [#ruby]
icarus has quit [Remote host closed the connection]
mrmargolis has joined #ruby
doodlehaus has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
sevenseacat has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qwertme has joined #ruby
zachrab has quit [Remote host closed the connection]
wolflee__ has joined #ruby
gkra has joined #ruby
a346 has joined #ruby
chipotle has joined #ruby
ponga has joined #ruby
wolflee_ has quit [Ping timeout: 265 seconds]
dfinninger has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
sibchcoder has quit [Remote host closed the connection]
Brozo has quit [Remote host closed the connection]
chipotle has quit [Read error: Connection reset by peer]
keen__ has joined #ruby
freerobby has joined #ruby
dfinninger has joined #ruby
zachrab has joined #ruby
Soda has quit [Remote host closed the connection]
keen_ has quit [Ping timeout: 272 seconds]
narcan has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
marr has quit []
oo_ has joined #ruby
sivsushruth has quit [Ping timeout: 252 seconds]
dfinninger has joined #ruby
sivsushruth has joined #ruby
dodobrain has joined #ruby
cornfeedhobo has joined #ruby
Ellis has joined #ruby
dc__ has quit [Remote host closed the connection]
baweaver has joined #ruby
<Ellis> i read that alias creates a method with the same name as another method… what’s the point of alias?
delinquentme has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
<Ellis> radar: what does it do? change def firstname to def first_name?
kblake has quit [Remote host closed the connection]
<Radar> Ellis: It isn't changing anything.
<Radar> Ellis: You can still access it either as firstname or first_name.
ramfjord has quit [Ping timeout: 256 seconds]
<Radar> It provides an alternate name to te method
Guest37733 is now known as ixx
car has joined #ruby
framling has joined #ruby
a346 has quit [Quit: a346]
A205B064 has joined #ruby
<Ellis> ohhh i see it is creating an alias
<Ellis> lol
snockerton has quit [Quit: Leaving.]
<Radar> yes
<Ellis> what is the point of that?
<Ellis> seems dumb
i8igmac has quit [Ping timeout: 265 seconds]
<Ellis> what is going on next to initialize? why is there just a random *entries?
rgb-one has joined #ruby
<Radar> lol @ "seems dumb"
<Radar> could you remember without looking if the method was called firstname or first_name?
<sevenseacat> whats the point of alias? ohhh it creates an alias
<Radar> sevenseacat: ikr
<sevenseacat> i chuckled
sarlalian has quit [Quit: WeeChat 0.4.2]
<Radar> Could you remember if that method was ship_total or shipment_total?
<Radar> Why not both?
<Radar> Ellis: !twgr
<sevenseacat> no helpa.
<Radar> Oh right helpa banned and all that
<Ellis> radar i see
<Radar> Let me just duplicate all my commands over to ruboto because lol
<Radar> Ellis: *entries is not random
dfinninger has quit [Read error: Connection reset by peer]
gsd has quit [Ping timeout: 256 seconds]
<Ellis> radar: i have that book thank you very much
baash05 has joined #ruby
<Radar> Ellis: Cool story.
<Ellis> but what’s going on in this line? why is there an astrik and no parentheses? https://github.com/Blahah/datastructures/blob/master/lib/datastructures/linked_list.rb#L20
<Radar> Ellis: Read the book.
dfinninger has joined #ruby
<Nilium> Ellis: Read the book, but also, variadic arguments.
<Ellis> if doesn’t know answer read the book, doesn’t seem like very efficient programming :P
gsd has joined #ruby
<Ellis> if doesn’t know answer ask radar sounds faster
dstarh has joined #ruby
<Ellis> nilium: ty
bricker has quit [Quit: leaving]
ponga has quit [Quit: Leaving...]
<sevenseacat> lol
<sevenseacat> sounds like a decent strategy. bug an op for every simple question and ignore his advice
arescorpio has joined #ruby
<Radar> *<variable> is hard to search for in the book, I get that
<Radar> but this is a pretty basic Ruby question which is probably answered within the first 5 chps of the book
thatslifeson has joined #ruby
fgo has joined #ruby
<Radar> "Please explain all this code to me
<Radar> "
<sevenseacat> its a method definition.
<sevenseacat> just like any other.
<Radar> Ellis: *entries is explained in Section 7.4.2 "Array conversion with to_a and the * operator"
<Ellis> radar: thanks perhaps i was just confused since it wasnt inside a parentheses
dfinninger has quit [Read error: Connection reset by peer]
zachrab has quit [Remote host closed the connection]
mrmargolis has quit [Remote host closed the connection]
dfinninger has joined #ruby
ramfjord has joined #ruby
Brozo has joined #ruby
wallerdev has quit [Quit: wallerdev]
arescorpio has quit [Ping timeout: 250 seconds]
maletor has quit [Read error: Connection reset by peer]
fgo has quit [Ping timeout: 248 seconds]
jeramy_s has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
jeramy_s has quit [Client Quit]
ponga has joined #ruby
<ponga> any document explaining what 'alias' really do in ruby? , i already tried googling
RegulationD has joined #ruby
Stichoza has joined #ruby
<Ellis> alias creates another name for referencing someothing
MatthewsFace has joined #ruby
hewenhong has joined #ruby
gusrub has quit [Quit: Leaving]
mikecmpbll has quit [Read error: Connection reset by peer]
scripore has quit [Read error: Connection reset by peer]
lidenskap has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
sarlalian has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
delinquentme has quit [Ping timeout: 250 seconds]
inavele has joined #ruby
thatslifeson has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
BTRE has quit [Quit: Leaving]
<xxneolithicxx> err that code is ugly. i hate seeing ruby code that purposely leaves out the method parens, it makes it harder to read for no reason.
<xxneolithicxx> readability ppl
<Radar> I hate seeing Ruby code that has too many parenthesis because it makes it harder to read for no reason
<Radar> readability ppl
<xxneolithicxx> i see your point
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar> Great
<Radar> I would really worry if you didn't.
<ponga> what's the code you guys at
<Radar> Ruby(Code(With(Too(Many(Parenthesis(Hurts(My(eyes()))))))
dfinninger has quit [Read error: Connection reset by peer]
<ponga> omg
<ponga> that is like
<ponga> lisp!
d34th4ck3r has joined #ruby
wldcordeiro has quit [Ping timeout: 256 seconds]
claptor has joined #ruby
giuseppesolinas has joined #ruby
<Radar> hey at least lisp is usually formatted neatly
<xxneolithicxx> not exactly what i was talking about but yes
giuseppesolinas_ has joined #ruby
BTRE has joined #ruby
dfinninger has joined #ruby
<xxneolithicxx> im talking about just in the method def
<ponga> no offense
<Radar> xxneolithicxx: personally I would add them in but I am not offended if people leave them out
<Radar> It's clear to me that the line is defining a method and the things that follow are the arguments
<Radar> having parenthesis there doesn't *add* anything
mrmargolis has joined #ruby
<xxneolithicxx> it is to me but a new person reading might look at and be like wth
<mozzarella> I like to use ()'s in my defs
thatslifeson has joined #ruby
Ellis has quit [Quit: Ellis]
mozzarella is now known as mozzarellaaaaaaa
thatslif_ has joined #ruby
thatslifeson has quit [Read error: Connection reset by peer]
Matachin_ has joined #ruby
juanpablo___ has joined #ruby
hewenhong has quit [Remote host closed the connection]
Matachin_ has quit [Read error: Connection reset by peer]
hewenhong has joined #ruby
iotouch has joined #ruby
segfalt has joined #ruby
Matachines has quit [Ping timeout: 264 seconds]
swgillespie has joined #ruby
zorak8 has quit [Ping timeout: 255 seconds]
doodlehaus has joined #ruby
swgillespie has quit [Max SendQ exceeded]
mgberlin has joined #ruby
juanpablo___ has quit [Ping timeout: 250 seconds]
swgillespie has joined #ruby
dfinninger has quit [Remote host closed the connection]
bobbrez has joined #ruby
sargas has joined #ruby
gsd has quit [Read error: Connection reset by peer]
gsd has joined #ruby
Ellis has joined #ruby
laurentide has joined #ruby
icbm has joined #ruby
code_[BNC] has quit [Quit: BNC - Hosted by EpicKitty]
Ellis has quit [Client Quit]
icebourg has joined #ruby
thatslif_ has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
plutonic has joined #ruby
mgberlin has quit [Remote host closed the connection]
redlegion has joined #ruby
tkuchiki has joined #ruby
Matachines has joined #ruby
code_ has joined #ruby
sargas has quit [Quit: Leaving]
tacotaco_ has quit [Ping timeout: 272 seconds]
redlegion_ has joined #ruby
iasoon has quit [Ping timeout: 276 seconds]
tacotaco_ has joined #ruby
bobbrez has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arescorpio has joined #ruby
pygospa has quit [Ping timeout: 272 seconds]
sevvie has joined #ruby
redlegion has quit [Ping timeout: 264 seconds]
tus has quit []
bricker has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
Stichoza has quit [Quit: Lingo: www.lingoirc.com]
<ponga> what was the website that allows google search keywords with operators ( + = - )
redlegion_ is now known as redlegion
shuber_ has joined #ruby
jack_rabbit has joined #ruby
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
baweaver has quit [Remote host closed the connection]
<sevenseacat> symbolhound
<sevenseacat> ?
<ponga> thanks
paradisaeidae has joined #ruby
jack_rabbit has quit [Max SendQ exceeded]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jack_rabbit has joined #ruby
iotouch has joined #ruby
Lucky__ has joined #ruby
segfalt has quit [Quit: segfalt]
dvlwrk has joined #ruby
GriffinHeart has joined #ruby
willharrison has joined #ruby
pygospa has joined #ruby
<willharrison> is rsense dead? I noticed the git project taichouchou2/vim-rsense is gone and most of the posts about it online seem older
<willharrison> I'm trying to get auto completion in vim for ruby and it seemed like the best thing around :/
charliesome has quit [Quit: zzz]
Stichoza has joined #ruby
_djbkd has quit [Quit: My people need me...]
jack_rabbit has quit [Ping timeout: 245 seconds]
_lovehandle_ has joined #ruby
delinquentme has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
krz has joined #ruby
giuseppesolinas has quit [Quit: Leaving]
zachrab has joined #ruby
<sohrab> delete_if isn't working on a set im using. weird
jack_rabbit has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
framling has quit [Remote host closed the connection]
<gr33n7007h> >> require 'set'; s = Set.new([*0..20]); s.delete_if {|n| n % 3 == 0 }
<ruboto> gr33n7007h # => #<Set: {1, 2, 4, 5, 7, 8, 10, 11, 13, 14, 16, 17, 19, 20}> (https://eval.in/319651)
sivsushruth has quit [Ping timeout: 272 seconds]
jack_rabbit has quit [Ping timeout: 252 seconds]
Deele has joined #ruby
sivsushruth has joined #ruby
<gr33n7007h> # => syntax error 0x03242AF
Feyn has joined #ruby
charliesome has joined #ruby
sent1nel has joined #ruby
jack_rabbit has joined #ruby
Pupeno has joined #ruby
<sohrab> wtf i changed it from a set to an array and it's workign now Oo
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 245 seconds]
x1337807x has joined #ruby
bruno- has joined #ruby
redlegion has quit [Quit: Time for me to pass out.]
Pupeno has quit [Ping timeout: 265 seconds]
fgo has joined #ruby
sivsushruth has quit [Ping timeout: 244 seconds]
jack_rabbit has quit [Ping timeout: 276 seconds]
threh has joined #ruby
sivsushruth has joined #ruby
balazs has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
x1337807x has quit [Client Quit]
narcan has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
jobewan has quit [Ping timeout: 255 seconds]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
\13k has quit [Quit: good night and good luck]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has quit [Quit: This computer has gone to sleep]
<gr33n7007h> bit of ruby ascii art: {:+@=>->{:-@}}
fgo has quit [Ping timeout: 248 seconds]
amclain has joined #ruby
narcan has quit [Client Quit]
icbm has quit [Quit: Computer sleeping]
fgo has joined #ruby
michael_mbp has quit [Excess Flood]
astrobunny has joined #ruby
DerisiveLogic has joined #ruby
sivsushruth has quit [Ping timeout: 245 seconds]
michael_mbp has joined #ruby
<dvlwrk> anyone know why i can only get code completion for one level deep in a gem?
sivsushruth has joined #ruby
<dvlwrk> (i'm using aws-sdk)
<dvlwrk> and for some reason Aws::S will show S3, but once I try to go Aws:S3::C and hit client.. crickets
inavele_ has joined #ruby
<dvlwrk> im sorry, it's in rubymine derp
sohrab has quit [Ping timeout: 256 seconds]
DerisiveLogic has quit [Read error: Connection reset by peer]
sohrab has joined #ruby
inavele has quit [Ping timeout: 276 seconds]
DerisiveLogic has joined #ruby
inavele_ is now known as inavele
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has quit [Remote host closed the connection]
wolflee__ has quit [Read error: Connection reset by peer]
pygospa has quit [Ping timeout: 240 seconds]
aridere_ has joined #ruby
ponga has joined #ruby
wolflee__ has joined #ruby
aridere_ has quit [Max SendQ exceeded]
penzur has joined #ruby
aridere_ has joined #ruby
pygospa has joined #ruby
aridere_ has quit [Max SendQ exceeded]
aridere_ has joined #ruby
Olipro has quit [Ping timeout: 252 seconds]
sivsushruth has quit [Read error: Connection timed out]
sivsushruth has joined #ruby
astrobunny has quit [Remote host closed the connection]
kblake has joined #ruby
aridere_ has quit [Max SendQ exceeded]
astrobunny has joined #ruby
aridere_ has joined #ruby
Mohan_ has quit [Ping timeout: 240 seconds]
Joufflu has joined #ruby
Stichoza has quit [Quit: Be back later ...]
aridere_ has quit [Max SendQ exceeded]
bintelli has joined #ruby
Mohan has joined #ruby
aridere_ has joined #ruby
Mohan is now known as Guest66211
astrobunny has quit [Ping timeout: 240 seconds]
kblake has quit [Ping timeout: 264 seconds]
dopie has joined #ruby
aridere_ has quit [Max SendQ exceeded]
framling has joined #ruby
icebourg has quit []
aridere_ has joined #ruby
Olipro has joined #ruby
aridere_ has quit [Max SendQ exceeded]
aridere_ has joined #ruby
towski_ has quit [Remote host closed the connection]
aridere_ has quit [Max SendQ exceeded]
aridere_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Xoro has quit [Read error: Connection reset by peer]
shuber_ has quit []
sivsushruth has quit [Ping timeout: 244 seconds]
aridere_ has quit [Max SendQ exceeded]
sivsushruth has joined #ruby
aridere_ has joined #ruby
DerisiveLogic has quit [Ping timeout: 240 seconds]
aridere_ has quit [Max SendQ exceeded]
aridere_ has joined #ruby
rgb-one has quit [Read error: No route to host]
sivsushruth has quit [Ping timeout: 245 seconds]
Brozo has quit [Remote host closed the connection]
RegulationD has joined #ruby
sivsushruth has joined #ruby
d34th4ck3r has quit [Quit: zzz]
hewenhong has quit [Remote host closed the connection]
hewenhong has joined #ruby
car has quit [Ping timeout: 252 seconds]
hewenhon_ has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
delinquentme has quit [Ping timeout: 245 seconds]
hewenhong has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
Spami has joined #ruby
sivsushruth has quit [Ping timeout: 256 seconds]
sivsushruth has joined #ruby
mrmargolis has quit [Remote host closed the connection]
lidenskap has joined #ruby
balazs has quit [Remote host closed the connection]
juanpablo___ has joined #ruby
braincrash has quit [Quit: bye bye]
sivsushruth has quit [Ping timeout: 256 seconds]
juanpablo___ has quit [Ping timeout: 276 seconds]
sivsushruth has joined #ruby
duderonomy has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
Guest66211 has quit [Ping timeout: 264 seconds]
aridere_ has quit [Quit: Leaving]
hewenhon_ has quit [Remote host closed the connection]
hewenhong has joined #ruby
Mohan_ has joined #ruby
_lovehandle_ has quit [Quit: Lost terminal]
braincrash has joined #ruby
fgo has joined #ruby
multi_io has quit [Ping timeout: 252 seconds]
hewenhong has quit [Read error: Connection reset by peer]
hewenhon_ has joined #ruby
jobewan has joined #ruby
cefkamcau has quit [Ping timeout: 255 seconds]
multi_io has joined #ruby
jenrzzz has joined #ruby
cefkamcau has joined #ruby
inavele has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
b4tm4n has quit [Quit: Leaving]
narcan has joined #ruby
Channel6 has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
balazs has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
frem has quit [Quit: Connection closed for inactivity]
fgo has quit [Ping timeout: 252 seconds]
brackson has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Brozo has joined #ruby
Soda has joined #ruby
CaffeineShot has quit [Quit: Leaving]
balazs has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
konsolebox has joined #ruby
car has joined #ruby
Matachines has quit [Quit: Textual IRC Client: www.textualapp.com]
i8igmac has joined #ruby
nettoweb has joined #ruby
car has quit [Client Quit]
A205B064 has quit [Ping timeout: 250 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sivsushruth has quit []
icebourg has joined #ruby
krz has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
<i8igmac> string.scan(/test/)[0].to_s => ["test"]
<i8igmac> how do i get string with out []
<i8igmac> after scan
Vols has joined #ruby
krz has joined #ruby
<i8igmac> "[\"test\"]"
<i8igmac> ["test"]
<Radar> "test" ?
<Radar> what is string?
sevvie has quit [Ping timeout: 244 seconds]
_blizzy_ has quit [Ping timeout: 256 seconds]
ismaelga has quit [Read error: Connection reset by peer]
bintelli has quit [Quit: Page closed]
lessless has joined #ruby
weemsledeux has joined #ruby
Eiam_ has joined #ruby
Mia has joined #ruby
tvw has quit [Read error: Connection reset by peer]
gsd has joined #ruby
gsd has quit [Max SendQ exceeded]
sivsushruth has joined #ruby
sent1nel has quit [Remote host closed the connection]
gsd has joined #ruby
Vols is now known as Volsus
fedexo has joined #ruby
gsd has quit [Max SendQ exceeded]
gsd has joined #ruby
gsd has quit [Max SendQ exceeded]
ElderFain has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
gsd has joined #ruby
sent1nel has joined #ruby
<ElderFain> If I want to define a function that takes some values def func(first:1, second:2, operation: &block) and then takes a block to execute , say the block in this case checks to see if second is > some value inside the block.. is what i'm after here Procs ?
claptor has quit [Quit: this channel is bakas]
sevvie has joined #ruby
<i8igmac> string ="testing some testing... some more testing... and some more testing"
Pupeno has joined #ruby
<i8igmac> wait, i guess its like a node
<mozzarellaaaaaaa> ElderFain: yes
<mozzarellaaaaaaa> that's very vague, so I can't tell you it's the best way of doing what you want to do, but you can do that
arescorpio has quit [Quit: Leaving.]
Pupeno has quit [Ping timeout: 264 seconds]
balazs has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sivsushruth has quit [Ping timeout: 264 seconds]
sivsushruth has joined #ruby
adaedra has quit [Ping timeout: 256 seconds]
<hanmac> iBigmac: why not: string[/test/] #=> "test" ?
RegulationD has joined #ruby
towski_ has joined #ruby
greenbagels has joined #ruby
balazs has quit [Ping timeout: 244 seconds]
adaedra has joined #ruby
Mohan_ has quit [Ping timeout: 240 seconds]
thatslifeson has joined #ruby
Mohan_ has joined #ruby
zotherstupidguy has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
zotherstupidguy has joined #ruby
predator117 has quit [Ping timeout: 276 seconds]
gsd has quit [Read error: Connection reset by peer]
d34th4ck3r has joined #ruby
predator117 has joined #ruby
<ElderFain> mozzarellaaaaaaa: https://gist.github.com/anonymous/2e1f7398a38a9f281838 was what I ended up pulling together as an example
<ElderFain> mozzarellaaaaaaa: but I think I may want to try and use blocks intead, so you call bananas() {block me up bro!}
Morkel has joined #ruby
<mozzarellaaaaaaa> ElderFain: it's just a syntax, your block will also be a proc
jobewan has quit [Ping timeout: 265 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
<mozzarellaaaaaaa> >> def test(&block); block.class; end; test {}
<ruboto> mozzarellaaaaaaa # => Proc (https://eval.in/319686)
greenbagels has quit [Ping timeout: 240 seconds]
mozzarellaaaaaaa is now known as mozzarella
Pupeno has joined #ruby
wwwBUKOLAYcom has joined #ruby
Pupeno has quit [Ping timeout: 276 seconds]
fgo has joined #ruby
jenrzzz_ has quit [Ping timeout: 244 seconds]
sivsushruth has quit [Ping timeout: 264 seconds]
kblake has joined #ruby
sivsushruth has joined #ruby
sent1nel has quit [Remote host closed the connection]
dopie has joined #ruby
Channel6 has quit [Quit: Leaving]
fgo has quit [Ping timeout: 264 seconds]
Mia has quit [Read error: Connection reset by peer]
kblake has quit [Ping timeout: 256 seconds]
kp666 has joined #ruby
oo_ has joined #ruby
hewenhon_ has quit [Remote host closed the connection]
sivsushruth has quit [Ping timeout: 245 seconds]
iotouch has quit [Ping timeout: 256 seconds]
sivsushruth has joined #ruby
iotouch has joined #ruby
mary5030 has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
plutonic has quit [Quit: plutonic]
<ElderFain> cool, right
<ElderFain> thanks =)
<Eiam_> hmm when i puts a rack request.cookies, its empty. upstream, i can see via Charles that cookies are definitely there
<Eiam_> request.env also doesn't show the cookies
oo_ has quit [Ping timeout: 256 seconds]
zotherstupidguy has quit [Ping timeout: 248 seconds]
sivsushruth has quit [Ping timeout: 264 seconds]
zotherstupidguy has joined #ruby
sivsushruth has joined #ruby
swgillespie has joined #ruby
<shevy> you and your cookies
<shevy> I told you they will just fatten you up
zorak8 has joined #ruby
<Eiam_> =(
<Eiam_> my pants were a little tight this morning
djbkd_ has joined #ruby
dseitz has quit [Read error: Connection reset by peer]
bluOxigen has left #ruby [#ruby]
dseitz has joined #ruby
krz has quit [Ping timeout: 244 seconds]
<shevy> haha
<shevy> naked coding is the best anyway
mary5030 has quit [Remote host closed the connection]
<shevy> just as nature designed it
<baash05> I stepped into this conversation at the exact wrong time :)
d34th4ck3r has quit [Quit: zzz]
charliesome has quit [Quit: zzz]
oo_ has joined #ruby
psy_ has quit [Ping timeout: 272 seconds]
<hanmac> shevy implment "CoreWars" into the programms and let them fight each other until the strongest does survive ;P
<shevy> ah nature is more complicated than that!
<shevy> remember - all that matters is whether one can have viable offspring, no matter the strategy
<shevy> there is more than one way to do it!
A205B064 has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
jobewan has joined #ruby
jobewan has quit [Excess Flood]
jobewan has joined #ruby
ascarter has joined #ruby
astrobunny has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
fedexo has quit [Quit: No Ping reply in 180 seconds.]
<hanmac> if someone is interested ... nobu did make a feature-branch for each_uniq and each_uniq_by !!! ;P
plutonic has joined #ruby
juanpablo___ has joined #ruby
fedexo has joined #ruby
charliesome has joined #ruby
jobewan has quit [Ping timeout: 256 seconds]
x1337807x has joined #ruby
blueOxigen has joined #ruby
juanpablo___ has quit [Ping timeout: 240 seconds]
sivsushruth has quit [Ping timeout: 244 seconds]
sivsushruth has joined #ruby
axighi has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
longfeet has quit [Ping timeout: 244 seconds]
iotouch has quit [Quit: This computer has gone to sleep]
<axighi> Is there similar method to ActiveRecord:sum that sum for customized method of a class
<Radar> axighi: "customized method"
<Radar> show?
<Eiam_> hrm.. why did I end up seeing undefined method on configure for sinatra? https://gist.github.com/anonymous/da1c0e9b6e59883c27de
<Eiam_> sinatra defines configure, its required there if it doesn't exist
<axighi> not column
<Radar> It does?
bashusr has quit [Ping timeout: 265 seconds]
<Radar> axighi: Show us this customized method. Show us what it returns
braincra- has joined #ruby
<Radar> Eiam_: That's Sinatra::Base.configure.
<axighi> for instance: a method called "get_some_value" which returns a number
<Radar> axighi: Third time's a charm: SHOW US THE CODE.
<Radar> And the output.
Lildirt has quit [Ping timeout: 252 seconds]
<Radar> Pretty please with a cherry on top?
bruno- has joined #ruby
bashusr has joined #ruby
brackson has quit [Ping timeout: 256 seconds]
<Eiam_> okay
<Radar> Eiam: I say that as someone who doesn't have intimate knowledge of how Sinatra handles requests.
braincrash has quit [Ping timeout: 250 seconds]
<Eiam_> its probalby something to do with modular applications vs classic
<Eiam_> im reading
<Radar> Er, not handles request. Brainfart.
<Radar> I meant how Sinatra handles its delegating.
bruno- has quit [Ping timeout: 245 seconds]
jobewan has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
paradisaeidae has quit [Ping timeout: 256 seconds]
iotouch has joined #ruby
p2-m2 has joined #ruby
<Radar> axighi: Let's continue this conversation here :)
<Radar> axighi: [1,2,3].sum not cutting it for you?
<Radar> Or whatever the stdlib method is
paradisaeidae has joined #ruby
<Radar> [obj1, obj2].map(&:some_method).inject(0) { |sum, n| sum + n }
<sevenseacat> look ma no rails!
<p2-m2> hi is anyone working on a project that needs help? (I can help with a small pay in return)
mwlang has quit [Quit: mwlang]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sivsushruth has quit [Ping timeout: 256 seconds]
duncannz has joined #ruby
sivsushruth has joined #ruby
icebourg has quit []
iotouch has quit [Quit: This computer has gone to sleep]
fgo has joined #ruby
blueOxigen has quit [Ping timeout: 244 seconds]
tcrypt has quit [Remote host closed the connection]
bluOxigen has joined #ruby
tcrypt has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 264 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
sjuxax has quit [Quit: Leaving.]
fedexo has quit [Ping timeout: 265 seconds]
ebernhardson has joined #ruby
d34th4ck3r has joined #ruby
narcan has joined #ruby
narcan has quit [Max SendQ exceeded]
chipotle has joined #ruby
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
krz has joined #ruby
tagrudev has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has quit [Read error: Connection reset by peer]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CloCkWeRX has left #ruby [#ruby]
krz has quit [Ping timeout: 256 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iotouch has joined #ruby
chipotle has quit [Quit: cheerio]
edwinvdgraaf has quit [Remote host closed the connection]
Volsus has quit [Quit: Leaving]
aganov has joined #ruby
threh has quit [Quit: Leaving]
penzur has quit [Quit: quit]
zorak8 has quit [Ping timeout: 276 seconds]
djbkd_ has quit [Remote host closed the connection]
RegulationD has joined #ruby
codecop has joined #ruby
Lucky__ has quit [Ping timeout: 264 seconds]
ponga has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
swgillespie has joined #ruby
sent1nel has joined #ruby
astrobunny has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
bricker has quit [Ping timeout: 265 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
thatslifeson has quit [Remote host closed the connection]
_ixti_ has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 265 seconds]
sent1nel has quit [Ping timeout: 272 seconds]
duderonomy has quit [Read error: Connection reset by peer]
iamninja_ has quit [Read error: Connection reset by peer]
zenspider has quit [Read error: Connection reset by peer]
iamninja_ has joined #ruby
zenspider has joined #ruby
Soda has quit [Remote host closed the connection]
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby
<ngr> from inside a Gem, is there a way to get the path to the application code using the gem? the path to the Gemfile the gem was listed or so?
<Radar> ngr: "application code"?
<Radar> What kind of application?
jack_rabbit has joined #ruby
tcrypt has quit [Remote host closed the connection]
<ngr> It's going to be an internal micro-framework based on Grape and I make heavy assumptions about how the 'app code' is stuctured. For example I want to automatically require all the files inside the 'models' directory without having to write any line of code in the app itself
duderonomy has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
<ngr> it's gonna be a Rack application, so ideally all I want in the config.ru is a "require 'my_micro_framework'" and then "run MyMicroframework::App"
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar> Grape is not so fun imo
<zotherstupidguy> ngr if you have a repo, it will be easier to get suggestions
<Radar> Have you seen rails-api? https://github.com/rails-api/rails-api
<zotherstupidguy> Radar try utter =)
<Radar> zotherstupidguy: the what now?
<zotherstupidguy> a micro-api framework, inspired by almost-sinatra
<Radar> I've not heard of it. Do you have a link to it so I can check it out?
<ngr> Radar: this is not a question of Grape or not, because I'm already using it in a about seven micro-services that are currently rails applications. However I feel that rails is totally overkill and since Grape is self-sufficient I wanted to remove all the overhead (i.e. rails-stuff, except ActiveRecord of course)
sinkensabe has joined #ruby
<Radar> ok
<Radar> ngr: Rails does this by defining an APP_ROOT constant in config/application.rb, which is loaded when the Rails server starts.
<Radar> ngr: You could define that constant in config.ru and then reference that in your framework's code.
<ngr> Radar: that sounds excatly like what I need, thanks a lot!
<Radar> ngr: My apologies, it's [application]/bin/rails which sets the constant
<zotherstupidguy> ngr i used to like grape when it first started then it started to take the approach of being rails-like
<Radar> That's from my new book (idea), Deep Dive Rails: https://leanpub.com/ddr
astrobunny has joined #ruby
<zotherstupidguy> Radar NICE
<ngr> Radar: thanks. I guess is doesn't matter where I create the constant?
<ngr> zotherstupidguy: what do you think is wrong with Grape?
<ngr> Radar: would like to hear the same from you. Why don't you think it's 'fun'?
<ngr> My experience so far is good, I like the DSL and the code is quite expressive
<zotherstupidguy> ngr check grape's Gemfile and see the dependencies..
iotouch has quit [Quit: This computer has gone to sleep]
<zotherstupidguy> ngr it is supposed to be a simple tool for api, then they got over excited imo
dc__ has joined #ruby
<ngr> zotherstupidguy: as far as I can tell there are 9 runtime dependencies in their gemspec which is okay imo
<ngr> three of them being rack related, which I use anyway
<zotherstupidguy> ngr activerecord is one of them!
<ngr> well I din't check indirect dependencies
SOLDIERz has joined #ruby
<ngr> zotherstupidguy: as I mentioned I am using ActiveRecord
<zotherstupidguy> ngr makes sense then in your case
<Radar> ngr: I've had issues with rescuing exceptions nicely in Grape and other things
<ngr> zotherstupidguy: also, I cannot see activerecord being mentioned here https://github.com/intridea/grape/blob/master/grape.gemspec
<Radar> Where I worked one job ago, we were using Grape to build an API and found it too cumbersome and so we switched to straight Rails.
<Radar> Gemfile != actual dependencies
<zotherstupidguy> the bundle install log
SouL_|_ has joined #ruby
iotouch has joined #ruby
<Radar> zotherstupidguy: AR is not a gem dependency of grape
<zotherstupidguy> ngr i might be wrong as well, its more of an impression
<Radar> See here
<zotherstupidguy> see, yeah, sorry memory failed me again
<zotherstupidguy> Radar thanks
<ngr> Radar: okay I see why you dislike it, hopefully I'll have a more pleasing experience
<ngr> okay, back to work. thanks for your input Radar, zotherstupidguy :)
<Radar> np :)
<zotherstupidguy> cheers :)
lxsameer has quit [Ping timeout: 252 seconds]
<flughafen> moin
arturaz has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rdark has joined #ruby
fgo has joined #ruby
dodobrain has quit [Quit: bye... o/]
kblake has joined #ruby
ponga has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> the .read statement in sqlite3
<shevy> is still going today
<shevy> so now it's the third day
<shevy> 56M Apr 28 08:28 foo.sqlite3
p2-m2 has left #ruby [#ruby]
djbkd_ has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vire has joined #ruby
vire has quit [Max SendQ exceeded]
lfox has joined #ruby
kblake has quit [Ping timeout: 276 seconds]
djellemah_ is now known as djellemah
lxsameer has joined #ruby
Oka has quit [Quit: さようなら]
alex__ has joined #ruby
aganov has quit [Read error: Connection reset by peer]
SOLDIERz has joined #ruby
juanpablo___ has joined #ruby
alex__ has quit [Client Quit]
aganov has joined #ruby
Brozo has quit [Quit: Leaving...]
gagrio has joined #ruby
ta has quit [Remote host closed the connection]
gazay has joined #ruby
krz has joined #ruby
<Radar> haha
juanpablo___ has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: zzz]
sivsushruth has quit [Ping timeout: 256 seconds]
sivsushruth has joined #ruby
Azure has quit [Read error: Connection reset by peer]
<c-c> Someone ping me?
<Radar> c-c: no
<c-c> must have been yesterday, past lastlog
mengu has joined #ruby
Azure has joined #ruby
mengu has quit [Client Quit]
axighi1 has joined #ruby
axighi has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
kyrylo has joined #ruby
bruno- has joined #ruby
sent1nel has joined #ruby
<certainty> moin guys
ponga has quit [Quit: Leaving...]
haxrbyte has joined #ruby
relix has joined #ruby
<shevy> ping c-c
<shevy> ping c-c
<shevy> ping c-c
<ebernhardson> pong
<shevy> ack
<c-c> helo
sent1nel has quit [Ping timeout: 244 seconds]
<shevy> certainty will you write ruby code today?
<certainty> shevy: yes
<certainty> shevy: and you?
bruno- has quit [Ping timeout: 265 seconds]
wwwBUKOLAYcom has quit [Ping timeout: 250 seconds]
d34th4ck3r has quit [Quit: Ciao]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ayaz has joined #ruby
amclain has quit [Quit: Leaving]
Igorshp has joined #ruby
swgillespie has joined #ruby
swgillespie has quit [Client Quit]
<certainty> shevy: are you going to write lisp code today?
gauke has joined #ruby
<shevy> no :(
iamninja_ has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
<shevy> but some ruby code. I need to write some ruby script that manages my video collection
ponga has joined #ruby
TheHodge has joined #ruby
iamninja_ has joined #ruby
gh has joined #ruby
<certainty> shevy: so serious stuff xD
piotrj has joined #ruby
<shevy> I lost about 3 external HDDs in the last ~5 months or so. I think I even lost some videos because of that, when the last one went down without having all the backups from it...
<shevy> yeah!
<shevy> I barely make use of the old TV anymore
<shevy> save sometimes for news
<certainty> have fun
msgodf has joined #ruby
hgl has quit [Excess Flood]
fgo has quit [Ping timeout: 265 seconds]
gh has quit [Client Quit]
wottam has joined #ruby
hgl has joined #ruby
jack_rabbit has quit [Ping timeout: 248 seconds]
vire has joined #ruby
wottam has quit [Client Quit]
Igorshp has quit [Remote host closed the connection]
doertedev has joined #ruby
User458764 has joined #ruby
piotrj has quit [Remote host closed the connection]
workmad3 has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/20150415140819]]
ohaibbq has joined #ruby
tcrypt has joined #ruby
terlar has joined #ruby
edwinvdgraaf has joined #ruby
jeromelanteri has joined #ruby
kies has quit [Ping timeout: 255 seconds]
astrobunny has quit [Remote host closed the connection]
gauke_ has joined #ruby
crazysim has quit [Quit: ZNC - http://znc.in]
Spami has quit [Quit: This computer has gone to sleep]
tcrypt has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
<hanmac> shevy i will write more rwx code over the current week ... there is a new widget that i want to implement into my code
chinmay_dd has quit [Quit: Leaving]
alex88 has joined #ruby
gauke has quit [Ping timeout: 256 seconds]
gauke_ is now known as gauke
rdark has quit [Quit: leaving]
bricker has joined #ruby
rdark has joined #ruby
sohrab has quit [Ping timeout: 250 seconds]
piotrj has joined #ruby
banister has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
dvlwrk has quit [Ping timeout: 265 seconds]
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
bluOxigen has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
piotrj has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
bluOxigen has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd_ has quit [Remote host closed the connection]
aufi has joined #ruby
lordkryss has joined #ruby
kies has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 265 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
irklcn has joined #ruby
haxrbyte_ has joined #ruby
SOLDIERz has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
haxrbyte has quit [Ping timeout: 265 seconds]
lessless has joined #ruby
livathinos has joined #ruby
mooe has joined #ruby
NotABadThing has joined #ruby
NotABadThing has quit [Client Quit]
wolflee__ has quit [Read error: Connection reset by peer]
wolflee__ has joined #ruby
RegulationD has joined #ruby
wolflee__ has quit [Read error: Connection reset by peer]
jimms has joined #ruby
wolflee__ has joined #ruby
crazysim has joined #ruby
terlar has quit [Quit: WeeChat 1.1.1]
charliesome has joined #ruby
towski_ has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 264 seconds]
antgel has quit [Ping timeout: 240 seconds]
<adaedra> Hi
astrobunny has joined #ruby
antgel has joined #ruby
allenn has joined #ruby
ki0 has joined #ruby
marr has joined #ruby
SouL_|_ has quit [Ping timeout: 264 seconds]
ta has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
<flughafen> hey
chipotle has joined #ruby
SouL_|_ has joined #ruby
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby
chipotle has quit [Max SendQ exceeded]
hewenhong has joined #ruby
chipotle has joined #ruby
musashi1 has joined #ruby
chipotle has quit [Client Quit]
piotrj has joined #ruby
bruno- has joined #ruby
tesuji has joined #ruby
ohaibbq has quit [Quit: Leaving...]
badhatter has joined #ruby
badhatter has joined #ruby
jack_rabbit has quit [Ping timeout: 255 seconds]
neanderslob has joined #ruby
musashi1 has quit [Ping timeout: 255 seconds]
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
piotrj has quit [Remote host closed the connection]
Pupeno has quit [Quit: Leaving...]
banister has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
ghr has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
wolflee__ has quit [Read error: Connection reset by peer]
wolflee__ has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
iamninja_ has joined #ruby
baash05 has quit [Quit: Leaving.]
<certainty> flughafen: o/
hgl has quit [Max SendQ exceeded]
wolflee___ has joined #ruby
<flughafen> certainty: \o
hgl has joined #ruby
tomphp has joined #ruby
chthon has joined #ruby
anisha has joined #ruby
wolflee__ has quit [Ping timeout: 240 seconds]
granthatcher has joined #ruby
granthatcher is now known as granthatcher|awa
granthatcher|awa has quit [Max SendQ exceeded]
granthatcher has joined #ruby
<flughafen> certainty: how was your weekend? sevenseacat ?
<flughafen> who here was using gitlab?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
piotrj has joined #ruby
Igorshp has joined #ruby
Musashi007 has joined #ruby
fgo has joined #ruby
<sevenseacat> flughafen: cant complain. i did bugger all, sat on my butt and played video games. you? :)
postmodern has quit [Quit: Leaving]
ki0_ has joined #ruby
withnale has quit [Ping timeout: 250 seconds]
soahccc has quit [Ping timeout: 250 seconds]
andikr has joined #ruby
quazimodo has quit [Ping timeout: 276 seconds]
piotrj has quit [Remote host closed the connection]
sameerynho has joined #ruby
soahccc has joined #ruby
rcs has quit [Ping timeout: 256 seconds]
marr123 has joined #ruby
marr has quit [Ping timeout: 250 seconds]
bennyklo2z has quit [Ping timeout: 256 seconds]
Bish has quit [Ping timeout: 256 seconds]
bennyklo1z has joined #ruby
ki0 has quit [Ping timeout: 250 seconds]
hollywood has quit [Ping timeout: 256 seconds]
Killerkeksdose has quit [Ping timeout: 256 seconds]
eregon has quit [Ping timeout: 256 seconds]
sent1nel has joined #ruby
Killerkeksdose has joined #ruby
vroomanj has quit [Ping timeout: 250 seconds]
jimms has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
fgo has quit [Ping timeout: 265 seconds]
eregon has joined #ruby
withnale has joined #ruby
jimms has joined #ruby
QKO has quit [Ping timeout: 250 seconds]
mburns has quit [Ping timeout: 250 seconds]
hollywood has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
Guest24 has quit [Max SendQ exceeded]
QKO has joined #ruby
Cust0sL1men has joined #ruby
lele has joined #ruby
rcs has joined #ruby
mburns has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
bluOxigen has quit [Ping timeout: 276 seconds]
bluOxigen has joined #ruby
vroomanj has joined #ruby
Zai00 has joined #ruby
Bish has joined #ruby
<Musashi007> sounds like a great day.. what’d you play? :P
sent1nel has quit [Ping timeout: 250 seconds]
Zai00 has quit [Client Quit]
hewenhong has quit [Remote host closed the connection]
hewenhong has joined #ruby
<sevenseacat> elder scrolls online \o/
SOLDIERz has joined #ruby
juanpablo___ has joined #ruby
lidenskap has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
<apeiros> hearthstone, starcraft, this war of mine
<flughafen> sevenseacat: went climbing, put motorcycle together, went and saw avengers. i took my bike to get it's check , i can ride now but need to get a new rear tire in a month
<apeiros> but this war of mine is depressing
Spami has joined #ruby
<Musashi007> I just started playing hearthstone
hewenhon_ has joined #ruby
<Musashi007> do you play on NA, apeiros?
juanpablo___ has quit [Ping timeout: 240 seconds]
Olipro- has quit [Ping timeout: 252 seconds]
<apeiros> Musashi007: europe
<Musashi007> nod
nfk has joined #ruby
bricker has quit [Ping timeout: 276 seconds]
Spami has quit [Client Quit]
quimrstorres has joined #ruby
<flughafen> sevenseacat: did yuo slay any dragons or elders?
krz has quit [Read error: Connection reset by peer]
quimrstorres has quit [Remote host closed the connection]
hewenhong has quit [Ping timeout: 255 seconds]
elaptics_away is now known as elaptics
<sevenseacat> flughafen: unfortunately no.
<flughafen> boooooooo!
<flughafen> did you get to ride any dragons?
<sevenseacat> i have this war of mine on my steam wishlist
* flughafen is unfamiliar with eso
Pumukel has quit [Ping timeout: 265 seconds]
* flughafen used to play wow.
matcouto has joined #ruby
<sevenseacat> eso is awesome. that's all you need to know.
Zai00 has joined #ruby
<flughafen> sevenseacat: if you play it, it must be so awesome my brains would explode
<sevenseacat> hah
roshanavand has joined #ruby
zzing_ has joined #ruby
lxsameer_ has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
zzing has quit [Read error: Connection reset by peer]
Olipro- has joined #ruby
bim has joined #ruby
<flughafen> sevenseacat: what class you do prefer to play?
bim is now known as Guest93011
duncannz has quit [Ping timeout: 250 seconds]
<flughafen> i'm a level 7 airport
bluOxigen has quit [Ping timeout: 245 seconds]
<sevenseacat> haha
krz has joined #ruby
<sevenseacat> i'm a vr11 dragonknight! \o/
sameerynho has quit [Ping timeout: 264 seconds]
krz is now known as Guest40729
bluOxigen has joined #ruby
<flughafen> i like big dragons and i can't deny, you other brothers can't deny, when a dragon walks in with that itty bitty waist and those big wings in your face
<flughafen> err. /me should learn how to rap
piotrj has joined #ruby
lkba_ has quit [Ping timeout: 250 seconds]
piotrj has quit [Remote host closed the connection]
* flughafen casts "flight delayed" against sevenseacat
marr123 is now known as marr
* sevenseacat blocks it with an 'alternate airline' defense
DEA7TH has joined #ruby
* flughafen mwahahahahas.
roshanavand has quit [Ping timeout: 244 seconds]
* flughafen casts "lost luggage"
<flughafen> now you've lost your sword!
<sevenseacat> you assume I have the 'baggage allowance' perk
<sevenseacat> i do not
* flughafen cries
quimrstorres has joined #ruby
<flughafen> if you were a sorcerer you'd be lucky to not get charged to bring a wand on board
piotrj has joined #ruby
psyprus has joined #ruby
* sevenseacat uses a snowstorm on flughafen
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat> ohhhh yeah
jobewan has quit [Ping timeout: 264 seconds]
<sevenseacat> take that
chipotle has joined #ruby
* flughafen notifies sevenseacat that my runways are heated and are immune to snowstorms
<sevenseacat> clever... clever
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
chipotle has quit [Max SendQ exceeded]
charliesome has joined #ruby
chipotle has joined #ruby
lolmaus has joined #ruby
* flughafen will agree to a truce if you agree to buy a 17$ cheese sandwich
Pumukel has joined #ruby
<sevenseacat> deal. but only if i get to knock over a vending machine afterwards.
* flughafen shakes your hand. "agreed"
<sevenseacat> last time i was an an airport, a machine ate my $10. i was annoyed.
<flughafen> what kind of machine takes 10$?
Olipro- has quit [Ping timeout: 252 seconds]
lessless has quit [Ping timeout: 250 seconds]
piotrj has quit [Read error: Connection reset by peer]
<sevenseacat> erm, all machines around here
<flughafen> i guess everything is for no good reason expensive in aus
piotrj has joined #ruby
<sevenseacat> well i put the $10 in to buy a $4.50 bottle of coke so yeah
Pupeno has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
havenwood has quit [Remote host closed the connection]
<flughafen> sevenseacat: is water there cheap or free with meals? in germany water always costs money and is usually as expensive as beer(in a restaurant)
gregf_ has quit [Quit: leaving]
<sevenseacat> most places will give you chilled tap water for free. if you want filtered/bottled/anything fancy, then you pay normal prices
<flughafen> ok
huddy has joined #ruby
User458764 has joined #ruby
workmad3 has joined #ruby
SouL_|_ has quit [Ping timeout: 248 seconds]
relix has quit [Read error: Connection reset by peer]
relix has joined #ruby
zzing_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
platzhirsch has joined #ruby
Olipro- has joined #ruby
jottr has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bluOxigen has joined #ruby
SOLDIERz has joined #ruby
c0m0 has joined #ruby
OnBrokenWings has joined #ruby
basiclaser has joined #ruby
SOLDIERz has quit [Client Quit]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
SOLDIERz has joined #ruby
Olipro- has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
quimrstorres has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
sivsushruth has quit [Ping timeout: 272 seconds]
sivsushruth has joined #ruby
SOLDIERz has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 252 seconds]
SOLDIERz has joined #ruby
granthatcher_ has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
djbkd_ has joined #ruby
fgo has joined #ruby
granthatcher has quit [Ping timeout: 272 seconds]
badhatter has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
pandaant has joined #ruby
mtakkman has joined #ruby
Stichoza has joined #ruby
yfeldblum has joined #ruby
granthatcher_ has quit [Read error: No route to host]
granthatcher has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
raddazong is now known as madhatter
madhatter has quit [Changing host]
madhatter has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
tacotaco_ has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
shellfu_afk has quit [Read error: Connection reset by peer]
leafybasil has quit [Remote host closed the connection]
baash05 has joined #ruby
lidenskap has joined #ruby
Musashi007 has quit [Quit: Musashi007]
RegulationD has quit [Ping timeout: 276 seconds]
lidenskap has quit [Ping timeout: 240 seconds]
Guest93011 has quit [Remote host closed the connection]
baash05 has left #ruby [#ruby]
gfawcettpq has quit [Ping timeout: 245 seconds]
axighi1 has quit [Ping timeout: 250 seconds]
platzhirsch has left #ruby [#ruby]
lolmaus_ has joined #ruby
LJT has joined #ruby
sameerynho has joined #ruby
tacotaco_ has joined #ruby
bim has joined #ruby
lolmaus has quit [Ping timeout: 256 seconds]
bim is now known as Guest3350
Mohan_ has quit [Ping timeout: 250 seconds]
lxsameer_ has quit [Ping timeout: 240 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
C1V0 has quit []
Mohan_ has joined #ruby
User458764 has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
Mohan_ has quit [Ping timeout: 252 seconds]
gr33n7001 has joined #ruby
gr33n7007h has quit [Ping timeout: 250 seconds]
lxsameer_ has joined #ruby
Mohan_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
jottr has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 250 seconds]
GriffinHeart has quit [Remote host closed the connection]
mtakkman has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
AlphaAtom has joined #ruby
iasoon has joined #ruby
User458764 has joined #ruby
michael_mbp has quit [Excess Flood]
jud has joined #ruby
jud has joined #ruby
quimrstorres has joined #ruby
michael_mbp has joined #ruby
LJT has quit [Remote host closed the connection]
LJT has joined #ruby
leafybasil has joined #ruby
jimms has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
gregf_ has joined #ruby
kblake has joined #ruby
Spami has joined #ruby
ARCADIVS has joined #ruby
hewenhon_ has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kblake has quit [Ping timeout: 252 seconds]
piotrj has quit [Remote host closed the connection]
tvw has joined #ruby
piotrj has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Akagi201 has joined #ruby
aufi has left #ruby ["Konversation terminated!"]
bruno- has joined #ruby
quimrstorres has joined #ruby
asaf has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
roshanavand has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
terlar has joined #ruby
terlar has quit [Client Quit]
terlar has joined #ruby
OnBrokenWings has quit [Quit: Leaving]
A205B064 has quit [Ping timeout: 245 seconds]
piotrj has quit [Remote host closed the connection]
juanpablo___ has joined #ruby
Rickmasta has joined #ruby
piotrj has joined #ruby
bruno- has joined #ruby
fo2x has quit [Ping timeout: 248 seconds]
fgo has joined #ruby
Guest3350 has quit []
juanpablo___ has quit [Ping timeout: 252 seconds]
sivsushruth has quit [Ping timeout: 265 seconds]
bluOxigen has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: zzz]
sivsushruth has joined #ruby
bim has joined #ruby
bim has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 245 seconds]
shredding has quit [Ping timeout: 248 seconds]
tessi_zz has quit [Ping timeout: 265 seconds]
asaf has quit [Ping timeout: 246 seconds]
decoponio has joined #ruby
mostlybadfly has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
FIGO_ has joined #ruby
Stichoza has quit [Quit: Lingo: www.lingoirc.com]
Platini has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
tessi_zz has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
jokke has quit [Ping timeout: 265 seconds]
haxrbyte has joined #ruby
jokke has joined #ruby
doodlehaus has joined #ruby
FIGO_ is now known as Platini
Akagi201 has quit []
Musashi007 has joined #ruby
shortCircuit__ has joined #ruby
<shortCircuit__> hi
<shortCircuit__> I did this Hash[*instance_variables.map { |v| [v.to_sym, v] }.flatten] and I got {:@profiles=>:@profiles, :@sort_by=>:@sort_by, :@age_from=>:@age_from] , how to make it profiles: @profiles ?
yeticry has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zai00 has quit [Quit: Zai00]
antgel has quit [Ping timeout: 264 seconds]
chipotle has quit [Quit: cheerio]
_blizzy_ has joined #ruby
<shortCircuit__> Hash[*instance_variables.map { |v| [v.to_s.delete("@").to_sym, v] }.flatten] this works but seems :(
yeticry has joined #ruby
<jhass> [v[1..-1], v]
<apeiros> shortCircuit__: you realize that :foo => bar is *the same* as foo: bar?
antgel has joined #ruby
<apeiros> ah, you talk about dropping the @, not the syntax :D
<shortCircuit__> yeah
<apeiros> jhass' solution is IMO better. also drop the flatten and splat
<jhass> instance_variables.map {|var| [var[1..-1], var] }.to_h
<shortCircuit__> ok
<apeiros> and if you're on 2.1+, what jhass just said - to_h
<jhass> instance_variables.each_with_object({}) {|var, vars| vars[var[1..-1]] = var }
<apeiros> (and if you're not on 2.1+, form the habit of informing the channel that you're using outdated software…)
AlphaAtom has quit [Ping timeout: 276 seconds]
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shortCircuit__> umm."profiles"=>:@profiles can't be "profiles"=>@profiles, I mean "profiles"=>@profiles is profiles: @profiles ?
<jhass> well, to_sym it
axighi1 has joined #ruby
<jhass> but what's your goal anyway?
<shortCircuit__> wait let me gist it then
doodlehaus has quit [Remote host closed the connection]
arturaz has quit [Ping timeout: 264 seconds]
Musashi007 has quit [Quit: Musashi007]
Mohan_ has quit [Ping timeout: 264 seconds]
Lildirt has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
<shortCircuit__> https://gist.github.com/aghosh47/743e5db7d6bc78f8ab71#file-search_form-rb-L25-L26 previously when @search.attributes was done a has was being returned, now I am trying to compact it.. the existing code is wrong though
blackmesa has joined #ruby
Mohan has joined #ruby
<jhass> deosn't AM define attributes already?
toretore has joined #ruby
Mohan is now known as Guest93071
sivsushruth has quit [Ping timeout: 256 seconds]
<shortCircuit__> um, I tried SearchForm.new(Profile.brides, param).attributes .. it says undefined
sivsushruth has joined #ruby
<jhass> mh, apparently not, yrah
<adaedra> apeiros: tbf, people are not always aware that they are using outdated software
iotouch has quit [Quit: This computer has gone to sleep]
<jhass> why do you unpack them into instance variables though? AR keeps an @attributes hash, a fairly sane choice IMO
<apeiros> adaedra: sure. I still give advice assuming they use current software. and if they run into troubles I tell them to state the version they use.
<shortCircuit__> I will recheck, maybe I was doing something wrong
ndrei has joined #ruby
<apeiros> jhass: yes, AR::Base defines #attributes /cc shortCircuit__
<apeiros> but no idea about AM::Model
<jhass> attributes seems to be to AM::Model what each is to Enumerable apparently
<jhass> AR::Base#attributes is just @attributes.to_hash
SouL_|_ has joined #ruby
<shevy> hanmac \o/
<adaedra> Bonjour shevy
Robert__ has joined #ruby
Guest93071 has quit [Ping timeout: 250 seconds]
iasoon has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
livathinos has quit [Ping timeout: 250 seconds]
Mohan_ has joined #ruby
<shevy> bageutte adaedra
doodlehaus has joined #ruby
<shevy> erm baguette
<adaedra> :)
kenndel_ has quit [Ping timeout: 256 seconds]
platzhirsch has joined #ruby
<adaedra> I'm gonna hit you with it
kenndel has joined #ruby
<shortCircuit__> but they are doing def attributes; { 'name' => @name }; end , can't it be done dynamically ? I can do that static assignment always
piotrj has quit [Remote host closed the connection]
asmodlol has joined #ruby
rodfersou has joined #ruby
oo_ has quit [Remote host closed the connection]
Robert__ has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
gfawcettpq has joined #ruby
<jhass> shortCircuit__: I'd say don't unpack the params into instance variables, keep them as a hash
<jhass> and delegate to the hash
<jhass> I'm still not 100% sure whether they delegate missing calls to the hash returned by attributes, docs seem to suggest yes, examples and code not so much
<shortCircuit__> ok, will di
<shortCircuit__> *do
<shevy> do you guys like the perl 6 "say" ?
jimms has joined #ruby
zotherstupidguy has quit [Ping timeout: 244 seconds]
sdothum has joined #ruby
Zai00 has joined #ruby
<gregf_> shevy: "say" as in the say statement?
inavele has joined #ruby
zotherstupidguy has joined #ruby
<shevy> I think so
<shevy> I am wondering why they changed that
<shevy> they could have continued with the perl5 perhaps instead?
quimrstorres has quit [Remote host closed the connection]
<gregf_> well its available in perl 5 as well. >= 5.10.x as well i guess
iasoon has joined #ruby
<gregf_> Perl 6 is quite different from Perl 5. Perl6 'could be' more closer to Ruby
pwattste has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
NinjaOps has joined #ruby
pandaant has quit [Remote host closed the connection]
barkerd427 is now known as zz_barkerd427
quimrstorres has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
zotherstupidguy has quit [Quit: leaving]
RegulationD has joined #ruby
arturaz has joined #ruby
Musashi007 has quit [Quit: Musashi007]
SOLDIERz has joined #ruby
hiyosi has joined #ruby
nfk|laptop has joined #ruby
lidenskap has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
DaniG2k has joined #ruby
mdw has joined #ruby
inavele has quit [Ping timeout: 256 seconds]
Zai00 has quit [Ping timeout: 250 seconds]
Zai00 has joined #ruby
piotrj has joined #ruby
<DaniG2k> hey guys I'm trying to make my first Gem :) I am just trying to do something really basic to get it running.
lidenskap has quit [Ping timeout: 252 seconds]
<DaniG2k> I've run 'bundle gem mygem' and it created the files I need
<DaniG2k> say I add a bit of code to print out "Hello world". how would I use this gem locally?
<DaniG2k> just require 'mygem' ?
jimms has quit [Remote host closed the connection]
Spami has joined #ruby
joonty has joined #ruby
<ytti> elixir 'ruby to erlang'
<jhass> DaniG2k: iirc rake install first
<jhass> DaniG2k: or start with irb/ruby -Ilib
<ytti> pretty sure authors would not appreciate this attribution
nfk|laptop has quit [Read error: Connection reset by peer]
<ytti> crystal 'ruby to c'
nfk|laptop has joined #ruby
livathinos has joined #ruby
<jhass> eh yeah, that's pretty much BS
weemsledeux has joined #ruby
<DaniG2k> jhass: rake install mygem?
<DaniG2k> seems to fail :S
<jhass> fail how?
djbkd_ has quit [Read error: Connection reset by peer]
psy has joined #ruby
nfk|laptop has quit [Read error: Connection reset by peer]
<DaniG2k> jhass: I think it's because i have the default .gemspec file and rake doesn't like it
djbkd_ has joined #ruby
<jhass> DaniG2k: you won't get any help this way
yvemath_ has joined #ruby
<jhass> properly describe your problem
anisha has quit [Ping timeout: 256 seconds]
<jhass> well
<jhass> that's quite clear, you need to edit the gemspec to fix the todos/fixmes
<DaniG2k> yea I'll try fixing that
Musashi007 has joined #ruby
wolflee___ has quit [Read error: Connection reset by peer]
<DaniG2k> jhass: ok I think that worked now :)
bollullera has joined #ruby
<DaniG2k> yep, working
wolflee___ has joined #ruby
<DaniG2k> sweet :)
<DaniG2k> thanks
withnale_ has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
djbkd_ has quit [Ping timeout: 264 seconds]
giuseppesolinas has joined #ruby
sdothum has joined #ruby
Squarepy has joined #ruby
edwinvdgraaf has quit []
ldnunes has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edwinvdgraaf has joined #ruby
anisha has joined #ruby
axighi1 has quit [Ping timeout: 265 seconds]
Pipoca has joined #ruby
wolflee____ has joined #ruby
jcromartie has joined #ruby
wolflee___ has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
reinaldo_ has joined #ruby
<mdw> hey guys I'm trying to get my regex to work
alex88 has quit []
<mdw> the trouble is group 8
<mdw> the final group should only match until the very first \n character
<mdw> it seems to go all the way until the end
<mdw> so it should match
<mdw> static dispatch_queue_t http_request_operation_processing_queue() {\n
<apeiros> [\w\W] <-- what do you think this means?
pwattste has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> @ mdw
reinaldob has quit [Ping timeout: 256 seconds]
<mdw> apeiros everything >.<
reinald__ has joined #ruby
<toretore> lol
<toretore> [\w\W]
<apeiros> mdw: ok, I think you know now where to look ;-)
zotherstupidguy has joined #ruby
reinaldob has joined #ruby
<apeiros> I think you want (?:[^\\]|\\[^n])+ instead of [\w\W]
lordkryss has quit [Quit: Connection closed for inactivity]
<mdw> sigh, i wish i understood that
<mdw> it works :-)
reinaldo_ has quit [Ping timeout: 240 seconds]
<apeiros> read it step by step. it's not that complicated once you figure it ;-)
constantinexvi has joined #ruby
<mdw> going to try
<apeiros> in english: either a non-slash character, or a slash followed by anything but "n"
reinald__ has quit [Ping timeout: 272 seconds]
<apeiros> and one or more of that
haxrbyte_ has joined #ruby
iotouch has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
keen__ has quit [Read error: Connection reset by peer]
<apeiros> oh, you actually use [\w\W] quite often… you probably should investigate those uses too… because as you said, that's basically . with //m flag (i.e.: any character)
<mdw> i understand
keen_ has joined #ruby
ascarter has joined #ruby
haxrbyte has quit [Ping timeout: 272 seconds]
<mdw> apeiros it breaks down though if I try add multiple @@ .... @@
<toretore> if i wanted to run a very simple http file server (with uploads!), where would i look? not necessarily ruby
<mdw> sometimes the diff can have more than one change >.<
ascarter has quit [Max SendQ exceeded]
wolflee____ has quit [Read error: Connection reset by peer]
<mdw> i need to find each occurrence of (@@\s-(\d+),(\d+)\s\+(\d+),(\d+)\s@@) thereafter
ascarter has joined #ruby
wolflee____ has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
segfalt has joined #ruby
fabrice31_ has joined #ruby
bluOxigen has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
<mdw> i think i can do this
iasoon has quit [Ping timeout: 264 seconds]
quimrstorres has quit [Remote host closed the connection]
lordkryss has joined #ruby
nettoweb has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
alienaut has joined #ruby
juanpablo___ has joined #ruby
TPBallbag has joined #ruby
allcentury has joined #ruby
nfk|laptop has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
<mdw> apeiros can you make sense of this?
<mdw> i want to match further occurrences of things like
<mdw> @@ -55,6 +66,8 @@ static dispatch_queue_t http_request_operation_processing_queue() {\n
iasoon has joined #ruby
delinquentme has joined #ruby
<apeiros> mdw: sorry, busy atm
<mdw> np, thanks
zz_barkerd427 is now known as barkerd427
juanpablo___ has quit [Ping timeout: 265 seconds]
<DaniG2k> hey guys I'm making a very basic gem (my first). All I am trying to do is be able to configure the object via a block. It seems to be working with the RSpec I've written but when I try to require 'zuijin' via irb, I get a LoadError
<DaniG2k> Here's my code (very basic): https://gist.github.com/DaniG2k/f2ae278f5fec17d977de
<DaniG2k> when I require 'zuijin' form irb, I get: LoadError: cannot load such file -- configuration
doodlehaus has joined #ruby
<DaniG2k> anyone know what I'm doing wrong?
serivich has joined #ruby
doodlehaus has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 250 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiyosi has quit [Read error: Connection reset by peer]
pandaant has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
RegulationD has joined #ruby
juanpaucar has joined #ruby
<jhass> DaniG2k: wild guess: require "zuijin/configuration"
quimrstorres has joined #ruby
jud has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 250 seconds]
Mohan_ has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
<DaniG2k> jhass: doesn't work :\
<DaniG2k> configuration.rb and zuijin.rb are both in the lib directory
<DaniG2k> so it should just be require 'configuration'
<jhass> mh, yes, you don't want to do that in the final version of the gem though
<DaniG2k> should it have a separate configuration directory?
<jhass> no, the module should be reflected as directory in the file path
Mohan has joined #ruby
<jhass> MyGem::MyConfiguration -> lib/my_gem/my_configuration.rb
Mohan is now known as Guest44712
jottr has quit [Ping timeout: 276 seconds]
<DaniG2k> i already have lib/zuijin/version.rb
<DaniG2k> ah ok I will try putting it there
<jhass> but that's not causing your issue
RegulationD has quit [Ping timeout: 255 seconds]
<jhass> another wild guess: you made that modification but don't test with irb/ruby -Ilib and didn't rerun rake install to update the installed version
<DaniG2k> probably ~_~ yes
<DaniG2k> haha
<DaniG2k> i ran bundle
<DaniG2k> fack
pandaant has quit [Remote host closed the connection]
<DaniG2k> forgot about rake install
vikaton has joined #ruby
<DaniG2k> hmm
<jhass> well, ruby/irb -Ilib or bundle exec ruby/irb is the better way to test anyway
<DaniG2k> jhass: I raun rake install now
<DaniG2k> getting a similar error message: LoadError: cannot load such file -- zuijin/configuration
mdw has quit [Ping timeout: 245 seconds]
<jhass> I have to keep making wild guesses :/
yfeldblum has quit [Ping timeout: 256 seconds]
_blizzy_ has quit [Ping timeout: 256 seconds]
<jhass> so number 3: the file is not included into the built gem because whatever your gemspec's spec.files looks like doesn't include it
<DaniG2k> jhass: I have the default
<DaniG2k> lib = File.expand_path('../lib', __FILE__)
<DaniG2k> $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
<DaniG2k> so it should include
<jhass> not what I'm referring to
hewenhong has joined #ruby
jottr has joined #ruby
<jhass> if I meant $LOAD_PATH I'd have wrote that
<jhass> I mean spec.files
marens has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
<DaniG2k> hmm not sure about spec.files
<DaniG2k> its nowhere to be found in this gem
<DaniG2k> I basically only made two files @_@ how hard can it be to make a gem
<DaniG2k> haha
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zotherstupidguy has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
Guest44712 has quit [Ping timeout: 256 seconds]
rbennacer has joined #ruby
<DaniG2k> jhass: ah, I have that, yes
<DaniG2k> jhass: spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
anisha has quit [Ping timeout: 264 seconds]
<jhass> so my guess is that you didn't git add that file yet
<jhass> god I hate that choice made by bundler there
Mohan_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
piotrj has quit [Remote host closed the connection]
hewenhong has quit [Ping timeout: 255 seconds]
sgambino has joined #ruby
piotrj has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
<DaniG2k> i didn't git add anything, no
<DaniG2k> I didn't kow I had to
Musashi007 has joined #ruby
irklcn has quit [Remote host closed the connection]
Musashi007 has quit [Client Quit]
<jhass> one reason why I hate that choice in their template
<DaniG2k> jhass: what do I need to add? configure?
DerisiveLogic has joined #ruby
<jhass> files that should be included into the built gem
<DaniG2k> jeez I need to manually include them?
<DaniG2k> I thought that's what require was for
Musashi007 has joined #ruby
<apeiros> -.-
<apeiros> no, that's totally unrelated to require
<apeiros> require is about loading code in a running ruby program
Pipocah has joined #ruby
<apeiros> and running ruby programs have little to nothing to do with what goes into your packaged gem
<jhass> require is pretty dumb, it just loads the first file with a matching name that happens to be in the load path
<jhass> that's all it does
<apeiros> well, with rubygems there's also the rather complex gem activation stuff
redlegion has joined #ruby
<jhass> but we can pretend rubygems just magically adds stuff to the load path ;)
<apeiros> but the basic gist is indeed still the same - if no file in $LOAD_PATH fits, find the first gem which would have a match
<DaniG2k> so what do I need to change the spec.files line ot?
<DaniG2k> to
Rapier- has joined #ruby
<DaniG2k> seems like a whole PhD is required just for making a gem -_-
Musashi007 has quit [Read error: Connection reset by peer]
lfox has joined #ruby
<jhass> I wonder if you even attempted to understand what the existing line does
Musashi007 has joined #ruby
KnownSyntax has quit [Quit: Connection closed for inactivity]
<apeiros> DaniG2k: um, no.
Pipoca has quit [Ping timeout: 255 seconds]
<apeiros> DaniG2k: all it needs is a gemspec with about 5 informations, one of them being a list of all files you want to package
enebo has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros> and the rest is literally just gem build your.gemspec + gem push your.gem
<DaniG2k> jhass: its rejecting anything that's not test, spec or features?
sankaber has joined #ruby
<apeiros> really not difficult at all.
<jhass> DaniG2k: that's the second half only
<jhass> (and you interpreted it the wrong way around)
<apeiros> maybe you should write a gemspec from scratch
<apeiros> then you actually understand what you're doing
<apeiros> and can make informed decision instead of cargo culting and then go all ranty if you don't understand what happens.
<DaniG2k> i dont undestand because there's no clear guide that I've been able to find on how to do this
<apeiros> DaniG2k: no guide? like effing http://guides.rubygems.org/make-your-own-gem/ ?
dstarh has joined #ruby
<jhass> bah, too slow
<apeiros> ok, so it's actually 9 pieces of information you need in the gemspec.
<apeiros> (note: date is not needed)
hewenhong has joined #ruby
fgo has joined #ruby
Guest40729 has quit [Ping timeout: 245 seconds]
anisha has joined #ruby
Matadoer has quit [Ping timeout: 264 seconds]
jottr has quit [Ping timeout: 265 seconds]
allcentury has quit [Ping timeout: 265 seconds]
<DaniG2k> "Gotcha: For newly created folder/file, do not forget to add one entry in hola.gemspec file, as shown-"
<DaniG2k> -_-
<DaniG2k> fml
wottam has joined #ruby
<apeiros> the gemspec is ruby code. Dir.glob is your friend.
piotrj has quit [Remote host closed the connection]
<apeiros> or understanding that git shellout which bundler produces.
piotrj has joined #ruby
<apeiros> IMO a bad pattern, though (the git shellout)
Matadoer has joined #ruby
<DaniG2k> apeiros: it runs a git command to list files, splits it on \x0 and rejects via a regex (matches that begin with either test, spec or features get rejected)
Dreamer3 has joined #ruby
<DaniG2k> i get that part
<DaniG2k> not sure why that's the default though
<DaniG2k> shoudl I just files += Dir.glob myfiles
<zotherstupidguy> i agree with apeiros
<apeiros> that's on you to decide
<jhass> DaniG2k: you need to figure out under what conditions git ls-files lists files
Rickmasta has joined #ruby
jerematic has quit []
bim has joined #ruby
piotrj has quit [Ping timeout: 255 seconds]
bim is now known as Guest80065
jud has joined #ruby
<DaniG2k> jhass: is it dumb to include everything in lib?
<apeiros> even if I'm not addressed: yes, it is.
TPBallbag has quit [Ping timeout: 265 seconds]
<apeiros> neither tests, executables, documentation nor readme or license belong there
<jhass> I usually do Dir["{lib,spec}/**/*.rb"] tbh
<apeiros> and tons and tons of other stuff
thatslifeson has joined #ruby
<jhass> + other dirs as needed of course
antgel has joined #ruby
GriffinHeart has joined #ruby
<apeiros> mhm, I use multiple Dir instead of {} as I find it more readable. + %w[] with a list of remaining files
piotrj has joined #ruby
piotrj has quit [Remote host closed the connection]
jerematic has joined #ruby
<apeiros> https://gist.github.com/apeiros/a8e2412ba36e426e86ff is my standard s.files= statement
rbennacer has quit [Remote host closed the connection]
hewenhong has quit [Remote host closed the connection]
<DaniG2k> thanks that worked
<DaniG2k> phew, finally
<DaniG2k> took a while
hewenhong has joined #ruby
Junaos has quit [Remote host closed the connection]
hewenhon_ has joined #ruby
SouL_|_ has quit [Ping timeout: 256 seconds]
jobewan has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
failshell has joined #ruby
tus has joined #ruby
rbennacer has joined #ruby
JDiPierro has joined #ruby
CloCkWeRX has joined #ruby
Junaos has joined #ruby
jobewan has quit [Client Quit]
ismaelga has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
hewenhong has quit [Ping timeout: 244 seconds]
_main_ has joined #ruby
Junaos has quit [Client Quit]
hewenhon_ has quit [Read error: Connection reset by peer]
hewenhong has joined #ruby
Pumukel has quit [Ping timeout: 256 seconds]
Junaos has joined #ruby
Junaos has quit [Remote host closed the connection]
delinquentme has quit [Ping timeout: 256 seconds]
segfalt has quit [Quit: segfalt]
Junaos has joined #ruby
quimrsto_ has joined #ruby
quimrstorres has quit [Ping timeout: 250 seconds]
quimrsto_ has quit [Remote host closed the connection]
Junaos has quit [Remote host closed the connection]
_main_ is now known as __main__
gheegh has joined #ruby
Junaos has joined #ruby
bmurt has joined #ruby
Matadoer has quit [Ping timeout: 264 seconds]
shazaum has joined #ruby
inukshuk has quit [Ping timeout: 272 seconds]
Matachines has joined #ruby
Matadoer has joined #ruby
inukshuk has joined #ruby
jerius has joined #ruby
shazaum has quit [Client Quit]
juanpablo___ has joined #ruby
ascarter has joined #ruby
lidenskap has joined #ruby
qwertme has joined #ruby
Pumukel has joined #ruby
_ixti_ has joined #ruby
DaniG2k has quit [Ping timeout: 252 seconds]
Pumukel has quit [Excess Flood]
cmckee has joined #ruby
cpt_yossarian has quit [Quit: And then he took off.]
Pumukel has joined #ruby
doodlehaus has joined #ruby
juanpablo___ has quit [Ping timeout: 248 seconds]
allcentury has joined #ruby
lidenskap has quit [Ping timeout: 245 seconds]
hewenhong has quit []
freerobby has joined #ruby
Guest80065 has quit [Remote host closed the connection]
thiagovsk has joined #ruby
lavros has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
potpib has joined #ruby
delinquentme has joined #ruby
riotjone_ is now known as riotjones
antgel has quit [Ping timeout: 250 seconds]
SouL_|_ has joined #ruby
griffindy has joined #ruby
cmckee has quit [Quit: cmckee]
RegulationD has joined #ruby
sivsushruth has quit [Ping timeout: 240 seconds]
sivsushruth has joined #ruby
asmodchan has joined #ruby
julian-delphiki has quit [Read error: Connection reset by peer]
julian-delphiki has joined #ruby
mrmargolis has joined #ruby
nettoweb has joined #ruby
Gadgetoid has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
asmodlol has quit [Ping timeout: 240 seconds]
DexterLB has quit [Ping timeout: 248 seconds]
axighi1 has joined #ruby
zotherstupidguy has quit [Ping timeout: 244 seconds]
davedev24_ has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Gadgetoid has joined #ruby
SouL_|_ has quit [Ping timeout: 276 seconds]
oddmunds has quit [Ping timeout: 245 seconds]
CustosLimen has quit [Ping timeout: 245 seconds]
paulcsmith has joined #ruby
Scient has quit [Ping timeout: 245 seconds]
terlar has quit [Read error: No route to host]
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oddmunds has joined #ruby
sent1nel has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
tesuji has quit [Ping timeout: 248 seconds]
lxsameer_ has quit [Quit: Leaving]
marens has joined #ruby
DexterLB has joined #ruby
n1x has joined #ruby
Scient has joined #ruby
terlar has joined #ruby
sevenseacat has joined #ruby
SOLDIERz has joined #ruby
CustosLimen has joined #ruby
quimrstorres has joined #ruby
sent1nel has quit [Ping timeout: 245 seconds]
terlar has quit [Client Quit]
roshanavand has joined #ruby
terlar has joined #ruby
yaw has joined #ruby
Guest40729 has joined #ruby
yaw has quit [Max SendQ exceeded]
yaw has joined #ruby
alex88 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ArchRogem has joined #ruby
fryguy9 has joined #ruby
LJT has quit [Quit: Sleeping...]
LJT has joined #ruby
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest40729 has quit [Ping timeout: 272 seconds]
Matachines has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
iotouch has joined #ruby
Feyn has quit [Quit: Leaving]
\13k has joined #ruby
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
DexterLB has quit [Ping timeout: 248 seconds]
weemsledeux has quit [Remote host closed the connection]
roshanavand has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwattste has joined #ruby
astrobunny has joined #ruby
Rickmasta has joined #ruby
zotherstupidguy has joined #ruby
DexterLB has joined #ruby
iotouch has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
zorak8 has joined #ruby
mary5030 has quit [Remote host closed the connection]
n1x has quit []
mary5030 has joined #ruby
matchaw has quit [Remote host closed the connection]
LJT has quit [Quit: Sleeping...]
raseboro has joined #ruby
bim has joined #ruby
matchaw has joined #ruby
bim is now known as Guest45718
LJT has joined #ruby
LJT has quit [Remote host closed the connection]
banister has joined #ruby
DaniG2k has joined #ruby
platzhirsch has left #ruby [#ruby]
zorak8 has quit [Ping timeout: 244 seconds]
raseboro has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 252 seconds]
LJT has joined #ruby
RegulationD has quit [Remote host closed the connection]
Guest45718 has quit [Remote host closed the connection]
[k- has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
zorak8 has joined #ruby
lkba has joined #ruby
RegulationD has joined #ruby
relix has quit [Read error: Connection reset by peer]
iotouch has joined #ruby
a346 has joined #ruby
relix has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
segfalt has joined #ruby
ndrei has joined #ruby
Sh0rtWave has joined #ruby
freerobby has joined #ruby
bim has joined #ruby
<Sh0rtWave> Hi all
<apeiros> hi Sh0rtWave
<Sh0rtWave> I'm installing kyotocabinet-ruby, and encountering the dreaded "You have to install development tools first" error.
kblake has joined #ruby
momomomomo has joined #ruby
bim is now known as Guest84652
piotrj has joined #ruby
<sevenseacat> did you install the development tools? :)
mdw has joined #ruby
<Sh0rtWave> That's a good question.
<Sh0rtWave> Because I thought I did.
* apeiros assumed that more information would follow…
<Sh0rtWave> Hold one whilst I gather it.
<apeiros> well, or an actual question :-p
<Sh0rtWave> It claims lack of libraries or headers
<Sh0rtWave> And specifically, kccommon.h
thatslifeson has quit [Read error: Connection reset by peer]
<Sh0rtWave> What exactly is that?
ixti has joined #ruby
<adaedra> Ok
<Sh0rtWave> (I just got to the log file after sudoing insanely)
<adaedra> Operating system, what command you attempted, what output did you got?
drizz has quit [Ping timeout: 240 seconds]
thatslifeson has joined #ruby
<Sh0rtWave> Oh I think I see
<Sh0rtWave> I hate that.
zorak8 has quit [Ping timeout: 264 seconds]
<Sh0rtWave> I hate when I start to ask a question and then answer it myself.
<Sh0rtWave> Grrr
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Sh0rtWave> I think/hope
<apeiros> easy work around: phrase your full question first, then go to the channel ;-)
drizz has joined #ruby
<Sh0rtWave> Well, guess not.
iotouch has quit [Quit: This computer has gone to sleep]
<adaedra> Sh0rtWave: haha, happens to me all the time. Apparrently, /join is a really good help
<Sh0rtWave> Ok so here's the real error: checking for kccommon.h... *** extconf.rb failed ***
_ixti_ has quit [Ping timeout: 255 seconds]
<Sh0rtWave> I would think kccommon.h is a kyotocabinet header file.
<Sh0rtWave> I have kyotocabinet and kyotocabinet-devel installed, so you'd think that would solve that problem.
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Channel6 has joined #ruby
<adaedra> <adaedra> Operating system, what command you attempted, what output did you got?
<Sh0rtWave> It mentions a mkmf.log file, but where the hell does that go?
<adaedra> and by output, I mean whole trace
<Sh0rtWave> The OS is scientific linux.
<wasamasa> "checking for reading ability... *** check failed ***"
<Sh0rtWave> getting to a pastebin. I have to work under certain restrictions, so forgive my slowness.
<adaedra> No problem
<mdw> apeiros (thankyou for your help earlier) I understand reggex is greedy because of my use of the non-capturing group (?:.)+ is there a way I can restrict this group so I can capture the middle string '@@ -55,6 +32,8 @@'
<adaedra> wasamasa: shhh :p
<mdw> it's capturing the final group, but it's missing the middle one
<Sh0rtWave> Crap
<Sh0rtWave> effing RSA tokens are harshing my groove
slash_nick has joined #ruby
<Sh0rtWave> I literally have to wait a minute between sudo commands.
KnownSyntax has joined #ruby
evanjs has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
devaraya has joined #ruby
LJT has quit [Quit: Sleeping...]
<adaedra> did you look in /usr/local/rvm/gems/ruby-1.9.3-p551/extensions/x86_64-linux/1.9.1/kyotocabinet-ruby-1.27.1/ ?
juanpablo___ has joined #ruby
shevy has joined #ruby
<adaedra> and. Oh, ruby 1.9.3 !
<Sh0rtWave> Let's presume I'm a neophyte in this area, I'm installing Ruby and such to support a larger application, and I'm not really in on which version is which. I installed what was recommended for the package.
nfk|laptop has quit [Quit: yawn]
<wasamasa> `pkgfile kccommon.h` tells me that the kyotocabinet package has this header
<Sh0rtWave> Yup
RegulationD has quit [Remote host closed the connection]
<Sh0rtWave> I installed kyotocabinet.devel
<wasamasa> on debian-like systems you may need to install -devel versions of packages to have headers
<Sh0rtWave> Did that
<wasamasa> can you `locate` the file?
<wasamasa> just to check whether it's merely looking in the wrong place
<Sh0rtWave> yup, it's there
icebourg has joined #ruby
<Sh0rtWave> that's why I started to lose my mind
giuseppesolinas has joined #ruby
<Sh0rtWave> well, hell
<Sh0rtWave> 7zip
<adaedra> "It's there"
<adaedra> Where is it?
<Sh0rtWave> It's in the right place. I seem to be missing a compat package for 7zip
<Sh0rtWave> I just don't think I needed to go down as far as I had to find that out. D:
piotrj has quit [Ping timeout: 256 seconds]
roshanavand has joined #ruby
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti> Hi
riotjones has quit [Remote host closed the connection]
<adaedra> GeorgesLeYeti est doux
<GeorgesLeYeti> :D
<adaedra> Or something like that
<GeorgesLeYeti> Je sais je sais.
roshanavand has left #ruby [#ruby]
<GeorgesLeYeti> I try to be practical. :p
Mon_Ouie has joined #ruby
<adaedra> Sh0rtWave: no problem, I was just noticing. 1.9.3 becomes to be very old, by the way.
Filete has joined #ruby
EagleDelta has joined #ruby
segfalt has quit [Quit: segfalt]
shellfu_afk has joined #ruby
<Sh0rtWave> Well I think I got to the bottom of it.
<Sh0rtWave> missing compression libs
<Sh0rtWave> 7zip, xz, and zo.
<dudedudeman> mornnnninngggggg
<adaedra> bloody dependencies.
shellfu_afk is now known as shellfu
<adaedra> Is it planned to ditch C extensions in Ruby, like JRuby did?
mostlybadfly has joined #ruby
<GeorgesLeYeti> I'd like to remove every spaces before ? or ! or : But i'm not so good with regex. I found the solution: str.gsub(/(s+)?\?/, "?").gsub(/(s+)?\!/, "!")... but is it possible to make it with only 1 gsub ?
pwattste has quit [Remote host closed the connection]
<adaedra> yes
<adaedra> use \\1
<wasamasa> adaedra: lol, would you prefer downloading megabytes of jars instead?
<Sh0rtWave> Yes, well, more irritating is because of system restrictions that make it hard to get to the bottom of things.
<Sh0rtWave> chroot jails, all that jazz
hanmac has quit [Remote host closed the connection]
<adaedra> >> "Hello ? Hello ! Hello : world".gsub(/\s+([?!:])/, '\\1')
<ruboto> adaedra # => "Hello? Hello! Hello: world" (https://eval.in/319906)
<adaedra> GeorgesLeYeti ^
havenwood has joined #ruby
yvemath_ has quit [Remote host closed the connection]
<GeorgesLeYeti> adaedra, Thx a lot
tagrudev has quit [Read error: Connection reset by peer]
<adaedra> wasamasa: what do you mean?
icebourg has quit []
but3k4 has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
iamninja_ has joined #ruby
naftilos76 has joined #ruby
<wasamasa> `du -hs ~/.m2` <- 94M
<adaedra> Hello dudedudeman, by the way
SOLDIERz has joined #ruby
<wasamasa> just for installing dependencies for a clojure project
<dudedudeman> adaedra: ayyyyyyyy
astrobunny has quit [Remote host closed the connection]
<Sh0rtWave> many thanks gentelement
<Sh0rtWave> err
<Sh0rtWave> gentlemen
<Sh0rtWave> o/
Sh0rtWave has quit [Quit: leaving]
<adaedra> \o
<adaedra> :'(
<havenwood> `du -hs ~/.m2` <- 276M
<havenwood> mm
<adaedra> du: /Users/adaedra/.m2: No such file or directory
<adaedra> do I win?
Luyt has quit [Read error: Connection reset by peer]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bashusr has quit [Ping timeout: 240 seconds]
davidcelis has quit [Ping timeout: 240 seconds]
retornam has quit [Ping timeout: 240 seconds]
<wasamasa> you're on osx
<wasamasa> there's a special place in dependency hell for you :P
devaraya has quit [Ping timeout: 256 seconds]
jcp has quit [Read error: Connection reset by peer]
<adaedra> meh
v0n has quit [Ping timeout: 240 seconds]
Meeh has quit [Quit: No Ping reply in 180 seconds.]
Luyt has joined #ruby
jcp has joined #ruby
sivsushruth has quit []
Cope_ has quit [Ping timeout: 240 seconds]
Ankhers has quit [Ping timeout: 240 seconds]
Meeh has joined #ruby
* wasamasa read about signing and homebrew lately
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
bashusr has joined #ruby
v0n has joined #ruby
hanmac has joined #ruby
Cope has joined #ruby
philip1 has joined #ruby
retornam has joined #ruby
philip1 is now known as phutchins
phutchins has quit [Client Quit]
Alina-malina has quit [Ping timeout: 256 seconds]
Ankhers has joined #ruby
Ankhers has quit [Changing host]
Ankhers has joined #ruby
strcmp1 has joined #ruby
<adaedra> That's not a homebrew problem, actually
philip1 has joined #ruby
<wasamasa> no, it's an OSX problem
redlegion has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<adaedra> First to raise the issue was TrimEnable afaik
hiyosi has joined #ruby
<wasamasa> I'm glad I jumped ship early
segfalt has joined #ruby
thatslifeson has quit [Remote host closed the connection]
sent1nel has joined #ruby
philip1 is now known as phutchins
<adaedra> It's not often that you build kexts
sevenseacat has quit [Quit: Me dun like you no more.]
jimms has joined #ruby
Alina-malina has joined #ruby
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fryguy9 has quit [Read error: Connection reset by peer]
segfalt has quit [Read error: Connection reset by peer]
kp666 has quit [Remote host closed the connection]
fryguy9 has joined #ruby
bobbrez has joined #ruby
plukevdh has joined #ruby
Guest40729 has joined #ruby
jimms has quit [Remote host closed the connection]
CloCkWeRX has quit [Quit: Leaving.]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
segfalt has joined #ruby
jottr has joined #ruby
Guest40729 has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
agarie has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<havenwood> i don't use any OS X packages with kexts afaik
freerobby has joined #ruby
ponga has quit [Remote host closed the connection]
arturaz has quit [Ping timeout: 245 seconds]
ascarter has joined #ruby
Guest40729 has joined #ruby
blackmesa has joined #ruby
Jackneill has joined #ruby
ascarter has quit [Max SendQ exceeded]
Squarepy has quit [Quit: Leaving]
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
scripore has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
LJT has joined #ruby
<strcmp1> kernel extensions? sound fun to write anyway.
jimms has joined #ruby
LJT has quit [Client Quit]
evanjs has quit [Remote host closed the connection]
sinkensabe has joined #ruby
cpt_yossarian has joined #ruby
evanjs has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
aganov has quit [Quit: Leaving]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kobain has joined #ruby
gauke has quit [Quit: gauke]
dfinninger has joined #ruby
strcmp1 has quit [Quit: Leaving]
Billias has quit [Read error: Connection reset by peer]
C0deMaver1ck is now known as ZERO_C00L
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kobain has quit [Max SendQ exceeded]
RegulationD has joined #ruby
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
User458764 has joined #ruby
kobain has joined #ruby
shortCircuit__ has quit [Read error: Connection reset by peer]
thatslifeson has joined #ruby
jimms has quit [Remote host closed the connection]
kobain has quit [Max SendQ exceeded]
snockerton has joined #ruby
Billias has joined #ruby
kobain has joined #ruby
segfalt has quit [Quit: segfalt]
jimms has joined #ruby
noteugene has joined #ruby
Abhijit has joined #ruby
kobain has quit [Max SendQ exceeded]
Abhijit has left #ruby [#ruby]
kobain has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
rdark has quit [Quit: leaving]
rdark has joined #ruby
<noteugene> Hi people, I have a process with run-away memory consumption. I gdb'ed to it, and used ObjectSpace.dump_all to dump the heap. It looks like the most of memory is consumed by objects that don't have "marked":true gc flag on them, and no reference in that heap. Does anyone know how that could be possible?
nettoweb has joined #ruby
soulcake has quit [Quit: Quack.]
soulcake has joined #ruby
gagrio has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
icebourg has joined #ruby
sohrab has joined #ruby
lfox has joined #ruby
platzhirsch has joined #ruby
agarie has quit [Remote host closed the connection]
segfalt has joined #ruby
juanpaucar has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 245 seconds]
<platzhirsch> what's again the Ruby method to iterate over an array and create a hash out of it? .inject?
axighi1 has quit [Ping timeout: 256 seconds]
ZERO_C00L is now known as C0deMaver1ck
<adaedra> .to_h ?
allcentury has quit [Ping timeout: 276 seconds]
<jhass> platzhirsch: depends heavily on usecase
ta has quit [Remote host closed the connection]
<gregf_> >> Hash[(1..5).map{ |x| [x,x] } ]
<ruboto> gregf_ # => {1=>1, 2=>2, 3=>3, 4=>4, 5=>5} (https://eval.in/319918)
<platzhirsch> users.woop({}) { |hash, value| hash[value.id] = ... }
<jhass> each_with_object
<platzhirsch> right, Hash[ ] syntax would do I guess
<gregf_> platzhirsch: .to_h
<jhass> or maybe .group_by(&:id)
<jhass> it's still a bit vague
quimrstorres has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
avril14th has quit [Remote host closed the connection]
allcentury has joined #ruby
zorak8 has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
Guest26031 has quit [Changing host]
Guest26031 has joined #ruby
tcrypt has joined #ruby
RegulationD has quit [Remote host closed the connection]
Soda has joined #ruby
Guest26031 is now known as nitrix
quimrstorres has joined #ruby
konsolebox has quit [Ping timeout: 265 seconds]
tercenya_ has joined #ruby
nfk|laptop has joined #ruby
Guest40729 has quit [Quit: WeeChat 1.0.1]
jottr has quit [Ping timeout: 265 seconds]
dopie has joined #ruby
tercenya has quit [Ping timeout: 255 seconds]
agarie has joined #ruby
odin22 has joined #ruby
alienaut has quit [Remote host closed the connection]
Inoperable has quit [Quit: ZNC - http://znc.in]
Musashi007 has quit [Quit: Musashi007]
ReK2GnULinuX has quit [Remote host closed the connection]
laurentide has quit [Quit: Leaving]
cassianoleal has joined #ruby
Inoperable has joined #ruby
edwinvdg_ has joined #ruby
ReK2WiLdS has joined #ruby
ReK2WiLdS has joined #ruby
icarus has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
cefkamcau has quit [Read error: Connection reset by peer]
aef has quit [Ping timeout: 256 seconds]
lolmaus has joined #ruby
anekos has quit [Ping timeout: 256 seconds]
parus has quit [Ping timeout: 256 seconds]
ducklobster has joined #ruby
edwinvdgraaf has quit [Ping timeout: 250 seconds]
anekos has joined #ruby
lolmaus_ has quit [Ping timeout: 256 seconds]
matrixfo1 has quit [Ping timeout: 256 seconds]
PaulePanter has quit [Ping timeout: 256 seconds]
PaulePanter has joined #ruby
parus has joined #ruby
robustus has joined #ruby
cefkamcau has joined #ruby
matrixfox has joined #ruby
edwinvdg_ has quit [Ping timeout: 252 seconds]
agarie has quit [Remote host closed the connection]
aef has joined #ruby
agarie has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
zotherstupidguy has quit [Ping timeout: 256 seconds]
joonty has quit [Quit: joonty]
joonty has joined #ruby
dseitz has joined #ruby
joonty has quit [Client Quit]
Stalkr_ has joined #ruby
parduse has quit [Ping timeout: 252 seconds]
sinkensabe has quit [Remote host closed the connection]
parduse has joined #ruby
<shevy> guys
<shevy> I feel that the force is with us today
agarie has quit [Remote host closed the connection]
gaganjyot has joined #ruby
noteugene has quit [Quit: Linkinus - http://linkinus.com]
coderhs has joined #ruby
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
parduse has quit []
Cat_1 has joined #ruby
gauke has joined #ruby
gauke has quit [Client Quit]
jobewan has joined #ruby
Guest84652 has quit [Remote host closed the connection]
<Cat_1> Have a question on this https://gist.github.com/ccuadrado/288c5701ae566e52dfb8 on line 4, what is the purpose of doing |(text,divisor)| instead of |text,divisor| ?
coderhs has quit [Client Quit]
sohrab has quit [Ping timeout: 244 seconds]
x1337807x has joined #ruby
x1337807x has quit [Client Quit]
speakingcode has joined #ruby
<[k-> assign array[0] to text and array[1] to divisor
Musashi007 has joined #ruby
livathinos has quit []
<[k-> |text,divisor| means it takes 2 args
<[k-> |(text, divisor)| means it takes 1 arg and pattern matches it
alex88 has quit [Remote host closed the connection]
<toretore> for a single array argument, it will do it implicitly, but it's good to be explicit
moted has joined #ruby
<toretore> >> lambda{|one, two, three| p one }.call([1,2,3])
<ruboto> toretore # => wrong number of arguments (1 for 3) (ArgumentError) ...check link for more (https://eval.in/319932)
<toretore> shit
tjohnson has joined #ruby
<toretore> >> proc{|one, two, three| p one }.call([1,2,3])
<[k-> i laughed
<ruboto> toretore # => 1 ...check link for more (https://eval.in/319933)
<toretore> >> proc{|(one, two, three)| p one }.call([1,2,3])
<ruboto> toretore # => 1 ...check link for more (https://eval.in/319934)
juanpablo___ has quit [Ping timeout: 240 seconds]
<[k-> >> [["a", "b"]].each { |(first, second)| first + second }
<ruboto> [k- # => [["a", "b"]] (https://eval.in/319935)
<[k-> :o
bruno- has quit [Ping timeout: 276 seconds]
<toretore> and that is why you do it explicitly, then you don't have to deal with bullshit lambda/proc differences
blackmesa has quit [Read error: Connection reset by peer]
JDiPierro has quit [Remote host closed the connection]
<[k-> >> (first, second) = ["a", "b"]; first
<ruboto> [k- # => "a" (https://eval.in/319936)
<[k-> \o/
blackmesa has joined #ruby
JDiPierro has joined #ruby
<jhass> >> proc {|a, (b, (c, *d), e)| p [a, b, c, d, e]; }.call([1, [2, [3, 4, 5], 6]])
<ruboto> jhass # => [1, 2, 3, [4, 5], 6] ...check link for more (https://eval.in/319937)
juanpablo___ has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
serivich has quit [Ping timeout: 255 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rikai has quit [Read error: Connection reset by peer]
DaniG2k has quit [Quit: leaving]
Spami has quit [Quit: This computer has gone to sleep]
Pumukel has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
tkuchiki has joined #ruby
vire has quit [Ping timeout: 256 seconds]
rbennacer has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 265 seconds]
SouL_|_ has joined #ruby
qwertme has joined #ruby
bollullera has left #ruby [#ruby]
slash_nick has quit [Ping timeout: 245 seconds]
<Senjai> jhass: eww stop itt
Deele has quit [Ping timeout: 256 seconds]
kubast2 has joined #ruby
<[k-> ^
tkuchiki has quit [Ping timeout: 256 seconds]
<jhass> no love for array destructing? :P
Flowrhent has joined #ruby
viblo has joined #ruby
<Senjai> jhass: I dont mind, but you always come up with the extremes :P
rbennacer has joined #ruby
<Senjai> also morning all
<toretore> i wish ruby had has destructuring too
<toretore> hash
<Senjai> Nah
<Senjai> Hash's dont need to be deconstructed
GaryOak_ has joined #ruby
<adaedra> They need to be hashed
* adaedra ==> []
andikr has quit [Remote host closed the connection]
redlegion has joined #ruby
viblo has quit [Client Quit]
Limix has joined #ruby
dseitz_ has joined #ruby
Mezjin has quit [Ping timeout: 256 seconds]
willharrison has joined #ruby
dseitz has quit [Read error: Connection reset by peer]
Deele has joined #ruby
rbennace_ has joined #ruby
<[k-> > (key, value) = { key: 1 }
rbennacer has quit [Ping timeout: 250 seconds]
bim has joined #ruby
<[k-> >> (key, value) = { key: 1 }
<ruboto> [k- # => {:key=>1} (https://eval.in/319939)
kubast2 has quit [Remote host closed the connection]
<[k-> >> (key, value) = { key: 1 }; key
<ruboto> [k- # => {:key=>1} (https://eval.in/319940)
bim is now known as Guest62930
<[k-> unfortunate then
<adaedra> (key, value) = { key: 1 }; key.to_a
<adaedra> oops.
<[k-> you can just do to_a tho
mistermocha has joined #ruby
<adaedra> >> (key, value) = { key: 1 }.to_a; key
<ruboto> adaedra # => [:key, 1] (https://eval.in/319942)
<adaedra> ah, doesn't work either.
<[k-> to_a will return [[key, value], [key, value]]
<adaedra> yeah
<[k-> >> {key:1}.to_a
<ruboto> [k- # => [[:key, 1]] (https://eval.in/319945)
<[k-> how do you expect destructuring to work?
<adaedra> >> ((key, value)) = { key: 1 }.to_a; key
Macaveli has joined #ruby
<ruboto> adaedra # => :key (https://eval.in/319946)
<adaedra> [k-: was just testing
<jhass> >> key, value = *{key: 1}; key
<ruboto> jhass # => [:key, 1] (https://eval.in/319947)
<[k-> all keys = keys? all values = values?
<jhass> mh, nope :P
sohrab has joined #ruby
<[k-> >> (key, value) = {key:1}.to_a.flatten; key
<ruboto> [k- # => :key (https://eval.in/319948)
<havenwood> >> key, value = {aim: true}.flatten; key
<ruboto> havenwood # => :aim (https://eval.in/319949)
<[k-> :>
<[k-> I WIN
<[k-> i win first!
<adaedra> At what?
<adaedra> I got the key above
<jhass> proclaiming that you win
<adaedra> B)
dseitz_ has quit [Ping timeout: 250 seconds]
msgodf has quit [Remote host closed the connection]
konsolebox has joined #ruby
konsolebox has quit [Max SendQ exceeded]
<[k-> oh i missed that :(
<[k-> im sad now
ascarter has joined #ruby
<shevy> hmm... if I have string1 = "abc" and string2 = "abcdef" ... how I can qualify how identical these two strings are? should I use match-percentage? like I assume... 50% identical?
Spami has joined #ruby
<adaedra> But your solution looks better, [k-, so there's that
konsolebox has joined #ruby
lolmaus_ has joined #ruby
bricker has joined #ruby
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Macaveli has quit [Client Quit]
zachrab has quit [Remote host closed the connection]
<Mon_Ouie> shevy: You could use Levenshtein distance (or look up other string distance algorithms)
<shevy> oh right
zachrab has joined #ruby
<shevy> I think gem has had that inbuilt too hmm
<havenwood> shevy: yup
<shevy> yeah I remember it now
<shevy> havenwood showed me
<shevy> and I stored the code :-)
<shevy> >> require 'rubygems/text'; include Gem::Text; levenshtein_distance 'shevy', 'chevy'
<ruboto> shevy # => 1 (https://eval.in/319950)
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
lolmaus has quit [Ping timeout: 256 seconds]
serivich has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> shevy: Or in Crystal: require "levenshtein"; puts levenshtein "shevy", "chevy" #>> 1
<shevy> :P
<shevy> I guess crystal is more amenable to modifications to core
<shevy> there is a rubygem addon in ruby https://rubygems.org/gems/levenshtein/versions/0.2.2
<ebernhardson> rubocop is complaining about some cucumber code that looks like `hash["doesnotexist"].should == nil` saying i should use nil? but if i change it do `hash["doesnotexist"].should nil?` then i get `expected #<FalseClass:0> => false\n got #<NilClass:$> => nil`. Where did that false come from?
quimrstorres has quit [Remote host closed the connection]
<havenwood> shevy: require 'damerau-levenshtein'; DamerauLevenshtein.distance 'shevy', 'chevy'
<shevy> what is this...
<havenwood> shevy: gem install damerau-levenshtein
<shevy> ebernhardson the comparison should be: object == nil OR object.nil?
<shevy> not something.should nil?
<shevy> in the above, while rubocop is annoying, I concur. .nil? is prettier than == nil
redlegion has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<ebernhardson> shevy: oh, so nil? is being resolved before passing into should?
granthatcher has quit []
Cust0sL1men has quit [Ping timeout: 264 seconds]
<havenwood> shevy: the RubyGems one is a nice pure Ruby implementation
<shevy> if I have two arrays, how can I find the one with less elements?
<shevy> should I use .select or .min or something
quimrsto_ has joined #ruby
RegulationD has joined #ruby
<[k-> nil? is called on the current main object, Object.nil? #=> false
<shevy> ebernhardson not entirely sure what your standalone "nil?" means there
<[k-> >> nil?
<ruboto> [k- # => false (https://eval.in/319953)
<shevy> >> nil?
<ruboto> shevy # => false (https://eval.in/319954)
<ebernhardson> shevy: well, i only put it there because rubocop told me to
<shevy> guess this will evaluate to false
<adaedra> shevy: a.length < b.length ? a : b
<ebernhardson> shevy: what is the equivilent to `hash["doesnotexist"].should == nil` but using nil?
<shevy> adaedra :( my old nemesis, the ternary
bluOxigen has quit [Ping timeout: 264 seconds]
<havenwood> >> [[1, 2], [1, 2, 3], [100]].min_by &:size
<ruboto> havenwood # => [100] (https://eval.in/319955)
<adaedra> shevy: ternaries are nice, sometimes
<shevy> ebernhardson not sure... what does `hash["doesnotexist"] return? nil?
<ebernhardson> shevy: yes
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<ebernhardson> i guess hash["doesnotexist"].nil?.should == true ?
zachrab has quit [Remote host closed the connection]
<[k-> hash["doesnotexist"].nil? == true
<ebernhardson> but that seems uglier
<shevy> :)
<adaedra> .should == nil ?
<shevy> hehehe
<ebernhardson> adaedra: rubocop says not to do that
baroquebobcat has joined #ruby
<adaedra> uh
<shevy> well rubocop often is an idiot
<[k-> i nvr use rubocop
<ebernhardson> heh, ok :)
<shevy> you have to train him
<adaedra> and should be_nil ?
<shevy> you can somehow modify the behaviour it displays
<adaedra> `should be_nil`, learn to quote adaedra
havenn has joined #ruby
mikecmpbll has quit [Ping timeout: 250 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ebernhardson> ahh, be_nil looks appropriate there. thanks
<GaryOak_> oh rspec
bluOxigen has joined #ruby
<shevy> you could also try to file an issue request at https://github.com/bbatsov/rubocop/issues
<shevy> the guy is very ambitious, last comit: 2 hours ago \o/
geggam_ has joined #ruby
<Mon_Ouie> Ruby has warnings for use of '==' when you don't use the result of it (because it assumes == is supposed to be side-effect free, so not using the result of it would make no sense)
<adaedra> The same way, you have be_true, be_truthy, be_false, be_falsy
<shevy> do_be_do_be_doo
RegulationD has quit [Ping timeout: 244 seconds]
<adaedra> Mon_Ouie: which is right, when you think about it
geggam_ is now known as geggam
<adaedra> I don't want == to have side effects
pandaant has joined #ruby
<shevy> you want it to be a baguette
<shevy> c===========>
<shevy> now it is more a baguette
User458764 has joined #ruby
<shevy> ah well perhaps not
<shevy> the reverse of a c is not a >
<adaedra> .
<Mon_Ouie> Well how do you think 'foo.should == true' works?
<[k-> lol when == has side effects you cant be sure if the result of == can be trusted
<ebernhardson> i suppose being new to ruby, i was thinking == would be passed as an unresolved function that could be resolved by should. essentially a function pointer or however ruby calls it
<shevy> just like in PHP!
<[k-> ruby functions are not first class?
anisha has quit [Quit: Leaving]
allcentury has quit [Ping timeout: 276 seconds]
havenwood has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
<adaedra> Mon_Ouie: I know it's the case. But saying that == is supposed to be side-effect-less still makes sense.
<[k-> ( foo.should ) == (true)
<Mon_Ouie> They are — or well, there are no functions and methods aren't really first class, but you can pass blocks to functions and represent them as Proc, which are first class objects)
<hanmac> [k- no they are all economy class ;P
agarie has joined #ruby
<[k-> you can def foo.should arg = nil
Musashi007 has quit [Quit: Musashi007]
<Senjai> ebernhardson: Are you talking about rspec?
<ebernhardson> Senjai: yes
bluOxigen has quit [Ping timeout: 264 seconds]
dseitz has joined #ruby
djbkd_ has joined #ruby
Filete has joined #ruby
bluOxigen has joined #ruby
sent1nel has quit [Remote host closed the connection]
<Senjai> ebernhardson: Rspec monkey patches should into object
sevvie has quit [Remote host closed the connection]
<Senjai> ebernhardson: Generally, bad practice. You probably want expect(thing).to eql(something_else)
<Senjai> as should is deprecated
sevvie has joined #ruby
<shadeslayer> how does one use Process:UID.switch?
<shadeslayer> anyone got a example?
djbkd_ has quit [Read error: Connection reset by peer]
claw_ has quit [Quit: No Ping reply in 210 seconds.]
<shadeslayer> I want to switch from the super user to a regular user and then back
quimrsto_ has quit [Remote host closed the connection]
<ebernhardson> Senjai: interesting, didn't realize that. this test suite i just inherited has over 100 uses of should, guess i have some work to do :)
Musashi007 has joined #ruby
djbkd_ has joined #ruby
<Senjai> ebernhardson: It's really bad :P, in older versions its fine, but if your version supports expect() you're going to want to use it
kubunto has joined #ruby
giuseppesolinas has joined #ruby
<kubunto> cucumber is ruby's testing suite right?
<Senjai> ebernhardson: If your interesting in replacing the bad syntax, you can expecitly set the syntax to expect to disable the should syntax
Filete has quit [Ping timeout: 255 seconds]
<jhass> kubunto: there are many different testing frameworks for ruby, cucumber is one
quimrstorres has joined #ruby
<Senjai> kubunto: No, minitest is the default, rspec is a variation of minitest
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
robertodecurnex has joined #ruby
pandaant has quit [Remote host closed the connection]
<Senjai> kubunto: Cucumber is yet another framework
<Senjai> kubunto: I highly recommend against cucumber
<kubunto> jhass: i thought so but I did not remember
hjlsteffens has joined #ruby
<kubunto> Senjai: any particular reason?
<Senjai> kubunto: Yes, it was designed for non programmers to write tests, but practically, its only programmers that write tests.
<Senjai> kubunto: You have to write a bunch of regexes to support the natural language of it, its cumbersome
Mon_Ouie has quit [Ping timeout: 252 seconds]
<Senjai> Its best to just use minitest, or rspec
<Senjai> I find rspecs DSL very explicit when written correctly in terms of understanding. But it is like learning a new language
<Senjai> and a lot of people hate it
<Senjai> but I <3 it
<kubunto> Senjai: i ask because it came up on a job description
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
<Senjai> kubunto: If they ask what you think about cucumber, tell them they're wrong :P
<[k-> hahahha
<Senjai> kubunto: Do your own research on the topic
<[k-> i heard cucumber is wrong
<[k-> i meant slow*
<[k-> you confused me
<[k-> haha
<Senjai> I'd be less inclined to work somewhere that forces cucumber
rikai has joined #ruby
<Senjai> I'd expect more money for hardship and stress
<dudedudeman> double or nothing on cucubmer
hjlsteffens has quit [Client Quit]
<Senjai> BUT
<Senjai> A company that tests at all, is better than one that doesnt test
rbennace_ has quit [Remote host closed the connection]
Matachines has joined #ruby
<shevy> shadeslayer hmm perhaps like so: Process.egid = 501
<shevy> not sure if there is a .uid= method
<shevy> Process.euid = 105
<shevy> aha
Matachines has quit [Client Quit]
<shevy> Senjai real men don't need tests!
c0m0 has quit [Ping timeout: 248 seconds]
<Senjai> shevy: REAL MEN TEST WITH THEIR FACE
Papipo has joined #ruby
<shevy> that sounds scary
<shevy> poop faces
<[k-> they use the nose and the tongue
<[k-> lick 'em bugs
<[k-> sniff 'em bugs
gaganjyot has quit [Ping timeout: 272 seconds]
<shevy> now you put me into having to watch "jackass" videos on youtube Senjai ...
<Senjai> shevy: sorry not sorry
<Senjai> :P
cassianoleal has quit [Quit: Textual IRC Client: www.textualapp.com]
rikai has quit [Ping timeout: 256 seconds]
Nowaker has quit [Ping timeout: 255 seconds]
allenn has quit [Remote host closed the connection]
<Papipo> do you know if there is any script to spin a dummy server and obtain OAuth tokens locally?
Nowaker has joined #ruby
serivich has quit [Ping timeout: 240 seconds]
wldcordeiro_ has joined #ruby
kubunto has left #ruby [#ruby]
momomomomo has quit [Quit: momomomomo]
towski_ has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
chthon has quit [Ping timeout: 244 seconds]
scripore has quit [Quit: This computer has gone to sleep]
mistermocha has quit [Remote host closed the connection]
thomcom has joined #ruby
mistermocha has joined #ruby
scripore has joined #ruby
<Senjai> Papipo: Yes
<Senjai> and its terrible
zotherstupidguy has joined #ruby
<Senjai> So terrible I cannot mention it
<Senjai> I would just write one quickly
<Senjai> or stub out the requests
<Papipo> it's for scripting
rbennacer has joined #ruby
<Senjai> Oh..
<Senjai> What..
<Papipo> I just need a token to update all of my youtube videos
<Senjai> Just write a ruby script that does all of that..
<Papipo> that's what I am doing
<Senjai> Or non ruby script
scripore has quit [Client Quit]
<Papipo> but I need the damn tokens
<Papipo> but, I've found a way
pontiki has joined #ruby
<Senjai> Dont you get them from like.. youtube?
<Papipo> with some tool named playground on google developer site
<pontiki> hello rubyists
<Papipo> yes, but you need HTTP interactions
<Senjai> pontiki: Long time no see
<Papipo> anyway
<Senjai> Papipo: Right, so listen on a port to get the oauth token
<Senjai> or see if theres a more permenant solution
alex88 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Senjai> You can have a script listen on a port, that youtube can point at just for the token generation
vickleton has joined #ruby
tomphp has joined #ruby
<pontiki> hihi senjai
<pontiki> i'm running ruby-install ruby 2.1.1 and it's throwing this compile error in readline.c
<pontiki> this is on ubuntu 14.04 server
turtil has quit [Ping timeout: 255 seconds]
terlar has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby
joelataylor has joined #ruby
alex88 has quit [Ping timeout: 276 seconds]
<Senjai> Hmm
djbkd has quit [Remote host closed the connection]
<Senjai> pontiki: Have ypou tried 2.1.3
<havenn> pontiki: Use 2.1.6! But if you *must* use a Ruby before the fix you can patch a backport: ruby-install -p https://gist.github.com/mislav/a18b9d7f0dc5b9efc162.txt ruby 2.1.1
<Senjai> sexy
<Senjai> havenn: Drop the mic why dont you
ki0_ has quit [Ping timeout: 250 seconds]
sevvie has quit [Remote host closed the connection]
djbkd has joined #ruby
<havenn> Senjai: good mornin'!
Hijiri has quit [Quit: WeeChat 1.0.1]
<Senjai> mornin
claw has joined #ruby
rejerson69_ has quit [Ping timeout: 256 seconds]
<havenn> pontiki: ruby-install ruby 2.1.6
<Senjai> havenn: ruby install only has 2.1.3 no?
fgo has quit [Ping timeout: 252 seconds]
<Senjai> I just reinstalled ruby install, and I only got 2.1.3 out of it
<pontiki> i would like to, but i don't get to control the bloddy damn .ruby-version file :(
<Senjai> pontiki: lol what? :( It should just be "2.1"
<pontiki> see previous statement
<Senjai> I know, I'm just ranting
<Senjai> Thats not a fun setup :(
thumpba has joined #ruby
<havenn> Senjai: ruby-install doesn't automatically update versions and checksum definitions quite yet. it will in an upcoming release. but you can install versions by just providing the version and checksum yourself, like: ruby-install ruby 2.1.6 --sha256 7b5233be35a4a7fbd64923e42efb70b7bebd455d9d6f9d4001b3b3a6e0aa6ce9
scripore has joined #ruby
<pontiki> well, there's more to rant about. one is 2.1.1, another is 2.1.0, and i have use them both
<havenn> Senjai: how'd you install it?
<Senjai> havenn: via ruby build iirc
<havenn> deja vu
<Senjai> havenn: If it wasn't written in shell, I would actually contribute and add that ability to automatically add definitions
shevy has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<Senjai> But I have no intention to learn that much shell :(
<pontiki> thanks for the patch, tho, havenn
<havenn> Senjai: are you talking ruby-build and i'm talking ruby-install?
zotherstupidguy has quit [Ping timeout: 276 seconds]
<havenn> pontiki: de nada
<Senjai> havenn: nono, ruby install
<havenn> pontiki: but 2.1.6!
<Senjai> But i got 2.1.6 from ruby build because ruby install didnt have it
<Senjai> iirc
zotherstupidguy has joined #ruby
tvw has quit [Remote host closed the connection]
thumpba_ has joined #ruby
<havenn> Senjai: you can `make update` before `sudo make install` to fetch latest definitions including 2.1.6 from ruby-versions for now. but yeah, it'll be *soon*.
blackmesa has quit [Ping timeout: 244 seconds]
shevy has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
<Senjai> havenn: Im guessing your a contributor?
jimms has quit [Remote host closed the connection]
<Senjai> I will keep the make update trick in mind
<havenn> Senjai: yup
<Senjai> havenn: If you're willing to code review the hell out of any PR's I submit, Id probably contribute
<jhass> havenn: we should rewrite ruby-install in crystal :D
<Senjai> unless you already have a feature branch setup somewhere for it
<havenn> jhass: \o/
mdw has joined #ruby
havenn is now known as havenwood
thumpba has quit [Ping timeout: 244 seconds]
towski_ has quit [Remote host closed the connection]
ec is now known as ELLIOTTCABLE
zotherstupidguy has quit [Ping timeout: 256 seconds]
Synthead has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
sevvie has joined #ruby
<havenwood> Senjai: No feature branch. Summary of latest thinking at the bottom of this thread: https://github.com/postmodern/ruby-install/issues/175
jheg has joined #ruby
<Senjai> bookmarked
psmolen has quit [Ping timeout: 256 seconds]
psmolen has joined #ruby
Igorshp has quit [Remote host closed the connection]
sent1nel has joined #ruby
rikai has joined #ruby
basiclaser has quit [Quit: Connection closed for inactivity]
fabrice31 has joined #ruby
jenrzzz has joined #ruby
lolmaus_ has quit [Ping timeout: 256 seconds]
<havenwood> Senjai: And of course a --no-update option to disable automatic update. :)
allcentury has joined #ruby
GeorgesLeYeti has quit [Quit: Quitte]
jimms has joined #ruby
zotherstupidguy has joined #ruby
<Papipo> anybody here using the yt gem=
<Papipo> ?
<jhass> no, you're its only user on the world
dopie has joined #ruby
<joelataylor> curious if anyone here has integrated Intercom.io ?
lidenskap has joined #ruby
<Senjai> joelataylor: !use
<Senjai> ugh
<Senjai> do we have a use entry?
<Senjai> ?use
<ruboto> I don't know anything about use
<Senjai> ?help
<ruboto> I don't know anything about help
<Senjai> How to add factoids?
<Senjai> !help
<jhass> Senjai: !fact mk key value
doodlehaus has quit [Ping timeout: 244 seconds]
<jhass> but it's restricted to ops
fabrice31 has quit [Ping timeout: 255 seconds]
<Senjai> Oh I thought it asnt
<Senjai> according to apeiros, or so I thought
<Senjai> !fact mk use Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
<Senjai> nope
<jhass> ?anyone
<ruboto> Just ask your question, if anyone has, they will respond.
sandstrom has joined #ruby
<jhass> !fact mk use Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
<ruboto> jhass, I will remember that use is Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
<Senjai> Could I get bot access? I've kind of been around forever
<joelataylor> ok, thanks Senjai
<jhass> Senjai: sorry, currently the authentication is tied to the channel ACL
gr33n7001 has quit [Quit: WeeChat 1.1.1]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<joelataylor> if I add a Gem to a project, does it automatically get included and initialized?
<jhass> Senjai: feel free to ping me any time to add something though ;)
Alina-malina has quit [Ping timeout: 276 seconds]
[k- has quit [Quit: Lingo: www.lingoirc.com]
Musashi007 has joined #ruby
<Senjai> joelataylor: Yes, if the user hasn't set require: false
zotherstupidguy has quit [Ping timeout: 245 seconds]
<Senjai> At least in rails, I believe.
thekodols has joined #ruby
zzing has joined #ruby
<Papipo> jhass: fortunately I added "here" to my question
Asher has quit [Quit: Leaving.]
<Papipo> Senjai: AFAIK they changed that and now you need to explicitly require stuff
<Papipo> or maybe that was just for files in lib/
<jhass> Papipo: often people can help you with your problem regardless, it's better to ask your actual question directly ;)
rejerson69_ has joined #ruby
<Papipo> my problem is that the gem is not behaving at all as expected
zachrab has joined #ruby
<sandstrom> Capistrano is installed via Bundler. When running `cap --help` it tries to load all gems in the Gemfile. How can I prevent that? I've tried adding `:require => false` but it doesn't work.
<Papipo> like account.videos.count raising a ServerError
<jhass> joelataylor: search your project for a call to Bundler.require, that will load all gems in the Gemfile which don't have require: false specified
<jhass> the argument specifies which groups to load
<Senjai> sandstrom: gem install capistrano
<jhass> joelataylor: if you can't find that call the answer is no
<Senjai> sandstrom: Install it globally
<sandstrom> Senjai thanks, will try!
Alina-malina has joined #ruby
<jhass> Papipo: 0.16 was released just yesterday, are you on the latest version?
<Papipo> yes I am
<jhass> it seems well maintained, what's the specific error?
ismaelga has quit [Remote host closed the connection]
blackmesa has joined #ruby
<sandstrom> Senjai I tried, still get 'Could not find ruby-vips-0.3.8 in any of the sources'. Totally unrelated to capistrano, but it's a gem in the gemfile.
<Senjai> *shrug*
<Senjai> Probably not the correct version then
zotherstupidguy has joined #ruby
tubuliferous_ has joined #ruby
<sandstrom> Senjai I found it :) I'd aliased `bundle exec cap` to `cap`. It was good at the time, but turned into a trip-wire now :)
agarie has quit [Remote host closed the connection]
lkba has joined #ruby
<Senjai> Yeah, never alias bundle exec :P
<Senjai> I mean
<Senjai> I have it aliased to be
<Senjai> brails => bundle exec rails
<Senjai> but I never change rails to be bundle exec rails by default
failshell has quit [Remote host closed the connection]
ascarter has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
<Senjai> there are ways to automatically switch aliases when your in a project dir, but I dont really advise them
quimrstorres has quit [Remote host closed the connection]
fmcgeough has joined #ruby
<joelataylor> thanks jhass - looks like I needed to restart the server after I changed branches. Doh.
sent1nel has quit [Remote host closed the connection]
diegoviola has joined #ruby
slash_nick has joined #ruby
konsolebox has quit [Ping timeout: 255 seconds]
sent1nel has joined #ruby
agarie has joined #ruby
<shevy> hmm we have the >= operator
chrisja has joined #ruby
<shevy> but I wonder
Hijiri has joined #ruby
ki0 has joined #ruby
<shevy> may it be easier to not use =, but instead just use "greater than" and "less than"? since the check it seems to do, would be superfluous
<shevy> like you could have "at least 80% identity", and check for it via >= 80 or > 79
fabrice31 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
<adaedra> It's valid for integers, not floats
<shevy> I could save one character :)
<shevy> not valid for floats?
snockerton has quit [Quit: Leaving.]
<adaedra> 79.5 is > 79 but not >= 80
MatthewsFace has joined #ruby
towski_ has joined #ruby
Papipo has quit [Remote host closed the connection]
aevitas has joined #ruby
doertedev has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
<adaedra> [80;+∞[ is better expressed with >= 80, because of float values, and because it's more readable
rejerson69_ has quit [Ping timeout: 250 seconds]
claw_ has joined #ruby
claw has quit [Ping timeout: 264 seconds]
MatthewsFace has quit [Remote host closed the connection]
ki0 has quit [Ping timeout: 252 seconds]
MatthewsFace has joined #ruby
<shevy> hmm
<shevy> I need to think about this baguette situation
dc__ has quit [Remote host closed the connection]
<adaedra> .
<shevy> careful with the . adaedra we may run out of them one day
thatslifeson has quit [Remote host closed the connection]
<adaedra> never
snockerton has joined #ruby
lavros has quit [Quit: leaving]
dc__ has joined #ruby
segfalt_ has joined #ruby
baweaver has quit [Ping timeout: 248 seconds]
segfalt_ has quit [Client Quit]
mistermo_ has joined #ruby
umgrosscol has joined #ruby
rdark has quit [Quit: leaving]
gazay has quit [Read error: Connection reset by peer]
segfalt has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
mistermo_ has quit [Remote host closed the connection]
<bricker> ...
dc__ has quit [Remote host closed the connection]
gazay has joined #ruby
AlphaAtom has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
leafybasil has quit [Remote host closed the connection]
claw_ has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
claw has joined #ruby
* adaedra run gzip
<adaedra> …
kirun has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
pontiki has quit [Quit: Lost terminal]
Spami has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has quit [Ping timeout: 264 seconds]
fgo has quit [Ping timeout: 256 seconds]
neanderslob has joined #ruby
al2o3-cr has joined #ruby
platzhirsch has left #ruby [#ruby]
al2o3-cr is now known as gr33n7007h
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
baweaver has joined #ruby
lkba_ has joined #ruby
djellemah has quit [Read error: Connection reset by peer]
delinquentme has quit [Ping timeout: 240 seconds]
gr33n7007h is now known as al2o3-cr
RegulationD has joined #ruby
iamjarvo has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
Papipo has joined #ruby
<Papipo> jhass: after a lot of debugging... the problem with the yt gem seems to be about a SSL certificate!
jottr has joined #ruby
baweaver has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
jenrzzz has quit [Ping timeout: 272 seconds]
callumacrae is now known as nub
thumpba_ has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.1.1]
rejerson69_ has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
Renich has joined #ruby
thumpba has joined #ruby
joelataylor has quit [Quit: Be back later ...]
asmodchan has quit [Quit: Leaving]
a346 has quit [Quit: a346]
joelataylor has joined #ruby
al2o3-cr has joined #ruby
aevitas_ has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
Synthead has joined #ruby
baweaver has joined #ruby
edwinvdgraaf has joined #ruby
aevitas has quit [Ping timeout: 252 seconds]
dc__ has joined #ruby
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
joelataylor has quit [Ping timeout: 265 seconds]
jimms has quit [Remote host closed the connection]
kblake has quit [Ping timeout: 244 seconds]
yaw has joined #ruby
Oka has joined #ruby
xtsee has quit []
zzach has joined #ruby
yaw has quit [Max SendQ exceeded]
<Papipo> Seriously, I have tried like 4 different fixes of #<OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed>
<Papipo> without luck
edwinvdgraaf has quit [Remote host closed the connection]
<zzach> Is it possible to change /usr/bin/make in /usr/bin/gem using any option or environment variable , or is it hardcoded? (PATH change does not seem to work)
Igorshp has joined #ruby
edwinvdgraaf has joined #ruby
freerobby has quit [Quit: Leaving.]
Igorshp has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
kblake has joined #ruby
xtsee has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
Filete has joined #ruby
thomcom has quit [Quit: Textual IRC Client: www.textualapp.com]
edwinvdgraaf has joined #ruby
gazay has quit [Quit: gazay]
freerobby has joined #ruby
ramfjord has joined #ruby
dc__ has quit [Ping timeout: 255 seconds]
AlphaAtom has quit [Ping timeout: 252 seconds]
doodlehaus has joined #ruby
dc__ has joined #ruby
leafybasil has joined #ruby
dcarmich has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
edwinvdg_ has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Flowrhent has quit [Quit: Flowrhent]
paulcsmith has joined #ruby
Igorshp has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 276 seconds]
Flowrhent has joined #ruby
snockerton has quit [Quit: Leaving.]
weaksauce has joined #ruby
segfalt has joined #ruby
sent1nel has quit [Remote host closed the connection]
faddai has joined #ruby
failshell has joined #ruby
RegulationD has joined #ruby
joelataylor has joined #ruby
dc__ has quit [Ping timeout: 252 seconds]
RegulationD has quit [Remote host closed the connection]
<al2o3-cr> >> (1..10).map{|n| 1 << n }
<ruboto> al2o3-cr # => [2, 4, 8, 16, 32, 64, 128, 256, 512, 1024] (https://eval.in/320005)
_blizzy_ has joined #ruby
thatslifeson has joined #ruby
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
TheNet has joined #ruby
faddai has quit [Ping timeout: 248 seconds]
Igorshp has joined #ruby
jenrzzz has joined #ruby
iasoon has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
snockerton has joined #ruby
faddai has joined #ruby
kerrizor has joined #ruby
baweaver has quit [Remote host closed the connection]
cornfeedhobo has left #ruby ["when i leave, come together like butt cheeks"]
agarie has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MatthewsFace has quit [Remote host closed the connection]
agarie has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
jimms has joined #ruby
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thatslifeson has quit [Remote host closed the connection]
Igorshp has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
dc__ has joined #ruby
segfalt has quit [Quit: segfalt]
workmad3 has joined #ruby
TheNet has joined #ruby
segfalt has joined #ruby
segfalt has quit [Client Quit]
sandstrom has quit [Quit: My computer has gone to sleep.]
otherj has joined #ruby
Igorshp has quit [Remote host closed the connection]
mdw has quit [Ping timeout: 252 seconds]
ki0 has joined #ruby
NinjaOps has quit [Quit: Konversation terminated!]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mg^ has joined #ruby
TheNet has quit [Quit: Textual IRC Client: www.textualapp.com]
sent1nel has joined #ruby
TheNet has joined #ruby
icarus has quit [Quit: leaving]
naftilos76 has quit [Remote host closed the connection]
icarus has joined #ruby
aevitas_ has quit [Remote host closed the connection]
aevitas has joined #ruby
qwertme has joined #ruby
agent_white has joined #ruby
pontiki has joined #ruby
<agent_white> Afternoon folks
<pontiki> hi
agarie has quit [Read error: Connection reset by peer]
agarie_ has joined #ruby
Matachines has joined #ruby
<wallerdev> hola
<cosmicfires> hola
<GaryOak_> hola
mistermocha has joined #ruby
<GaryOak_> hóla
RegulationD has joined #ruby
agarie_ has quit [Remote host closed the connection]
rgb-one has joined #ruby
chrishough has joined #ruby
mistermo_ has joined #ruby
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
qwertme_ has joined #ruby
m8 has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
AlphaAtom has joined #ruby
<skakri> labvakar
sohrab has quit [Ping timeout: 244 seconds]
djellemah has joined #ruby
eichenwald has joined #ruby
willharrison has joined #ruby
qwertme has quit [Ping timeout: 256 seconds]
yqt has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
bobbrez has quit [Read error: Connection reset by peer]
<dudedudeman> sup agent_white
mistermo_ has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
AlphaAtom has quit [Ping timeout: 256 seconds]
lidenskap has quit [Remote host closed the connection]
<dudedudeman> so splats
<dudedudeman> are there any best practices worth noting about when to use, or not to use splats?
Jackneill has quit [Remote host closed the connection]
<GaryOak_> dudedudeman: you mean in the argument list?
<dudedudeman> GaryOak_: yes
zorak8 has quit [Quit: Leaving]
<dudedudeman> i've seen examples of them used ina few different scenarios, but i know examples are just little bits to show what something is capable of, and not something that would be best practice
odin22 has quit [Read error: Connection reset by peer]
<GaryOak_> I think it's easy to run into problems using it
odin22 has joined #ruby
<GaryOak_> because you don't know whether what you passed in was an array or not
<dudedudeman> could you define an array to a a variable and then pass it through using interpolation?
turtil has joined #ruby
MatthewsFace has joined #ruby
rgb-one has quit [Remote host closed the connection]
aevitas has quit []
Papipo has quit [Remote host closed the connection]
<adaedra> what do you mean?
<adaedra> pass an array as arguments?
<dudedudeman> i'll gist what i have in mind
finisherr has joined #ruby
<adaedra> args = [ 6, 7 ]; -> (a, b) { a * b }.call(*args)
<adaedra> >> args = [ 6, 7 ]; -> (a, b) { a * b }.call(*args)
<ruboto> adaedra # => 42 (https://eval.in/320024)
segfalt has joined #ruby
<finisherr> When a class inherits another class and they both have initialize methods, how can one make sure that all parameters get initialized?
<pontiki> parameters are passed in
otherj has quit [Quit: .]
McRae has joined #ruby
<finisherr> in the sub class, do you have to make reference to the params of the initialize method of the superclass?
segfalt has quit [Client Quit]
<finisherr> in order to have access to all of them?
<dudedudeman> adaedra: here's what i was tinkering with
WajidKagzi has joined #ruby
Limix has quit [Quit: Limix]
<dudedudeman> GaryOak_: ^ is what i'm mulling over
<GaryOak_> finisherr: if you want to invoke the superclasses initialize method you have to call super
<finisherr> okay cool, I was wondering if ruby did something like that
<WajidKagzi> hello
<finisherr> or supported that
qwertme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
otherj has joined #ruby
<pontiki> if you change the signature of the initialize method in the subclass, you have to call the superclass's initialize with explicity parameters
wallerdev has quit [Quit: wallerdev]
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
Zamerick_ has joined #ruby
<adaedra> dudedudeman: and what's the problem?
<GaryOak_> I guess it's nice if you have a DSL
<GaryOak_> or are trying to make a DSL
ismaelga has joined #ruby
sandstrom has joined #ruby
<dudedudeman> adaedra: no problem, just me trying to see if there are best practices on when to use splat and when not to. i'm just asking based on my inexperience compared to most of you folks
<dudedudeman> because i look at that, and i'm like, oooo, this looks useful. but of course there are instances where you look at things and you're like, nope. don't do that. and you can say that because you've been there and done that
<adaedra> You use splat to dynamically pass arguments
<GaryOak_> dudedudeman: it depends if you want things to be really clean or really explicit
banister has joined #ruby
<finisherr> Okay, yeah. Super method is the ticket. Thank you
EagleDelta has quit [Remote host closed the connection]
Zamerick__ has quit [Ping timeout: 240 seconds]
<pontiki> play around with splats, find out where and how they work, etc
<dudedudeman> which, if my reading of Clean Code has been of any help, I need to be thinking about writing code that others will be reading later on
<finisherr> Sometimes I read through books and get impatient as questions come up : )
<pontiki> quite so. one of those people will be you.
otherj has quit [Client Quit]
<pontiki> a year from now, you will look at code and say "what idiot wrote this?? .. oh .."
<dudedudeman> pontiki: i hop so!
<dudedudeman> hope*
<GaryOak_> I think splat doesn't show it's intentions very clearly in the method signature, but that's just me :P
<adaedra> dudedudeman: don't worry. With more experience, you'll be able to tell better what's good or not
<pontiki> avdi has a bunch of tapas on splat
<dudedudeman> adaedra: i do hope so.
thatslifeson has joined #ruby
otherj has joined #ruby
<dudedudeman> pontiki: i've been mulling over subscribing to that. i've seen a few of the free ones and think they're great, but4 i know they're not entirely geared towards junior level thinking
ismaelga has quit [Remote host closed the connection]
<al2o3-cr> dudedudeman: Math.hypot(*[3,4]) is equiv as Math.hypot(3,4)
otherj has quit [Max SendQ exceeded]
<dudedudeman> so i'm wary of spending too much time learning cool, fancy techniques when i should be grinding through things like the prag prog guide to ruby
otherj has joined #ruby
<GaryOak_> get the logic and design down, and then you can mess with syntax suger
WajidKagzi has quit [Quit: WeeChat 1.1.1]
kerrizor has left #ruby ["Textual IRC Client: www.textualapp.com"]
mistermo_ has joined #ruby
otherj has quit [Max SendQ exceeded]
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
pdoherty has joined #ruby
otherj has joined #ruby
<shevy> how do you guys feel about using commandline ascii cheering when everything works fine
<shevy> like outputting:
<shevy> \o/
<dudedudeman> ha, i would love that
<dudedudeman> or doing something like "... and there was much rejoicing"
<shevy> haha
<dudedudeman> followed by the \o/
<shellfu> what about the metal head: \m/
otherj has quit [Max SendQ exceeded]
<dudedudeman> someone say metal!?
<shellfu> oh yeah :)
<shevy> how ascii can make people's mood lighten up
<pontiki> dudedudeman: you most definitely do not have to run through every tapas
otherj has joined #ruby
<pontiki> it's easy enough to just pick and choose
<GaryOak_> shevy: <(^_^<)
RegulationD has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 248 seconds]
<shevy> that's the japanese smiley
<shevy> manga style
<adaedra> (>^_^)>
McRae has quit [Quit: WeeChat 1.1.1]
yfeldblum has joined #ruby
RegulationD has joined #ruby
<pontiki> and when it fails, you flip a table?
lidenskap has joined #ruby
zorak8 has joined #ruby
potpib has quit [Ping timeout: 264 seconds]
<dudedudeman> it'd be cool if you could animate a little ascii bit moving back and forth on the lines.
Soda has quit [Remote host closed the connection]
gfawcettpq has quit [Ping timeout: 248 seconds]
<hanmac> shevy: ~Σ:3
<adaedra> dudedudeman: glench.com/hash/ and click 'diy'
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fabrice31 has joined #ruby
naomarik has joined #ruby
ebernhardson is now known as ebernhardson|lch
<dudedudeman> ha! that's so cool
<dudedudeman> of course that would be something that already exisits
michael_mbp has quit [Excess Flood]
<dudedudeman> there's nothing new under the sun i guess
<shevy> dudedudeman
EagleDelta has joined #ruby
<shevy> you are a double dude
<adaedra> shevy
<shevy> you remind me of the dude in the big lebowski
fryguy9 has quit [Ping timeout: 245 seconds]
a346 has joined #ruby
<adaedra> that's like, your opinion man
<hanmac> dudedudeman: that reminds me of "TimmyTurner" how did you get (that thing that should not exist)? and the answer was always "Internet" ;P
Morkel has quit [Quit: Morkel]
mrmargol_ has joined #ruby
baweaver has joined #ruby
<dudedudeman> i am most dudes!
<dudedudeman> i definitely abide
<shevy> haha
<shevy> adaedra you watched it too?
<adaedra> actually not
<adaedra> I know some quotes
<shevy> adaedra one of my favourite french movies is Le fabuleux destin d'Amélie Poulain
<adaedra> Never seen either
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
michael_mbp has joined #ruby
<pontiki> i think over here it's just titled "Amelie"
naomarik has quit [Quit: leaving]
<shevy> :)
naomarik has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
<shevy> le pontiki
<shevy> so reminds me of a french nick
<adaedra> ._.
mistermo_ has quit [Remote host closed the connection]
<pontiki> i have not seen the big lebowsky either
<pontiki> i don't want to have to buy it, can't find it to stream
mrmargolis has quit [Ping timeout: 272 seconds]
<dudedudeman> it's a good one just to say you've seen it
<pontiki> or rent
ebernhardson|lch has quit [Ping timeout: 265 seconds]
mistermocha has joined #ruby
<adaedra> It's not on netflix?
<pontiki> not streaming, no
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adaedra> Everyone has netflix nowadays
momomomomo has joined #ruby
<dudedudeman> :)
<dudedudeman> though, the comments say the sound quality is pretty rough
<adaedra> "pretty bad sound quality"
<dudedudeman> don't know how you feel about that
<pontiki> follow that link
<adaedra> "[Comedy] [Crime] ✔ The Big ..." This video is no longer available due to a copyright claim by Universal Pictures (ZEFR).
<dudedudeman> ah there it is
<adaedra> it's YouTube, a full film often stays short
<dudedudeman> dang, that subreddit is usually good about movies
fryguy9 has joined #ruby
<pontiki> MPAA is even better at finding shit
yfeldblum has quit [Ping timeout: 256 seconds]
<pontiki> i'd bet they even have people reading the subr
<dudedudeman> i'm sure
workmad3 has quit [Ping timeout: 256 seconds]
ponga has joined #ruby
yfeldblum has joined #ruby
TheNet has joined #ruby
Lucky__ has joined #ruby
jonatin has quit [Quit: Textual IRC Client: www.textualapp.com]
scripore has quit [Quit: This computer has gone to sleep]
WajidKagzi has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
naomarik has quit [Quit: leaving]
scripore has joined #ruby
scripore has quit [Remote host closed the connection]
iamjarvo has joined #ruby
jonatin has joined #ruby
haroldwu has quit [Ping timeout: 264 seconds]
eichenwald has quit [Quit: Leaving]
Pupeno_ has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
Pupeno has quit [Read error: Connection reset by peer]
rbennacer has quit [Ping timeout: 256 seconds]
ghr has quit [Ping timeout: 248 seconds]
agarie has joined #ruby
Guest8338 is now known as marahin
marahin has quit [Changing host]
marahin has joined #ruby
michaeldeol has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
thekodols has quit [Read error: Connection reset by peer]
TheNet has quit [Quit: Textual IRC Client: www.textualapp.com]
Pupeno has joined #ruby
Rapier- has quit [Quit: (null)]
Pupeno_ has quit [Ping timeout: 245 seconds]
Flowrhent has quit [Remote host closed the connection]
agarie has quit [Ping timeout: 265 seconds]
Renich has quit [Quit: leaving]
relix has joined #ruby
Flowrhent has joined #ruby
Hijiri has joined #ruby
faddai has quit [Quit: faddai]
codecop has quit [Remote host closed the connection]
bruno- has joined #ruby
otherj has quit [Quit: .]
a346 has quit [Quit: a346]
baweaver has quit [Remote host closed the connection]
otherj has joined #ruby
a346 has joined #ruby
otherj has quit [Max SendQ exceeded]
bmurt has quit []
iamninja_ has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
sent1nel has quit [Remote host closed the connection]
otherj has joined #ruby
duderonomy has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
bluOxigen has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
segfalt has joined #ruby
baroquebobcat has joined #ruby
dudedudeman has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
Spami has quit [Quit: This computer has gone to sleep]
otherj has quit [Client Quit]
fmcgeough has quit [Quit: fmcgeough]
ismaelga has joined #ruby
noname has quit [Quit: WeeChat 1.0.1]
scripore has joined #ruby
ismaelga has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 276 seconds]
mrmargolis has joined #ruby
chrishough has joined #ruby
bruno- has joined #ruby
dorei has joined #ruby
noname has joined #ruby
ismaelga has joined #ruby
plukevdh has quit [Quit: Textual IRC Client: www.textualapp.com]
mrmargol_ has quit [Ping timeout: 256 seconds]
SouL_|_ has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
Igorshp has joined #ruby
ismaelga has quit [Remote host closed the connection]
klaas_ is now known as klaas
chipotle has joined #ruby
chipotle has quit [Read error: No route to host]
ismaelga has joined #ruby
chipotle has joined #ruby
ghostmoth has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
sirecote_ has quit [Quit: "Hang Up"]
vdamewood has joined #ruby
wallerdev has joined #ruby
sirecote has joined #ruby
jenrzzz has joined #ruby
delinquentme has joined #ruby
bruno- has joined #ruby
kloeri has quit [Ping timeout: 619 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo has quit [Quit: momomomomo]
x1337807x has joined #ruby
Spami has joined #ruby
yfeldblu_ has joined #ruby
Soda has joined #ruby
crdpink has quit [Quit: q term]
WajidKagzi has quit [Quit: WeeChat 1.1.1]
decoponio has quit [Quit: Leaving...]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ki0 has quit [Remote host closed the connection]
Hijiri has joined #ruby
WildBamboo-Josh has quit [Quit: Leaving]
crdpink has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
sinkensabe has joined #ruby
ki0 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
slash_nick has quit [Ping timeout: 248 seconds]
JDiPierro has quit [Remote host closed the connection]
moeabdol has joined #ruby
robertodecurnex has quit [Remote host closed the connection]
Asher has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
WildBamboo-Josh has joined #ruby
baweaver has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1.1]
tomphp has joined #ruby
Asher has quit [Client Quit]
Asher has joined #ruby
dopie has joined #ruby
dc__ has quit [Ping timeout: 256 seconds]
chipotle has quit [Quit: cheerio]
yaw has joined #ruby
TheNet has joined #ruby
yaw has quit [Max SendQ exceeded]
kadoppe has quit [Ping timeout: 240 seconds]
yaw has joined #ruby
Xoro has joined #ruby
failshell has quit [Remote host closed the connection]
kadoppe has joined #ruby
RegulationD has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
a346 has quit [Quit: a346]
A205B064 has joined #ruby
withnale_ has quit [Ping timeout: 248 seconds]
danoo_ has quit [Ping timeout: 272 seconds]
withnale_ has joined #ruby
sohrab has joined #ruby
dudedudeman has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
Musashi007 has joined #ruby
Brozo has joined #ruby
alex88 has joined #ruby
danoo_ has joined #ruby
chipotle has joined #ruby
Flowrhent has quit [Quit: Remote host closed the connection.]
sent1nel has joined #ruby
chipotle has quit [Max SendQ exceeded]
evanjs has quit [Remote host closed the connection]
chipotle has joined #ruby
m8 has quit [Quit: Sto andando via]
nym has quit [Quit: Connection closed for inactivity]
KnownSyntax has quit [Quit: Connection closed for inactivity]
charliesome has quit [Quit: zzz]
ItSANg___ has quit [Quit: Leaving...]
ghostmoth has quit [Quit: ghostmoth]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
scottymeuk has quit [Ping timeout: 256 seconds]
ponga has quit [Remote host closed the connection]
alex88 has quit [Ping timeout: 276 seconds]
Tristan-Speccy has quit [Read error: Connection reset by peer]
chipotle has quit [Client Quit]
jheg has quit [Quit: jheg]
Igorshp has quit [Remote host closed the connection]
cosmicfires has quit [Quit: bye...]
marahin has left #ruby ["Leaving..."]
ldnunes has quit [Quit: Leaving]
chipotle has joined #ruby
weemsledeux has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
scottymeuk has joined #ruby
iamjarvo has joined #ruby
icarus has quit [Quit: leaving]
<al2o3-cr> why can't you have if match = data.match /!hello/ in ruby 2.2.2
iamjarvo has quit [Max SendQ exceeded]
icarus has joined #ruby
doodlehaus has quit [Remote host closed the connection]
iamjarvo has joined #ruby
mistermo_ has joined #ruby
aclapinpepin has joined #ruby
AlphaAtom has joined #ruby
Pipocah has quit [Quit: Leaving]
misterm__ has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
<apeiros> al2o3-cr: I don't know, why can't you?
misterm__ has quit [Remote host closed the connection]
<al2o3-cr> apeiros: ignore me i'm going mental ;P
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qwertme has joined #ruby
<apeiros> ok. but if I ignore you, I can't help you.
mistermocha has quit [Ping timeout: 250 seconds]
mwlang has joined #ruby
<al2o3-cr> not literally, you need perens
Azure has quit [Excess Flood]
jottr has quit [Ping timeout: 250 seconds]
RealMarc has quit [Ping timeout: 272 seconds]
<mwlang> I want to extract a timestamp’s values off a line with a regexp. A typical line: "Processing ContentController#index (for 207.46.13.43 at 2015-02-25 02:03:34) [GET]" — my regexp (which works, but is looooong): line.scan(/(\d{4})\-(\d{2})\-(\d{2})\s(\d{2})\:(\d{2})\:(\d{2})/).reject{|r| r == ''}.flatten.map(&:to_i) => [2015, 2, 25, 2, 3, 34] Can the regexp be reduced?
mistermocha has joined #ruby
baweaver has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
bluOxigen has quit [Ping timeout: 272 seconds]
Azure has joined #ruby
EagleDelta has quit [Remote host closed the connection]
dseitz has joined #ruby
<al2o3-cr> apeiros: which is preferred "match = data.match(//); if match; ..." or "if match = data.match(//); ..."
<apeiros> al2o3-cr: I prefer the former
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agarie has joined #ruby
<adaedra> if data =~ // then use $~ ?
ponga has joined #ruby
<al2o3-cr> ok thanks apeiros
<apeiros> mwlang: scan with capturing groups never returns a string. that reject is pointless.
ponga has quit [Remote host closed the connection]
Igorshp has joined #ruby
_blizzy_ is now known as DenverCoder9
DenverCoder9 is now known as _blizzy_
jerius has quit [Quit: /quit]
<apeiros> and scan is the wrong tool if you only have a single match. use .match(regex).captures.map(&:to_i)
AlphaAtom has quit [Ping timeout: 244 seconds]
<mwlang> apeiros: yeah, I saw that and removed already…original regexp was returning a bunch of empty strs
scripore has quit [Quit: This computer has gone to sleep]
<apeiros> regarding your question: the regex can't be reduced significantly
<apeiros> you can use \d\d instead of \d{2} - saves you a single digit * 5.
<apeiros> I don't see much else.
<mwlang> apeiros: a finer point worth me exploring more: match vs. scan
pontiki has quit [Quit: Lost terminal]
<mwlang> is match more optimized or just a better choice for the use-case?
RealMarc has joined #ruby
<apeiros> better choice for the use-case
hiyosi has joined #ruby
<apeiros> the only optimized regex expression is /literal/ =~ regex
<adaedra> you're trying to find if your string match as a whole, mwlang, not finding every substring which matches
<adaedra> first is match, latter is scan
<apeiros> well, and =~ generally being faster if all you care for "does it match" because it does not construct the MatchData object
Mohan_ has quit [Ping timeout: 256 seconds]
<adaedra> Er, $~ ?
<apeiros> adaedra: that one's lazy
<adaedra> oh
<adaedra> didn't know that
<apeiros> adaedra: but yes, once you use $~, you give up the performance advantage
<adaedra> I always do like this
shtirlic has quit [Ping timeout: 252 seconds]
<apeiros> in fact, I think any of the $ vars related to regex will cause a construction of matchdata. not sure though.
agarie has quit [Ping timeout: 272 seconds]
<mwlang> apeiros: so here’s the final version: line.match(/(\d{4})\-(\d{2})\-(\d{2})\s(\d{2})\:(\d{2})\:(\d{2})/).captures.map(&:to_i) — I think I’ll keep \d{2} as that’s a little easier to read altogether.
kloeri has joined #ruby
Matachines has quit [Quit: Textual IRC Client: www.textualapp.com]
mistermocha has quit [Remote host closed the connection]
<mwlang> I’m basically pulling the timestamp out of the line to feed to Time.new, so I do care about the resulting data of the match.
Mohan has joined #ruby
ismaelga has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
relix has joined #ruby
scripore has joined #ruby
Mohan is now known as Guest83572
<havenwood> [/[\d-]+\s[\d\:]+/].scan /\d+/
<mwlang> I gotta collate several app’s log files to reconstruct the series of events across those multiple apps. (which ain’t fun, btw).
scripore has quit [Client Quit]
<apeiros> havenwood: Array#scan? what did you do to your ruby? :D
workmad3 has joined #ruby
<mwlang> havenwood: :-o
<havenwood> >> "Processing ContentController#index (for 207.46.13.43 at 2015-02-25 02:03:34) [GET]"[/[\d-]+\s[\d\:]+/].scan /\d+/
<ruboto> havenwood # => ["2015", "02", "25", "02", "03", "34"] (https://eval.in/320055)
<apeiros> mwlang: you're out of luck. at work I have a basic rails log parser.
<apeiros> constructs even params for you :)
<apeiros> havenwood: ah, you mean String#[]
<mwlang> apeiros: haha…I just about gots a rudimentary one written now.
<apeiros> mwlang: older rails logs were worse. concurrent requests writing into each other's log outputs…
Hijiri has quit [Quit: WeeChat 1.0.1]
<mwlang> it’s even worse than I let on, though…the log files have not been rotated regularly…so I’m scanning 7gb logs, too. :-o
barkerd427 is now known as zz_barkerd427
Eiam_ has joined #ruby
<mwlang> apeiros: ugh…don’t take me back to those days.
<apeiros> when I have to do such stuff I preprocess them
<mwlang> apeiros: do you by any chance know when that was fixed? I’m digging into a Rails 1.2 app.
<apeiros> grep -b is helpful.
<apeiros> I think rails 4 made the logging situation better. not sure though. I *very* rarely have to dig into rails log files.
<mwlang> apeiros: I’m preprocessing with grep and sed to reduce as much as possible, and then grabbing what I need with what’s left over using Ruby.
RegulationD has joined #ruby
<apeiros> usually our other logging tools provide better and sufficient info
weemsledeux has quit [Ping timeout: 264 seconds]
shtirlic has joined #ruby
agarie has joined #ruby
<mwlang> apeiros: sadly for me, this is a new client and project and they have a mess.
<apeiros> good luck :-D
pdoherty has quit [Ping timeout: 250 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sandstrom has quit [Quit: My computer has gone to sleep.]
<mwlang> apeiros: but speaking to log clobbering, I thought that was largely solved in the 2.1.x era if not sooner….or did we “self solve” that with different logs per worker? (I’ve forgotten!)
jimms has quit [Remote host closed the connection]
<mwlang> if there’s one gripe about not doing giant monolythic apps, its that it’s a lot harder to trace the flow of data across the multiple apps.
zachrab has quit [Remote host closed the connection]
frem has joined #ruby
mengu has joined #ruby
<mwlang> and it feels weird going from ruby to .Net to Perl to .Net and back to Ruby — I feel like I’m translating code to “ruby” as much as interpreting the data exchanges.
kirun has quit [Quit: Client exiting]
jimms has joined #ruby
hololeap has joined #ruby
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Channel6 has quit [Quit: Leaving]
zorak8 has quit [Quit: Leaving]
mrmargolis has quit [Remote host closed the connection]
<hololeap> i've got a block that relies on reading files from a temporary directory. i have it set up so that it creates the directory/files, calls yield(file), and then destroy the directory. can i move this functionality to an Enumerator?
Guest83572 has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
<hololeap> i want it to call a method/lambda that deletes the directory as soon as the method chain returns
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jtdowney has joined #ruby
zachrab has joined #ruby
Mohan_ has joined #ruby
<toretore> hololeap: code
<toretore> here: gist.github.com
agarie has quit []
sevvie has quit [Ping timeout: 250 seconds]
Stalkr^ has joined #ruby
Stalkr_ has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
RegulationD has quit [Remote host closed the connection]
Hijiri has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
jheg has joined #ruby
mistermocha has joined #ruby
cornfeedhobo has joined #ruby
ponga has joined #ruby
odin22 has quit [Ping timeout: 240 seconds]
qwertme has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
JDiPierro has joined #ruby
<havenwood> mwlang: you can drop the `&block`, `begin` and `end` and that still works :P
<mwlang> havenwood: hmmm…does that work in Ruby 1.8, too?
ebernhardson|lch has joined #ruby
ebernhardson|lch is now known as ebernhardson
<havenwood> mwlang: yup
<mwlang> havenwood: cool. I guess I’ve been doing it verbosely for no good reason, then. :-p
yfeldblu_ has quit [Remote host closed the connection]
cornfeedhobo has left #ruby ["when i leave, come together like butt cheeks"]
yfeldblum has joined #ruby
<havenwood> 18>> def with_tmp_foder; yield ensure end; with_tmp_foder { puts 'do your thing' }
<ruboto> havenwood # => do your thing ...check link for more (https://eval.in/320066)
<adaedra> 10>> def with_tmp_foder; yield ensure end; with_tmp_foder { puts 'do your thing' }
<ruboto> adaedra # => /tmp/execpad-fb3cc805a9a8/source-fb3cc805a9a8:2: syntax error ...check link for more (https://eval.in/320067)
<adaedra> \o/
AlphaAtom has joined #ruby
<mwlang> havenwood: ah, maybe I’ve gotten in the habit of being explicit so I can check if block was given, but that worked, too… https://gist.github.com/mwlang/d016ea8b2593704bdfe2
sinkensabe has quit [Remote host closed the connection]
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpablo___ has quit [Quit: (null)]
<hololeap> toretore: i want to be able to use it with the progress gem like so `archive.unpack(books).with_progress('Books').each {|f| ... }` and have it delete the directory once each() returns. is this possible?
<mwlang> well, I now know how to write even less code today than yesterday. :-D
juanpablo___ has joined #ruby
<havenwood> mwlang: yeah, `&block` with `block.call` can be nice
<hololeap> toretore: right now the enum is returned _after_ the directory is deleted so it can't be used (since the files that need to be used are no longer there)
<havenwood> mwlang: i don't think i'd mix `&block` with `yield` though
<adaedra> Goooood Night
<mwlang> havenwood: like when you want to change the binding on the block call…
diegoviola has joined #ruby
djbkd has joined #ruby
TheNet has joined #ruby
<havenwood> mwlang: i just think the argument should be used if defined
<mwlang> havenwood: I removed &block from the args and changed to “yield if block_given?”
dopie has quit [Quit: This computer has gone to sleep]
<mwlang> (more toying with this at this point…)
<havenwood> mwlang: that's nice as well :)
AlphaAtom has quit [Ping timeout: 256 seconds]
AlphaAtom has joined #ruby
thomcom has joined #ruby
juanpablo___ has quit [Ping timeout: 276 seconds]
mistermocha has quit [Remote host closed the connection]
fmcgeough has joined #ruby
michaeldeol has joined #ruby
mistermocha has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
Mohan_ has quit [Ping timeout: 248 seconds]
RegulationD has joined #ruby
scripore has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has joined #ruby
scripore has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
Mohan has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mohan is now known as Guest58635
reinaldob has joined #ruby
Olipro has quit [Ping timeout: 252 seconds]
bobbrez has joined #ruby
ismaelga has joined #ruby
RegulationD has quit [Remote host closed the connection]
bobbrez has quit [Client Quit]
bobbrez has joined #ruby
RegulationD has joined #ruby
RegulationD has quit [Remote host closed the connection]
RegulationD has joined #ruby
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
reinaldob has quit [Ping timeout: 245 seconds]
icebourg has quit []
RegulationD has quit [Remote host closed the connection]
ItSANgo has joined #ruby
ItSANgo_ has joined #ruby
ItSANgo has quit [Client Quit]
zz_barkerd427 is now known as barkerd427
umgrosscol has quit [Remote host closed the connection]
psy has quit [Disconnected by services]
workmad3 has quit [Ping timeout: 240 seconds]
psy_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
iamjarvo has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
scripore has joined #ruby
duncannz has joined #ruby
geggam has quit [Ping timeout: 256 seconds]
moeabdol has quit [Ping timeout: 248 seconds]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
badhatter has joined #ruby
badhatter has joined #ruby
djbkd has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
AlphaAtom has quit [Ping timeout: 250 seconds]
Deele has quit [Ping timeout: 256 seconds]
jobewan has quit [Quit: Leaving]
duncannz has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor has joined #ruby
jgrevich has joined #ruby
RegulationD has joined #ruby
Rapier- has joined #ruby
zachrab has quit [Remote host closed the connection]
Rapier- has quit [Client Quit]
ftj has joined #ruby
zachrab has joined #ruby
thumpba has quit [Ping timeout: 250 seconds]
scripore has quit [Quit: This computer has gone to sleep]
ProLoser has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
fryguy9 has quit [Quit: Leaving.]
zachrab has quit [Ping timeout: 265 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lidenskap has quit [Remote host closed the connection]
failshell has joined #ruby
ponga has quit [Remote host closed the connection]
qwertme has joined #ruby
<ProLoser> hallo
Musashi007 has joined #ruby
iasoon has joined #ruby
kyrylo has quit [Ping timeout: 255 seconds]
kblake has quit [Remote host closed the connection]
failshell has quit [Ping timeout: 256 seconds]
zachrab has joined #ruby
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: ciao.]
Hijiri has joined #ruby
shellfu has quit [Remote host closed the connection]
lidenskap has joined #ruby
thatslifeson has quit [Remote host closed the connection]
snockerton has quit [Quit: Leaving.]
blazes816 has joined #ruby
Brozo has quit [Remote host closed the connection]
blazes816 has quit [Remote host closed the connection]
blazes816 has joined #ruby
sohrab has quit [Ping timeout: 256 seconds]
noname has quit [Ping timeout: 255 seconds]
tcrypt has quit [Ping timeout: 244 seconds]
moeabdol has joined #ruby
sohrab has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1.1]
blazes816 has quit [Ping timeout: 255 seconds]
nfk|laptop has quit [Quit: yawn]
TheNet has quit [Quit: Textual IRC Client: www.textualapp.com]
finisherr has left #ruby [#ruby]
juanpablo___ has joined #ruby
ftj has quit [Read error: Connection reset by peer]
mozzarella has quit [Quit: WeeChat 1.1.1]
ponga has joined #ruby
Igorshp has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
crdpink2 has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
crdpink has quit [Ping timeout: 265 seconds]
jheg has quit [Quit: jheg]
ki0 has quit [Remote host closed the connection]
juanpablo___ has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
baweaver has joined #ruby
yaw has joined #ruby
yaw has quit [Max SendQ exceeded]
mozzarella has joined #ruby
yaw has joined #ruby
yaw has quit [Max SendQ exceeded]
mallu has joined #ruby
vickleton has quit [Ping timeout: 245 seconds]
<mallu> Can you please tell me if I can do this? https://dpaste.de/fck2
yaw has joined #ruby
fmcgeough has joined #ruby
<Radar> mallu: !try
<Radar> mallu: Try it and find out.
<mallu> Radar: actually it doesn't work
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mallu> Radar: can you please give me another idea how I can accomplish it?
<Radar> No I don't know sorry.
dseitz has joined #ruby
<havenwood> mallu: For starters you create a `check` array then call #each on `checks` plural, whatever that is?
allcentury has quit [Ping timeout: 250 seconds]
drocsid has joined #ruby
giuseppesolinas has joined #ruby
tus has quit [Ping timeout: 276 seconds]
<drocsid> I tried installing the mail gem
<drocsid> sudo gem install mail
<drocsid> Successfully installed mail-2.6.3
<drocsid> 1 gem installed
<drocsid> Installing ri documentation for mail-2.6.3...
<drocsid> Installing RDoc documentation for mail-2.6.3...
swgillespie has joined #ruby
<ytti> on top of what havenwood said, you probably meant
<ytti> command = "check-rds.rb -i #{database_name} --#{check}-warning-over #{node[monitor][check][warning]} --#{check}critial-over #{node[monitor][check][critical]} --period #{period}"
<drocsid> require 'mail'
<drocsid> LoadError: no such file to load -- mail
jottr has quit [Ping timeout: 264 seconds]
<drocsid> so why am I getting the load error when I try to use it?
<havenwood> drocsid: What version of Ruby?
<drocsid> havenwood: the version included with centos
<ytti> i would advice against running programs like this
<drocsid> I think it's 1.8.7
<havenwood> drocsid: Ruby 1.8 is past end-of-life and requires `require 'rubygems'` to use RubyGems.
<ytti> the appropriate way is to pass software and arguments as array
<drocsid> ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
<ytti> instead of shell evaluation of a string
thatslifeson has joined #ruby
<havenwood> drocsid: Ruby 2.2.2!
<drocsid> havenwood: thanks, it's really to bad centos packages old versions like that...
<ytti> if you do string evaluation you need to do sanitization, and that is going to be done incorrectly anyhow
thatslifeson has quit [Remote host closed the connection]
<drocsid> centos and puppet use them
dorei has quit []
<ytti> with passing binary and arguments as array, you don't have to care about sanity
blt has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<drocsid> on my desktop i use ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
dfinninger has quit [Remote host closed the connection]
<drocsid> but I have no control in this other environment
<drocsid> thanks
jottr has joined #ruby
chrishough has joined #ruby
<banister> stı̸̸̸̸̸̸̸̸̸̸̸̸̸̸̸̸̨ole a $160,000 diamond and traded it for $20 of
<banister> ı̸̸̸̸̸̸̸̸̸̸̸̸̸̸̸̸̨
Pupeno has quit [Remote host closed the connection]
<mallu> havenwood: Can you please give me an example?
baweaver has quit [Remote host closed the connection]
<havenwood> >> check = %w(cpu memory disk); checks
<ruboto> havenwood # => undefined local variable or method `checks' for main:Object (NameError) ...check link for more (https://eval.in/320133)
<havenwood> mallu: ^
<drocsid> require rubygems fixed that gem issue. I'm now having an issue with the module itself.
<drocsid> the mail module
<drocsid> Mail.defaults do
<drocsid> delivery_method :smtp, address: "localhost", port: 25
<drocsid> end
<drocsid> ^^^ from the mail module example
<drocsid> syntax error, unexpected ':', expecting kEND delivery_method :smtp, address: "localhost", port: 25
FernandoBasso has joined #ruby
<drocsid> guess I should look at the source for expecting kEND delivery_method
<havenwood> drocsid: 1.8 doesn't support that syntax for Symbol keys.
<havenwood> drocsid: :address => "localhost", :port => 25
<havenwood> drocsid: the Hash rocket
<mallu> havenwood: I ma tryig to have a varible inside another variable
<drocsid> :delivery_method=>smtp ?
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 264 seconds]
<havenwood> drocsid: `{aim: true}` is 1.9 syntax so with the very past-end-of-life 1.8 you have to `{:aim => true}`.
<havenwood> 1.9 is also past end-of-life.
<drocsid> so confusing...
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Remote host closed the connection]
<drocsid> syntax error, unexpected tASSOC, expecting kEND
<drocsid> :delivery_method => smtp, :address => "localhost", :port => 25
jzigmund_ has joined #ruby
dopie has joined #ruby
lsmola_ has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
<havenwood> drocsid: `delivery_method` is a Method not a Symbol
zorak8 has joined #ruby
<havenwood> drocsid: `:delivery_symbol` would be a Symbol
aclapinpepin has quit [Ping timeout: 264 seconds]
noname has joined #ruby
jgrevich has quit [Quit: jgrevich]
oo_ has joined #ruby
jzigmund has quit [Ping timeout: 265 seconds]
lsmola__ has quit [Ping timeout: 244 seconds]
<drocsid> havenwood: thanks
badhatter has quit [Remote host closed the connection]
<havenwood> drocsid: `delivery_method :smtp, address: "localhost", port: 1025` is like `delivery_method(:smtp, {:address => "localhost", :port => 1025})`.
mallu has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
<havenwood> drocsid: first arg is the `method`, and second arg is the `settings` Hash
Musashi007 has quit [Quit: Musashi007]
<mistermocha> hey still new with ruby ... is there a way to pass in a CLI flag on an rspec test?
<havenwood> mistermocha: what kind of flag? have an example of what you're thinking?
<mistermocha> I'm setting up serverspec tests, which are natively rspec tests, and would like to be able to pass in a hostname on execution
thatslif_ has joined #ruby
jzigmund_ has quit [Ping timeout: 250 seconds]
<mistermocha> because otherwise I'd be editing the Rakefile every time I want to test a different host
<mistermocha> e.g.: rspec spec/my/test_spec.rb --hostname=db001.foobar.com
lsmola_ has quit [Ping timeout: 265 seconds]
<mistermocha> then my test would handle the value of --hostname appropriately and do tests to that host
jzigmund has joined #ruby
thatslif_ has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
MatthewsFace has quit [Remote host closed the connection]
<mistermocha> I have more serverspec questions if anyone is able
Eiam_ has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
bobbrez has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> mistermocha: OptionParser is in the stdlib or the Slop gem is simpler.
<mistermocha> havenwood: doesn't rspec eat the cli flags?
blt has quit [Read error: Connection reset by peer]
<mistermocha> guess I should be reading rspec docs
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
blt has joined #ruby
tus has joined #ruby
<mistermocha> ah... --tag creates symbols ... probably not a supported method, but if it works
pdoherty has joined #ruby
Channel6 has joined #ruby
zorak8 has quit [Ping timeout: 256 seconds]
predator217 has joined #ruby
zorak8 has joined #ruby
dseitz has joined #ruby
<Senjai> mistermocha: No, the CLI arguments are always stored in ARGV
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sevenseacat has joined #ruby
ag4ve_ has joined #ruby
kblake has joined #ruby
doodlehaus has quit [Remote host closed the connection]
Sembei has joined #ruby
lsmola_ has joined #ruby
predator117 has quit [Ping timeout: 250 seconds]
digitalextremist has quit [Ping timeout: 245 seconds]
mrmargolis has joined #ruby
zachrab has quit [Remote host closed the connection]
n_blownapart has joined #ruby