apeiros changed the topic of #ruby to: Ruby 2.1.3; 2.0.0-p576; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
lewix has joined #ruby
lw has quit [Quit: s]
<insaneinside> >> a = true; ! a
<eval-in_> insaneinside => false (https://eval.in/202298)
<insaneinside> dr_toboggan: context?
<havenwood> rfi_: i'd suggest an uninstall of all rpm gem packages and exclusive use of `gem` to install gems
<dr_toboggan> in a function, i have: if *not something* ...
<dr_toboggan> but !variable_name doesn't work
<insaneinside> dr_toboggan: sorry then, no idea
<dr_toboggan> i could do: if variable_name == false || variable_name == nil ...
<dr_toboggan> but i thought there might be something better
davasaurous has quit [Ping timeout: 260 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<insaneinside> no no no, don't test for nil like that
<insaneinside> use variable_name.nil?
<insaneinside> :)
<dr_toboggan> ok
<havenwood> rfi_: Also get a more modern Ruby if you can. 1.8 is past end-of-life. 2.1.3 is current stable. 1.9.3+ is supported.
<tmoore> dr_toboggan: why does !variable_name not work?
<dr_toboggan> tmoore: it tries to call variable_name as a function with zero arguments
<tmoore> Then there's something else wrong... you haven't declared the variable
<dr_toboggan> it's an argument to the function
<tmoore> Can you post the whole method in a gist?
<rfi_> unfortunatley ruby is primarily used for puppet and we are not on a version that supports much newer than that yet
<dr_toboggan> hang on
emocakes has joined #ruby
thagomizer has quit [Quit: Leaving.]
fgo has quit [Ping timeout: 245 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
<dr_toboggan> tmoore: wait, nevermind, i see where i screwed
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
<rfi_> thanks for the help though!
<dr_toboggan> up
<tmoore> :-)
neonixcoder has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
|\|370 has quit [Ping timeout: 244 seconds]
<neonixcoder> Is there any site where I can learn ruby modules like the one with Python(pymotw.com)?
dideler has quit [Ping timeout: 272 seconds]
dc__ has joined #ruby
zorak8 has quit [Ping timeout: 250 seconds]
<benzrf> neonixcoder: huh?
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<neonixcoder> any one here?
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<insaneinside> neonixcoder: yes, `/names` lists many people.
jonmorehouse has quit [Ping timeout: 272 seconds]
mpistone has quit [Remote host closed the connection]
ARCADIVS has joined #ruby
j_mcnally has joined #ruby
<insaneinside> neonixcoder: usually someone will answer your question if they know a good answer to it.
krisquigley has joined #ruby
kotk_ has joined #ruby
c107 has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
boombadaroomba has joined #ruby
wjimenez5271 has joined #ruby
d0ugb has joined #ruby
skammer3 has quit [Ping timeout: 245 seconds]
kotk has quit [Ping timeout: 250 seconds]
krisquigley has quit [Ping timeout: 244 seconds]
codezomb has joined #ruby
finisherr has quit [Quit: finisherr]
<havenwood> neonixcoder: have you taken a look at?: http://www.ruby-doc.org/stdlib-2.1.3/
boombadaroomba has quit [Ping timeout: 258 seconds]
tylersmith has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
d0ugb has quit [Remote host closed the connection]
neonixcoder has quit [Quit: Leaving.]
IrishGringo has quit [Ping timeout: 260 seconds]
mary5030 has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 240 seconds]
kenneth has joined #ruby
<havenwood> neonix, oops gone. was going to say also: http://www.ruby-doc.org/core-2.1.3/
mary5030 has joined #ruby
<havenwood> really shoulda just linked: http://www.ruby-doc.org/
goodenough has quit [Remote host closed the connection]
jottr_ has joined #ruby
<havenwood> of the stdlib, the "well documented" ones are just date, drb and optparse - ouch
agrinb has quit [Ping timeout: 272 seconds]
agjacome has quit [Quit: leaving]
zz_karupa is now known as karupa
thsig has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 260 seconds]
mary5030 has quit [Ping timeout: 272 seconds]
cndiv has quit [Ping timeout: 260 seconds]
GinoMan has joined #ruby
asteros has quit [Quit: asteros]
jottr_ has quit [Ping timeout: 245 seconds]
hamakn has joined #ruby
gilr00y has joined #ruby
fgo has joined #ruby
henrix_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
neonixcoder has joined #ruby
<henrix_> for some reason every time i raise an error it is not caught by my rescue block, i do begin raise "err" rescue => e puts e end
<neonixcoder> havenwood: Thanks, Let me check it
<neonixcoder> insaneinside: Sorry for that
henrix_ has quit [Client Quit]
wallerdev has joined #ruby
cpruitt has joined #ruby
cpruitt has quit [Client Quit]
jasooon has joined #ruby
pdais has left #ruby [#ruby]
chipotle has quit [Ping timeout: 260 seconds]
jrhe_ has quit [Quit: Connection closed for inactivity]
cpruitt has joined #ruby
pontiki has joined #ruby
asteros has joined #ruby
Hobogrammer has quit [Ping timeout: 245 seconds]
larsam has joined #ruby
justinmburrous has joined #ruby
ARCADIVS has quit [Ping timeout: 245 seconds]
snath has quit [Ping timeout: 260 seconds]
<insaneinside> neonixcoder: i was being mean, don't pay too much attention to me. :)
jasooon has quit [Ping timeout: 244 seconds]
<insaneinside> (that is, i'm sorry for being mean to *you*)
cpruitt has quit [Client Quit]
tuelz has quit [Read error: Connection reset by peer]
spastorino has quit [Quit: Connection closed for inactivity]
jimmyhoughjr has joined #ruby
tuelz has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
neonixcoder has quit [Quit: Leaving.]
dev_ryan has quit [Ping timeout: 260 seconds]
mrbobman has quit [Quit: Page closed]
zorak8 has joined #ruby
justinmburrous has quit [Ping timeout: 272 seconds]
robustus has joined #ruby
mwmnj has joined #ruby
<mwmnj> Anyone good at regex?
tuelz has quit [Read error: Connection reset by peer]
<mwmnj> I am trying to replace percents with %% if they are not followed by a specific character {
tuelz has joined #ruby
neonixcoder has joined #ruby
skolman_ has quit [Remote host closed the connection]
<insaneinside> mwmnj: you want negative-lookahead expressions
skolman_ has joined #ruby
snath has joined #ruby
tuelz has quit [Read error: Connection reset by peer]
tuelz has joined #ruby
charliesome has joined #ruby
rubyonrailed has quit [Remote host closed the connection]
oo_ has joined #ruby
<mwmnj> insaneinside: thanks!, /%(?!{)/g does it
devdazed has joined #ruby
lolmaus has joined #ruby
dte has quit [Remote host closed the connection]
mwmnj has quit [Quit: Page closed]
ARCADIVS has joined #ruby
skolman_ has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mferrier has quit []
sevenseacat has joined #ruby
txdv has quit [Ping timeout: 260 seconds]
Hobogrammer has joined #ruby
dev_ryan has joined #ruby
lw has joined #ruby
spyderman4g63 has joined #ruby
lampd1 has joined #ruby
GriffinHeart has joined #ruby
migimunz has quit [Ping timeout: 260 seconds]
lw has quit [Ping timeout: 244 seconds]
pwh has quit []
lw has joined #ruby
pwh has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
GriffinHeart has quit [Ping timeout: 246 seconds]
chipotle has joined #ruby
rubyonrailed has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
skolman has joined #ruby
spyderman4g63 has joined #ruby
endash has joined #ruby
bricker`work has quit [Ping timeout: 246 seconds]
spicerack has joined #ruby
stunder has quit [Quit: Screw you guys I'm going home]
wallerdev has quit [Quit: wallerdev]
shosti has quit [Ping timeout: 245 seconds]
PanPan has joined #ruby
Asher has joined #ruby
spyderman4g63 has quit [Ping timeout: 245 seconds]
Sp4rKy has quit [Ping timeout: 245 seconds]
Guest19069 has quit [Ping timeout: 272 seconds]
Sp4rKy has joined #ruby
Sp4rKy is now known as Guest41741
mikecmpbll has quit [Quit: i've nodded off.]
Wolland_ has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
jasooon has joined #ruby
Sp4rKy_ has joined #ruby
jordsmi has left #ruby [#ruby]
skolman has quit [Remote host closed the connection]
skammer3 has joined #ruby
skolman_ has joined #ruby
dte has joined #ruby
volty has joined #ruby
Wolland__ has joined #ruby
merqlove has quit [Quit: Connection closed for inactivity]
klaut has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
jadedphone has quit [Read error: Connection reset by peer]
Wolland_ has quit [Ping timeout: 258 seconds]
jadedphone has joined #ruby
skolman_ has quit [Ping timeout: 272 seconds]
dc___ has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
skammer3 has quit [Ping timeout: 272 seconds]
lw has quit [Ping timeout: 246 seconds]
aspires has quit []
dc__ has quit [Ping timeout: 272 seconds]
rubyonrailed has quit [Remote host closed the connection]
Wolland has joined #ruby
yfeldblum has quit [Remote host closed the connection]
ovoraptor has quit [Remote host closed the connection]
cherwin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland__ has quit [Ping timeout: 240 seconds]
msmith_ has joined #ruby
msmith_ has quit [Remote host closed the connection]
msmith_ has joined #ruby
Wolland_ has joined #ruby
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lw has joined #ruby
nemesit|znc has quit [Ping timeout: 246 seconds]
sanguisdex has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
yfeldblu_ has joined #ruby
AtumT has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 240 seconds]
bricker`LA has joined #ruby
nemesit|znc has joined #ruby
threesixes has quit [Quit: SATAN!!!!!!!!]
<havenwood> $LOAD_PATH.shuffle!
yfeldblum has quit [Remote host closed the connection]
agrinb has joined #ruby
lw has quit [Read error: Connection reset by peer]
omosoj has quit [Quit: leaving]
mary5030 has joined #ruby
agrinb_ has joined #ruby
Mia has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
dev_ryan has quit [Ping timeout: 272 seconds]
AndroUser466 has joined #ruby
agrinb has quit [Ping timeout: 260 seconds]
zz_jrhorn424 is now known as jrhorn424
emocakes is now known as muddkipz
muddkipz is now known as mudkipz
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mudkipz is now known as emocakes
Wolland has joined #ruby
AndroUser466 has quit [Client Quit]
fgo has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 245 seconds]
tbrock_ has joined #ruby
Wolland__ has joined #ruby
Wolland_ has quit [Ping timeout: 245 seconds]
TorpedoSkyline has joined #ruby
jrhorn424 is now known as zz_jrhorn424
cndiv has joined #ruby
Wolland_ has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
tylersmith has joined #ruby
crazydiamond has quit [Ping timeout: 258 seconds]
Scotteh has quit [Read error: Connection reset by peer]
davasaur_ has quit [Remote host closed the connection]
IrishGringo has joined #ruby
Scotteh has joined #ruby
Wolland__ has quit [Ping timeout: 272 seconds]
<dr_toboggan> epitron: i got my matching code working, line 140 is something i want to match, and line 153 should successfully match, while line 166 doesn't match
ghr has quit [Read error: Connection reset by peer]
agrinb_ has quit [Remote host closed the connection]
ghr has joined #ruby
Wolland has joined #ruby
<insaneinside> havenwood: you *really* think that's a good idea?
<insaneinside> :P
Avahey has joined #ruby
asteros has quit [Quit: asteros]
Wolland__ has joined #ruby
hamakn has quit [Remote host closed the connection]
sanguisdex has joined #ruby
zz_jrhorn424 is now known as jrhorn424
hamakn has joined #ruby
emanu has quit [Quit: emanu]
Wolland_ has quit [Ping timeout: 240 seconds]
<Nilium> Whenever anyone emails me about using OpenGL in Ruby, they're always asking me questions about stuff that's been deprecated or considered legacy for like.. years. Many years.
ValicekB has quit [Ping timeout: 260 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Nilium> Which isn't really their fault, it's more that nobody writes new tutorials for OpenGL, and nobody just reads the docs 'cause they're useless if you don't already know what you're doing.
benzrf is now known as benzrf|offline
kenneth has joined #ruby
dev_ryan has joined #ruby
lampd1 has quit []
<insaneinside> I tried learning about *modern* OpenGL about a year ago. I wanted to draw wireframes (application-specific thing...), but the docs said I had to write vertex and fragment shaders.
Wolland has quit [Ping timeout: 272 seconds]
<insaneinside> Nope.
<dr_toboggan> insaneinside: yeah, that drives me nuts
aspires has joined #ruby
benzrf|offline is now known as benzrf
<insaneinside> dr_toboggan: what, the shaders?
<dr_toboggan> insaneinside: modern opengl
hamakn has quit [Ping timeout: 272 seconds]
<dr_toboggan> well, heh, i also don't have the time to get into it nowadays. i've got other stuff to do
klaut has quit [Remote host closed the connection]
dev_ryan has quit [Client Quit]
<insaneinside> i'm the sort of person who will upgrade to the latest and greatest because i'd rather learn new things when they really *are* new
TorpedoSkyline has joined #ruby
<dr_toboggan> eh, there's lots of solid, existing systems out there. there's a tradeoff between getting my professional work done, and being completely bleeding edge on everything
jhass is now known as jhass|off
havenwood has quit [Remote host closed the connection]
pwh has quit []
volty has quit [Quit: Konversation terminated!]
pwh has joined #ruby
dx7 has joined #ruby
TorpedoSkyline has quit [Client Quit]
phao has left #ruby ["Leaving"]
tbrock_ has quit [Remote host closed the connection]
D9 has quit [Quit: Leaving]
jonmorehouse has joined #ruby
ValicekB has joined #ruby
tbrock_ has joined #ruby
tyll_ has joined #ruby
krisquigley has joined #ruby
hamakn has joined #ruby
oleo__ has joined #ruby
oleo is now known as Guest49063
reset has quit [Quit: Leaving...]
reset has joined #ruby
tyll has quit [Ping timeout: 272 seconds]
Scotteh has quit [Ping timeout: 245 seconds]
cpruitt has joined #ruby
slester has joined #ruby
yetanoth1rdave has quit [Ping timeout: 245 seconds]
yetanotherdave has quit [Ping timeout: 260 seconds]
Guest49063 has quit [Ping timeout: 240 seconds]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Client Quit]
<dr_toboggan> epitron: er, this is the url: https://paste.ee/p/ppm6z (because i'm taking down the gist paste)
krisquigley has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
fandi has joined #ruby
chouchen has quit [Ping timeout: 260 seconds]
reset has quit [Ping timeout: 258 seconds]
TorpedoSkyline has joined #ruby
slbmeh has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
pwh has quit []
skolman has joined #ruby
pwh has joined #ruby
skammer3 has joined #ruby
slester has quit [Quit: Quitte]
emocakes has quit []
slester has joined #ruby
agrinb has joined #ruby
emocakes has joined #ruby
asteros has joined #ruby
sanguisdex has quit [Ping timeout: 272 seconds]
skammer3 has quit [Ping timeout: 245 seconds]
geggam has quit [Ping timeout: 245 seconds]
jonmorehouse has quit [Ping timeout: 272 seconds]
omosoj has joined #ruby
radic has quit [Disconnected by services]
Spami has quit [Quit: This computer has gone to sleep]
radic_ has joined #ruby
jonmorehouse has joined #ruby
justinmburrous has joined #ruby
lw has joined #ruby
yokel has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
emocakes__ has joined #ruby
pwh has quit []
emocakes has quit [Ping timeout: 245 seconds]
ARCADIVS has quit [Quit: WeeChat 0.4.3]
pwh has joined #ruby
fgo has joined #ruby
tectonic has joined #ruby
otakbeku has joined #ruby
Spami has joined #ruby
bmurt has quit []
jonmorehouse has quit [Ping timeout: 260 seconds]
davasaurous has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
yokel has joined #ruby
jrhorn424 is now known as zz_jrhorn424
insaneinside has left #ruby ["bye bye"]
maestrojed has quit [Quit: Computer has gone to sleep.]
endash has quit [Quit: endash]
cpruitt has quit [Quit: cpruitt]
bricker`LA has quit [Ping timeout: 272 seconds]
bryanculver has joined #ruby
endash has joined #ruby
aspires has quit []
devdazed has joined #ruby
pwh has quit []
pwh has joined #ruby
coderdad has joined #ruby
coderdad has quit [Remote host closed the connection]
otakbeku has quit [Ping timeout: 260 seconds]
tbrock_ has quit [Quit: Computer has gone to sleep.]
fgo has joined #ruby
jonmorehouse has joined #ruby
Wolland__ has quit []
p0sixpscl has joined #ruby
BTRE has joined #ruby
endash has quit [Quit: endash]
iliketurtles has joined #ruby
bmurt has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
coderdad has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
dte has quit [Remote host closed the connection]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
freerobby has joined #ruby
Vile` has quit [Remote host closed the connection]
paulfm has joined #ruby
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
jonmorehouse has quit [Ping timeout: 260 seconds]
pwh has quit []
pwh has joined #ruby
bmurt has quit []
Vile` has joined #ruby
Musashi007 has quit [Quit: Musashi007]
lw has quit [Read error: Connection reset by peer]
evvel2_ has joined #ruby
lw has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
<evvel2_> Hi all, have a newbie question, im using trollop to get options from the command line and i have a definition that I want to pass the options to. Since trollop creates a hash, how do I pass a hash into a definition?
arup_r has joined #ruby
agrinb has quit [Ping timeout: 260 seconds]
Musashi007 has joined #ruby
Takle has joined #ruby
braincrash has quit [Quit: bye bye]
mpistone has joined #ruby
benzrf is now known as benzrf|offline
slester has quit [Ping timeout: 240 seconds]
yetanotherdave has joined #ruby
rubyonrailed has joined #ruby
SixshooterLady has joined #ruby
bricker`LA has joined #ruby
<SixshooterLady> hi bricker
braincrash has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
<SixshooterLady> hi brain
<tmoore> evvel2_: what do you mean by "a definition"? Do you have a code example?
deric_skibotn has quit [Ping timeout: 244 seconds]
nsxt has joined #ruby
<SixshooterLady> hi nsxt
<nsxt> SixshooterLady: hi
<nsxt> SixshooterLady: was not expecting a greeting :)
Kricir has joined #ruby
<SixshooterLady> well, i tend to be friendly :)
justinmburrous has quit [Remote host closed the connection]
<nsxt> SixshooterLady: thanks... quite nice of you! i was going to wait before asking anything to see if anyone was around. seems quiet now...
skammer3 has joined #ruby
<SixshooterLady> hi skammer
<nsxt> maybe you can help though?
justinmburrous has joined #ruby
<SixshooterLady> yeah, someone asked a question earlier, but i've not seen a response
<SixshooterLady> hi justin
<nsxt> i'm looking for a lib (likely a very lightweight parser) which will help me parse a string like this: "test{{ctrl+v}}me" into something like [[:string, "test"], [:interpolation, "ctrl+v"], [:string, "me"]]
<nsxt> mustache comes _really_ close, but it doesn't allow for "+" characters inside the tags
<SixshooterLady> whoa...you lost me there, dude...i am not a programmer by any means :)
pwh has quit []
<evvel2_> tmoore: Ive figured it out, was being a bone head
<dr_toboggan> nsxt: might end up having to use regular expressions
pwh has joined #ruby
<nsxt> dr_toboggan: Sure, I was thinking that, but I'm unaware of any method that will sort out matches/non-matches (presuming that the regex is targeting what's inside the "{{ }}")
<SixshooterLady> hi pwh
<SixshooterLady> yeah, i was thinking that, too ;)
<nsxt> also, order is important, as i'll need to reconstruct the string
jontmorehouse has joined #ruby
justinmburrous has quit [Read error: No route to host]
zakiazigazi has joined #ruby
<SixshooterLady> hi jont
skammer3 has quit [Ping timeout: 244 seconds]
<SixshooterLady> hi zak
justinmburrous has joined #ruby
<dr_toboggan> nsxt: you should try to match the first set of {{ , then with the remainder, try to match off the second set of }}
<SixshooterLady> last time i reconstructed the string was when i was trying to crochet an afghan
<sevenseacat> that isnt going to get really annoying in a hurry
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dr_toboggan> shouldn't be too hard, but it'll depend on what you expect
<dr_toboggan> like would " {{ " throw an error or would you just pass that string through unscathed?
omosoj has quit [Quit: leaving]
<nsxt> should pass through unscathed because there's no matching closing delimiters
iliketurtles has quit [Quit: zzzzz…..]
<nsxt> sevenseacat: yeah, that's my worry, that regex is just going to turn into a nightmare. also.. i'll need to support "literal" double braces as well...
<dr_toboggan> oh, how would that be represented?
zakiazigazi has quit [Client Quit]
<nsxt> dr_toboggan: not sure just yet... haven't thought it through entirely. my guess is that it'd be something like "\{{"
<SixshooterLady> multicolored yarn
<dr_toboggan> oh
chouchen has joined #ruby
<SixshooterLady> hi chouchen
paulfm has quit []
Blizzy has quit [Quit: Java loves to Stack Overflow]
<nsxt> i thought about monkey patching mustache, but overriding constants to allow for a "+" sign... meh: https://github.com/mustache/mustache/blob/master/lib/mustache/parser.rb#L81
<SixshooterLady> monkey patching????
<SixshooterLady> thanks, i think ;)
<nsxt> SixshooterLady: you're welcome. are you studying ruby?
<SixshooterLady> i don't even know what ruby is ;)
<SixshooterLady> maybe i'm in the wrong channel
<havenwood> SixshooterLady: http://tryruby.org/
sanguisdex has joined #ruby
<nsxt> SixshooterLady: how'd you end up on freenode?
<havenwood> SixshooterLady: give it a try ^
<SixshooterLady> ok :)
sevenseacat is now known as Karpah
lampd1 has joined #ruby
GinoMan has quit [Ping timeout: 272 seconds]
<SixshooterLady> i ended up on freenode because I tried the undernet, where i used to go years ago and nobody would talk to me in any channels...i googled IRC wondering what has happened in the years since i've been on here...i read that freenode was the leading server now...so i got on...i saw a lot of people in ruby so i joined....LOL...color me dumb
devdazed has joined #ruby
<nsxt> SixshooterLady: haha, interesting.
wjimenez5271 has quit [Remote host closed the connection]
<nsxt> SixshooterLady: maybe it's a happy accident? maybe you'll become a Ruby prodigy
<SixshooterLady> matusmoto :)
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
koderok has joined #ruby
<SixshooterLady> hi koder
devdazed has quit [Client Quit]
pwh has quit []
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<SixshooterLady> not sure about that...i'm retired
pwh has joined #ruby
<nsxt> SixshooterLady: never too late to learn
justinmburrous has quit [Remote host closed the connection]
<SixshooterLady> oh, i agree...i'm just not sure programming is really my passion
terrellt has quit [Ping timeout: 260 seconds]
justinmburrous has joined #ruby
rubyonrailed has quit [Remote host closed the connection]
<havenwood> SixshooterLady: we have foxes and chunky bacon, unicorn and rainbows. give it a try.
neonixcoder has quit [Quit: Leaving.]
<SixshooterLady> LOL
justinmburrous has quit [Read error: No route to host]
emmesswhy has joined #ruby
lewix is now known as Lewiz
justinmburrous has joined #ruby
Lewiz is now known as Lewix
<havenwood> SixshooterLady: that book ^ is accompanied by this soundtrack: http://mislav.uniqpath.com/poignant-guide/soundtrack/
Wolland has joined #ruby
kwd has quit [Quit: I'm using a Free IRC Bouncer from BNC4FREE - http://bnc4free.com/]
<havenwood> i rather like track 2
<SixshooterLady> well, at least you all actually chat in here :)
terrellt has joined #ruby
<SixshooterLady> even if it's things i don't get
koderok has quit [Quit: koderok]
<SixshooterLady> you are saying there is music with ruby?
<havenwood> SixshooterLady: Ruby can create music and control robots that dance to it.
<SixshooterLady> wow, that's impressive
<SixshooterLady> and here i thought this might be about gems ;)
slester has joined #ruby
<havenwood> we have tens of thousands of gems
<SixshooterLady> i like rubies, almost as emeralds
<havenwood> SixshooterLady: http://rubygems.org/
<havenwood> SixshooterLady: 3,751,991,519 gems downloaded
<nsxt> havenwood: haha, she's going to be an expert in no time
gilr00y has quit [Remote host closed the connection]
<SixshooterLady> any diamonds?
<havenwood> SixshooterLady: hundreds of more gems have now been downloaded
<havenwood> SixshooterLady: well, there's a gem called diamond
<havenwood> SixshooterLady: you can install it with: gem install diamond
<havenwood> SixshooterLady: (it's a MIDI arpeggiator)
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<SixshooterLady> so, nsxt, have we helped you with your problem?
<SixshooterLady> hi oo
top4o has quit [Quit: ChatZilla 0.9.91 [Firefox 32.0.3/20140923175406]]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
r4um has joined #ruby
<nsxt> SixshooterLady: no, but you've lifted my spirits
<SixshooterLady> (smirking...as if *I* helped)
<havenwood> now over 10,000 gems have been downloaded since i mentioned
armyriad has joined #ruby
<SixshooterLady> hi army
pwh has quit []
pwh has joined #ruby
<SixshooterLady> pwh seems to have trouble holding on
jonathanwallace has joined #ruby
<SixshooterLady> down, pwh, STAY
krisquigley has joined #ruby
<SixshooterLady> hi kris
<nsxt> dr_toboggan: /(?<start>.*?)(?<tag_start>{{)(?<command>.*?)(?<tag_close>}})/.match "tell\{{me}}something"
bricker`LA has quit [Quit: leaving]
oo_ has quit [Ping timeout: 260 seconds]
<nsxt> that seems to get me close enough... a little more tweaking and i should be all set. thanks.
oo_ has joined #ruby
kwd has joined #ruby
rubyonrailed has joined #ruby
gkra has quit [Ping timeout: 258 seconds]
<SixshooterLady> yes, nsxt, just tweak and you're good to go :)
<SixshooterLady> glad we could help ;)
<nsxt> SixshooterLady: haha, have a good one
<SixshooterLady> you, too
gkra has joined #ruby
pagioss has quit [Ping timeout: 272 seconds]
gccostabr has quit [Quit: ZZZzzz…]
krisquigley has quit [Ping timeout: 260 seconds]
circ-user-PLBzd has joined #ruby
jontmorehouse has quit [Ping timeout: 260 seconds]
<circ-user-PLBzd> hello
<SixshooterLady> hi circ
nsxt has quit [Quit: Leaving]
ghostmoth has joined #ruby
<circ-user-PLBzd> hello
<circ-user-PLBzd> Is this the ruby irc
<SixshooterLady> yes, it is
<circ-user-PLBzd> sweet
<SixshooterLady> what can i help you with?
<circ-user-PLBzd> How do I become a better ruby programmer
<circ-user-PLBzd> I have done all the Codeacamedy stuff, Learn Ruby the Hard way, etc
<SixshooterLady> practice
<dr_toboggan> circ-user-PLBzd: ruby the programming language or ruby the precious gem? because the other ruby people have a different irc channel...
<circ-user-PLBzd> I am here for conflict diamonds sir
<circ-user-PLBzd> for conflict jewels
<circ-user-PLBzd> lol
justinmburrous has quit [Remote host closed the connection]
<dr_toboggan> haha
<circ-user-PLBzd> lol Toboggan
<circ-user-PLBzd> Always Sunny is funny
<dr_toboggan> damn straight
coderdad has quit [Remote host closed the connection]
Sharker has quit [Ping timeout: 264 seconds]
coderdad has joined #ruby
<SixshooterLady> hi coder
<circ-user-PLBzd> Hey
<circ-user-PLBzd> So what resources can you guys point me to
Sharker has joined #ruby
emmesswhy has quit [Quit: Leaving]
<circ-user-PLBzd> ?
jontmorehouse has joined #ruby
<circ-user-PLBzd> ???
circ-user-PLBzd has quit [Remote host closed the connection]
coderdad has quit [Remote host closed the connection]
pagioss has joined #ruby
<dr_toboggan> you probably could use practice. write stuff. and then write some more stuff. and it'll gradually suck less
<SixshooterLady> practice
work_op has quit [Changing host]
work_op has joined #ruby
sanguisdex has left #ruby [#ruby]
goodenough has joined #ruby
pwh has quit []
<SixshooterLady> ok, nighters....seeya'll later
gkra has quit [Ping timeout: 244 seconds]
pwh has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
SixshooterLady has left #ruby [#ruby]
aspires has joined #ruby
rshetty has joined #ruby
otakbeku has joined #ruby
agrinb has joined #ruby
dx7_ has joined #ruby
arup_r has quit [Quit: Leaving.]
gkra has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
gkra has quit [Changing host]
gkra has joined #ruby
otakbeku has quit [Client Quit]
otakbeku has joined #ruby
skammer3 has joined #ruby
rubie has quit [Ping timeout: 246 seconds]
agrinb has quit [Ping timeout: 260 seconds]
dx7 has quit [Ping timeout: 246 seconds]
boombadaroomba has joined #ruby
dx7_ has quit [Ping timeout: 245 seconds]
skammer3 has quit [Ping timeout: 250 seconds]
boombadaroomba has quit [Ping timeout: 250 seconds]
pwh has quit []
<pontiki> hallo, again
aspires has quit []
pwh has joined #ruby
magic_ is now known as magic
magic has quit [Changing host]
magic has joined #ruby
dx7 has joined #ruby
mary5030 has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 260 seconds]
r4um has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
r4um has joined #ruby
r4um has quit [Client Quit]
Kricir has quit [Remote host closed the connection]
cocotton has joined #ruby
Kricir has joined #ruby
farn has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
davasaur_ has joined #ruby
c107 has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 244 seconds]
Kricir has quit [Ping timeout: 240 seconds]
pwh has quit []
nonmadden has joined #ruby
Lewix has quit [Remote host closed the connection]
pwh has joined #ruby
jasooon has quit [Ping timeout: 272 seconds]
pwh_ has joined #ruby
davasaurous has quit [Ping timeout: 272 seconds]
kyb3r_ has joined #ruby
gkra has quit [Ping timeout: 245 seconds]
pwh__ has joined #ruby
Lewix has joined #ruby
pwh___ has joined #ruby
pwh____ has joined #ruby
gkra has joined #ruby
Lewix has quit [Remote host closed the connection]
pwh_____ has joined #ruby
Pupeno_ has joined #ruby
pwh_____ has quit [Client Quit]
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
pwh has quit [Ping timeout: 245 seconds]
Pupeno has quit [Ping timeout: 260 seconds]
pwh has joined #ruby
pwh_ has quit [Ping timeout: 260 seconds]
RyanV has joined #ruby
pwh_ has joined #ruby
oo_ has quit [Remote host closed the connection]
koderok has joined #ruby
oo_ has joined #ruby
pwh_____ has joined #ruby
pwh__ has quit [Ping timeout: 272 seconds]
koderok has quit [Client Quit]
pwh___ has quit [Ping timeout: 260 seconds]
tectonic has quit []
pwh__ has joined #ruby
pwh___ has joined #ruby
pwh____ has quit [Ping timeout: 272 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
pwh____ has joined #ruby
pwh____ has quit [Client Quit]
<epitron> dr_toboggan: lol, i still have no idea what your code is doing
<epitron> having the whole thing helps a little
IceDragon has quit [Quit: Space~~~]
pwh has quit [Ping timeout: 250 seconds]
neonixcoder has joined #ruby
pwh has joined #ruby
<dr_toboggan> epitron: math stuff that i stared at for awhile until it made sense
freerobby has quit [Quit: Leaving.]
pwh_ has quit [Ping timeout: 260 seconds]
<epitron> i see example json objects, but i don't see any example specs
pwh_ has joined #ruby
pwh_____ has quit [Ping timeout: 244 seconds]
<epitron> o_O
<epitron> so these are regexes?
<dr_toboggan> yeah
<epitron> btw, cdr would be faster if it was z[1..-1]
<dr_toboggan> i find text regexes to be annoying because the syntax is super specific. single characters can mean the difference
<epitron> instead of dup; pop
<epitron> err, dup;shift
<dr_toboggan> epitron: does that make a separate copy? that's why i went with dup, i wasn't sure
<epitron> yep
<dr_toboggan> ah, ok
pwh___ has quit [Ping timeout: 250 seconds]
<epitron> things that don't make a copy are assignment (z[1..5] = [x]) and things that end in !
pwh__ has quit [Ping timeout: 272 seconds]
pwh_____ has joined #ruby
<epitron> like z.map!
<dr_toboggan> yeah, that makes sense
<dr_toboggan> i like languages with more liberal rules about what can be in identifiers
<epitron> i almost never mutate arrays
<dr_toboggan> yeah
rshetty has quit [Remote host closed the connection]
Interpolex has quit []
<epitron> sometimes pop is handy though
GinoMan has joined #ruby
pwh__ has joined #ruby
pwh__ has quit [Client Quit]
<epitron> cons can work the same too: def cons(ncar, tail); [ncar] + tail; end
jusmyth has joined #ruby
pwh__ has joined #ruby
<dr_toboggan> ok
justinmburrous has joined #ruby
<epitron> so :seq is concatenation?
<dr_toboggan> yeah
<epitron> i see
<dr_toboggan> [:seq, 3, 4, 5] matches [3, 4, 5]
clauswitt has joined #ruby
<dr_toboggan> not [3, 4] nor [3, 4, 5, 6]
pwh has quit [Ping timeout: 272 seconds]
pwh___ has joined #ruby
<epitron> yep
pwh_ has quit [Ping timeout: 260 seconds]
<epitron> i'm predicting this will be a bit slow
<epitron> i hope it doesn't need to serve a lot of requests per second
pwh has joined #ruby
<dr_toboggan> yeah? what about it specifically would be slow?
<epitron> implementing lisp in ruby :)
<epitron> lisp lists are designed to have the head popped off
<epitron> ruby lists are designed to have the tail popped off
pwh_____ has quit [Ping timeout: 250 seconds]
<dr_toboggan> oh, really? huh
pwh_ has joined #ruby
<epitron> that's why popping off the head is called "shift" -- because it copies everything to the left by one element
<epitron> just slicing the list will save you an extra copying of the whole list
<epitron> (compared to dup; shift)
<dr_toboggan> well, if that because too bad a problem, i can flip all the lists before i hand it off to the function, and rewrite car, cdr, and cons to do the reverse
<dr_toboggan> hell, if it's too much a problem, i can verify the data before it gets to the ruby process
<dr_toboggan> i've got lots of options
<epitron> it might not be a big problem
<epitron> and i'm guessing you're not doing thousands of requests per second
pwh____ has joined #ruby
<dr_toboggan> i'd tell my boss to let me use lisp or to find someone else, in that case
<dr_toboggan> heh
<epitron> sure, just shell out to a lisp interpreter
pwh__ has quit [Ping timeout: 246 seconds]
<epitron> bam!
<dr_toboggan> epitron: nah, i use a lisp that compiles to C
davasaur_ has quit [Remote host closed the connection]
<epitron> or that :)
<epitron> so what do your specs look like?
<epitron> i'm still not sure how they work
pwh__ has joined #ruby
pwh__ has quit [Client Quit]
<dr_toboggan> epitron: oh, did you see the end of the paste i gave you?
<dr_toboggan> let me find that
<epitron> those are example json blobs
pwh___ has quit [Ping timeout: 260 seconds]
<epitron> ohhh
<dr_toboggan> yep
<epitron> sorry, the first one is a spec
<epitron> i see
<dr_toboggan> yeah
HelperW__ has joined #ruby
pwh__ has joined #ruby
rshetty has joined #ruby
<dr_toboggan> and i can define elements piecemeal, so i can have a variable of the languages we support
pwh has quit [Ping timeout: 244 seconds]
<dr_toboggan> languages = [:or, 'en', 'ru']
<dr_toboggan> and have all the calls incorporate languages
<dr_toboggan> etc
<dr_toboggan> (er, all the call specs)
pwh has joined #ruby
pwh_ has quit [Ping timeout: 246 seconds]
pwh_ has joined #ruby
Channel6 has quit [Quit: Leaving]
pwh____ has quit [Ping timeout: 245 seconds]
pwh___ has joined #ruby
pwh___ has quit [Client Quit]
davasaurous has joined #ruby
pwh___ has joined #ruby
pwh___ has quit [Client Quit]
pwh__ has quit [Ping timeout: 260 seconds]
jimmyy has joined #ruby
HelperW__ has quit [Ping timeout: 246 seconds]
Musashi007_ has joined #ruby
pwh__ has joined #ruby
Musashi007 has quit [Read error: Connection reset by peer]
Musashi007_ is now known as Musashi007
pwh has quit [Ping timeout: 260 seconds]
jasooon has joined #ruby
<epitron> dr_toboggan: there you go -- https://gist.github.com/fda414da483e38ad3533
pwh has joined #ruby
<epitron> for "or", i just put an array in the spec
pwh_ has quit [Ping timeout: 272 seconds]
pwh_ has joined #ruby
<epitron> oh wait, tiny bug
pwh___ has joined #ruby
<epitron> reload
<epitron> just had to add a "return false" for the recursive call
pwh____ has joined #ruby
<epitron> oops, it also doesn't care if the example has extra fields
<epitron> do you care about that?
Suchit has joined #ruby
<dr_toboggan> epitron: uhh, i was debating about that. i might prefer to check for them, but it's not vital
<dr_toboggan> but i'll take a look at this tomorrow, thanks
pwh_____ has joined #ruby
<epitron> easy solution:
<epitron> return false unless spec.keys == example.keys :)
<dr_toboggan> heh, well alright
<epitron> there
<epitron> updated
pwh__ has quit [Ping timeout: 258 seconds]
pwh______ has joined #ruby
pwh______ has quit [Client Quit]
justinmburrous has quit [Remote host closed the connection]
<dr_toboggan> epitron: hmm, i don't think this fits with my goals. like i'll have more complicated specs later
pwh has quit [Ping timeout: 260 seconds]
<epitron> you can do that too
<epitron> just make classes
<epitron> DSL, baby!
lampd1 has quit [Remote host closed the connection]
pwh_ has quit [Ping timeout: 250 seconds]
pwh has joined #ruby
<epitron> in the case statement, you can have "when Star"
<epitron> then just make a "star" method
jasooon has quit [Ping timeout: 260 seconds]
<dr_toboggan> yeah, i was looking into that solution first
Suchit has quit [Read error: Connection reset by peer]
<epitron> have it return a class
Suchit_ has joined #ruby
<dr_toboggan> yeah
<epitron> spec = { "hello" => star("what") }
<epitron> i dunno what you'd want to repeat
pwh___ has quit [Ping timeout: 240 seconds]
pwh_ has joined #ruby
<epitron> did you want to glob on the keys?
<epitron> you can use regexes for the keys
<dr_toboggan> epitron: well, star only makes sense in the sense of a sequence
<epitron> spec = { /^h(i|ello)$/ => String }
<dr_toboggan> but yeah, that could work
pwh__ has joined #ruby
<dr_toboggan> nah, i'm only going to be matching literal strings in those situations
<epitron> what would you want to repeat though
<epitron> the values?
robustus has quit [Ping timeout: 255 seconds]
pwh____ has quit [Ping timeout: 272 seconds]
<epitron> spec = { "times" => repeat(time()) } ?
pwh___ has joined #ruby
pwh___ has quit [Client Quit]
<dr_toboggan> hmm, actually, i don't know how i'd handle repeat with arrays
pwh_____ has quit [Ping timeout: 272 seconds]
<epitron> methods that return objects that match things would be elegant
<dr_toboggan> i'll need to figure that out
<dr_toboggan> that's just a syntactic/stylistic difference, compared to symbols, right?
Karpah is now known as sevenseacat
<epitron> Repeat(TimeMatcher)
endash has joined #ruby
<epitron> TimeMatcher could just have a .match method
pwh___ has joined #ruby
<epitron> you could have a whole slew of objects with .match methods
dx7 has quit [Remote host closed the connection]
<epitron> then the main spec matcher would just run the match of whatever object it got
<dr_toboggan> epitron: tried that at first, but i screwed up the theory
<epitron> nice and simple
<epitron> ah
<dr_toboggan> so i had to sit down and relearn it (and wrote that version in scheme, just to make sure i understood it)
dx7 has joined #ruby
baroquebobcat has joined #ruby
pwh has quit [Ping timeout: 245 seconds]
<dr_toboggan> i don't know, if i had infinite time to make a perfect project on this, in ruby
<dr_toboggan> sure, i'd do it
pwh has joined #ruby
<epitron> this doesn't seem as complicated as you're making it
<dr_toboggan> but unless there are performance implications, i'm probably done with this piece of code
<epitron> all this regex stuff :)
<epitron> but don't you want to get better at ruby!
<epitron> :D
<dr_toboggan> oh you~~~
<epitron> do it for YOU!
pwh____ has joined #ruby
pwh____ has quit [Client Quit]
pwh_ has quit [Ping timeout: 272 seconds]
pwh__ has quit [Ping timeout: 240 seconds]
mattmcclure has quit [Quit: Connection closed for inactivity]
<dr_toboggan> ok, so, i'd have sub structures, and there could be any one of them, repeated
<dr_toboggan> or something
pwh_ has joined #ruby
<dr_toboggan> it's hard to explain without examples
<epitron> you want to repeat down branches of a tree?
<epitron> recursive repetition?
<dr_toboggan> something like that
<epitron> or you just want to repeat the child element?
neonixcoder has quit [Quit: Leaving.]
pwh__ has joined #ruby
<epitron> oh, i get it
bluOxigen has joined #ruby
<epitron> yeah, i've seen json with a lot of repeated things like that
zorak8 has quit [Ping timeout: 272 seconds]
<dr_toboggan> i'd give you examples, but i'm not sure what stuff i can/can't copy and paste from my employers document
<epitron> so you want to match an array of hashes, all of which have the same structure in them
<epitron> it's okay :)
<epitron> it's just parsing json stuff
<epitron> i think i get the idea
pwh____ has joined #ruby
pwh___ has quit [Ping timeout: 272 seconds]
pwh____ has quit [Client Quit]
sinequanon has joined #ruby
dx7 has quit [Ping timeout: 260 seconds]
pwh has quit [Ping timeout: 245 seconds]
pwh has joined #ruby
<epitron> you could actually generate the spec with some methods, instead of just making it a hash
pwh___ has joined #ruby
<epitron> objects that match these things would be sweet tho
teddyp1cker has joined #ruby
<dr_toboggan> well, i started out with HashMatcher and it had a .match function, stuff like that
pwh_ has quit [Ping timeout: 245 seconds]
<epitron> spec("a bunch of the same struct repeated" => repeat(name: String, age: Integer))
pwh_ has joined #ruby
neonixcoder has joined #ruby
pwh_ has quit [Client Quit]
<dr_toboggan> i tried like twice to make the oop approach, and i realized i misunderstood the theory
<epitron> HashMatcher is just a matcher
<dr_toboggan> yeah
pwh__ has quit [Ping timeout: 250 seconds]
<dr_toboggan> there'd be matchers of the different types...
<epitron> i mean, hash is the default thing :)
<epitron> ok, ok
slester has quit [Ping timeout: 240 seconds]
<dr_toboggan> i don't remember now
pwh_ has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<epitron> so yeah.. i'm thinking that spec( ... hash params ... ) would return a Spec object, and you could then spec.check(example)
pwh__ has joined #ruby
<dr_toboggan> well, i actually didn't think about a hash object be the root object while writing the code
<epitron> and if any of the values had a .match method, it would run that on the example's values
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderdad has joined #ruby
<epitron> otherwise it would compare the class type
<epitron> someone must've written this already :)
<epitron> this seems like something a lot of people would need
pwh____ has joined #ruby
<dr_toboggan> well, there's the difference between arrays and sequences. there could be literal arrays and there could be sequences, generated by :* or :or
pwh____ has quit [Client Quit]
pwh has quit [Ping timeout: 258 seconds]
<epitron> that could just be another object
pwh___ has quit [Ping timeout: 250 seconds]
<epitron> seq(spec(blah), spec(otherthings))
tlarevo has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
pwh has joined #ruby
<epitron> returns a SeqMatcher with two specs in it
txdv has joined #ruby
<epitron> and that gets passed the value from example
starkhalo has quit [Ping timeout: 272 seconds]
pwh___ has joined #ruby
<epitron> repeat(spec(name: String, age: Integer)) would be better than what i wrote before
clauswitt has joined #ruby
skammer3 has joined #ruby
<dr_toboggan> yeah
pwh_ has quit [Ping timeout: 240 seconds]
<epitron> you could use procs instead of objects i think
pwh____ has joined #ruby
clauswitt has quit [Client Quit]
teddyp1cker has joined #ruby
<epitron> since all the object is really doing is being a wrapper for a single method called match
<epitron> you could just check if the thing is a proc and call it
pwh_ has joined #ruby
<epitron> then all your special matcer types would be procs
<epitron> *matcher
<epitron> def seq(*args); proc { |example| args.all? { ... matches example } }
mylar has joined #ruby
<epitron> end
coderdad has quit [Ping timeout: 272 seconds]
pwh__ has quit [Ping timeout: 272 seconds]
skolman has quit [Remote host closed the connection]
pwh_____ has joined #ruby
<dr_toboggan> right
<epitron> saves a lot of typing :)
jontmorehouse has quit [Ping timeout: 260 seconds]
skolman_ has joined #ruby
pwh__ has joined #ruby
<dr_toboggan> well, i think i'm done for the night
<epitron> meee tooo
<dr_toboggan> gonna get stoned and have some pizza
<dr_toboggan> goodnight
<epitron> lol
<epitron> you're going to forget everything i just said
dx7 has joined #ruby
<dr_toboggan> it's in the logs...
<dr_toboggan> :)
pwh has quit [Ping timeout: 246 seconds]
<epitron> ok!
neonixcoder has quit [Quit: Leaving.]
pwh______ has joined #ruby
t_mmyv has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<epitron> *enjoy* the *sauce*
pwh___ has quit [Ping timeout: 250 seconds]
GinoMan has quit [Ping timeout: 272 seconds]
skammer3 has quit [Ping timeout: 244 seconds]
pwh____ has quit [Ping timeout: 260 seconds]
pwh has joined #ruby
pwh_ has quit [Ping timeout: 245 seconds]
msx has quit [Quit: WeeChat 1.0.1]
pwh_ has joined #ruby
pwh_____ has quit [Ping timeout: 260 seconds]
pwh___ has joined #ruby
skolman_ has quit [Ping timeout: 272 seconds]
pwh__ has quit [Ping timeout: 244 seconds]
davedev24_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
pwh__ has joined #ruby
pwh______ has quit [Ping timeout: 240 seconds]
davedev24_ has joined #ruby
pwh____ has joined #ruby
dawkirst has joined #ruby
jasooon has joined #ruby
pwh_____ has joined #ruby
pwh_____ has quit [Client Quit]
pwh has quit [Ping timeout: 272 seconds]
JohnBat26 has joined #ruby
pwh_ has quit [Ping timeout: 245 seconds]
pwh has joined #ruby
pwh_ has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
pwh___ has quit [Ping timeout: 272 seconds]
pwh___ has joined #ruby
pwh__ has quit [Ping timeout: 246 seconds]
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev24_ has quit [Ping timeout: 246 seconds]
oleo__ has quit [Quit: Verlassend]
pwh__ has joined #ruby
pwh____ has quit [Ping timeout: 250 seconds]
msmith_ has quit [Remote host closed the connection]
dawkirst_ has joined #ruby
pwh____ has joined #ruby
HelperW__ has joined #ruby
lnormous has quit [Ping timeout: 245 seconds]
dx7 has quit [Remote host closed the connection]
pwh_____ has joined #ruby
sski has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
dx7 has joined #ruby
jasooon has quit [Ping timeout: 250 seconds]
pwh______ has joined #ruby
pwh has quit [Ping timeout: 244 seconds]
pwh_ has quit [Ping timeout: 250 seconds]
pwh has joined #ruby
sski has quit [Client Quit]
pwh_ has joined #ruby
pwh___ has quit [Ping timeout: 260 seconds]
dawkirst has quit [Ping timeout: 272 seconds]
pwh___ has joined #ruby
pwh__ has quit [Ping timeout: 272 seconds]
helpa has quit [Remote host closed the connection]
havenwood has quit []
pwh__ has joined #ruby
helpa has joined #ruby
helpa has quit [Remote host closed the connection]
nonmadden has quit [Quit: Leaving...]
HelperW__ has quit [Ping timeout: 246 seconds]
codecop has joined #ruby
rshetty has quit []
pwh____ has quit [Ping timeout: 258 seconds]
helpa has joined #ruby
pwh_____ has quit [Ping timeout: 245 seconds]
pwh____ has joined #ruby
dx7 has quit [Ping timeout: 260 seconds]
pwh______ has quit [Ping timeout: 260 seconds]
rshetty has joined #ruby
sinkensabe has joined #ruby
pwh______ has joined #ruby
pwh has quit [Ping timeout: 258 seconds]
justinmburrous has joined #ruby
neoxquick has quit [Read error: Connection reset by peer]
pwh has joined #ruby
spicerack has joined #ruby
tagrudev has joined #ruby
pwh_ has quit [Ping timeout: 260 seconds]
pwh_ has joined #ruby
pwh___ has quit [Ping timeout: 272 seconds]
pwh___ has joined #ruby
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
pwh__ has quit [Ping timeout: 244 seconds]
pwh____ has quit [Ping timeout: 240 seconds]
Rhainur has joined #ruby
pwh__ has joined #ruby
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
pwh____ has joined #ruby
krisquigley has joined #ruby
<Rhainur> is something like Date.parse(user_input_string) rescue Date.today decent Ruby code?
<Rhainur> or is there a better way of expressing that
<lemur> no, but as far as a better way with dates....
pwh_____ has joined #ruby
pwh_____ has quit [Client Quit]
pwh______ has quit [Ping timeout: 272 seconds]
pwh has quit [Ping timeout: 240 seconds]
justinmburrous has quit [Ping timeout: 258 seconds]
pwh has joined #ruby
<lemur> I'm still of the opinion: Working -> Working Well -> Working Fast -> Working Cleanly / Prettily.
arup_r has joined #ruby
<lemur> ie, get it done first then worry about the frills on code reviews or from past experience.
pwh_ has quit [Ping timeout: 260 seconds]
wookiehangover has quit [Quit: i'm out]
<Rhainur> lemur: sure I agree with that. but it's nice to know when you're doing something that's potentially something to keep an eye on for future correction
pwh___ has quit [Ping timeout: 245 seconds]
pwh_ has joined #ruby
<lemur> granted
<Rhainur> there's a difference between writing an ugly hack because you don't know any better, vs doing it in full knowledge that it's an ugly hack :)
<lemur> but yeah, dates are a pain for correctness
{xenomorph} is now known as xenomorph
neonixcoder has joined #ruby
pwh___ has joined #ruby
<lemur> problem being I don't know of many better ways other than a try catch.
pwh__ has quit [Ping timeout: 272 seconds]
pwh____ has quit [Ping timeout: 245 seconds]
pwh__ has joined #ruby
msx has joined #ruby
<lemur> most of the other methods I see are nasty regex and a lot longer hacks
wookiehangover has joined #ruby
<lemur> :/
pwh____ has joined #ruby
<lemur> rescue is dirty, but it's a spot of mud compared to jumping in a puddle.
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krisquigley has quit [Ping timeout: 272 seconds]
fgo has quit [Remote host closed the connection]
gilr00y has joined #ruby
pwh_____ has joined #ruby
pwh_____ has quit [Client Quit]
<lemur> You might use rescue ArgumentError to make it less of a catchall
pwh has quit [Ping timeout: 246 seconds]
pwh has joined #ruby
pwh_ has quit [Ping timeout: 260 seconds]
<pontiki> i hate dates, times, timezones, etc.; that said, i would never try to write a date/time parser
pwh_ has joined #ruby
pwh___ has quit [Ping timeout: 272 seconds]
pwh_____ has joined #ruby
pwh__ has quit [Ping timeout: 244 seconds]
pwh__ has joined #ruby
pwh____ has quit [Ping timeout: 272 seconds]
Suchit_ has quit [Read error: Connection reset by peer]
Sp4rKy_ is now known as Sp4rKy
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
pwh___ has joined #ruby
Suchit_ has joined #ruby
gilr00y has quit [Ping timeout: 260 seconds]
<Hanmac> pontiki: specially if you need for correctness that you also read the tzdata stuff ... then it does turn crazy ;P
pwh____ has joined #ruby
<pontiki> here be dragons
krz has joined #ruby
pwh has quit [Ping timeout: 250 seconds]
pwh has joined #ruby
<Hanmac> tzdata is ages old ... would not be suprised if there where really dragons ;P
tessi_zz is now known as tessi
sinkensabe has quit [Remote host closed the connection]
pwh______ has joined #ruby
<pontiki> i remember reading, quite some time ago, now, about how some of the tzdata stuff is based on someone's proprietary information and calculations, and something about how they weren't able to secure a current license to use it because no one knew who owned it anymore
pwh_ has quit [Ping timeout: 272 seconds]
pwh_ has joined #ruby
pwh_____ has quit [Ping timeout: 260 seconds]
<Tricon> TZs are such a pain.
pwh__ has quit [Ping timeout: 245 seconds]
<Hanmac> its also interesting that tzdata can never be smaller because it can only add new data, never remove old one ;P
pwh__ has joined #ruby
<Tricon> Every try unlocking content at the same relative time in each TZ? It's _way_ harder than it sounds.
<pontiki> that sounds like nightmare material
pwh_____ has joined #ruby
<Tricon> pontiki: There was weeping and gnashing of teeth.
otakbeku has quit [Quit: leaving]
pwh_____ has quit [Client Quit]
<Hanmac> specially if some countries does split itself or does merge ... each time it does change everything with the TZ
<pontiki> we were talking just the other day about DST/Std issues when you have to issue a time in the past but it's no longer DST
<Tricon> Hanmac: Yep.
pwh___ has quit [Ping timeout: 272 seconds]
<Tricon> Some countries make it up every year.
pwh____ has quit [Ping timeout: 258 seconds]
jontmorehouse has joined #ruby
neonixcoder has quit [Quit: Leaving.]
<Hanmac> or some countries does drop the DST system so it means a year before it was DST, but now it isnt ;P
pwh___ has joined #ruby
pwh has quit [Ping timeout: 245 seconds]
<sevenseacat> timezones in australia - https://pbs.twimg.com/media/BzFqpQ6CMAA2VXK.png
justinmburrous has joined #ruby
linoespinoza has joined #ruby
pwh has joined #ruby
linoespinoza has quit [Client Quit]
pwh______ has quit [Ping timeout: 272 seconds]
pwh____ has joined #ruby
pwh_ has quit [Ping timeout: 260 seconds]
pwh_ has joined #ruby
<Hanmac> hm i tihnk it might be a nice gif that shows rhe TZ how they changed over time ;P
crazydiamond has joined #ruby
pwh__ has quit [Ping timeout: 272 seconds]
pwh__ has joined #ruby
MasterPiece has joined #ruby
pwh______ has joined #ruby
pwh___ has quit [Ping timeout: 272 seconds]
pwh______ has quit [Client Quit]
iliketurtles has joined #ruby
pwh has quit [Ping timeout: 272 seconds]
pwh___ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
pwh____ has quit [Ping timeout: 260 seconds]
pwh has joined #ruby
Hightower660 has joined #ruby
pwh_ has quit [Ping timeout: 258 seconds]
pwh_ has joined #ruby
pwh____ has joined #ruby
pwh__ has quit [Ping timeout: 272 seconds]
pwh_____ has joined #ruby
ctp has joined #ruby
pwh__ has joined #ruby
pwh______ has joined #ruby
pwh___ has quit [Ping timeout: 260 seconds]
pwh______ has quit [Client Quit]
pwh has quit [Ping timeout: 258 seconds]
asklov has quit [Ping timeout: 244 seconds]
pwh has joined #ruby
pwh_ has quit [Ping timeout: 245 seconds]
pwh_ has joined #ruby
pwh____ has quit [Ping timeout: 245 seconds]
iliketurtles has quit [Quit: zzzzz…..]
AndChat| has joined #ruby
teddyp1cker has joined #ruby
pwh_____ has quit [Ping timeout: 240 seconds]
pwh___ has joined #ruby
bal has joined #ruby
Hightower660 has quit [Ping timeout: 244 seconds]
pwh____ has joined #ruby
pwh__ has quit [Ping timeout: 244 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwh__ has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
pwh_____ has joined #ruby
justinmburrous has quit [Remote host closed the connection]
justinmburrous has joined #ruby
pwh______ has joined #ruby
pwh has quit [Ping timeout: 254 seconds]
justinmburrous has quit [Read error: Connection reset by peer]
asklov has joined #ruby
pwh has joined #ruby
justinmburrous has joined #ruby
mijicd has joined #ruby
pwh_ has quit [Ping timeout: 272 seconds]
pwh_ has joined #ruby
pwh___ has quit [Ping timeout: 260 seconds]
fgo has joined #ruby
pwh____ has quit [Ping timeout: 240 seconds]
pwh___ has joined #ruby
RoryHughes has quit [Ping timeout: 260 seconds]
pwh____ has joined #ruby
pwh__ has quit [Ping timeout: 272 seconds]
monkeypatch has quit [Quit: Textual IRC Client: www.textualapp.com]
pwh__ has joined #ruby
tlarevo_ has joined #ruby
_2_Mahanin has joined #ruby
schaerli has joined #ruby
wookiehangover has quit [Quit: i'm out]
pwh_____ has quit [Ping timeout: 272 seconds]
pwh_____ has joined #ruby
pwh______ has quit [Ping timeout: 260 seconds]
pwh has quit [Ping timeout: 244 seconds]
pwh has joined #ruby
wookiehangover has joined #ruby
sinkensabe has joined #ruby
pwh______ has joined #ruby
pwh______ has quit [Client Quit]
skammer3 has joined #ruby
pwh_ has quit [Ping timeout: 272 seconds]
tlarevo has quit [Ping timeout: 260 seconds]
pwh___ has quit [Ping timeout: 260 seconds]
dawkirst_ has quit [Remote host closed the connection]
pwh_ has joined #ruby
roolo has joined #ruby
pwh____ has quit [Ping timeout: 250 seconds]
clauswitt has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
pwh__ has quit [Ping timeout: 260 seconds]
michaeldeol has joined #ruby
pwh___ has joined #ruby
pwh___ has quit [Client Quit]
pwh__ has joined #ruby
Dr3amc0d3r|away has quit [Quit: ZNC - http://znc.in]
pwh_____ has quit [Ping timeout: 260 seconds]
pwh has quit [Ping timeout: 250 seconds]
pwh has joined #ruby
_2_Mahanin has quit [Quit: WhatsChat IRC Android APP]
pwh has quit [Client Quit]
ki0 has joined #ruby
pwh has joined #ruby
skammer3 has quit [Ping timeout: 258 seconds]
pwh_ has quit [Ping timeout: 260 seconds]
pwh___ has joined #ruby
kamilc__ has joined #ruby
Dr3amc0d3r|away has joined #ruby
pwh_ has joined #ruby
pwh____ has joined #ruby
tessi is now known as tessi_zz
pwh__ has quit [Ping timeout: 272 seconds]
pwh__ has joined #ruby
jottr_ has joined #ruby
pwh_____ has joined #ruby
jasooon has joined #ruby
davasaurous has quit [Ping timeout: 250 seconds]
pwh has quit [Ping timeout: 245 seconds]
pwh has joined #ruby
jtz has quit [Quit: WeeChat 0.4.3]
pwh______ has joined #ruby
pwh___ has quit [Ping timeout: 260 seconds]
pwh______ has quit [Client Quit]
aganov has joined #ruby
pwh_ has quit [Ping timeout: 240 seconds]
<arup_r> How can I make a class method as protected like we did with private .. http://apidock.com/ruby/Module/private_class_method
pwh_ has joined #ruby
blackgoat has quit [Ping timeout: 272 seconds]
pwh__ has quit [Ping timeout: 246 seconds]
pwh____ has quit [Ping timeout: 272 seconds]
Soliah has joined #ruby
pwh__ has joined #ruby
msmith has joined #ruby
pwh_____ has quit [Ping timeout: 272 seconds]
blackgoat has joined #ruby
pwh has quit [Ping timeout: 260 seconds]
pwh____ has joined #ruby
jasooon has quit [Ping timeout: 260 seconds]
rainfyre has joined #ruby
pwh has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Synthead has quit [Ping timeout: 258 seconds]
Deele has joined #ruby
pwh_____ has joined #ruby
jtz has joined #ruby
mpistone has quit [Remote host closed the connection]
pwh_ has quit [Ping timeout: 245 seconds]
pwh______ has joined #ruby
jtz has quit [Client Quit]
pwh_ has joined #ruby
Tomme has joined #ruby
pwh__ has quit [Ping timeout: 245 seconds]
pwh__ has joined #ruby
<arup_r> pontiki: I am taking about class method..not methods of class
Synthead has joined #ruby
HelperW__ has joined #ruby
<arup_r> private and private_class_method is 2 diff things
pwh___ has joined #ruby
msmith has quit [Ping timeout: 258 seconds]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwh____ has quit [Ping timeout: 272 seconds]
pwh____ has joined #ruby
pwh has quit [Ping timeout: 244 seconds]
koderok has joined #ruby
pwh has joined #ruby
pwh_____ has quit [Ping timeout: 260 seconds]
<Hanmac> hm you can make a clas method protected, but there is no "protected_class_methods"
pwh______ has quit [Ping timeout: 250 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
pwh_____ has joined #ruby
fabrice31 has joined #ruby
pwh______ has joined #ruby
modernbob has quit [Ping timeout: 255 seconds]
pwh_ has quit [Ping timeout: 260 seconds]
pwh______ has quit [Client Quit]
pwh__ has quit [Ping timeout: 260 seconds]
modernbob has joined #ruby
pwh_ has joined #ruby
pwh___ has quit [Ping timeout: 272 seconds]
pwh__ has joined #ruby
pwh____ has quit [Ping timeout: 246 seconds]
<arup_r> Humm I got it
<arup_r> But I would say incomplete API
<arup_r> we have still
<tmoore> yeah... I think it's made to be difficult because it's usually not a good idea :-P
pwh___ has joined #ruby
pwh has quit [Ping timeout: 245 seconds]
<arup_r> When we have private_class_method,, we should also have protected_class_method.
<arup_r> tmoore: Not a good idea!
<arup_r> Why ? :-)
pwh has joined #ruby
pwh_____ has quit [Ping timeout: 260 seconds]
pwh____ has joined #ruby
jtz has joined #ruby
<tmoore> arup_r: what do you use it for?
jtz has quit [Client Quit]
jtz has joined #ruby
sinequanon has quit [Remote host closed the connection]
pwh______ has joined #ruby
pwh_ has quit [Ping timeout: 272 seconds]
pwh______ has quit [Client Quit]
ringarin has joined #ruby
pwh_ has joined #ruby
pwh__ has quit [Ping timeout: 272 seconds]
pwh___ has quit [Ping timeout: 260 seconds]
pwh has quit [Ping timeout: 244 seconds]
<arup_r> I am refactoring some code..Once done I will show you to verify.. why I am doing it that way
pwh__ has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
ringaring has joined #ruby
<tmoore> arup_r: from one of the comments on that blog http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/245072
pwh____ has quit [Ping timeout: 245 seconds]
pwh has joined #ruby
<tmoore> arup_r: protected means that one instance of a class can call the method on another instance of the class
chipotle has quit [Quit: cya]
<tmoore> arup_r: so if you declare a protected class method, who can call it?
<sevenseacat> heh
<arup_r> tmoore: Give some moment I will show you..
<arup_r> Why I am doing.. If it is wrong way.. I will change my code..
pwh_ has quit [Ping timeout: 260 seconds]
root3d has joined #ruby
jimmyy has quit [Ping timeout: 245 seconds]
<tmoore> OK I'm about to leave work and go home though... maybe someone else will comment :-)
pwh__ has quit [Ping timeout: 244 seconds]
pwh_ has joined #ruby
<arup_r> ok :)
dumdedum has joined #ruby
endash has quit [Quit: endash]
Soda has joined #ruby
tesaf has joined #ruby
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
pwh__ has joined #ruby
pwh___ has joined #ruby
<arup_r> tmoore: makes sense...your point
pwh has quit [Ping timeout: 272 seconds]
<arup_r> :)
ereslibre has joined #ruby
pwh has joined #ruby
Morkel has joined #ruby
pwh____ has joined #ruby
pwh_ has quit [Ping timeout: 250 seconds]
justinmburrous has quit [Remote host closed the connection]
pwh______ has joined #ruby
pwh______ has quit [Client Quit]
cndiv has quit [Ping timeout: 272 seconds]
pwh__ has quit [Ping timeout: 272 seconds]
pwh___ has quit [Ping timeout: 245 seconds]
pwh_ has joined #ruby
dte has joined #ruby
pwh has quit [Ping timeout: 246 seconds]
pwh__ has joined #ruby
pwh has joined #ruby
pwh has quit [Client Quit]
pwh____ has quit [Ping timeout: 260 seconds]
thomasxie has joined #ruby
justinmburrous has joined #ruby
pwh has joined #ruby
pwh has quit [Client Quit]
pwh has joined #ruby
pwh_ has quit [Ping timeout: 272 seconds]
pwh_ has joined #ruby
pwh__ has quit [Ping timeout: 260 seconds]
dte has quit [Ping timeout: 272 seconds]
lolmaus has quit [Quit: Konversation terminated!]
tylersmith has quit [Remote host closed the connection]
lampd1 has joined #ruby
pwh__ has joined #ruby
tylersmith has joined #ruby
pwh___ has joined #ruby
pwh____ has joined #ruby
pwh_____ has joined #ruby
pwh_____ has quit [Client Quit]
jusmyth has left #ruby [#ruby]
pwh has quit [Ping timeout: 244 seconds]
pwh has joined #ruby
pwh_ has quit [Ping timeout: 272 seconds]
root3d has quit [Ping timeout: 258 seconds]
pwh_____ has joined #ruby
pwh__ has quit [Ping timeout: 260 seconds]
Takle has joined #ruby
pwh_ has joined #ruby
pwh___ has quit [Ping timeout: 258 seconds]
tylersmith has quit [Ping timeout: 255 seconds]
lampd1 has quit [Ping timeout: 255 seconds]
pwh____ has quit [Ping timeout: 245 seconds]
pwh__ has joined #ruby
pwh___ has joined #ruby
threesixes has joined #ruby
pwh___ has quit [Client Quit]
wpp has joined #ruby
pwh has quit [Ping timeout: 244 seconds]
pwh___ has joined #ruby
doev has joined #ruby
Tricon has quit [Ping timeout: 272 seconds]
pwh_____ has quit [Ping timeout: 246 seconds]
andikr has joined #ruby
nuck has quit [Excess Flood]
pwh_ has quit [Ping timeout: 244 seconds]
nuck has joined #ruby
AmBienCeD has quit [Write error: Broken pipe]
<arup_r> That's not the exact code..
napcae has joined #ruby
AmBienCeD has joined #ruby
AmBienCeD has quit [Changing host]
AmBienCeD has joined #ruby
pwh__ has quit [Ping timeout: 250 seconds]
Takle has quit [Ping timeout: 240 seconds]
schaerli has quit [Remote host closed the connection]
jusmyth1 has joined #ruby
pwh has joined #ruby
pwh has quit [Client Quit]
jusmyth1 has quit [Read error: Connection reset by peer]
MrBoolean has joined #ruby
jusmyth1 has joined #ruby
<sevenseacat> well i'd hope thats not the exact code
schaerli has joined #ruby
<arup_r> That's my intention to make class methods as protected..
<arup_r> Exactly the same code
pwh has joined #ruby
<arup_r> I can't make class methods as private
justinmburrous has quit [Remote host closed the connection]
jusmyth1 has quit [Client Quit]
pwh___ has quit [Ping timeout: 258 seconds]
<arup_r> sevenseacat: You got my intention right
<arup_r> ?
klaut has joined #ruby
<sevenseacat> private would do the same thing wouldnt it
<Hanmac> it would
pwh_ has joined #ruby
<sevenseacat> private means 'cant be called with an explicit receiver'?
<arup_r> I don't want to make methods as public API which I don't want to be called oouside
<arup_r> sevenseacat.. Try yourself with private
St_Marx has quit [Ping timeout: 264 seconds]
<arup_r> and get back to me
<arup_r> Just try with private
pwh__ has joined #ruby
<Hanmac> arup_r: i tryed it with private ... Biz.biz works
<arup_r> something wrong I am doing.. Ooops!!
pwh___ has joined #ruby
<arup_r> Hanmac,,, I made me confused
pwh____ has joined #ruby
jusmyth has joined #ruby
pwh_____ has joined #ruby
<arup_r> Hah! I don't need protected.. Now.. private makes sense..
pwh______ has joined #ruby
skammer3 has joined #ruby
pwh______ has quit [Client Quit]
pwh has quit [Ping timeout: 260 seconds]
pwh_ has quit [Ping timeout: 260 seconds]
<arup_r> sevenseacat: You know well Ruby... Me not
<arup_r> :-(
Soliah has quit [Quit: Soliah]
pwh has joined #ruby
pwh__ has quit [Ping timeout: 272 seconds]
dx7 has joined #ruby
pwh___ has quit [Ping timeout: 245 seconds]
<Hanmac> protected only is for something if you want to communicate between instances of the same class, which does not make sense for singleton methods
pwh_ has joined #ruby
pwh____ has quit [Ping timeout: 246 seconds]
pwh__ has joined #ruby
schaerli has quit [Remote host closed the connection]
<arup_r> Yes,, Exactly.. like that
roolo has quit [Quit: Leaving...]
schaerli has joined #ruby
danijoo_ has quit [Ping timeout: 250 seconds]
pwh___ has joined #ruby
pwh_____ has quit [Ping timeout: 244 seconds]
Juanchito has joined #ruby
rshetty has quit [Remote host closed the connection]
pwh____ has joined #ruby
emmesswhy has joined #ruby
pwh_____ has joined #ruby
skammer3 has quit [Ping timeout: 272 seconds]
justinmburrous has joined #ruby
pwh______ has joined #ruby
pwh has quit [Ping timeout: 258 seconds]
dx7 has quit [Ping timeout: 246 seconds]
Tricon has joined #ruby
pwh has joined #ruby
pwh_ has quit [Ping timeout: 260 seconds]
pwh__ has quit [Ping timeout: 240 seconds]
pwh_ has joined #ruby
alex88 has joined #ruby
pwh__ has joined #ruby
pwh___ has quit [Ping timeout: 260 seconds]
jasooon has joined #ruby
pwh____ has quit [Ping timeout: 240 seconds]
ad_boot has joined #ruby
pwh____ has joined #ruby
St_Marx has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwh____ has quit [Client Quit]
root3d has joined #ruby
RyanV has quit [Quit: Lingo - http://www.lingoirc.com]
pwh_____ has quit [Ping timeout: 272 seconds]
cu has joined #ruby
ht__th has joined #ruby
pwh______ has quit [Ping timeout: 272 seconds]
pwh____ has joined #ruby
pwh has quit [Ping timeout: 245 seconds]
pwh_ has quit [Ping timeout: 245 seconds]
krisquigley has joined #ruby
pwh has joined #ruby
pwh_ has joined #ruby
pwh__ has quit [Ping timeout: 246 seconds]
pwh__ has joined #ruby
sk87 has joined #ruby
pwh___ has joined #ruby
jasooon has quit [Ping timeout: 258 seconds]
pwh_____ has joined #ruby
pwh_____ has quit [Client Quit]
alem0lars has joined #ruby
pwh_____ has joined #ruby
pwh____ has quit [Ping timeout: 272 seconds]
grzywacz has joined #ruby
grzywacz has joined #ruby
krisquigley has quit [Ping timeout: 245 seconds]
pwh has quit [Ping timeout: 250 seconds]
pwh has joined #ruby
apeiros has joined #ruby
pwh_ has quit [Ping timeout: 258 seconds]
pwh_ has joined #ruby
pwh__ has quit [Ping timeout: 244 seconds]
pwh__ has joined #ruby
charliesome has quit [Quit: zzz]
pwh___ has quit [Ping timeout: 260 seconds]
pwh___ has joined #ruby
pwh____ has joined #ruby
danijoo has joined #ruby
pwh_____ has quit [Ping timeout: 244 seconds]
pwh_____ has joined #ruby
yfeldblu_ has joined #ruby
emrox has joined #ruby
pwh______ has joined #ruby
pwh has quit [Ping timeout: 260 seconds]
pwh______ has quit [Client Quit]
justinmburrous has quit [Remote host closed the connection]
pwh_ has quit [Ping timeout: 260 seconds]
pwh has joined #ruby
justinmburrous has joined #ruby
pwh__ has quit [Ping timeout: 250 seconds]
pwh___ has quit [Ping timeout: 240 seconds]
pwh_ has joined #ruby
pwh__ has joined #ruby
pwh____ has quit [Ping timeout: 272 seconds]
pyx has joined #ruby
pwh___ has joined #ruby
pwh_____ has quit [Ping timeout: 245 seconds]
pyx has quit [Client Quit]
yfeldblu_ has quit [Ping timeout: 260 seconds]
Suchit_ has quit [Read error: Connection reset by peer]
pwh____ has joined #ruby
Suchit_ has joined #ruby
justinmburrous has quit [Ping timeout: 250 seconds]
pwh has quit [Ping timeout: 272 seconds]
pwh_____ has joined #ruby
pwh_ has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
alem0lars has quit [Quit: alem0lars]
blackmesa has joined #ruby
pwh has joined #ruby
pwh__ has quit [Ping timeout: 272 seconds]
pwh_ has joined #ruby
gilr00y_ has joined #ruby
pwh___ has quit [Ping timeout: 260 seconds]
pwh__ has joined #ruby
pwh____ has quit [Ping timeout: 258 seconds]
pwh__ has quit [Client Quit]
lolmaus has joined #ruby
pwh__ has joined #ruby
cu has quit [Quit: Lingo - http://www.lingoirc.com]
compuser has joined #ruby
pwh_____ has quit [Ping timeout: 240 seconds]
pwh___ has joined #ruby
pwh____ has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
pwh has quit [Ping timeout: 245 seconds]
gilr00y_ has quit [Ping timeout: 240 seconds]
pwh_ has quit [Ping timeout: 240 seconds]
pwh has joined #ruby
pwh has quit [Client Quit]
Xeago has joined #ruby
pwh has joined #ruby
gr33n7007h has joined #ruby
justinmburrous has joined #ruby
pwh__ has quit [Ping timeout: 246 seconds]
pwh_ has joined #ruby
Schmidt has quit [Ping timeout: 272 seconds]
pwh__ has joined #ruby
chthon has joined #ruby
LiohAu_ has joined #ruby
pwh___ has quit [Ping timeout: 272 seconds]
tessi_zz is now known as tessi
pwh____ has quit [Ping timeout: 245 seconds]
pwh___ has joined #ruby
Scotteh has joined #ruby
rubyonrailed has quit []
brushy has quit [Disconnected by services]
bobishh has joined #ruby
pwh____ has joined #ruby
yetanotherdave has quit [Ping timeout: 272 seconds]
brushdemon has joined #ruby
pwh_____ has joined #ruby
Schmidt has joined #ruby
jusmyth has quit [Read error: Connection reset by peer]
jusmyth has joined #ruby
pwh has quit [Ping timeout: 260 seconds]
pwh has joined #ruby
pwh_ has quit [Ping timeout: 240 seconds]
pwh_ has joined #ruby
pwh__ has quit [Ping timeout: 244 seconds]
pwh__ has joined #ruby
pwh___ has quit [Ping timeout: 272 seconds]
pwh___ has joined #ruby
pwh____ has quit [Ping timeout: 260 seconds]
pwh____ has joined #ruby
pwh_____ has quit [Ping timeout: 245 seconds]
pwh______ has joined #ruby
pwh has quit [Ping timeout: 250 seconds]
pwh______ has quit [Client Quit]
pwh_ has quit [Ping timeout: 240 seconds]
pwh__ has quit [Ping timeout: 245 seconds]
Schmidt has quit [Ping timeout: 244 seconds]
pwh has joined #ruby
pwh_ has joined #ruby
pwh___ has quit [Ping timeout: 272 seconds]
pwh__ has joined #ruby
pwh____ has quit [Ping timeout: 245 seconds]
<Xeago> I'm using chronic, the natural language date/time parser, 'new years eve' returns as 2014-11-19…
<Xeago> anyone else experienced this?
pwh___ has joined #ruby
pwh____ has joined #ruby
pwh_____ has joined #ruby
pwh_____ has quit [Client Quit]
pwh_____ has joined #ruby
pwh has quit [Ping timeout: 272 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
pwh_ has quit [Ping timeout: 260 seconds]
justinmburrous has quit [Remote host closed the connection]
pwh__ has quit [Ping timeout: 245 seconds]
pwh has joined #ruby
justinmburrous has joined #ruby
ringaring has quit [Read error: Connection reset by peer]
pwh___ has quit [Ping timeout: 245 seconds]
pwh____ has quit [Ping timeout: 272 seconds]
pwh_ has joined #ruby
rshetty has joined #ruby
jack_rabbit has quit [Quit: Leaving]
pwh__ has joined #ruby
Deele has quit [Quit: User excited]
Takle has joined #ruby
pwh_____ has quit [Ping timeout: 260 seconds]
pwh___ has joined #ruby
fgo has quit [Remote host closed the connection]
pwh has quit [Ping timeout: 245 seconds]
pwh____ has joined #ruby
pwh has joined #ruby
justinmburrous has quit [Ping timeout: 272 seconds]
dawkirst has joined #ruby
pwh_____ has joined #ruby
pwh_____ has quit [Client Quit]
dawkirst has quit [Remote host closed the connection]
root3d has quit [Ping timeout: 245 seconds]
dawkirst has joined #ruby
pwh_ has quit [Ping timeout: 240 seconds]
pwh_ has joined #ruby
Pupeno_ has quit [Read error: Connection reset by peer]
pwh__ has quit [Ping timeout: 272 seconds]
pwh_____ has joined #ruby
pwh___ has quit [Ping timeout: 260 seconds]
Pupeno has joined #ruby
thomasxie has quit [Ping timeout: 260 seconds]
pwh__ has joined #ruby
pwh__ has quit [Client Quit]
Takle has quit [Remote host closed the connection]
pwh has quit [Ping timeout: 245 seconds]
justinmburrous has joined #ruby
pwh____ has quit [Ping timeout: 272 seconds]
pwh has joined #ruby
Deejay_ has joined #ruby
boombadaroomba has joined #ruby
skammer3 has joined #ruby
dANO has joined #ruby
pwh__ has joined #ruby
Mia has quit [Read error: Connection reset by peer]
pwh__ has quit [Client Quit]
msmith has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
pwh_ has quit [Ping timeout: 260 seconds]
pwh_ has joined #ruby
Takle has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
pwh_____ has quit [Ping timeout: 258 seconds]
otakbeku has joined #ruby
pwh__ has joined #ruby
Mia has joined #ruby
pwh___ has joined #ruby
pwh___ has quit [Client Quit]
tessi is now known as tessi_zz
boombadaroomba has quit [Ping timeout: 245 seconds]
jacobat has joined #ruby
pwh has quit [Ping timeout: 260 seconds]
pwh has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
<jacobat> I have a string with some weird UTF-8 chars in it. In IRB (Rails console) when I try to look at the string I get "Encoding::UndefinedConversionError: U+00E0 from UTF-8 to US-ASCII" - any ideas why it's trying to convert to ascii?
skammer3 has quit [Ping timeout: 244 seconds]
pwh___ has joined #ruby
Aaaal has joined #ruby
<apeiros> jacobat: sounds like your external encoding is us-ascii
msmith has quit [Ping timeout: 272 seconds]
pwh_ has quit [Ping timeout: 246 seconds]
pwh____ has joined #ruby
<jacobat> apeiros: Encoding.default_external => UTF-8
Tricon has quit [Quit: Leaving...]
<jacobat> __ENCODING__ is UTF-8 as well
pwh_ has joined #ruby
CodeOmegaPrime has joined #ruby
startupality has joined #ruby
apeiros_ has joined #ruby
pwh__ has quit [Ping timeout: 244 seconds]
Schmidt has joined #ruby
Alina-malina has quit [Ping timeout: 250 seconds]
Alina-malina has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
pwh__ has joined #ruby
jasooon has joined #ruby
pwh has quit [Ping timeout: 240 seconds]
pwh______ has joined #ruby
shredding has joined #ruby
timonv_ has joined #ruby
apeiros__ has joined #ruby
pwh has joined #ruby
apeiros has quit [Ping timeout: 246 seconds]
pwh___ has quit [Ping timeout: 260 seconds]
einarj has joined #ruby
pwh___ has joined #ruby
cina has joined #ruby
pwh____ has quit [Ping timeout: 272 seconds]
pw_______ has joined #ruby
pwh_ has quit [Ping timeout: 260 seconds]
pw_______ has quit [Client Quit]
pwh__ has quit [Ping timeout: 244 seconds]
chth0n has joined #ruby
tokik has quit [Ping timeout: 260 seconds]
apeiros_ has quit [Ping timeout: 245 seconds]
pwh_ has joined #ruby
jasooon has quit [Ping timeout: 260 seconds]
elaptics`away is now known as elaptics
pwh__ has joined #ruby
pwh______ has quit [Ping timeout: 272 seconds]
pwh____ has joined #ruby
pwh has quit [Ping timeout: 250 seconds]
pwh___ has quit [Ping timeout: 240 seconds]
pwh has joined #ruby
justinmburrous has quit [Remote host closed the connection]
pwh___ has joined #ruby
chth0n has quit [Client Quit]
pwh_____ has joined #ruby
pwh_____ has quit [Client Quit]
startupality has quit [Quit: startupality]
pwh_ has quit [Ping timeout: 272 seconds]
root3d has joined #ruby
pwh_ has joined #ruby
root3d has quit [Remote host closed the connection]
pwh__ has quit [Ping timeout: 250 seconds]
pwh____ has quit [Ping timeout: 245 seconds]
pwh__ has joined #ruby
charliesome has quit [Quit: zzz]
pwh__ has quit [Client Quit]
Suchit_ has quit [Read error: Connection reset by peer]
Suchit_ has joined #ruby
pwh has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
rdark has joined #ruby
pwh has joined #ruby
charliesome has quit [Client Quit]
ndrei has joined #ruby
pwh___ has quit [Ping timeout: 272 seconds]
Suchit__ has joined #ruby
yfeldblum has joined #ruby
pwh__ has joined #ruby
Suchit_ has quit [Read error: Connection reset by peer]
andrewlio has joined #ruby
pwh___ has joined #ruby
jottr_ has quit [Ping timeout: 245 seconds]
pwh_ has quit [Ping timeout: 245 seconds]
pwh_ has joined #ruby
Scotteh has quit [Quit: Later, folks]
kaspertidemann has joined #ruby
olivier_bK has joined #ruby
pwh_____ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
pwh has quit [Ping timeout: 240 seconds]
pwh______ has joined #ruby
<Xeago> bummer, rake test doesn't allow me to drop into pry, Rakefile: https://github.com/stripe/pagerbot/blob/c17153b45ad5afbf19f8b6c573039afa8152ebf8/Rakefile
yfeldblum has joined #ruby
fgo has joined #ruby
<Xeago> I tried adding require 'pry' at several locations in the rake file to no avail
pwh__ has quit [Ping timeout: 250 seconds]
pwh has joined #ruby
<Xeago> I tried commenting the bundler things ot no avail
<Xeago> it seems as if it spawns a subprocess?
<apeiros__> I think rake's test task spawns a subshell
<Xeago> ahh
apeiros__ is now known as apeiros
pwh__ has joined #ruby
pwh___ has quit [Ping timeout: 272 seconds]
tvw has joined #ruby
pwh___ has joined #ruby
pwh___ has quit [Client Quit]
pwh_ has quit [Ping timeout: 246 seconds]
pwh_ has joined #ruby
pwh_____ has quit [Ping timeout: 245 seconds]
sevenseacat has quit [Remote host closed the connection]
pwh______ has quit [Ping timeout: 245 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
pwh___ has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
pwh____ has joined #ruby
pwh has quit [Ping timeout: 272 seconds]
pwh_____ has joined #ruby
pwh_____ has quit [Client Quit]
pwh__ has quit [Ping timeout: 258 seconds]
pwh has joined #ruby
ringarin has joined #ruby
pwh__ has joined #ruby
yetanotherdave has joined #ruby
pwh_ has quit [Ping timeout: 260 seconds]
pwh_ has joined #ruby
pwh___ has quit [Ping timeout: 240 seconds]
skammer3 has joined #ruby
jgrevich has quit [Ping timeout: 272 seconds]
kamilc__ has quit [Quit: Leaving...]
pwh____ has quit [Ping timeout: 250 seconds]
pwh___ has joined #ruby
pwh___ has quit [Client Quit]
pwh___ has joined #ruby
timonv_ has quit [Remote host closed the connection]
pwh has quit [Ping timeout: 260 seconds]
pwh____ has joined #ruby
timonv_ has joined #ruby
pwh has joined #ruby
AndChat| has quit [Quit: Bye]
pwh__ has quit [Ping timeout: 272 seconds]
pwh_____ has joined #ruby
pwh_ has quit [Ping timeout: 258 seconds]
pwh_____ has quit [Client Quit]
skammer3 has quit [Ping timeout: 272 seconds]
drPoggs has quit [Quit: +++ATH]
pwh_ has joined #ruby
pwh___ has quit [Ping timeout: 245 seconds]
pwh__ has joined #ruby
roolo has joined #ruby
arup_r has quit [Remote host closed the connection]
pwh___ has joined #ruby
pwh____ has quit [Ping timeout: 245 seconds]
yetanotherdave has quit [Ping timeout: 245 seconds]
timonv_ has quit [Ping timeout: 246 seconds]
arup_r has joined #ruby
pwh____ has joined #ruby
pwh has quit [Ping timeout: 258 seconds]
sk87 has joined #ruby
rshetty has quit [Remote host closed the connection]
goodenough has quit [Remote host closed the connection]
pwh has joined #ruby
fgo has joined #ruby
pwh_____ has joined #ruby
startupality has joined #ruby
drPoggs has joined #ruby
pwh______ has joined #ruby
pwh_ has quit [Ping timeout: 260 seconds]
pwh_ has joined #ruby
pwh__ has quit [Ping timeout: 260 seconds]
jusmyth1 has joined #ruby
Takle has quit [Remote host closed the connection]
jusmyth has quit [Read error: Connection reset by peer]
pwh__ has joined #ruby
lampd1 has joined #ruby
pwh___ has quit [Ping timeout: 250 seconds]
W0rmDr1nk has joined #ruby
<Hanmac> i think pwh has some problem with cloning processes ;P
pwh____ has quit [Ping timeout: 260 seconds]
arup_r has quit [Ping timeout: 260 seconds]
justinmburrous has joined #ruby
pwh___ has joined #ruby
pwh____ has joined #ruby
pwh has quit [Ping timeout: 258 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> apeiros: do you think we should do something about the pwh's ?
fgo has quit [Ping timeout: 272 seconds]
pwh has joined #ruby
pwh_____ has quit [Ping timeout: 272 seconds]
marr has joined #ruby
pwh_____ has joined #ruby
<apeiros> plerp, forget a -b and /mode does funny things
<apeiros> s/-b/+b/
pwh______ has quit [Ping timeout: 272 seconds]
* apeiros is in his best shape
pwh_ has quit [Ping timeout: 260 seconds]
pwh__ has quit [Ping timeout: 240 seconds]
lampd1 has quit [Ping timeout: 245 seconds]
jottr_ has joined #ruby
krz has joined #ruby
pwh___ has quit [Ping timeout: 250 seconds]
pwh____ has quit [Ping timeout: 246 seconds]
xiq has joined #ruby
gengmao has joined #ruby
awestroke has joined #ruby
pwh has quit [Ping timeout: 258 seconds]
dx7 has joined #ruby
pwh_____ has quit [Ping timeout: 245 seconds]
xiq is now known as xrlabs
fgo has joined #ruby
dx7 has quit [Ping timeout: 240 seconds]
AlSquire has joined #ruby
gengmao is now known as gengmao1
adamski2600 has joined #ruby
AFKGeek has joined #ruby
gengmao1 is now known as gengmao
dangerousdave has joined #ruby
Musashi007 has quit [Quit: Musashi007]
joonty has joined #ruby
timgauthier has joined #ruby
thsig has joined #ruby
krisquigley has joined #ruby
decoponio has joined #ruby
xrlabs has quit [Read error: Connection timed out]
xrlabs has joined #ruby
thsig_ has joined #ruby
justinmburrous has quit [Remote host closed the connection]
<Xeago> I need a regex guru :'(
<canton7> rubular.com
justinmburrous has joined #ruby
<Xeago> I know I'm missing whitespace after the for, but I can't get them added such that they are greedily taken
<canton7> Xeago, please translate your example to rubular.com, then send us the link
<canton7> then we can play with the regex in real time
<Xeago> oh I have it there too
startupality has quit [Quit: startupality]
<Xeago> I wrote that small snippet to be able to see how my regex was doing against several strings
thsig has quit [Ping timeout: 260 seconds]
<Xeago> rubular only gives me one as far as I can tell
mikecmpbll has joined #ruby
lkba has joined #ruby
<canton7> Xeago, one per line
krisquigley has quit [Ping timeout: 260 seconds]
<Xeago> ah shieet - I just spent 10m writing that snippet for nothing \o/!
<Xeago> thanks canton7!
<canton7> haha
justinmburrous has quit [Ping timeout: 272 seconds]
<canton7> fixed regex? or fixed example? :P
<Xeago> fixed regex :>
<canton7> sweet
<Xeago> I saw my fault thanks to the highlighting done by rubular when I inserted my multistring
cotton_eye_joe_ has joined #ruby
<canton7> aye, it's a brilliant tool
<cotton_eye_joe_> cross-chan post
<cotton_eye_joe_> may I?
<canton7> go for it
<cotton_eye_joe_> getting no love from #rubyonrails
<canton7> just let us know if the other chan answers it
arup_r has joined #ruby
<cotton_eye_joe_> will do
jasooon has joined #ruby
kamilc__ has joined #ruby
<cotton_eye_joe_> I have the following query:
<cotton_eye_joe_> Project.includes(:project_type, :project_actions, :project_team_milestones, project_teams: [:status, team:[:project_teams]]).order(order_by).limit(PAGE_SIZE).offset((params[:page_number].to_i - 1) * PAGE_SIZE)
<cotton_eye_joe_> now depending on a parameter send to the controller, first need to reverse the list before I proceed with .limit()
<cotton_eye_joe_> I dont want to have to repeat the same sausage code if each of the if/else blocks
<cotton_eye_joe_> with the only difference being the .reverse_order
<cotton_eye_joe_> I was wondering if there's a way to keep chaining methods
<cotton_eye_joe_> using deferred executiong
<cotton_eye_joe_> and then say something like .execute()
<canton7> this is ActiveRecord?
Photism has joined #ruby
<ddv> create a scope, cotton_eye_joe_
<cotton_eye_joe_> canton7: it is
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
froggy__ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
justinmburrous has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
nettoweb has joined #ruby
jasooon has quit [Ping timeout: 244 seconds]
cocotton has joined #ruby
jhass|off is now known as jhass
froggy_ has quit [Ping timeout: 246 seconds]
alem0lars has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
moritzs has joined #ruby
<cotton_eye_joe_> ddv: care to elaborate
mkaesz has joined #ruby
timgauthier is now known as timgauthier_isaw
<cotton_eye_joe_> or maybe even provide some code?
<cotton_eye_joe_> I'm new to rails.. I dove deep into the code base on this new project and have been learning as I go
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ringaring has joined #ruby
alem0lars has quit [Client Quit]
charliesome has joined #ruby
ringarin has quit [Ping timeout: 246 seconds]
<wasamasa> #rubyonrails
schaerli has quit [Remote host closed the connection]
<canton7> read up - he's x-posting
<canton7> cotton_eye_joe_, very few people outside of rails use ActiveRecord I'm afraid
dangerousdave has joined #ruby
dalafa has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
featheryahn has joined #ruby
wald0_ has joined #ruby
DrForr_ has joined #ruby
pontiki_ has joined #ruby
lsone_ has joined #ruby
d3scala has joined #ruby
chuck_ has joined #ruby
pibby_ has joined #ruby
chuck_ has quit [Changing host]
chuck_ has joined #ruby
rtl_ has joined #ruby
ixx has joined #ruby
bobishh_ has joined #ruby
jacobat_ has joined #ruby
napcae_ has joined #ruby
<featheryahn> is there something like a map function for a hash returning a hash? if not how can i do something like this in the most expressive way?
yokel_ has joined #ruby
ixx is now known as Guest7370
descala has quit [Write error: Broken pipe]
pibby has quit [Write error: Broken pipe]
AmBienCeD has quit [Write error: Broken pipe]
yokel has quit [Write error: Connection reset by peer]
yokel_ is now known as yokel
Mekkis has quit [Quit: ZNC - http://znc.in]
justinmburrous has quit [Remote host closed the connection]
alem0lars has joined #ruby
dalafa has left #ruby [#ruby]
ramblinpeck has quit [Ping timeout: 467 seconds]
hfp has quit [Ping timeout: 467 seconds]
cnj has quit [Ping timeout: 467 seconds]
zrl has quit [Ping timeout: 467 seconds]
soulcake has quit [Ping timeout: 467 seconds]
cnj_ has joined #ruby
ramblinpeck has joined #ruby
sn0wb1rd has quit [Ping timeout: 467 seconds]
sn0wb1rdz has joined #ruby
zrl_ has joined #ruby
hfp_ has joined #ruby
<shevy> >> hash = Hash.new; hash.map
<eval-in_> shevy => #<Enumerator: {}:map> (https://eval.in/202473)
sn0wb1rdz is now known as sn0wb1rd
postmodern has quit [Quit: Leaving]
<shevy> featheryahn apparently Hash has map
<txdv> >> "shevy " * 1000
<eval-in_> txdv => "shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy sh ... (https://eval.in/202474)
<shevy> \o/
hfp_ is now known as hfp
<shevy> my groupie is about again
cnj_ is now known as cnj
lsone has quit [Write error: Broken pipe]
pontiki has quit [Write error: Broken pipe]
wald0 has quit [Write error: Connection reset by peer]
DrForr has quit [Write error: Broken pipe]
rtl has quit [Write error: Broken pipe]
<featheryahn> ar_model.attributes.map { |a| a unless a.value? }
gilr00y has joined #ruby
<Hanmac> featheryahn: hm currently there is no map with returns a hash ... hash.map {}.to_h is currently the most readable ...
magicien_ has joined #ruby
chuck has quit [Remote host closed the connection]
napcae has quit [Remote host closed the connection]
magicien has quit [Remote host closed the connection]
<Hanmac> featheryahn: hm i think you are looking for Hash#select not #map
anarang has joined #ruby
AmBienCeD has joined #ruby
soulcake has joined #ruby
<featheryahn> Hanmac: OK thanks
thomasxie has joined #ruby
Mekkis has joined #ruby
<featheryahn> Hanmac: but the .to_h tip is also good
<featheryahn> Hanmac: thanks
jacobat has quit [Ping timeout: 263 seconds]
bobishh has quit [Ping timeout: 263 seconds]
Guest30624 has quit [Ping timeout: 263 seconds]
Pupeno has quit [Remote host closed the connection]
sk87 has joined #ruby
Advocation has joined #ruby
Takle has joined #ruby
gilr00y has quit [Ping timeout: 272 seconds]
Pupeno has joined #ruby
decoponyo has joined #ruby
Advocation has quit [Client Quit]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
p0sixpscl has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 272 seconds]
yetanotherdave has joined #ruby
decoponio has quit [Ping timeout: 245 seconds]
dte has joined #ruby
Takle has joined #ruby
sepp2k has joined #ruby
p0sixpscl has quit [Read error: Connection reset by peer]
thsig has joined #ruby
yetanotherdave has quit [Ping timeout: 272 seconds]
startupality has joined #ruby
dangerousdave has joined #ruby
Pupeno has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 272 seconds]
crdpink has joined #ruby
thsig_ has quit [Ping timeout: 260 seconds]
rkalfane has joined #ruby
rkalfane has quit [Client Quit]
tokik has joined #ruby
Wolland has quit []
msmith has joined #ruby
Advocation has joined #ruby
<shevy> Hanmac I want free macros in ruby
nfk has joined #ruby
p0sixpscl has joined #ruby
<shevy> and directly embeddedable invalid syntax
AmBienCeD has quit [Write error: Broken pipe]
startupality has quit [Ping timeout: 272 seconds]
AmBienCeD has joined #ruby
AmBienCeD has quit [Changing host]
AmBienCeD has joined #ruby
msmith has quit [Ping timeout: 244 seconds]
<Hanmac> free macros i dont think that will ever possible
RyanV has joined #ruby
AndChat| has joined #ruby
<shevy> :(
<Hanmac> and for "embeddedable invalid syntax" the only thing i image are Heredoc for that ...
p0sixpscl has quit [Ping timeout: 245 seconds]
<shevy> well __END__
<shevy> heredoc puts it into a string or?
<shevy> hmm... I guess DATA.read also returns a string
lkba has quit [Ping timeout: 244 seconds]
<Hanmac> yes Heredoc are some kind of string
<shevy> why is __END__ different from heredoc btw?
<Hanmac> with __END__ you can only have one per file ... hm
otakbeku has quit [Quit: leaving]
schaerli has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<shevy> yeah
<shevy> I wonder if they do the same thing
<shevy> you can access both, though differently
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jimg has joined #ruby
<kamilc__> back
jsaak has quit [Ping timeout: 250 seconds]
<shevy> top
PixelCrumbs has quit [Quit: Connection reset by peer...isn't he that short little mexican with the wire cutters heading your way?]
arup_r_ has joined #ruby
cocotton has quit [Remote host closed the connection]
karupa is now known as zz_karupa
startupality has joined #ruby
skammer3 has joined #ruby
jontmorehouse has quit [Ping timeout: 260 seconds]
<Hanmac> shevy: DATA is a IO object ... so oyu might do more shit with it ;p
<txdv> dont shit on data plz
alem0lars has quit [Quit: AFK..]
<shevy> lol
Pupeno has joined #ruby
jasooon has joined #ruby
lkba has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
lw has quit [Quit: s]
<Hanmac> hm shevy if you ask i currently add more checks and exceptions for rwx ... like currently with the Image class, if you try to resize it and the new size is negative
w09x has joined #ruby
AndChat| has quit [Ping timeout: 272 seconds]
dawkirst has quit [Remote host closed the connection]
arup_r_ has quit []
arup_r has joined #ruby
dawkirst has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.91 [Firefox 32.0.3/20140923175406]]
<shevy> \o/
davedev24_ has joined #ruby
DrCode has quit [Remote host closed the connection]
timgauthier has joined #ruby
jasooon has quit [Ping timeout: 260 seconds]
w09x has quit [Client Quit]
kaspertidemann has quit []
teddyp1cker has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 250 seconds]
roolo has quit [Remote host closed the connection]
ndrei has joined #ruby
djstorm has joined #ruby
Advocation has quit [Quit: Advocation]
dangerou_ has joined #ruby
dawkirst has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
pskosinski has joined #ruby
Takle has quit [Remote host closed the connection]
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
dRbiG has quit [Quit: co'o ro do]
soulcake has quit [Ping timeout: 277 seconds]
Advocation has joined #ruby
thomasxie has quit [Ping timeout: 240 seconds]
dc___ has quit [Remote host closed the connection]
AmBienCeD has quit [Write error: Broken pipe]
arcsky has left #ruby [#ruby]
rshetty has joined #ruby
nfk has quit [Quit: yawn]
moritzs has joined #ruby
dangerou_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kith_ has joined #ruby
kaspertidemann has joined #ruby
kith has quit [Disconnected by services]
kith_ is now known as kith
kaspergrubbe has joined #ruby
jacobat_ has quit [Ping timeout: 258 seconds]
jacobat has joined #ruby
Takle has joined #ruby
xenomorph is now known as {xenomorph}
agrinb has joined #ruby
rshetty has quit [Remote host closed the connection]
jbw__ has joined #ruby
dRbiG has joined #ruby
FIGO_ has joined #ruby
mattstratton has joined #ruby
arup_r has quit [*.net *.split]
skammer3 has quit [*.net *.split]
Mekkis has quit [*.net *.split]
AlSquire has quit [*.net *.split]
LiohAu_ has quit [*.net *.split]
grzywacz has quit [*.net *.split]
tlarevo_ has quit [*.net *.split]
msx has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
jadedphone has quit [*.net *.split]
jbw has quit [*.net *.split]
KC9YDN has quit [*.net *.split]
ta has quit [*.net *.split]
Beoran_ has quit [*.net *.split]
icedp has quit [*.net *.split]
i8igmac has quit [*.net *.split]
mieko has quit [*.net *.split]
Caius has quit [*.net *.split]
chridal has quit [*.net *.split]
danshultz has quit [*.net *.split]
hellome has quit [*.net *.split]
cescalante has quit [*.net *.split]
Platini has quit [*.net *.split]
^mg^ has quit [*.net *.split]
mozzarella has quit [*.net *.split]
hakunin has quit [*.net *.split]
peckermanzzz has quit [*.net *.split]
sirecote has quit [*.net *.split]
yetanotherdave has joined #ruby
robbyoconnor has quit [Ping timeout: 258 seconds]
bayed has joined #ruby
FIGO_ is now known as Platini
teddyp1cker has joined #ruby
cescalante has joined #ruby
Advocation has quit [Quit: Advocation]
dx7 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dangerou_ has joined #ruby
Cichol has joined #ruby
dawkirst has joined #ruby
marr has quit []
supergeek has joined #ruby
roolo has joined #ruby
mg^ has joined #ruby
justinmburrous has joined #ruby
KC9YDN has joined #ruby
arup_r has joined #ruby
emocakes__ has quit []
fandi has quit [Remote host closed the connection]
icedp has joined #ruby
dx7 has quit [Ping timeout: 240 seconds]
alem0lars has joined #ruby
<Xeago> so I currently have http://rubular.com/r/kQjhNt2zxN
<Xeago> but the .* in the service group is too greedy such that it steals matches from the time group
<Xeago> how do I make the .* less greedy?
alem0lars has quit [Client Quit]
mkaesz has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
rshetty has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
yetanotherdave has quit [Ping timeout: 246 seconds]
arup_r is now known as 1JTAALBRQ
apeiros has joined #ruby
<Xeago> do I have to duplicate the time matches and exclude them from possibilities in the service?
axilla has quit [Ping timeout: 244 seconds]
krisquigley has joined #ruby
apeiros has quit [Ping timeout: 244 seconds]
supergeek has quit [Quit: Goodbye, cruel world.]
<canton7> Xeago, which match demonstrates the issue?
AlSquire has joined #ruby
LiohAu has joined #ruby
tlarevo_ has joined #ruby
soulcake has joined #ruby
Mekkis has joined #ruby
skammer3 has joined #ruby
AmBienCeD has joined #ruby
arup_r has joined #ruby
jadedphone has joined #ruby
Caius has joined #ruby
ta has joined #ruby
Beoran_ has joined #ruby
chridal has joined #ruby
arup_r has quit [Ping timeout: 260 seconds]
hellome has joined #ruby
sirecote has joined #ruby
grzywacz has joined #ruby
msx has joined #ruby
danshultz has joined #ruby
hakunin has joined #ruby
mozzarella has joined #ruby
peckermanzzz has joined #ruby
tkuchiki has joined #ruby
mozzarel1 has joined #ruby
skammer has joined #ruby
dangerou_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Xeago> all matches, pretty much - tomorrow is not in the time group
ringaring has quit [Quit: Leaving]
<canton7> gotcha
skammer3 has quit [Quit: WeeChat 1.0]
tkuchiki has quit [Remote host closed the connection]
soulcake has quit [Changing host]
soulcake has joined #ruby
<Xeago> I'm not sure how to do this group can have all characters but it cannot end in list-of-words here
lxsameer has joined #ruby
lxsameer has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Xeago> so I want to split the optional service and the optional time
krisquigley has quit [Ping timeout: 245 seconds]
1JTAALBRQ has quit []
<Xeago> such that "is on-call" gives service:"" and time: "" and is on-call tomorrow give service:"" time:"tomorrow"
arup_r has joined #ruby
<Xeago> is on-call for foo tomorrow service:"foo" time:"tomorrow"
tokik has quit [Ping timeout: 245 seconds]
phutchins has joined #ruby
Advocation has joined #ruby
agrinb has quit [Remote host closed the connection]
thsig has quit [Remote host closed the connection]
TorpedoSkyline has joined #ruby
agrinb has joined #ruby
marr has joined #ruby
thsig has joined #ruby
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
justinmburrous has quit [Remote host closed the connection]
thsig_ has joined #ruby
shredding has quit [Quit: shredding]
AmBienCeD has quit [Write error: Broken pipe]
Mekkis has quit [Write error: Broken pipe]
danijoo has quit [Ping timeout: 250 seconds]
<YamakasY> will this give true or false on empty: if (Dir.glob("args[0]/*", File::FNM_DOTMATCH) - [".", ".."]).empty?
Snowstormer has quit [Excess Flood]
odlox has joined #ruby
odlox has quit [Client Quit]
AmBienCeD has joined #ruby
AmBienCeD has quit [Changing host]
AmBienCeD has joined #ruby
Mekkis has joined #ruby
Snowstormer has joined #ruby
TorpedoSkyline has quit [Client Quit]
<Hanmac> YamakasY: args[0] is not iterpolated like "#{args[0]}"
agrinb has quit [Ping timeout: 260 seconds]
<YamakasY> Hanmac: erm, help me there, should it ?
<YamakasY> Hanmac: I see some issues on running indeed
Lewix has joined #ruby
MCDev has joined #ruby
thsig has quit [Ping timeout: 244 seconds]
<Hanmac> i mean its possible to name a directory "args[0]" but its not the one you are looking for
krz has quit [Quit: WeeChat 1.0.1]
timonv_ has joined #ruby
danijoo has joined #ruby
fabrice31 has joined #ruby
dangerou_ has joined #ruby
<YamakasY> Hanmac: nope indeed, I give it like functionname(args)
User458764 has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
<YamakasY> Hanmac: that would be possible I thought ?
timonv_ has quit [Remote host closed the connection]
clauswitt has joined #ruby
<Hanmac> YamakasY: hm something like that? if (Dir.glob("#{args[0]}/*", File::FNM_DOTMATCH) - [".", ".."]).empty?
jimg has quit [Remote host closed the connection]
jasooon has joined #ruby
lw has joined #ruby
Takle has quit [Remote host closed the connection]
<YamakasY> Hanmac: let me check because now it indeed "checks" all files!
thsig_ has quit [Remote host closed the connection]
toretore has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
thsig has joined #ruby
W0rmDr1nk has quit [Ping timeout: 272 seconds]
IrishGringo has joined #ruby
thomasxie has joined #ruby
hellangel7 has joined #ruby
arup_r_ has joined #ruby
<Xeago> canton7: this is my current progress: http://rubular.com
<Hanmac> Xeago: wrong link?
jasooon has quit [Ping timeout: 250 seconds]
<Xeago> canton7: Hanmac: http://rubular.com/r/JFxFnz5hYH
TorpedoSkyline has joined #ruby
ktun has joined #ruby
<Xeago> I'm thinking of just breaking this regex up into multiple one
dangerou_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Xeago> each specified for extracting a single concept
darkness has joined #ruby
darkness is now known as Guest69152
<Xeago> but I wouldn't know how to do that either :'(
oo_ has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 244 seconds]
TorpedoSkyline has quit [Client Quit]
sk87 has joined #ruby
Guest69152 has quit [Max SendQ exceeded]
HelperW___ has joined #ruby
oo_ has joined #ruby
Guest69152 has joined #ruby
hellangel7 has quit [Ping timeout: 272 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
HelperW__ has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
dangerousdave has joined #ruby
Rollabunna has joined #ruby
startupality has quit [Read error: Connection reset by peer]
t_p has quit [Read error: Connection reset by peer]
cajone has left #ruby [#ruby]
IrishGringo has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
<banisterfiend> Xeago hoe gaat het
startupality has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
Cichol has quit [Quit: Leaving]
<Xeago> banisterfiend: best lastig :'(
starkhalo has joined #ruby
arup_r_ has quit [Ping timeout: 260 seconds]
<banisterfiend> Xeago sorry i dont understand your language, but it sounds cute
<banisterfiend> Xeago Meneeer.
* Xeago meneer*
<Xeago> banisterfiend: pretty rough
<arup_r> How can I resolve this issue ? https://gist.github.com/aruprakshit/1478080ef58da96e302f
<Xeago> so much I'm considering dropping my regexes
W0rmDr1nk has joined #ruby
anarang has quit [Quit: Leaving]
gilr00y_ has joined #ruby
User458764 has quit [Ping timeout: 244 seconds]
emrox has joined #ruby
jusmyth1 has quit [Quit: Leaving.]
lxsameer has joined #ruby
Deejay_ has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
Deejay_ has quit [Client Quit]
<wasamasa> hmm
<wasamasa> I wonder whether there is a way to redirect the pretty-printed output from pry into a file
justinmburrous has joined #ruby
dte has quit [Remote host closed the connection]
dideler has joined #ruby
ndrei has joined #ruby
gilr00y_ has quit [Ping timeout: 258 seconds]
<Xeago> wasamasa: pry | tee > file ?
<Xeago> nope :<
<wasamasa> Xeago: nope, that mistakes my path for a regex :P
Deejay_ has joined #ruby
<Xeago> try `script`
<Xeago> it'll spawn a subshell, you can start pry and it'll store a file
<Xeago> so `script pry_sessions` :)
rpag has quit [Ping timeout: 244 seconds]
<wasamasa> the unix command?
<Xeago> yea
<wasamasa> I doubt that will work considering pry invokes a fricking pager
<Xeago> hmm, icky yea
p0sixpscl has joined #ruby
p0sixpscl has quit [Max SendQ exceeded]
<Xeago> pagers should overwrite the screen though
Deejay_ has quit [Client Quit]
rpag has joined #ruby
dawkirst has quit [Remote host closed the connection]
p0sixpscl has joined #ruby
fsapo has joined #ruby
<Xeago> works'ish……
msmith_ has joined #ruby
yalue has joined #ruby
<Xeago> my terminal even repeats the beeps lol
thsig_ has joined #ruby
p0sixpscl has quit [Max SendQ exceeded]
p0sixpscl has joined #ruby
<wasamasa> "Input expressions and output results are automatically stored in array-like data structures accessible from the _in_ and _out_ locals respectively."
W0rmDr1nk has quit [Ping timeout: 245 seconds]
<wasamasa> except I can't even get index access to them
<wasamasa> what the hell
yetanotherdave has joined #ruby
thsig has quit [Ping timeout: 260 seconds]
mkaesz has joined #ruby
<wasamasa> anyways, looks like someone wrote a plugin to log everything: https://github.com/CozyCo/pry-auditlog
msmith_ has quit [Ping timeout: 245 seconds]
thsig_ has quit [Ping timeout: 246 seconds]
_5kg has quit [Ping timeout: 258 seconds]
hellangel7 has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
Takle has joined #ruby
W0rmDr1nk has joined #ruby
lxsameer has joined #ruby
<wasamasa> which doesn't work as expected
* wasamasa sighs
ndrei has quit [Ping timeout: 272 seconds]
arup_r has quit [Remote host closed the connection]
Guest69152 has quit [Ping timeout: 272 seconds]
arup_r has joined #ruby
mattstratton has joined #ruby
<wasamasa> it instead saves the definition it can find in existing ruby code
<wasamasa> which rather sounds like a gimmick
mattstratton has quit [Max SendQ exceeded]
justinmburrous has quit [Remote host closed the connection]
paulfm has joined #ruby
oo_ has quit [Remote host closed the connection]
mattstratton has joined #ruby
tkuchiki has joined #ruby
justinmburrous has joined #ruby
mattstratton has quit [Max SendQ exceeded]
oo_ has joined #ruby
bMalum has joined #ruby
mattstratton has joined #ruby
thsig has joined #ruby
W0rmDr1nk has quit [Ping timeout: 272 seconds]
yetanotherdave has quit [Ping timeout: 258 seconds]
mkaesz has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 244 seconds]
AndChat| has joined #ruby
spyderman4g63 has joined #ruby
justinmburrous has quit [Ping timeout: 245 seconds]
oo_ has quit [Ping timeout: 246 seconds]
lkba has quit [Ping timeout: 272 seconds]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
narcan has joined #ruby
dawkirst has joined #ruby
shredding has joined #ruby
<wasamasa> I guess I'll run pry in an emacs buffer for now and just save parts of it to a file because that automatically disables the pager
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
mastr_bennett[x] has joined #ruby
axilla has joined #ruby
boombadaroomba has joined #ruby
lw has quit [Quit: s]
mkaesz has joined #ruby
Pumukel has joined #ruby
terracor has quit [Quit: leaving]
W0rmDr1nk has joined #ruby
boombadaroomba has quit [Ping timeout: 258 seconds]
larissa has joined #ruby
justinmburrous has joined #ruby
jasooon has joined #ruby
startupality has quit [Quit: startupality]
bMalum has quit [Quit: bMalum]
<Xeago> wasamasa: cant you PAGER=cat VIEWER=cat pry
threesixes has quit [Remote host closed the connection]
mijicd has quit [Quit: leaving]
dorei has joined #ruby
larissa has quit [Ping timeout: 244 seconds]
jasooon has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Remote host closed the connection]
mkaesz has quit [Remote host closed the connection]
gilr00y has joined #ruby
vyorkin has joined #ruby
rimenes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ad_boot has quit [Remote host closed the connection]
Sht0 has joined #ruby
tkuchiki has joined #ruby
vyorkin has quit [Ping timeout: 260 seconds]
emocakes has joined #ruby
mkaesz has joined #ruby
cajone has joined #ruby
krz has joined #ruby
justinmburrous has quit [Remote host closed the connection]
justinmburrous has joined #ruby
blueOxigen has joined #ruby
dte has joined #ruby
livingstn has joined #ruby
relix has joined #ruby
MasterPiece has quit [Quit: Leaving]
rimenes has joined #ruby
dideler has quit [Ping timeout: 240 seconds]
Advocation has quit [Quit: Advocation]
bluOxigen has quit [Ping timeout: 244 seconds]
skammer has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
relix has quit [Client Quit]
dx7 has joined #ruby
justinmburrous has quit [Ping timeout: 260 seconds]
doev has quit [Ping timeout: 245 seconds]
obs has joined #ruby
i8igmac has joined #ruby
coderdad has joined #ruby
slester has joined #ruby
dx7 has quit [Ping timeout: 258 seconds]
HelperW___ has quit [Remote host closed the connection]
davispuh has joined #ruby
mleone has joined #ruby
HelperW___ has joined #ruby
freezey has joined #ruby
thsig has quit [Remote host closed the connection]
ndrei has joined #ruby
dblessing has joined #ruby
Advocation has joined #ruby
krisquigley has joined #ruby
CodeOmegaPrime has quit [Ping timeout: 246 seconds]
Advocation has quit [Client Quit]
ctp has joined #ruby
arup_r_ has joined #ruby
justinmburrous has joined #ruby
Hobogrammer has quit [Ping timeout: 272 seconds]
vt102 has joined #ruby
Advocation has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
arup_r has quit [Ping timeout: 258 seconds]
AtumT has joined #ruby
dte has quit [Remote host closed the connection]
slap_stick has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
slester has quit [Ping timeout: 245 seconds]
lampd1 has joined #ruby
yetanotherdave has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
sk87 has joined #ruby
<slap_stick> hi, i am trying to get rbenv to work for my ruby version i have a shebang in there #!/usr/bin/env ruby and when i run ~/.rbenv/bin/rbenv rehash or even local and the version if i run the script which prints the ruby version, it's always the system version and not the rbenv ruby version
<slap_stick> am i doing something wrong?
<cajone> Guys is it possible to copy a time variable say t1 to t2 then reset t1 without effecting t2 ?
rshetty has quit [Remote host closed the connection]
jottr_ has joined #ruby
cpruitt has joined #ruby
skammer has joined #ruby
dideler has joined #ruby
wolves_cs has joined #ruby
<toretore> cajone: Times are immutable, so no
<toretore> you could try dup-ing it
<cajone> toretore: ?
<cajone> duplicating?
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<toretore> actually, no, that doesn't make any sense
<toretore> tell me more about your issues
lampd1 has quit [Ping timeout: 272 seconds]
<cajone> toretore: guess I could convert t1 into an int then dup and reconvert back?
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qmfnp has joined #ruby
<toretore> ints are also immutable
<cajone> toretore: I have 3 time vars old middle current and I'm trying to roll them ie old - middle, middle - current current - Time.new
AmBienCeD has quit [Write error: Broken pipe]
<toretore> reassign them
tvw has quit []
<cajone> toretore: noob q how?
ta__ has joined #ruby
<toretore> old = middle; middle = current; current = Time.now
yetanotherdave has quit [Ping timeout: 246 seconds]
soulcake has quit [Ping timeout: 258 seconds]
ta has quit [Ping timeout: 249 seconds]
<cajone> toretore: when I do that they all end up the same
bmurt has joined #ruby
<cajone> ie Time.now
<toretore> show your code
startupality has joined #ruby
<cajone> paste.com?
<toretore> gist.github.com
soulcake has joined #ruby
maasha has joined #ruby
sevenseacat has joined #ruby
justinmburrous has quit [Remote host closed the connection]
AFKGeek has quit [Quit: Leaving]
<maasha> Autoload problem: require 'narray' works fine. Autoload :NArray, 'narray' goes "LoadError: yadda yadda" ?
coderdad has quit [Remote host closed the connection]
twohlix has joined #ruby
justinmburrous has joined #ruby
coderdad has joined #ruby
coderdad has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
apeiros has joined #ruby
timgauthier is now known as timgauthier_isaw
<toretore> cajone: is current ever going to be < prev?
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cajone> toretore: yes, they @epoch2 is set on an event and that event might be faster/slower than the last event
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hanmac has joined #ruby
timgauthier has joined #ruby
<toretore> what is @epoch2 then, a timestamp of when it occured?
<cajone> toretore: yes
<toretore> you have these set in different threads?
<cajone> toretore: `no ite mutex'd
disappeared has joined #ruby
<cajone> its*
justinmburrous has quit [Ping timeout: 272 seconds]
<toretore> so @epoch1 and @epoch2 are timestamps for events that can happen in any order?
<toretore> it would be helpful if you provided more context
<toretore> the way you explained it it seems to me that these variables represent a timeline
oleo has joined #ruby
dangerousdave has joined #ruby
jherbst has joined #ruby
dx7 has joined #ruby
dte has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<maasha> This is basically my question, but it is 5 years old and the solution dont work on ruby2
<slap_stick> hi, is there an easy way to iterate over an array but add an item inbetween each element i.e. %w(1 2 3) to become %x(1 ? 2 ? 3) i was using map but that would just append the ? to the string in each array item as oppose have it as an array item of its own
freerobby has joined #ruby
freezey has quit [Remote host closed the connection]
jasooon has joined #ruby
freezey has joined #ruby
<Hanmac> maasha: autoload is not liked ... and with threads it might bite you in your asss
msmith_ has joined #ruby
strax has joined #ruby
<maasha> Hanmac: I read about it not being liked, but I thought it was resolved
t_mmyv has joined #ruby
<cajone> toretore: sorry your right I just thought I could dup/copy the time field, I was trying to explain without writing a book ( its complicated), but thanks for your help I will think about it a bit longer
justinmburrous has joined #ruby
apeiros has quit [Ping timeout: 272 seconds]
AlexRussia has joined #ruby
<cajone> toretore: btu basically I'm trying to control the thread flow by watching the integer identified threads going through a gate ( the gates are very far apart)
jerius has joined #ruby
jasooon has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
sailias has joined #ruby
<maasha> Hanmac: So if you have a big app with lots of gem dependencies, where most are only used occasionally, you do what to limit load time?
<_br_> slap_stick: Maybe this? %w(a b c d).collect! { |i| [ i, "foo" ] }.flatten
<slap_stick> yep ;-) thast what i ended up doig in the end
<slap_stick> and if i could type properly too that would be good
<slap_stick> thanks ;-)
freerobby has quit [Quit: Leaving.]
<Hanmac> maasha: for one of my things i had require at runtime ... like def parse_data; if @type == 'zlib'; require 'zlib'; end; ... ; end ... likt it does only require if it does need it
User458764 has joined #ruby
Channel6 has joined #ruby
rismoney1 has joined #ruby
<maasha> Hanmac: hm I foresee it that some gem might be required from multiple places
slester has joined #ruby
tlarevo_ has quit [Remote host closed the connection]
<maasha> I thought autoload was such a neat idea :o(
Takle has joined #ruby
timonv_ has joined #ruby
cherwin has joined #ruby
yfeldblum has joined #ruby
agrinb has joined #ruby
charliesome has quit [Quit: zzz]
timonv_ has quit [Remote host closed the connection]
<shevy> it will be removed
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
<maasha> shevy: there was lot of writing about it later on and it was not removed IIRC
snath has quit [Ping timeout: 258 seconds]
apeiros has joined #ruby
<shevy> in 2.x era it will remain for backwards compatibility reasons
<shevy> but you can read on what matz wrote
hellangel7 has quit [Ping timeout: 272 seconds]
mkaesz has quit [Ping timeout: 260 seconds]
devdazed has joined #ruby
rubie has joined #ruby
ki0 has quit [Remote host closed the connection]
<maasha> shevy: I have.
cherwin has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
tomgavin[work] has joined #ruby
cherwin has joined #ruby
justinmburrous has quit [Remote host closed the connection]
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rubie> hi all: was wondering why I was getting a method error for this gets.chomp? https://gist.github.com/gabrie30/eabb24dfc48041c751b5
justinmburrous has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
ki0 has joined #ruby
davedev24_ has joined #ruby
GriffinHeart has joined #ruby
<rubie> undefined method `chomp' for nil:NilClass (NoMethodError)
mleone has joined #ruby
dx7 has quit [Ping timeout: 272 seconds]
<canton7> rubie, gets can return nil
<canton7> read the docs for it
hellangel7 has joined #ruby
crunk_bear has joined #ruby
doev has joined #ruby
timonv_ has joined #ruby
pskosinski has joined #ruby
Suchit__ has quit [Quit: Computer has gone to sleep.]
Channel6 has quit [Quit: Leaving]
justinmburrous has quit [Ping timeout: 260 seconds]
AlSquirrel has joined #ruby
fantazo has joined #ruby
timonv_ has quit [Remote host closed the connection]
<rubie> humm, not sure i understand the docs
<rubie> for gets
sandelius has joined #ruby
dte has quit [Remote host closed the connection]
<rubie> says it will return nil if at the end of of file
benzrf is now known as benzrf|offline
justinmburrous has joined #ruby
AlSquire has quit [Ping timeout: 260 seconds]
jxf has joined #ruby
d4nku has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dte has joined #ruby
mary5030 has joined #ruby
<rubie> im just trying to set a while loop that will continue unless the user inputs "yes"
mek_ has joined #ruby
<mek_> what does def name! accomplish, with the exclamation point
<_br_> mek_: ! or "Bang" is normally used in notations which are destructive
silkfox has joined #ruby
<_br_> rubie: You are executing gets.chomp, but gets may return "nil". Nilclass has no method #chomp, hence your code is wrong.
timgauthier is now known as timgauthier_isaw
mijicd has joined #ruby
zorak8 has joined #ruby
<Hanmac> but its normally only one case where gets returns nil ... and in most of the codes i have seen it is not checked
larissa has joined #ruby
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Hanmac> mek_ also do not chain ! methods because they can return nil
<twohlix> mek_ what's the context this code is in?
<mek_> just reading some study material and saw it, was unfamiliar with it
<_br_> rubie: a quick and dirty fix would be gets.to_s.chomp
<_br_> mek_: its "syntactic sugar"
mrcloud_ has joined #ruby
<rubie> if i remove the .chomp it works
Kricir has joined #ruby
<rubie> but when the program runs, it doesnt' allow the user to type anything
<shevy> rubie why don't you use loop {} instead
apeiros_ has joined #ruby
<_br_> rubie: you shouldn't use #chomp anyway to remove newline chars, rather #strip
mek_ is now known as mekhami
<shevy> loop { user_input = $stdin.gets.chomp; break if user_input == 'q' }
mijicd has quit [Client Quit]
<shevy> >> " abc\n".chomp
<eval-in_> shevy => " abc" (https://eval.in/202645)
<shevy> >> " abc\n".strip
<eval-in_> shevy => "abc" (https://eval.in/202646)
<Hanmac> shevy for this gets can still return nil
Advocation has quit [Quit: Advocation]
<_br_> does that work for \r\n as well?
apeiros has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
<shevy> Hanmac sure but we don't intercept it with the above loop code
<Hanmac> shevy might be better: loop { user_input = gets.to_s.chomp; break if user_input == 'q' }
<shevy> ah Ctrl-D I see
petersaints has quit [Read error: Connection reset by peer]
rkalfane has joined #ruby
<rubie> shevy: i was just playing around and was surprised that this didn't work. just trying to figure out why
<shevy> rubie use loop
sk87 has joined #ruby
MrBoolean has quit [Ping timeout: 260 seconds]
<shevy> indeed gets can pick up nil
<rubie> can i do this with a while loop?
<shevy> please don't
zorak8 has quit [Ping timeout: 250 seconds]
<shevy> your brain could not handle, so try to make it easier for your brain and switch to a simpler construct
<rubie> hah ok
dte has quit [Read error: Connection reset by peer]
teddyp1c_ has joined #ruby
treehug88 has joined #ruby
dte has joined #ruby
monkeypatch has joined #ruby
<shevy> also test your script if it can handle ctrl-d
<shevy> and ctrl-c
<shevy> :)
twohlix has quit [Ping timeout: 260 seconds]
<_br_> The use of #chomp to remove carrage return / newline is wrong. Use #strip, since your code will break on $env in my opinion.
tchebb has quit [Ping timeout: 245 seconds]
<shevy> strip will do more than remove newlines
<_br_> well #chom will not remove \r\n correctly
endash has joined #ruby
<rubie> shevy: i was originally interested in the "switch = true" "switch = false" in relation to the while loop
teddyp1cker has quit [Ping timeout: 260 seconds]
<shevy> yeah that works rubie
<shevy> while will evaluate until the condition it checks on becomes false
<canton7> _br_, does for me...? and the docs say "If $/ has not been changed from the default Ruby record separator, then chomp also removes carriage return characters (that is it will remove \n, \r, and \r\n)"
<mrcloud_> hello. Do I really need sooo much lines if I want to do this https://gist.github.com/anonymous/208e640063c978025d5a ?
coderdad has joined #ruby
gccostabr has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
jusmyth has joined #ruby
<_br_> canton7: Uh? Ok, my bad then. Seems I'm wrong, sorry.
ffranz has joined #ruby
djstorm has quit [Ping timeout: 258 seconds]
<shevy> that is so ugly mrcloud_
<rubie> shevy: am i thinking about this algorithm correctly? https://gist.github.com/gabrie30/1901e2bb70342dda09cf
<mrcloud_> shevy: first time trying ruby so yes, probably xD
lampd1 has joined #ruby
lampd1 has quit [Client Quit]
<shevy> mrcloud_ why not do:
nrsk has joined #ruby
<canton7> mrcloud_, commented
<shevy> p 'Generate scores' if options.scores
<shevy> and next line
<shevy> p 'Validate' if options.validate
lxsameer has quit [Quit: Leaving]
<jds> I'm using nokogiri, and want to run something along the lines of xml.xpath("//foo[@attr='#{user_input}']"). Is there anything in nokogiri to help me escape 'user_input' appropriately ?
justinmburrous has quit [Remote host closed the connection]
nrsk has quit [Remote host closed the connection]
tchebb has joined #ruby
<shevy> I mean that last if/else is kinda silly because you already have yet another if after that else
yetanotherdave has joined #ruby
p0sixpscl has quit [Quit: bye]
<mrcloud_> shevy: where I put that p Ill put code, maybe method calls
<shevy> rubie no idea, my brain works with bananas and apples, not algorithms :)
<shevy> mrcloud_ so where is the problem - simply replace the p with your_method_here()
<canton7> mrcloud_, also, use '&&' not 'and'
AFKGeek has joined #ruby
AlexRussia has quit [Remote host closed the connection]
Jackneill has joined #ruby
slap_stick has quit [Quit: This computer has gone to sleep]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlexRussia has joined #ruby
dte_ has joined #ruby
Xeago has quit [Remote host closed the connection]
oo_ has joined #ruby
dte has quit [Read error: Connection reset by peer]
<canton7> mrcloud_, did you see my comment?
<mrcloud_> canton7: yeah, now. I did exactly that and was not working. This is strange...
troulouliou_dev has joined #ruby
zorak8 has joined #ruby
troulouliou_dev has quit [Changing host]
troulouliou_dev has joined #ruby
charliesome has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Remote host closed the connection]
tourne has joined #ruby
zeroXten has joined #ruby
mleone has joined #ruby
<zeroXten> why does creating a string result in two objects?
<apeiros_> zeroXten: what makes you think it would?
<zeroXten> x = 'a1b2c3d4!!e5f6g7h8'; ObjectSpace.each_object { |o| puts "#{o.object_id} #{o.class} '#{o}'" if o.kind_of? String and o.include? 'd4!!e5' and o.size == 18 }
yetanotherdave has quit [Ping timeout: 246 seconds]
Jackneill has quit [Ping timeout: 244 seconds]
<apeiros_> you mutate ObjectSpace while iterating over it
lnormous has joined #ruby
<zeroXten> ohhh, heh
<zeroXten> how meta ;)
<zeroXten> hmm
<shevy> mrcloud_ no idea, that looks so ugly
<apeiros_> though, I see you test against content and size
<apeiros_> not sure why you see two of them
<mrcloud_> shevy: what do you mean? Is not that what you suggested? xD
<shevy> mrcloud_ to be honest with you, if you already have a class, I would add code to the class so usage becomes simple
<shevy> mrcloud_ sure, based on your original input - that does not make that code pretty, it is still ugly
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
cpruitt has quit [Quit: cpruitt]
<shevy> eat(:banana) if hungry?
<shevy> see that is simple - I eat my banana if I am hungry
jusmyth has left #ruby [#ruby]
<shevy> your code on the other hand
<shevy> if options.answers && options.questions
<shevy> generate_scores if options.scores
<shevy> validate if options.validate
<shevy> I dunno what you wanna do
grzywacz has quit [Ping timeout: 260 seconds]
<mrcloud_> shevy: I'm having problems to do it better. As I said first time with ruby. This is what I have https://gist.github.com/anonymous/8f5d0c30cca124ec80a0
cpruitt has joined #ruby
tagrudev has quit [Remote host closed the connection]
dte_ has quit [Read error: No route to host]
ixti has joined #ruby
dte has joined #ruby
<shevy> wow
<shevy> you have a class but no instance variable
<mrcloud_> shevy: yeah, I'm reading now how to do that
djstorm has joined #ruby
<shevy> no wonder you try to ask directly what to do
<shevy> put your logic into your class instead
<shevy> add the optionparser stuff after you finished writing your class properly first
Xeago has joined #ruby
cocotton has joined #ruby
urtokk has quit [Ping timeout: 246 seconds]
lampd1 has joined #ruby
<mrcloud_> shevy: that makes sense
Advocation has joined #ruby
dte_ has joined #ruby
<YamakasY> man this one with files_exists(/my/path) always returns false here :S http://pastebin.com/ktqFZaGW
skammer has quit [Ping timeout: 272 seconds]
dte has quit [Read error: Connection reset by peer]
Pumukel has quit [Ping timeout: 272 seconds]
emocakes__ has joined #ruby
<YamakasY> what am I doing wrong
Advocation has quit [Client Quit]
jasooon has joined #ruby
<mrcloud_> shevy: do you know an easy to read guide for a java developer? something like a cheatsheet with good practises or something like that?
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has quit [Remote host closed the connection]
<shevy> mrcloud_ no but whenever you end up writing inelegant code, 95% of the time it is wrong in ruby
rkalfane has joined #ruby
Pumukel has joined #ruby
Advocation has joined #ruby
<shevy> mrcloud_ I think you allowed OptionParser to be the primary guide in how to design the class
<waxjar> YamakasY: you're globbing over the directory called "args[0]", literally.
mleone has quit [Ping timeout: 250 seconds]
<shevy> I always do it the other way, I finish my class first, with all the methods and data I need, then I add optionparser for commandline toggles
<shevy> and all class methods I write last
<waxjar> you probably want to interpolate that. (btw, a File.exists? method exists)
<shevy> like def self.bla
dte_ has quit [Read error: No route to host]
<mrcloud_> shevy: any public example with options parsing? just to take a look
<shevy> YamakasY use an intermediate variable
JohnBat26 has joined #ruby
<shevy> mrcloud_ dunno, optionparser sucks too :)
dte has joined #ruby
<YamakasY> shevy: like #{args[0]} ?
emocakes has quit [Ping timeout: 272 seconds]
<YamakasY> waxjar: I'm very new to this
<shevy> mrcloud_ slop is more elegant and readable https://github.com/leejarvis/slop
<shevy> YamakasY why do you want to use #{}
<waxjar> YamakasY: yes, that's interpolation.
<shevy> this shows that you did not understand #{} yet
Kricir has joined #ruby
mattstratton has joined #ruby
<YamakasY> shevy: discussed that with Hanmac earlier
<shevy> if it is a string, then you must add ""
<waxjar> YamakasY: also, #empty? will return true/false already, so there's no need for the if-else clauses :)
mattstratton has quit [Max SendQ exceeded]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<YamakasY> waxjar: I need to check for hidden files
<YamakasY> and not for . and ..
jasooon has quit [Ping timeout: 250 seconds]
<mrcloud_> shevy: lol, ok, I have no problems with using other parser. Im a newbie. My real problem is that I have 4 days to learn ruby and write an easy app. And I say easy because I wrote it in java in less than an hour but I have no idea about how to do it in ruby xD
mattstratton has joined #ruby
<YamakasY> shevy: would you say /my/path is a string ?
Takle has quit [Remote host closed the connection]
* YamakasY is not a programmer at all... puppet will do but I'm more a network admin
mattstratton has quit [Max SendQ exceeded]
wwalker has quit [Ping timeout: 272 seconds]
<shevy> YamakasY well, I would first build an intermediate variable
<shevy> usually I use _
yfeldblum has joined #ruby
mattstratton has joined #ruby
<shevy> once _ is how it is, I can pass it into another method
<waxjar> YamakasY: what's actually in args?
mattstratton has quit [Max SendQ exceeded]
<mrcloud_> shevy: in ruby do you put each class in a different file like in java?
phantummm has joined #ruby
lnormous has quit [Ping timeout: 245 seconds]
<shevy> mrcloud_ yeah, that is the simple way
mattstratton has joined #ruby
<shevy> you can put more than one class in a .rb file but that is the harder way
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AmBienCeD has joined #ruby
dte has quit [Read error: Connection reset by peer]
<YamakasY> waxjar: /my/path
mattstratton has quit [Max SendQ exceeded]
<shevy> you already know OOP so you know how to setup a class in java from zero too, it is the same in ruby, you just need to use less code. also, use "def initialize"
grzywacz has joined #ruby
<waxjar> YamakasY: so args is a String?
timgauthier has joined #ruby
<mrcloud_> shevy: yeah, I read about initialize
mattstratton has joined #ruby
<YamakasY> waxjar: in my opinion yes!
arup_r_ has quit []
<waxjar> cool, let's rename it to path then :)
<shevy> initialize gets called whenever you do .new (after .allocate but .allocate is called by ruby itself before .initialize)
dx7 has joined #ruby
mattstratton has quit [Max SendQ exceeded]
<mrcloud_> shevy: actually the app is quite simple. I just only need to read some jsons from a remote url, deserialize them to objects, validate the info and generate another json
dte has joined #ruby
<shevy> good, you described 4 steps, so use at least 4 different methods
mattstratton has joined #ruby
<waxjar> YamakasY: and what you want to do is check if there are any dotfiles in the directory or any files at all?
<shevy> you can literally call those methods like in the sentence above, just replace the ' ' with '_' and you have the names for the ruby methods
<YamakasY> waxjar: yes as I use hidden ones too... you know for the NSA ;0
<shevy> def read_json_from_this_remote_url(i)
startupality has quit [Read error: Connection reset by peer]
<shevy> def deserialize_this_json_data_to_object(i)
<mrcloud_> shevy: yeah, that is easier in Java. In the java version I use a class to load data, a class to parse jsons, a class to validate...
<eam> why does ruby have "def initialize" instead of "def new"
<shevy> and you can give all those (i) the proper defaults; (i = @json_dataset) and so on
<eam> never understood that weirdness
<shevy> yes you can do the very same too mrcloud_
mary5030 has quit [Remote host closed the connection]
<shevy> there is more than one way in ruby
yfeldblum has quit [Ping timeout: 244 seconds]
<mrcloud_> shevy: Ill try to separete all in different classe. BTW, what is i = @json_datase? I haven't seen nothing similar yet
<waxjar> YamakasY: Dir.glob("#{path}/*).size > 2 should work then i think
<shevy> mrcloud_ i is the name of the argument, the assignment means you can omit the argument, and @json_dataset is an instance variable which you will have gotten when you invoke that earlier method
AlexRussia has quit [Remote host closed the connection]
<waxjar> with an extra " after *, that is :p
<shevy> see YamakasY?
<shevy> #{} is hard
<shevy> even waxjar failed :)
<YamakasY> waxjar: but 2 says more than 2 ?
startupality has joined #ruby
PeterBoy has joined #ruby
<shevy> how much simpler is the shevy way
<shevy> Dir[_]
AlexRussia has joined #ruby
<shevy> well actually
<shevy> Dir[_].size > 2
<YamakasY> is that save enough ?
blackmesa has joined #ruby
mary5030 has joined #ruby
<mrcloud_> shevy: ok, I'm going to create some classes and see if I make it work ^^
<YamakasY> I better check it instead of let "someone/system" assuming it to me
mattstra_ has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
<shevy> YamakasY you can add checks before sending in _
kobain_ has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
<olivier_bK> how to continue writing in the file ? i can only write or create a new file
<YamakasY> shevy: as I do now too ?
mattstratton has joined #ruby
dawkirst has quit [Remote host closed the connection]
AlexRussia has quit [Excess Flood]
AlexRussia has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
disappeared has left #ruby [#ruby]
mattstratton has quit [Client Quit]
GriffinHeart has joined #ruby
oo_ has quit [Remote host closed the connection]
dte has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
oo_ has joined #ruby
dte has joined #ruby
<olivier_bK> i find the solution i must to use a+
IceDragon has joined #ruby
Takle has joined #ruby
krisquigley has joined #ruby
<YamakasY> waxjar: I now get Error 400 on SERVER: undefined local variable or method `path' for #<Puppet::Parser::Scope:0x7f2d5a6f41e8>
GriffinHeart has quit [Remote host closed the connection]
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterfiend has quit [Read error: Connection reset by peer]
dawkirst has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
txdv has quit [Ping timeout: 258 seconds]
freezey has quit [Remote host closed the connection]
Todiann has joined #ruby
Todiann has quit [Client Quit]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
serialsito has joined #ruby
monkeypatch has joined #ruby
banister has joined #ruby
maasha has quit [Quit: Page closed]
banister has quit [Max SendQ exceeded]
dstynchula has joined #ruby
oo_ has quit [Ping timeout: 246 seconds]
justinmburrous has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
tskogber1 has quit [Ping timeout: 258 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
freezey has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
thsig has joined #ruby
<mrcloud_> shevy: if I have a class Assessment in an assessments.rb file how do I import it in my main class? Im trying with require 'assessment' without luck
tskogberg has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
fgo has quit []
gengmao has quit [Ping timeout: 272 seconds]
dangerousdave has joined #ruby
banister has joined #ruby
<Hanmac> mrcloud_: you might need require_relative
<mrcloud_> Hanmac: oh, yeah, that works. Thanks
enebo has joined #ruby
timonv_ has joined #ruby
oleo__ has joined #ruby
charliesome has quit [Quit: zzz]
dte has quit [Read error: No route to host]
dte has joined #ruby
magicien_ has quit [Quit: leaving]
dte has quit [Read error: No route to host]
magicien has joined #ruby
oleo is now known as Guest59953
magicien has quit [Client Quit]
dte has joined #ruby
Guest59953 has quit [Ping timeout: 240 seconds]
clauswitt has joined #ruby
snath has joined #ruby
magicien has joined #ruby
icebourg has joined #ruby
rippa has joined #ruby
Ankhers has joined #ruby
bal has quit [Quit: bal]
AFKGeek has quit [Quit: Leaving]
sdwrage has quit [Quit: This computer has gone to sleep]
<YamakasY> would #{} just work ?
sdwrage has joined #ruby
dawkirst has quit [Remote host closed the connection]
dawkirst has joined #ruby
shredding has quit [Ping timeout: 244 seconds]
bobishh_ is now known as bobishh
pagioss has quit [Ping timeout: 260 seconds]
justinmburrous has quit [Remote host closed the connection]
<bobishh> can anyone see this ?
Takle has quit [Remote host closed the connection]
<YamakasY> bobishh: I'm blind
jacobat_ has joined #ruby
txdv has joined #ruby
<YamakasY> *blinded
lukevinc has joined #ruby
gsd has joined #ruby
<bobishh> YamakasY: i'm sorry for ur eyes dude) i wanted to use a console irc client and i'm trying irssi, not much success as u can see
dte_ has joined #ruby
<YamakasY> bobishh: I can see
dte has quit [Read error: Connection reset by peer]
<YamakasY> wow, it's a miracle
Takle has joined #ruby
<YamakasY> bobishh: no works, irssi is kinda simple tho ?
nfk has joined #ruby
<bobishh> maybe. But not intuitive) at least for me
jacobat has quit [Ping timeout: 258 seconds]
threesixes has joined #ruby
<YamakasY> on linux ?
<YamakasY> commandline just ?
Pumukel has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bobishh> YamakasY: mac os, yeah just terminal. I also use tmux, so i've got all that I need here
dte has joined #ruby
hellangel7 has quit [Remote host closed the connection]
dte_ has quit [Read error: Connection reset by peer]
jacobat_ has quit [Ping timeout: 244 seconds]
<wpp> > wow, it's a miracle :D
andrewjanssen has joined #ruby
distax has joined #ruby
lnormous has joined #ruby
<YamakasY> bobishh: try xchat maybe ?
hamakn has quit [Remote host closed the connection]
<andrewjanssen> Hello!
distax has left #ruby [#ruby]
<YamakasY> andrewjanssen: hi
<bobishh> andrewjanssen: are u swedish? )
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
koderok has quit [Quit: koderok]
Pumukel has joined #ruby
<bobishh> YamakasY: I'll take a look at xchat, thnx)
fsapo has quit [Ping timeout: 245 seconds]
andrewjanssen has quit [Remote host closed the connection]
<YamakasY> bobishh: I think you need xchat2
rpag has quit [Ping timeout: 258 seconds]
andrewjanssen has joined #ruby
yetanotherdave has joined #ruby
<andrewjanssen> bobishh: no, but I think I have Dutch (or something like that) in my lineage somewhere
schaerli has quit [Remote host closed the connection]
justinmburrous has joined #ruby
<bobishh> window 0
bobishh has left #ruby [#ruby]
bobishh has joined #ruby
TorpedoSkyline has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
<YamakasY> andrewjanssen: jansen is dutch, janssen is wannabe :P
dte has quit [Read error: Connection reset by peer]
dte has joined #ruby
dstynchula has quit []
Sharker_ has joined #ruby
Darryl has joined #ruby
wpp has quit [Ping timeout: 246 seconds]
dte has quit [Read error: No route to host]
<YamakasY> anyway, my check doesn't work :(
yetanotherdave has quit [Ping timeout: 240 seconds]
centrx has joined #ruby
txdv has quit [Ping timeout: 260 seconds]
Sharker has quit [Ping timeout: 264 seconds]
centrx has quit [Client Quit]
centrx has joined #ruby
dte_ has joined #ruby
t_p has joined #ruby
rkalfane has joined #ruby
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
fabrice31 has quit [Remote host closed the connection]
lukevinc has quit [Quit: ChatZilla 0.9.91 [Firefox 24.8.0/20000101000000]]
cocotton has quit [Remote host closed the connection]
<andrewjanssen> ha ha!
dte_ has quit [Read error: Connection reset by peer]
abuzze has quit [Ping timeout: 260 seconds]
dte has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sharker has joined #ruby
jasooon has joined #ruby
aganov has quit [Remote host closed the connection]
yfeldblum has joined #ruby
sinkensabe has quit [Remote host closed the connection]
julieeharshaw has joined #ruby
MaciejCzyzewski has joined #ruby
dte has quit [Read error: Connection reset by peer]
dte has joined #ruby
<YamakasY> andrewjanssen: yeah you thought we didn't see that at the border ?
<YamakasY> :P
<YamakasY> we did
xcyclist has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<YamakasY> oh yeah we did
Sharker_ has quit [Ping timeout: 264 seconds]
mrchris has joined #ruby
justinmburrous has quit [Remote host closed the connection]
<YamakasY> and because you think you got passed and we did that on purpose to have a reason to give you a fake life... we create http://www.downloadmoreram.com
MaciejCzyzewski has quit [Client Quit]
<YamakasY> to fake you even more!
jottr_ has quit [Quit: WeeChat 1.0]
momomomomo has joined #ruby
dte has quit [Read error: Connection reset by peer]
<andrewjanssen> lol!
spastorino has joined #ruby
dte has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
jasooon has quit [Ping timeout: 272 seconds]
<YamakasY> oh yeah, you will be on mars1 too :P
troulouliou_dev has quit [Quit: Leaving]
<YamakasY> we booked you already
PeterBoy has quit [Remote host closed the connection]
jottr has joined #ruby
<YamakasY> for free ofcourse
HelperW____ has joined #ruby
kaspertidemann has quit []
mpistone has joined #ruby
bobishh has quit [Ping timeout: 272 seconds]
doev has quit [Ping timeout: 258 seconds]
<Hanmac> YamakasY: would not be suprised if that "downloadmoreram" is a buyable app for Iphone ;P
<YamakasY> ok, do I need to covert this #{} first to arg = args[0] ? if Dir["#{args[0]}"].size > 2 return true
cocotton has joined #ruby
<YamakasY> Hanmac: the website came from Steve Jobs his timecapsule
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
<YamakasY> I'm lost
<YamakasY> (without you)
rubie has quit [Quit: Page closed]
troulouliou_dev has joined #ruby
HelperW___ has quit [Ping timeout: 245 seconds]
PeterBoy has joined #ruby
sevenseacat has quit [Quit: Leaving.]
<mrchris> I've just tried using the PHP framework Phalcon. Anyone else tried it? The way you can easily use and stitch together only the bits you need is pretty neat. What's stopping us doing this with Ruby?
dte has quit [Read error: Connection reset by peer]
dte has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
bobishh has joined #ruby
HelperW____ has quit [Ping timeout: 272 seconds]
<centrx> mrchris, That is what many Ruby libraries/frameworks do, only load things that are actually used
gregf has quit [Quit: WeeChat 1.0.1]
dte has quit [Read error: No route to host]
<centrx> mrchris, Phalcon appears to sell itself as fast because it is implemented through a C extension
dte has joined #ruby
justinmburrous has joined #ruby
f0ster has quit []
mercwithamouth has quit [Ping timeout: 260 seconds]
timonv_ has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
lw has joined #ruby
<mrchris> The way you bootstrap an app is pretty neat: just a single index.php file with the setup required. This means you can easily use multiple apps at the same time together.
timonv_ has joined #ruby
<mrchris> You can easily link multiple apps together in any way you need. The best you can do with Rails in Engines, but they're a minefield
tlarevo has joined #ruby
last_staff has joined #ruby
<centrx> I'm not sure what you mean, you can serve multiple apps at the same time with Ruby
<centrx> The fact that it uses PHP is a game killer
<Hanmac> mrchris: i also used phalcon before ... funny thing is that my collage always made tickets for it because we found something again that did not work
timgauthier is now known as timgauthier_isaw
Ankhers has quit [Remote host closed the connection]
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dte has quit [Read error: Connection reset by peer]
pagioss has joined #ruby
dte has joined #ruby
Aaaal has quit [Quit: Aaaal]
IceDragon has quit [Ping timeout: 272 seconds]
IceDragon has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
timonv_ has quit [Ping timeout: 260 seconds]
dx7 has quit [Remote host closed the connection]
TorpedoSkyline has quit [Ping timeout: 260 seconds]
dx7 has joined #ruby
jacobat has joined #ruby
gsd has joined #ruby
baroquebobcat has joined #ruby
kenneth has joined #ruby
sinkensabe has joined #ruby
Aaaal has joined #ruby
wjimenez5271 has joined #ruby
Sharker has quit [Remote host closed the connection]
hamakn has joined #ruby
cocotton has quit [Remote host closed the connection]
dte has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
dte has joined #ruby
startupality has quit [Quit: startupality]
Pumukel has quit [Ping timeout: 272 seconds]
ki0 has quit [Remote host closed the connection]
jimmyhoughjr has joined #ruby
coderdad has quit [Remote host closed the connection]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
poguez has joined #ruby
coderdad has joined #ruby
timgauthier has joined #ruby
carraroj has joined #ruby
bobishh has quit [Ping timeout: 272 seconds]
beneggett has joined #ruby
kobain_ has quit [Ping timeout: 272 seconds]
julieeharshaw has quit [Quit: ZNC - http://znc.in]
dte has quit [Read error: No route to host]
pandaant has quit [Remote host closed the connection]
dte has joined #ruby
justinmburrous has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
coderdad has quit [Ping timeout: 272 seconds]
TorpedoSkyline has joined #ruby
dte has quit [Read error: No route to host]
Jackneill has joined #ruby
dangerousdave has joined #ruby
dte has joined #ruby
blueOxigen has quit [Ping timeout: 272 seconds]
zorak8 has quit [Ping timeout: 258 seconds]
lmickh has joined #ruby
chrishough has joined #ruby
lnormous has quit [Ping timeout: 245 seconds]
kobain_ has joined #ruby
stylus has quit [Ping timeout: 272 seconds]
dte has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
dte has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
hilake has quit [Read error: No route to host]
nettoweb has quit [Max SendQ exceeded]
blackmesa has quit [Ping timeout: 272 seconds]
napcae_ is now known as napcae
sk87 has joined #ruby
nettoweb has joined #ruby
skolman has joined #ruby
nettoweb has quit [Max SendQ exceeded]
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j_mcnally has joined #ruby
mrcloud_ has quit [Ping timeout: 246 seconds]
skolman has quit [Remote host closed the connection]
nettoweb has joined #ruby
skolman_ has joined #ruby
PeterBoy has quit [Remote host closed the connection]
x1337807x has joined #ruby
olivier_bK has quit [Ping timeout: 245 seconds]
x1337807x has quit [Max SendQ exceeded]
ghr has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
txdv has joined #ruby
x1337807x has joined #ruby
twohlix has joined #ruby
thomasxie has quit [Remote host closed the connection]
cherwin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andikr has quit [Remote host closed the connection]
ghostmoth has joined #ruby
julieeharshaw has joined #ruby
Tricon has joined #ruby
schaerli has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
sinkensabe has quit [Remote host closed the connection]
Jackneill has quit [Remote host closed the connection]
joonty has quit [Quit: Leaving]
dte has quit [Read error: Connection reset by peer]
dte has joined #ruby
sevvie has joined #ruby
timgauthier is now known as timgauthier_isaw
Takle has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spyderman4g63 has joined #ruby
ghostmoth has quit [Client Quit]
cndiv has joined #ruby
tanath_ has joined #ruby
tanath has quit [Remote host closed the connection]
ghostmoth has joined #ruby
sailias1 has joined #ruby
hellangel7 has joined #ruby
bryanculver has quit [Quit: Connection closed for inactivity]
sailias has quit [Read error: Connection reset by peer]
hellangel7 has quit [Max SendQ exceeded]
hellangel7 has joined #ruby
davispuh has quit [K-Lined]
Takle has joined #ruby
<snath> Looks like Net::SSH has a serious bug. Anybody around to help?
spyderman4g63 has quit [Ping timeout: 245 seconds]
<eam> just shell out to ssh
hellangel7 has quit [Max SendQ exceeded]
jbueza has joined #ruby
momomomomo has quit [Quit: momomomomo]
<eam> there aren't any good ssh libraries, in any language
Rollabunna has quit [Quit: Leaving...]
<snath> And how does that help? I need to do password auth
<snath> Net::SSH used to work very well, this is new behavior
<eam> ssh-askpass
michaeldeol has joined #ruby
<eam> snath: doesn't help for bugs in that module, just a general recommendation
yetanotherdave has joined #ruby
jayne has quit [Read error: Connection reset by peer]
jayne has joined #ruby
alex88 has quit [Quit: Leaving...]
Avahey has quit [Quit: Connection closed for inactivity]
bMalum has joined #ruby
timgauthier has joined #ruby
iliketurtles has joined #ruby
compuser has quit [Quit: Computer has gone to sleep.]
sdwrage has joined #ruby
mary5030 has quit [Remote host closed the connection]
qmfnp is now known as qmfnp_lunch
boombadaroomba has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
geggam has joined #ruby
natewalck has quit [Remote host closed the connection]
spastorino has quit [Remote host closed the connection]
dukedave has quit [Remote host closed the connection]
ramblinpeck has quit [Remote host closed the connection]
jrunning has quit [Remote host closed the connection]
strax has quit [Remote host closed the connection]
KnownSyntax has quit [Remote host closed the connection]
dziga has quit [Remote host closed the connection]
mroth has quit [Remote host closed the connection]
ckrailo has quit [Remote host closed the connection]
troter_ has quit [Remote host closed the connection]
PhilK has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
benzrf|offline is now known as benzrf
cocotton has quit [Remote host closed the connection]
tectonic has joined #ruby
crazydiamond has quit [Ping timeout: 244 seconds]
PeterBoy has joined #ruby
yetanotherdave has quit [Ping timeout: 258 seconds]
tectonic has quit [Client Quit]
boombadaroomba has quit [Ping timeout: 244 seconds]
chthon has quit [Ping timeout: 244 seconds]
iliketurtles has quit [Quit: zzzzz…..]
koderok has joined #ruby
justinmburrous has joined #ruby
koderok has quit [Remote host closed the connection]
jasooon has joined #ruby
alem0lars has joined #ruby
wjimenez5271 has quit [Ping timeout: 272 seconds]
benzrf is now known as benzrf|offline
endash has quit [Quit: endash]
manzo has joined #ruby
_5kg has joined #ruby
arup_r has joined #ruby
zorak8 has joined #ruby
stylus has joined #ruby
alem0lars has quit [Ping timeout: 250 seconds]
alem0lars has joined #ruby
finisherr has joined #ruby
jasooon has quit [Ping timeout: 272 seconds]
<finisherr> does ruby have an author variable you can set?
<finisherr> like __AUTHOR__
lw has quit [Quit: s]
<finisherr> I’m coming from python that has the __author__ var
dawkirst has quit [Remote host closed the connection]
monkeypatch has joined #ruby
krisquigley has joined #ruby
jottr has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
<eam> finisherr: gems have a field for authors
<finisherr> ahh okay
<finisherr> no sweat, i was mostly just curious
lw has joined #ruby
sinkensabe has joined #ruby
<eam> __author__ in python is deprecated isn't it?
PeterBoy has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 245 seconds]
rshetty has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
RyanV has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
freezey has joined #ruby
schaerli has quit [Remote host closed the connection]
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
larissa has quit [Ping timeout: 245 seconds]
tanath_ is now known as tanath
dukedave has joined #ruby
justinmburrous has quit [Remote host closed the connection]
mroth has joined #ruby
thagomizer has joined #ruby
justinmburrous has joined #ruby
ckrailo has joined #ruby
clauswitt has joined #ruby
timonv_ has joined #ruby
ukd1 has joined #ruby
goodenough has joined #ruby
strax has joined #ruby
ukd1 has quit [Client Quit]
roolo has quit [Remote host closed the connection]
natewalck has joined #ruby
devdazed has joined #ruby
tkuchiki has quit [Remote host closed the connection]
momomomomo has joined #ruby
Xeago has quit [Remote host closed the connection]
lw has quit [Quit: s]
ukd1 has joined #ruby
tylersmith has joined #ruby
timonv_ has quit [Remote host closed the connection]
KnownSyntax has joined #ruby
PhilK has joined #ruby
justinmburrous has quit [Ping timeout: 272 seconds]
andrewjanssen has quit [Ping timeout: 272 seconds]
spider-mario has joined #ruby
obs has quit [Quit: Saliendo]
dziga has joined #ruby
coderdad has joined #ruby
startupality has joined #ruby
fsapo has joined #ruby
txdv_ has joined #ruby
monkeypatch has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mattstratton has joined #ruby
mattstratton has quit [Max SendQ exceeded]
sinkensabe has quit [Remote host closed the connection]
RyanV has joined #ruby
mattstratton has joined #ruby
gengmao has joined #ruby
Sharker has joined #ruby
mattstratton has quit [Max SendQ exceeded]
txdv has quit [Ping timeout: 272 seconds]
d4nku has quit [Remote host closed the connection]
culturelabs_ has joined #ruby
amitchellbullard has joined #ruby
sinkensabe has joined #ruby
jrunning has joined #ruby
blackmesa has joined #ruby
ballPointPenguin has joined #ruby
Aaaal has quit [Ping timeout: 272 seconds]
momomomomo has quit [Quit: momomomomo]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
spastorino has joined #ruby
spyderman4g63 has joined #ruby
cocotton has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phat4life has joined #ruby
<phat4life> whe you call system() are those some how run in the background
rshetty_ has joined #ruby
deric_skibotn has joined #ruby
User458764 has quit [Ping timeout: 272 seconds]
rshetty has quit [Ping timeout: 245 seconds]
boombadaroomba has joined #ruby
ramblinpeck has joined #ruby
txdv_ has quit [Ping timeout: 260 seconds]
sinkensabe has quit [Remote host closed the connection]
troter_ has joined #ruby
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jle` has quit [Ping timeout: 246 seconds]
compuser has joined #ruby
<eam> phat4life: system forks() a child, exec()s the command you supplied in the child process, and the parent wait()s on it to return its exit code
W0rmDr1nk has quit [Ping timeout: 272 seconds]
jle` has joined #ruby
<phat4life> hmmm
PeterBoy has joined #ruby
timgauthier is now known as timgauthier_isaw
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graydot has joined #ruby
kaspertidemann has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yetanotherdave has joined #ruby
sailias1 has quit [Read error: Connection reset by peer]
RyanV has quit [Quit: Computer has gone to sleep.]
nrsk has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carraroj has quit [Ping timeout: 260 seconds]
Guest40068 has quit [Quit: leaving]
<phat4life> eam: does `` work in the same way? (the back ticks?)
wallerdev has joined #ruby
txdv has joined #ruby
maestrojed has joined #ruby
icarus has joined #ruby
<eam> in a similar way yes, but it also redirects the stdout of the subprocess and reads it into a string, which it returns
icarus has quit [Changing host]
icarus has joined #ruby
Hobogrammer has joined #ruby
<eam> system() does not touch the descriptors, so the child process will print to the parent's stdout
compuser has quit [Quit: Computer has gone to sleep.]
m8 has joined #ruby
Takle has quit [Remote host closed the connection]
yetanotherdave has quit [Ping timeout: 260 seconds]
x1337807x has joined #ruby
jottr has joined #ruby
reinaldob has joined #ruby
x1337807x has quit [Max SendQ exceeded]
Aaaal has joined #ruby
fabrice31 has joined #ruby
jay__ has joined #ruby
x1337807x has joined #ruby
mrchris has quit [Quit: Page closed]
goodenough has quit []
skolman_ has quit [Remote host closed the connection]
<phat4life> eam: https://gist.github.com/anonymous/335eed580378efdc0f7b code in question. it sometimes fails, sometimes doesn’t
skolman has joined #ruby
ptrrr has joined #ruby
yfeldblum has joined #ruby
iliketurtles has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
<eam> phat4life: it's a good idea to never let yourself say "fails." instead describe exactly what you observe that you don't like (eg: raises a particular exception)
<phat4life> ah sorry. what happens is one line 9, the directory doesn’t exist
<phat4life> er, the File.directory? method returns false
<orionstein> phat4life, also is there a reason why you are making so many systems calls rather than running a single external shell script?
<eam> my first thought seeing that code is that you should check $? each time you run system, which will tell you if the command you ran succeeded or not
Takle has joined #ruby
seanosaur has joined #ruby
<phat4life> orionstein: easier to reason, read imo
<eam> system "foo && bar && baz" # either of the three commands may fail, and $?.success? will tell you
<snath> I've just wasted hours because somebody broke Net::SSH. Now I'm going to have to do everything manually. Thanks a lot for fucking up Jamis Buck's work.
skolman has quit [Ping timeout: 272 seconds]
<phat4life> eam: what is $?
<phat4life> a ruby object?
<snath> return bvaule
<eam> when system() runs and wait()s on the subprocess it puts the returned values from wait() into the magic global $?
arturhoo has joined #ruby
<eam> this is bash convention
sailias has joined #ruby
<eam> bourne, rather
<eam> same as $? in your shell
yfeldblum has quit [Ping timeout: 244 seconds]
<eam> (except it's a bit of a more complicated class in ruby)
PeterBoy has quit [Remote host closed the connection]
<phat4life> i see
ki0 has joined #ruby
thsig has quit [Remote host closed the connection]
<phat4life> well, right now this runs as a delayed_job, and it retries and eventually works
thsig has joined #ruby
<eam> system "thing"; raise "thing failed: $?" unless $?.success
thagomizer has quit [Quit: Leaving.]
<eam> that'll tell you where things are failing
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phat4life> cool I will try that thank you
<orionstein> alternately write a working bash script and then call it
<eam> nah, avoid bash at all costs
<eam> it's super dangerous
<eam> in fact, the very best thing would be to remove the shell bits from those system() calls
<phat4life> well, i am not sure how else to consistently pull down a git repo
wjimenez5271 has joined #ruby
wolves_cs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> phat4life: what you're doing is ok, but if you wrap system() into something that does what you want like run_command() which checks $? and raises and works with arrays vs shell strings that's optimal
<phat4life> i see
<eam> (not using && and other shell-isms)
patrick99e99 has joined #ruby
justinmburrous has joined #ruby
<eam> the danger of shell is that it's all based around interpolating variables into strings and eval'ing them
dawkirst has joined #ruby
<eam> so for example, what if PANDY_CONFIGS["tmp_dir"] has a semicolon in it?
rshetty_ has quit [Remote host closed the connection]
<eam> or a space
<eam> quoting properly in shell is prohibitively difficult
thsig has quit [Ping timeout: 260 seconds]
clauswitt has joined #ruby
Alayde has joined #ruby
jasooon has joined #ruby
manzo has quit [Quit: Leaving]
emmesswhy has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
<Alayde> Hey folks. I'm trying to use Ruby's nifty splat operations to convert a 6 element array to a hash, but the hash = Hash[*array] is only returning a hash with one key value pair rather than three. Any idea why?
<phat4life> yeah I am aware of the danager, however, its all managed in configs mostly
iamjarvo has joined #ruby
<orionstein> i guess, ""$1"" would quote to a certain point
<phat4life> all this is being replaced with chef scripts at some point so I don’t really care as long as it works for now
carraroj has joined #ruby
robbyoconnor has joined #ruby
<eam> phat4life: sure, just trying to encourage best practice
<Hanmac> Alayde: hm what happen if you try hash = Hash[array] or hash = array.to_h ?
<phat4life> yeah, i am not always aware of that . Thank you for your help and suggestions
<eam> once you write a proper wrapper around system() to handle errors and so on it's easy to enforce passing tokenized args
<eam> phat4life: np
Musashi007 has joined #ruby
rdark has quit [Quit: leaving]
<Alayde> Hanmac: irb(main):019:0> hash = result.to_h
<Alayde> TypeError: wrong element type String at 0 (expected array)y
<Alayde> The former command just spews that same error, but like 8 times
gengmao has quit [Ping timeout: 250 seconds]
sk87 has joined #ruby
bricker`work has joined #ruby
compuser has joined #ruby
emocakes__ has quit []
jasooon has quit [Ping timeout: 260 seconds]
sk87 has quit [Client Quit]
skolman has joined #ruby
<eam> orionstein: the Shellwords module has some quoting functions, but it gets messy when multiple shells are involved (or when you don't know how many levels of interpolation exist)
<Hanmac> Alayde: i think i can smell the problem, can you show us one of the Arrays ?
<eam> avoid the shell for the same reason you'd use placeholders instead of interpolating strings into sql queries
dawkirst has quit [Remote host closed the connection]
<Alayde> Hanmac: absolutely.
dte has quit [Read error: Connection reset by peer]
<Alayde> here it is: ["0B", "/tmp/test/file1", "0B", "/tmp/test/file2", "0B", "/tmp/test/file3"]=> nil (ecah element is a string)
mattmcclure has joined #ruby
threesixes has quit [Quit: SATAN!!!!!!!!]
bri_ has joined #ruby
<Alayde> Also it may help by saying my goal is a hash that will have file paths and their corresponding byte values
ryanleesipes has joined #ruby
<eam> Alayde: Array#to_h takes pairs, ala [[a,b],[c,d]]
<eam> Hash[] will take a list, though
dawkirst has joined #ruby
<eam> also, you will lose data because you repeat keys
<Alayde> ah hah, that explains it
<eam> you probably want to make your values into arrays
compuser has quit [Ping timeout: 244 seconds]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Stalkr_ has joined #ruby
greenride has joined #ruby
<orionstein> eam, yeh, my only thought was for the use case he is trying to fill, it's so system dependant (git, openssl, chmod perms as sudoer setup correctly) and that the variable use is mostly straightforward, it could be quicker to have the system run the scenario
<Hanmac> Alayde: look at the keys
jimmyhoughjr has joined #ruby
AtumT has quit [Ping timeout: 245 seconds]
alem0lars has quit [Ping timeout: 250 seconds]
<Alayde> eam, Hanmac: Yeah I forgot about the duplicate keys thing. Chalk it up to a dumb-shit moment on my part lol
<Alayde> appreciate the help though
agrinb has quit [Remote host closed the connection]
cina has quit [Ping timeout: 240 seconds]
<greenride> Are there any Ruby gems that provide additional methods for Hashes and Arrays? In particular, I want functionality such as deep search, methods for hash access that handles nils instead of erroring out, etc. Are there any such gems?
justinmburrous has quit [Remote host closed the connection]
<Hanmac> Alayde: like that?
<Hanmac> >> ["0B", "/tmp/test/file1", "0B", "/tmp/test/file2", "1B", "/tmp/test/file3"].each_slice(2).with_object(Hash.new {|h,k|h[k]=[]}) {|(k,v),h| h[k] << v }
<eval-in_> Hanmac => {"0B"=>["/tmp/test/file1", "/tmp/test/file2"], "1B"=>["/tmp/test/file3"]} (https://eval.in/202683)
PeterBoy has joined #ruby
Kricir has quit [Remote host closed the connection]
<Alayde> Hanmac: Well kind of, but instead of having the byte value be the key I'd rather the file name be the key and the byte size be the value. But that is an incredibly nifty bit of ruby that I'll keep stashed away
cina has joined #ruby
dawkirst has quit [Remote host closed the connection]
jbueza has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
qmfnp_lunch is now known as qmfnp
cocotton has quit [Remote host closed the connection]
agrinb has joined #ruby
yetanotherdave has joined #ruby
mrcloud_ has joined #ruby
ki0 has quit [Remote host closed the connection]
ki0 has joined #ruby
dc___ has joined #ruby
Fire-Dragon-DoL has joined #ruby
thalweg has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
phat4life has quit [Quit: phat4life]
jottr has quit [Quit: WeeChat 1.0]
<mrcloud_> hello. Quick question. How do you do polymorphism in ruby? how can I define an abstract class (like java) with attributes common to classes inheriting from the super class?
yetanoth1rdave has joined #ruby
justinmburrous has joined #ruby
wolves_cs has joined #ruby
RyanV has joined #ruby
echevemaster has joined #ruby
jelera has joined #ruby
jottr has joined #ruby
tectonic has joined #ruby
ClarKing has joined #ruby
<wallerdev> >> class AbstractClass; def wow; 5; end; end; class Cow < AbstractClass; end; Cow.new.wow
<eval-in_> wallerdev => 5 (https://eval.in/202684)
seanosaur has quit []
Aaaal has quit [Quit: Aaaal]
AtumT has joined #ruby
AlSquirrel has quit [Quit: This computer has gone to sleep]
d4nku has joined #ruby
jhass is now known as jhass|off
retornam has joined #ruby
shosti has joined #ruby
<Hanmac> Alayde: hm why not reverse?
<Hanmac> >> Hash[*["0B", "/tmp/test/file1", "0B", "/tmp/test/file2", "1B", "/tmp/test/file3"].reverse]
<eval-in_> Hanmac => {"/tmp/test/file3"=>"1B", "/tmp/test/file2"=>"0B", "/tmp/test/file1"=>"0B"} (https://eval.in/202685)
dte has joined #ruby
jesteracer has joined #ruby
phat4life has joined #ruby
<Alayde> Hanmac: Ah hah! that does it
PeterBoy has quit [Remote host closed the connection]
<Hanmac> or if you still want the order:
<Hanmac> >> ["0B", "/tmp/test/file1", "0B", "/tmp/test/file2", "1B", "/tmp/test/file3"].each_slice(2).map(&:reverse).to_h
<eval-in_> Hanmac => {"/tmp/test/file1"=>"0B", "/tmp/test/file2"=>"0B", "/tmp/test/file3"=>"1B"} (https://eval.in/202686)
coderdad has quit [Remote host closed the connection]
RyanV has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 272 seconds]
coderdad has joined #ruby
dumdedum has quit [Quit: foo]
dte has quit [Remote host closed the connection]
<greenride> Are there any Ruby gems that provide additional methods for Hashes and Arrays? In particular, I want functionality such as deep search, methods for hash access that handles nils instead of erroring out, etc. Are there any such gems?
kirun has joined #ruby
RyanV has joined #ruby
startupality has quit [Quit: startupality]
dukedave has left #ruby [#ruby]
emmesswhy has quit [Quit: This computer has gone to sleep]
MCDev has joined #ruby
mrsolo has joined #ruby
tesaf has quit [Quit: Lost terminal]
PeterBoy has joined #ruby
afhammad has joined #ruby
Techguy305 has joined #ruby
emmesswhy has joined #ruby
<Hanmac> greenride: ActiveSupport does add many useless shit but i dont trust it ... mostly because they still dont get the file size standard right after more than TEN YEARS!!!
Hobogrammer has quit [Ping timeout: 245 seconds]
<wallerdev> lol
<wallerdev> theres 2 ways to represent file sizes though
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
dANO has quit []
cocotton has joined #ruby
<Hanmac> 1000Byte = 1KiloByte OR 1024Byte = 1KibiByte ... AS does 1024Byte = 1KiloByte
ki0 has quit [Remote host closed the connection]
<wallerdev> no one uses mibibytes etc
<wallerdev> its a failed concept lol
<wallerdev> to try to clarify things
Takle has quit [Remote host closed the connection]
<Hanmac> hm maybe but just using the old values is just wrong ...
leizzer has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andrewjanssen has joined #ruby
freerobby has joined #ruby
beneggett has quit [Ping timeout: 260 seconds]
IceDragon has quit [Ping timeout: 260 seconds]
dawkirst has joined #ruby
elwin has joined #ruby
elwin is now known as Guest62841
thsig has joined #ruby
<greenride> jesteracer: There is no recursive search in active_support_core.
<Hanmac> hm for example gnome-system-monitor does use MiB for the process size but GB for the filesystem sizes
afhammad has quit []
justinmburrous has quit [Remote host closed the connection]
Guest62841 is now known as elwinovd
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<elwinovd> how can I convert and string to class name? I have a attribute with values in [multichoice, truefalse, etc] and I want to parse this to a class (MultichoiceQuestion, TrueFalseQuestion, etc]. Is is possible?
<wallerdev> >> Object.const_get("Numeric")
<eval-in_> wallerdev => Numeric (https://eval.in/202813)
jacobat has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
yetanoth1rdave has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 258 seconds]
<elwinovd> wallerdev: is does for me? In that case, how can I get the current name of the class? I only have a lowercase string
<jesteracer> greenride maybee https://github.com/intridea/hashie for hashes will do
<greenride> jesteracer: I checked that one before posting the question here.
niftylettuce has joined #ruby
<wallerdev> elwinovd: you might want to just do a hash, like {"truefalse" => TrueFalseQuestion} if you're just gonna use randomly named strings haha
timonv_ has joined #ruby
MaciejCzyzewski has joined #ruby
<elwinovd> wallerdev: maybe... I could have a parent class with the hash and a method getQuestion(type). yeah..
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mynameisbrian has joined #ruby
MaciejCzyzewski has quit [Client Quit]
<wallerdev> sure
jottr has joined #ruby
Hobogrammer has joined #ruby
<mynameisbrian> can someone provide a resource for learning ruby, for an advanced programmer? http://learnrubythehardway.org is a little annoying to go through. and Ruby's core docs are weird
yfeldblum has joined #ruby
<mynameisbrian> well I found programming ruby, I guess I can use this
yetanoth1rdave has joined #ruby
<jnylen> Could someone help me? https://gist.github.com/jnylen/77c18db68a43b6430869 If the file exists the .matches one return a: #<Names:0x000000042b6e80> while replacing it without the ".matches" it returns the data correctly
ki0 has joined #ruby
claymore has joined #ruby
<wallerdev> you shouldnt interpolate like that, leads to sql injection
<wallerdev> right?
<wallerdev> maybe rails is magic haha, been awhile
cherwin has joined #ruby
mary5030 has joined #ruby
<jnylen> Everytime I tried using a sanitizer it just keeps adding them and couldnt find a title at tall
jhass|off is now known as jhass
PeterBoy has quit [Remote host closed the connection]
<jnylen> and the data is from a safe source
hamakn has quit [Remote host closed the connection]
postmodern has joined #ruby
mylar has quit [Ping timeout: 246 seconds]
hamakn has joined #ruby
jay__ is now known as rubyonrailed
<wallerdev> not sure what you're doing but @names.each is going to return @names, not what you put in there
<wallerdev> you probably want @names.map
<wallerdev> >> [1, 2, 3, 4, 5].each { |x| ["hello world"] }
<eval-in_> wallerdev => [1, 2, 3, 4, 5] (https://eval.in/202814)
yfeldblum has quit [Ping timeout: 250 seconds]
greenride has left #ruby [#ruby]
andrewjanssen has quit [Quit: Leaving...]
<jnylen> I was looking through the manual might have missed that
jottr has quit [Ping timeout: 272 seconds]
freezey has quit [Remote host closed the connection]
dangerousdave has joined #ruby
crazydiamond has joined #ruby
tomgavin[work] has left #ruby [#ruby]
luckyruby has quit [Remote host closed the connection]
Morkel_ has joined #ruby
timonv^ has joined #ruby
lw has joined #ruby
reset has joined #ruby
beneggett has joined #ruby
thagomizer has joined #ruby
hamakn has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
Morkel has quit [Ping timeout: 258 seconds]
Morkel_ is now known as Morkel
nettoweb has joined #ruby
Takle has joined #ruby
nettoweb has quit [Max SendQ exceeded]
skammer has joined #ruby
nettoweb has joined #ruby
mynameisbrian has quit [Quit: Leaving]
PeterBoy has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
emanu has joined #ruby
bruno- has joined #ruby
claymore has quit [Ping timeout: 258 seconds]
krisquigley has joined #ruby
CodeOmegaPrime has joined #ruby
claymore has joined #ruby
sonOfRa has quit [Quit: Bye!]
ki0 has quit [Remote host closed the connection]
dc___ has quit []
momomomomo has joined #ruby
elwinovd has quit [Quit: Page closed]
klmlfl has joined #ruby
luckyruby has joined #ruby
gengmao has joined #ruby
sonOfRa has joined #ruby
compuser has joined #ruby
jasooon has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
lolmaus has quit [Quit: Konversation terminated!]
robbyoconnor has quit [Ping timeout: 246 seconds]
BTRE has quit [Quit: Leaving]
c107 has joined #ruby
jasooon has quit [Ping timeout: 244 seconds]
BTRE has joined #ruby
leizzer has quit [Ping timeout: 245 seconds]
justinmburrous has joined #ruby
beneggett has quit [Ping timeout: 272 seconds]
oleo__ has quit [Quit: Verlassend]
beneggett has joined #ruby
jobewan has joined #ruby
tlarevo has quit [Remote host closed the connection]
iliketurtles has joined #ruby
sinkensabe has joined #ruby
ryanleesipes has quit [Ping timeout: 246 seconds]
tlarevo has joined #ruby
PeterBoy has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skolman has quit [Remote host closed the connection]
gengmao has quit [Ping timeout: 272 seconds]
geggam has quit [Ping timeout: 245 seconds]
skolman_ has joined #ruby
tlarevo has quit [Ping timeout: 245 seconds]
rubie has joined #ruby
mnms_ has joined #ruby
jhc76 has joined #ruby
<rubie> hi all: what does the ? mark in line 3 doing here. I couldn't find it in the documentation https://gist.github.com/gabrie30/33fb9a73ae2873506d54
<tobiasvl> rubie: it's the tertiary operator
<mnms_> guys I have array of arrays with 40 elements. I would like to make uniq without comparing first element of array. How can I do this ?
<tobiasvl> rubie: ternary, sorry
MaciejCzyzewski has joined #ruby
<mostlybadfly> rubie: that is a way to make an if else statement, the ternary operator
<mostlybadfly> Oops yeah what tobiasvl said lol
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
awc737 has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
momomomomo has quit [Quit: momomomomo]
emmesswhy has quit [Quit: Leaving]
<jhass> mnms_: take out the first element
<jhass> mnms_: .shift
skolman_ has quit [Ping timeout: 260 seconds]
eka has joined #ruby
<eka> hi, HashWithIndifferentAccess outside Rails?
<jhass> eka: why?
<eka> jhass: not using rails
<jhass> why you need it?
<rubie> ahh thank you makes sense now
leizzer has joined #ruby
tkuchiki has joined #ruby
apeiros_ has quit [Remote host closed the connection]
txdv_ has joined #ruby
mityaz_ has joined #ruby
rkalfane has joined #ruby
apeiros has joined #ruby
<eka> jhass: mmm... there is this legacy code that uses some keys as string and some as symbols, now I'm automating this and saving that hash to reds hence .to_json... so when parsing all that will be messed up... if not already ;)
<eka> jhass: so I need that hack
<jhass> no chance to fix the code instead?
txdv has quit [Ping timeout: 258 seconds]
justinmburrous has quit [Remote host closed the connection]
<eka> jhass: not now
<eka> jhass: why?
<jhass> would be a lot cleaner
<eka> jhass: big legacy code though... afraid to break it now...
<eka> jhass: was looking to hashie but it's pretty big
<mnms_> jhass: and later put it again ont the first place ?
jrhe_ has joined #ruby
<jhass> mnms_: if you really need it to be in, yeah (.unshift)
IceDragon has joined #ruby
<jhass> eka: well, it's not too hard to implement, just subclass Hash and override the [] method?
tkuchiki has quit [Ping timeout: 245 seconds]
<eka> jhass: yes I was just thinking that
<jhass> eka: if hashie is too big for you you don't want to pull activesupport either I guess
rkalfane has quit [Client Quit]
dte has joined #ruby
<Hanmac> just overriding [] is not enough for that
<eka> jhass: not a chance :P
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pothibo has joined #ruby
<mnms_> jhass: but I would need to remember this data... Would be perfect to have one line recciept
dte has quit [Read error: Connection reset by peer]
apeiros has quit [Ping timeout: 272 seconds]
momomomomo has joined #ruby
<Hanmac> depending the input haying symbol and both string keys might make sense ... like in one of my stuff i had symbol keys for the user input and string keys for json and xml parsing
dte has joined #ruby
<jhass> mnms_: btw. you're describing the solution you think you need, it can also help to describe the actual problem
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eka> Hanmac: yes this is a .exe resource finder... so the Resource numbers are string keys... the rest are symbols... so maybe I should do a normalize util that will fix it after reading it from redis...
strax has quit [Quit: Connection closed for inactivity]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
luckyruby has quit [Remote host closed the connection]
<mnms_> jhass: I have duplicating rows which have first element different. I need to remove duplicating rows.
phat4life has left #ruby [#ruby]
<jhass> mnms_: .uniq {|row| row[1..-1] }
<Hanmac> eka i did: name = opt[:name] || opt["name"] || "default"
patrick99e99 has quit [Ping timeout: 246 seconds]
<wallerdev> dont you need to do uniq_by
<mnms_> jhass: beautiful
<wallerdev> or am i misremembering haha
luckyruby has joined #ruby
<eka> Hanmac: yes, the thing is that I working on a feature, and this feature relies on legacy code I don't want to touch. so for saving it to redis will have to do .to_json and after reading it will have to fix it to work with the legacy code
Musashi007 has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
lun_ has joined #ruby
lw has quit [Quit: s]
rkalfane has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
russt has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
gilr00y has quit [Remote host closed the connection]
eka has joined #ruby
havenwood has joined #ruby
beneggett has joined #ruby
fabrice31 has joined #ruby
mleone has joined #ruby
zarubin has joined #ruby
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
larissa has joined #ruby
pskosinski_ has joined #ruby
beneggett has quit [Client Quit]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andrewjanssen has joined #ruby
chrishough has joined #ruby
yalue has quit [Quit: Leaving]
zarubin has quit [Client Quit]
zarubin has joined #ruby
oleo has joined #ruby
andrewjanssen has quit [Client Quit]
timonv^ has quit [Remote host closed the connection]
allcentury has joined #ruby
pskosinski has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
jacobat has joined #ruby
pandaant has joined #ruby
gilr00y has joined #ruby
timonv_ has joined #ruby
Deejay_ has joined #ruby
agrinb has quit [Quit: Leaving...]
PeterBoy has joined #ruby
luckyruby has quit [Ping timeout: 255 seconds]
ixti has quit [Ping timeout: 244 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
wallerdev has quit [Quit: wallerdev]
chrishough has joined #ruby
<eka> Hanmac: jhass: Marshall.dump will do it :D
iliketurtles has quit [Quit: zzzzz…..]
<tuelz> what kind of error should I raise if a method is checking for the correct data input? e.g. all arrays should have 3 elements but one array has two
TorpedoSkyline has joined #ruby
clauswitt has quit [Quit: Textual IRC Client: www.textualapp.com]
andrewjanssen has joined #ruby
<allcentury> @tuelz ArgumentError
<Hanmac> tuelz: hm maybe ArgumentError ?
<tuelz> thanks :)
cocotton has quit [Remote host closed the connection]
<tuelz> allcentury: btw, did you change your irc client to prepend with @ or does your client do that by default?
timonv_ has quit [Ping timeout: 260 seconds]
<tuelz> I was going to look into doing that for a hipchat irc integration, since hipchat uses @ for highlights, but you've just reminded me :)
silkfox has quit [Ping timeout: 260 seconds]
<allcentury> honestly tuelz I just got back on IRC today after a... gulp... 15 year gap. I just started using irssi 20 minutes ago
rkalfane has quit [Ping timeout: 245 seconds]
camt has quit [Ping timeout: 244 seconds]
rkalfane has joined #ruby
<tuelz> heh so I presume you typed @ and it wasn't a client autocomplete? :p if so typing the first few identifying chars of someones name in a room should have tab completion in most clients :)
<allcentury> tuelz: indeed it does, thanks for that :)
<tuelz> irssi is good, I've found more interesting dotfiles on weechat, but irssi basically can do everything weechat can do. Just harder to find neat dotfiles from neckbeards who are good at pimping out irc clients :p
<Hanmac> my client does autocomplete without the @
havenwood has quit []
olivier_bK has joined #ruby
Mattias has quit [Ping timeout: 258 seconds]
justinmburrous has joined #ruby
<eam> one of the networks I'm on is unfortunately a slack gateway, so everyone uses @name:
claymore has quit [Quit: Leaving]
<tuelz> Hanmac: the problem is I wan autocomplete to prepend with `@` because a special jabber messaging platform (hipchat) uses that for highlights. I want to use irc to talk with people on hipchat and not have to autocomplete, then go back and enter a @ at the front
Mattias has joined #ruby
apeiros has joined #ruby
<allcentury> tuelz: weechat looks great! it works fine in tmux too I take it?
iceden has quit [Ping timeout: 258 seconds]
robbyoconnor has joined #ruby
<tuelz> allcentury: I'm talking to you inside a remote tmux session right now :p
shosti has quit [Ping timeout: 245 seconds]
jimmyhoughjr has joined #ruby
<allcentury> tuelz: alright then, time to go try this out - back in a few!
luckyruby has joined #ruby
allcentury has quit [Quit: leaving]
iceden has joined #ruby
cocotton has joined #ruby
mrcloud_ has quit [Quit: Page closed]
dangerousdave has joined #ruby
Sharker has quit [Remote host closed the connection]
Techguy305 has quit [Ping timeout: 272 seconds]
PeterBoy has quit [Remote host closed the connection]
daynaskully has quit [Ping timeout: 258 seconds]
allcentury has joined #ruby
schaerli has joined #ruby
cocotton has quit [Remote host closed the connection]
<allcentury> OooOooo weechat is very n ice
<tuelz> allcentury: lol thanks for sidetracking me now I'm playing with new weechat configs....
<allcentury> haha
cocotton has joined #ruby
<tuelz> allcentury: check out dotshare.it for good configs with pics
digifiv5e has joined #ruby
<tuelz> brb changing configs :p
tuelz has quit [Quit: WeeChat 1.0]
digifiv5e is now known as Guest48946
tewlz has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrishough has quit [Ping timeout: 272 seconds]
larissa has quit [Quit: Leaving]
ivmx has joined #ruby
patrick99e99 has joined #ruby
ki0 has joined #ruby
skolman_ has joined #ruby
tewlz has quit [Client Quit]
chrishough has joined #ruby
graydot has quit [Quit: graydot]
robbyoconnor has quit [Quit: Konversation terminated!]
ixti has joined #ruby
freezey has joined #ruby
freezey has joined #ruby
allcentury has quit [Quit: WeeChat 1.0]
jasooon has joined #ruby
cocotton has quit [Ping timeout: 244 seconds]
allcentury has joined #ruby
iliketurtles has joined #ruby
<rubie> hi all: is there a reason the output gets put into an array on line 3? https://gist.github.com/gabrie30/33fb9a73ae2873506d54
ki0 has quit [Ping timeout: 250 seconds]
aclearman037 has quit [Ping timeout: 246 seconds]
tewlz has joined #ruby
allcentury has quit [Client Quit]
allcentury has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sharker has joined #ruby
blackmesa has joined #ruby
PeterBoy has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
klmlfl_ has joined #ruby
MaciejCzyzewski has joined #ruby
klmlfl_ has quit [Remote host closed the connection]
aclearman037 has joined #ruby
geggam has joined #ruby
freerobby has quit [Quit: Leaving.]
TorpedoSkyline has joined #ruby
freerobby has joined #ruby
thsig has quit [Remote host closed the connection]
klmlfl_ has joined #ruby
RoryHughes has joined #ruby
justinmburrous has quit [Remote host closed the connection]
jasooon has quit [Ping timeout: 250 seconds]
thsig has joined #ruby
klmlfl has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
RyanV has quit [Quit: Computer has gone to sleep.]
allcentury has quit [Client Quit]
mercwithamouth has joined #ruby
endash has joined #ruby
<rubie> it doesn't look like from the documentation that .find returns an array
andrewjanssen has quit [Quit: Leaving...]
Soda has quit [Remote host closed the connection]
jottr has joined #ruby
beneggett has joined #ruby
Sharker has quit [Ping timeout: 264 seconds]
Hobogrammer has quit [Ping timeout: 250 seconds]
thsig has quit [Ping timeout: 250 seconds]
xcyclist has quit [Ping timeout: 246 seconds]
timonv_ has joined #ruby
cocotton has joined #ruby
silkfox has joined #ruby
<Hanmac> rubie: #find does return nil or element ... #find_all does return array
cocotton has quit [Remote host closed the connection]
sepp2k has quit [Quit: Konversation terminated!]
<rubie> hanmac: find(ifnone = nil) { |obj| block } → obj or nil
jottr has quit [Ping timeout: 245 seconds]
andrewjanssen has joined #ruby
dte has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
cocotton has joined #ruby
<rubie> so in the case of my program it returns a number
<Hanmac> rubie: like i said ... if you want array, use #find_all
RyanV has joined #ruby
cocotton has quit [Remote host closed the connection]
<rubie> oh no i was wondering why, in my program, the object gets turned into an array
pskosinski_ is now known as pskosinski
cocotton has joined #ruby
andrewjanssen has quit [Client Quit]
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
<apeiros> rubie: because the author wants prime_factor*s* (pural), not *some_*prime_factor
bobishh has joined #ruby
<apeiros> rubie: since numbers quite often consist of more than a single prime factor (only primes consist of a single factor, after all)
<rubie> so its just a way to collect the numbers
sinkensabe has quit [Remote host closed the connection]
<apeiros> it's a way to return a list of numbers instead of just one
patrick99e99 has quit [Ping timeout: 250 seconds]
<rubie> another quick question, on this line, how is output being evaluated, for true? output ? [output] + prime_factores(n / output) : [n]
freezey has quit [Remote host closed the connection]
tanath_ has joined #ruby
sinkensabe has joined #ruby
dte has joined #ruby
unclouded has quit [Ping timeout: 260 seconds]
timonv_ has quit [Ping timeout: 245 seconds]
Lewix has quit [Remote host closed the connection]
spider-mario has quit [Ping timeout: 272 seconds]
<Hanmac> rubie: everything except nil and false are true
<rubie> oh ok thanks
<Hanmac> and i mean LITERALLY EVERYTHING ... even something which is false in php
atmosx has joined #ruby
<shevy> please do not mention atrocities like php here in this beautiful channel
allcentury has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rubie> hahah
Lewix has joined #ruby
rkalfane has joined #ruby
tlarevo has joined #ruby
coderdad has quit [Remote host closed the connection]
bluOxigen has joined #ruby
chrishough has quit [Read error: Connection reset by peer]
cherwin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tanath has quit [Ping timeout: 264 seconds]
tessi_zz is now known as tessi
chrishough has joined #ruby
freezey has joined #ruby
Rhainur has quit [Quit: Leaving.]
sinkensabe has quit [Ping timeout: 272 seconds]
TorpedoS_ has joined #ruby
ryanleesipes has joined #ruby
allcentury has quit [Client Quit]
allcentury has joined #ruby
tlarevo has quit [Ping timeout: 272 seconds]
kaspergrubbe has quit [Remote host closed the connection]
TorpedoSkyline has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
michaeldeol has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skfax has joined #ruby
allcentury has quit [Client Quit]
jack_rabbit has joined #ruby
<skfax> Is it possible in ruby to call a method foo(bar: my_value) - where the parameter bar is only included in the call if my_value is defined?
<shevy> rubie you should try to make use of classes and modules whenever possible
Sharker has joined #ruby
<shevy> skfax you could use a method there that will make sure you get the proper value set
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<rubie> shevy: i donnt understand how to use classes
elaptics is now known as elaptics`away
<rubie> i tried but it always seems like i can build something without a class
<shevy> rubie no, you do, you just don't know yet. if you use "def", the only difference is to make def inside the class
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
alem0lars has joined #ruby
<shevy> yeah sure
<shevy> but try to reuse that lateron
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
<shevy> everyone would use a global namespace
blueOxigen has joined #ruby
<shevy> so if person A writes: def foo, and you write def foo, what happens?
<skfax> shevy: I don't know the value to set if I don't already have one, but foo has a default I want to use (however not defined as a default on the parameter) - so if my_value is not defined I would like to not pass a parameter at all for that keyword
<shevy> is that a keyword?
<shevy> that looks like a hash to me
alem0lars has quit [Client Quit]
jontmorehouse has joined #ruby
yacks has joined #ruby
gengmao has joined #ruby
<skfax> yeah true it probably is, but the questios remains
<skfax> question*
alem0lars has joined #ruby
alem0lars has quit [Client Quit]
shosti has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
<shevy> well, see. you wrote "parameter bar"
<shevy> but it is a hash
<shevy> so it has a key called: :bar
<shevy> so you must assemble the proper hash before passing it to foo()
<shevy> and inside method foo, you can act on the information that you gave to that hash
fantazo has quit [Quit: Verlassend]
<skfax> hmm true i'll try to assemble the hash properly before calling the method
tbrock_ has joined #ruby
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
<shevy> >> def foo(bar: my_value); puts bar.class; end; foo( {:bar => 'ok' } )
<eval-in_> shevy => String ... (https://eval.in/202836)
<shevy> well :)
gregf has joined #ruby
<skfax> shevy: Isn't bar a keyword parameter there?
justinmburrous has joined #ruby
<shevy> >> def foo(bar: my_value); pp bar; end; foo( 'hey' )
<eval-in_> shevy => wrong number of arguments (1 for 0) (ArgumentError) ... (https://eval.in/202837)
<shevy> yeah that is weird
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> >> def foo(bar: my_value); pp bar; end; foo( { :bla => 'ok' } )
<eval-in_> shevy => unknown keyword: bla (ArgumentError) ... (https://eval.in/202838)
<shevy> lol
<shevy> yeah skfax, I guess that error is a dead giveaway
<shevy> I am just surprised - you lose flexibility here
carraroj has quit [Quit: Konversation terminated!]
kaspergrubbe has joined #ruby
schaerli has quit [Remote host closed the connection]
lolmaus has joined #ruby
rkalfane has joined #ruby
justinmburrous has quit [Ping timeout: 245 seconds]
TorpedoS_ has quit [Read error: Connection reset by peer]
leizzer has quit [Ping timeout: 244 seconds]
justinmburrous has joined #ruby
TorpedoSkyline has joined #ruby
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beneggett has joined #ruby
tewlz has quit [Quit: WeeChat 1.0]
tectonic has joined #ruby
pcp135 has quit [Ping timeout: 260 seconds]
tectonic has quit [Max SendQ exceeded]
mleone has joined #ruby
timonv_ has joined #ruby
rimenes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gengmao has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
alvaro_o has joined #ruby
ivmx has left #ruby [#ruby]
krisquigley has joined #ruby
benlieb has joined #ruby
pcp135 has joined #ruby
arup_r has quit [Quit: Leaving.]
wallerdev has joined #ruby
cherwin has joined #ruby
<benlieb> is it acceptable practice to use complex objects as hash keys?
timonv_ has quit [Remote host closed the connection]
pcp135 has quit [Client Quit]
geggam has quit [Remote host closed the connection]
ht__th has quit [Read error: Connection reset by peer]
<benlieb> e.g. {Instructor.first => [1,2,3]}
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
pcp135 has joined #ruby
wjimenez_ has joined #ruby
multi_io has joined #ruby
tewlz has joined #ruby
geggam has joined #ruby
spyderman4g63 has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
LiohAu has quit [Quit: LiohAu]
andrewlio has quit [Remote host closed the connection]
graydot has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spyderman4g63 has joined #ruby
coderdad has joined #ruby
<multi_io> is there no #rails channel on freenode?
gilr00y has quit [Remote host closed the connection]
<tewlz> multi_io: #rubyonrails
<multi_io> tewlz: thanks
krisquigley has quit [Ping timeout: 272 seconds]
<benlieb> multi_io: I'm in it now
<benlieb> mine lists as RubyOnRails
Scotteh has joined #ruby
wjimenez5271 has quit [Ping timeout: 258 seconds]
douglasssssss has joined #ruby
gilr00y has joined #ruby
<apeiros> benlieb: anything which properly implements #hash and #eql? is acceptable
robustus has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jacobat has quit [Ping timeout: 258 seconds]
<apeiros> benlieb: mind you, mutating keys will make subsequent lookups fail
<apeiros> >> a = [1,2]; h = {a => 1}; a << 3; h[a]
ki0 has joined #ruby
<eval-in_> apeiros => nil (https://eval.in/202841)
awestroke has quit [Remote host closed the connection]
<benlieb> apeiros: would you recommend against using active record instances as keys?
<apeiros> benlieb: there's no generally true answer to this question
blassin has joined #ruby
<blassin> hello
<blassin> having some problems with importing rake tasks from a gem I'm writing
<blassin> help please?
leizzer has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
lw has joined #ruby
x1337807x has joined #ruby
decoponyo has quit [Quit: Leaving...]
jack_rabbit has quit [Ping timeout: 250 seconds]
skolman_ has quit [Remote host closed the connection]
jaffachief has quit [Quit: ZNC - http://znc.in]
dte has quit [Remote host closed the connection]
timonv^ has joined #ruby
skolman has joined #ruby
gilr00y has quit [Ping timeout: 260 seconds]
justinmburrous has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
explodes has joined #ruby
<explodes> Ayyyy
<explodes> How do I render my ruby hash map as JSON in a coffee filter in a slim file?
<explodes> oh
skolma___ has joined #ruby
skolman has quit [Read error: Connection reset by peer]
<explodes> Where is the rails room?
gengmao has joined #ruby
momomomomo has joined #ruby
ki0 has quit [Remote host closed the connection]
Phrogz_ has joined #ruby
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Phrogz_ is now known as Phrogz
<blassin> help please?
<blassin> having some problems with importing rake tasks from a gem I'm writing
devdazed has quit [Ping timeout: 258 seconds]
<Phrogz> blassin: Don't ask to ask, just ask. :) Describe your problems: what are you doing, what did you expect, what is happening instead?
Lewix has quit [Remote host closed the connection]
jasooon has joined #ruby
<blassin> oh ok, sorry
startupality has joined #ruby
douglasssssss has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<blassin> so, I have my gem's tasks in /lib/tasks, and I load them from /lib/tasks.rb, and the files end in .rake
<blassin> I know Rake is reading them, because the puts statement in them outputs text
<blassin> but they don't show up on rake -T on a project I use the gem
<blassin> I'm at a loss as to why Rake reads them, but doesn't add them to the task list
Mattx has joined #ruby
obscured has joined #ruby
startupality has quit [Client Quit]
<benlieb> blassin: did you provide a description?
<blassin> hmm... no :D
<Mattx> How do you check if a class inside a module has a certain method? for instance method "foo" in class "Bar" inside module "MyMod" (MyMod::Bar::foo)
TorpedoSkyline has joined #ruby
<blassin> benlieb: damn, that was it!
<benlieb> blassin: I think -T only works for things with a description
<skfax> shevy: Thanks for the input :) Ended up setting up the hash with the parameters I needed, then calling the method using foo(**params)
<blassin> I thought without a description they would still be listed
MaciejCzyzewski has joined #ruby
<blassin> ok, thanks!
<benlieb> blassin: yeah, you'd think
<blassin> Mattx: try MyMod::Bar.methods.grep /foo/
<Phrogz> Mattx: foo.respond_to?( :some_method )
thsig has joined #ruby
<Mattx> everything is inside variables
douglasssssss has joined #ruby
<blassin> Mattx: actually, that won't work for instance mthods
<blassin> (my grep suggestion)
allcentury has joined #ruby
<blassin> respond_to is better
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Phrogz> Mattx: or MyMod::Bar.instance_methods.include?( :some_method )
rimenes has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jasooon has quit [Ping timeout: 246 seconds]
<Mattx> respond_to would make it but even foo and MyMod are variables
<Phrogz> Mattx: Yes, of course they are. That's fine.
freerobby has quit [Quit: Leaving.]
<Phrogz> variables referencing an object continue to behave the same as the object.
timonv^ has quit [Remote host closed the connection]
<blassin> benlieb: thanks for the help, that was wrecking my brain!
<allcentury> hrm weechat you are very nice but there are so many customization options!
<Mattx> no no, you're not getting it :P mod = "MyMod"; klass = "Bar"; method = "foo";
justinmburrous has joined #ruby
blassin has quit [Quit: Page closed]
timonv_ has joined #ruby
<Phrogz> >> module MyMod; class Bar; def doit; end; end; end; foo = MyMod::Bar.new; [ foo.respond_to?( :doit ), foo.respond_to?( :nope )]
<eval-in_> Phrogz => [true, false] (https://eval.in/202842)
c107 has quit [Ping timeout: 246 seconds]
<Phrogz> Mattx: mod.const_get(klass).instance_methods.include?( method )
jelera has quit [Ping timeout: 272 seconds]
<Mattx> oh really?
<Mattx> let me check
<benlieb> blassin: np
<Phrogz> Well, swap the start with const_get(mod )
cocotton_ has joined #ruby
Lewix has joined #ruby
<Mattx> >> module MyMod; class Bar; def doit; end; end; end; mod = "MyMod"; klass = "Bar"; method = "foo"; cont_get(mod).const_get(klass).instance_methods.include?( method )
<eval-in_> Mattx => undefined method `cont_get' for main:Object (NoMethodError) ... (https://eval.in/202843)
<Phrogz> >> module MyMod; class Bar; def doit; end; end; end; mod = 'MyMod'; klass='Bar'; meth='doit'; const_get(mod).const_get(klass).instance_methods.include?( meth.to_sym )
<eval-in_> Phrogz => undefined method `const_get' for main:Object (NoMethodError) ... (https://eval.in/202844)
gilr00y has joined #ruby
<Phrogz> Bah
kaspergrubbe has quit []
<Mattx> >> module MyMod; class Bar; def doit; end; end; end; mod = "MyMod"; klass = "Bar"; method = "foo"; Module.cont_get(mod).const_get(klass).instance_methods.include?( method )
<eval-in_> Mattx => /tmp/execpad-b17f6eaa1e60/source-b17f6eaa1e60:2: Invalid char `\x0F' in expression (https://eval.in/202845)
<Phrogz> >> module MyMod; class Bar; def doit; end; end; end; mod = 'MyMod'; klass='Bar'; meth='doit'; Object.const_get(mod).const_get(klass).instance_methods.include?( meth.to_sym )
<eval-in_> Phrogz => true (https://eval.in/202846)
<Phrogz> Mattx: ^^ there :)
<Mattx> nice, thanks!
<Phrogz> You can also do this:
michaeldeol has joined #ruby
sinkensabe has joined #ruby
charliesome has joined #ruby
timonv_ has quit [Ping timeout: 244 seconds]
cocotton has quit [Ping timeout: 246 seconds]
Photism has quit [Read error: Connection reset by peer]
graydot has quit [Quit: graydot]
Phrogz_ has joined #ruby
Phrogz has quit [Disconnected by services]
geggam has quit [Ping timeout: 260 seconds]
Phrogz_ is now known as Phrogz
Photism has joined #ruby
<Phrogz> >> module MyMod; class Bar; def doit; end; end; end; mod = 'MyMod'; klass='Bar'; meth='doit'; Object.const_get("#{mod}::#{klass}").instance_methods.include?( meth.to_sym )
<eval-in_> Phrogz => true (https://eval.in/202848)
cocotton_ has quit [Ping timeout: 240 seconds]
ffranz has quit [Ping timeout: 240 seconds]
graydot has joined #ruby
devdazed has joined #ruby
<Phrogz> Mattx: ^^ const_get can resolve a string with :: in it for you.
mattp_ has quit [Read error: Connection reset by peer]
voodoofish has quit [Read error: Connection reset by peer]
<Mattx> hmn, why are you using instance_methods instead of responde_to?
mattp_ has joined #ruby
last_staff has quit [Remote host closed the connection]
douglasssssss has quit [Quit: Textual IRC Client: www.textualapp.com]
last_staff has joined #ruby
voodoofish has joined #ruby
Techguy305 has joined #ruby
zeroXten has quit [Ping timeout: 246 seconds]
ctrlrsf has quit [Ping timeout: 246 seconds]
orionstein has quit [Ping timeout: 246 seconds]
axilla has quit [Ping timeout: 245 seconds]
zeroXten has joined #ruby
<Phrogz> Mattx: respond_to? is for if the object you are asking can receive the method. In this case you are getting a reference to the class object (which does not respond to doit()), not an instance of that class.
pasties has left #ruby ["nipping out for a bit"]
<Phrogz> If you have an instance of that class, then you don't need any const_get, and can just respond_to?()
pasties has joined #ruby
graydot has quit [Client Quit]
<Mattx> make sense!
alexherbo2 has joined #ruby
orionstein has joined #ruby
<Phrogz> i.e. class Foo; def bar; end; end; Foo.new.respond_to?( :bar ) && Foo.instance_methods.include?( :bar )
ctrlrsf has joined #ruby
iliketurtles has joined #ruby
Advocation has quit [Quit: Advocation]
Advocation has joined #ruby
emmesswhy has joined #ruby
lukevinc has joined #ruby
emmesswhy has quit [Client Quit]
allcentury has quit [Quit: WeeChat 1.0]
tkuchiki has joined #ruby
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> hey Phrogz
<shevy> what have you been learning lately
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Phrogz> Qt Designer and Qt layouts. I'm moderately determined to make this work.
geggam has joined #ruby
msmith_ has quit []
justinmburrous has quit [Remote host closed the connection]
manzo has joined #ruby
ClarKing is now known as Hper
<Phrogz> But damn, man, with Qt, it's almost like the language you are using is irrelevant. You have to learn QT THE ALL KNOWING
<shevy> ah yes now I remember
<shevy> you were the qt guy, I need to remember that
<Phrogz> Not yet I aint, but I aims to be :)
mleone has joined #ruby
kaspertidemann has quit []
Stalkr_ has quit [Quit: Leaving...]
freerobby has joined #ruby
fabrice31 has joined #ruby
<Phrogz> Plus, we're doing a lot of work with realtime cubic Béziers here at work, so I'm leveling up my knowledge there.
<shevy> I could not even get it to compile
roolo has joined #ruby
<shevy> qtcore/x_6.cpp:1891:29: error: 'PlatformPanel' is not a member of 'QEvent' smoke/qtcore/CMakeFiles/smokeqtcore.dir/build.make:239: recipe for target 'smoke/qtcore/CMakeFiles/smokeqtcore.dir/x_6.o' failed
freezey has quit [Remote host closed the connection]
<shevy> I remember like 5 years ago when I last tried it
<shevy> it worked
<Phrogz> shevy: If you care to try again, it required (for me) non-64-bit Ruby, a specific cmake version, and installing the qtbindings gem.
<shevy> what cmake version did you have?
<shevy> I am on 3.0.2
ffranz has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
<Phrogz> I suspect you don't need EXACTLY the combinations listed there as tested, but I got as close as I could.
<shevy> hmm so downgrading cmake
kaspertidemann has joined #ruby
gengmao_ has joined #ruby
<shevy> I am on Qt: 4.8.6
msmith_ has joined #ruby
<shevy> I can not downgrade that - my whole KDE stuff depends on that, I don't dare to downgrade
manzo has quit [Ping timeout: 246 seconds]
<shevy> I might end up with kde konsole!!!
<Phrogz> I'm on 4.8.6 on both Windows and OS X, too.
startupality has joined #ruby
<shevy> I mean *without
allcentury has joined #ruby
dte has joined #ruby
Mattx has quit [Read error: Connection reset by peer]
Matip has joined #ruby
PeterBoy has quit [Remote host closed the connection]
Matip has quit [Changing host]
Matip has joined #ruby
<allcentury> test
patrick99e99 has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: zzz]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<allcentury> ok finally got weechat up and running with a custom skin
<allcentury> phew
gengmao_ has left #ruby [#ruby]
mekhami has quit [Quit: Leaving]
<shevy> I could not use a client that reminds me of peeing while chatting
mylar has joined #ruby
chrishou_ has joined #ruby
startupality has quit [Ping timeout: 272 seconds]
eat_multi has joined #ruby
cherwin has quit [Ping timeout: 272 seconds]
chrishough has quit [Ping timeout: 250 seconds]
cina has quit [Ping timeout: 260 seconds]
sinkensabe has quit [Remote host closed the connection]
bmurt has quit []
aclearman037 has quit []
cndiv is now known as cndiv_away
teddyp1c_ has quit [Remote host closed the connection]
paulfm has quit []
ptrrr has quit [Quit: ptrrr]
x1337807x has joined #ruby
cherwin has joined #ruby
gkhan_ has joined #ruby
gkhan_ has left #ruby [#ruby]
iliketurtles has quit [Quit: zzzzz…..]
leizzer has quit [Ping timeout: 260 seconds]
lmickh has quit [Remote host closed the connection]
fsapo has quit [Remote host closed the connection]
thsig_ has joined #ruby
treehug88 has quit []
obscured has quit [Quit: leaving]
reinaldob has quit [Remote host closed the connection]
Avahey has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
endash has quit [Read error: Connection reset by peer]
allcentury has quit [Quit: WeeChat 1.0]
allcentury has joined #ruby
thsig has quit [Ping timeout: 272 seconds]
allcentury has quit [Client Quit]
txdv_ is now known as txdv
spicerack has joined #ruby
allcentury has joined #ruby
AndChat| has quit [Quit: Bye]
lkba has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
startupality has joined #ruby
jesteracer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
olivier_bK has quit [Ping timeout: 260 seconds]
TorpedoSkyline has joined #ruby
freezey has joined #ruby
slester has quit [Remote host closed the connection]
allcentury has quit [Quit: WeeChat 1.0]
lw has quit [Quit: s]
allcentury has joined #ruby
tbrock_ has quit [Quit: Computer has gone to sleep.]
ldnunes has quit [Quit: Leaving]
reinaldob has joined #ruby
manzo has joined #ruby
allcentury has quit [Client Quit]
crunk_bear has quit [Ping timeout: 246 seconds]
compuser has quit [Quit: Computer has gone to sleep.]
allcentury has joined #ruby
emmesswhy has joined #ruby
arturhoo has quit [Quit: arturhoo]
bMalum has quit [Quit: bMalum]
sevvie has quit [Ping timeout: 272 seconds]
Hobogrammer has joined #ruby
arturhoo has joined #ruby
chrishou_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reinaldob has quit [Ping timeout: 245 seconds]
graydot has joined #ruby
Morkel has quit [Quit: Morkel]
klmlfl has joined #ruby
c107 has joined #ruby
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MCDev has quit [Ping timeout: 250 seconds]
allcentury has quit [Quit: WeeChat 1.0]
sleepee has joined #ruby
beneggett has quit [Ping timeout: 245 seconds]
alvaro_o has quit [Ping timeout: 244 seconds]
dangerousdave has joined #ruby
livingstn has quit []
dawkirst has quit [Remote host closed the connection]
jerius has quit []
klmlfl_ has quit [Ping timeout: 240 seconds]
PeterBoy has joined #ruby
LordAlveric|2 has joined #ruby
allcentury has joined #ruby
coderdad has quit [Remote host closed the connection]
jasooon has joined #ruby
W0rmDr1nk has joined #ruby
Asher has quit [Quit: Leaving.]
jaffachief has joined #ruby
coderdad_ has joined #ruby
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LordAlveric has quit [Ping timeout: 245 seconds]
tourne has quit [Ping timeout: 250 seconds]
<postmodern> why doesn't Tempfile.new accept a block?
<postmodern> the docs recommend doing ensure temp.close temp.unlink
alvaro_o has joined #ruby
froggy_ has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
adamski2600 has quit []
jasooon has quit [Ping timeout: 272 seconds]
<waxjar> postmodern: there's Tempfile.create i suppose
tanath_ has quit [Ping timeout: 264 seconds]
froggy__ has quit [Ping timeout: 246 seconds]
rimenes has quit [Quit: Textual IRC Client: www.textualapp.com]
<RyanV> is there a common way to refactor the common elements inside the blocks in this example: https://gist.github.com/RyanV/ede8edf4a761f0299268
<RyanV> i know there are ways to do it, but im wondering if there is a convention for cleaning up this type of code repetition
tanath_ has joined #ruby
<atmosx> The github education pack (for students) is impressive to say the least
codecop has quit [Remote host closed the connection]
<waxjar> RyanV: if there's just a couple, i'd just leave it. loop trough an array otherwise
<waxjar> or Hash
MaciejCzyzewski has joined #ruby
Phrogz_ has joined #ruby
Phrogz has quit [Disconnected by services]
Phrogz_ is now known as Phrogz
rikai has quit [Ping timeout: 258 seconds]
GriffinHeart has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
linojon has quit [Quit: enuf of this]
allcentury has quit [Quit: WeeChat 1.0]
ndrei has quit [Ping timeout: 272 seconds]
allcentury has joined #ruby
PeterBoy has quit [Remote host closed the connection]
KC9YDN has quit [Quit: "Let a hundred flowers bloom: let a hundred schools of thought contend." - Mao Zedong]
timgauthier has joined #ruby
unclouded has joined #ruby
d4nku has quit [Remote host closed the connection]
pushpak has joined #ruby
jack_rabbit has joined #ruby
taptapdan has joined #ruby
allcentury has quit [Client Quit]
taptapdan has quit [Client Quit]
taptapdan has joined #ruby
allcentury has joined #ruby
graydot has quit [Quit: graydot]
freerobby has quit [Quit: Leaving.]
finisherr has quit [Quit: finisherr]
zarubin has quit [Read error: Connection reset by peer]
graydot has joined #ruby
benzrf is now known as benzrf|offline
freerobby has joined #ruby
taptapdan has quit [Client Quit]
taptapdan has joined #ruby
rikai has joined #ruby
Sylario has quit [Ping timeout: 272 seconds]
sevvie has joined #ruby
kwd has quit [Quit: I'm using a Free IRC Bouncer from BNC4FREE - http://bnc4free.com/]
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
justinmburrous has joined #ruby
nettoweb has joined #ruby
twohlix has quit [Ping timeout: 246 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CodeOmegaPrime has quit [Ping timeout: 258 seconds]
x1337807x has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timgauthier has joined #ruby
last_staff has quit [Quit: last_staff]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
timgauthier is now known as timgauthier_isaw
mary5030 has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 246 seconds]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
GinoMan has joined #ruby
charliesome has joined #ruby
justinmburrous has quit [Ping timeout: 272 seconds]
allcentury has quit [Quit: WeeChat 1.0]
kwd has joined #ruby
allcentury has joined #ruby
patric100e99 has joined #ruby
patrick99e99 has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
Asher has joined #ruby
RyanV has quit [Quit: Computer has gone to sleep.]
Guest48946 has quit [Changing host]
Guest48946 has joined #ruby
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest48946 is now known as daynaskully
jack_rabbit has quit [Quit: Leaving]
ryanleesipes has quit [Quit: Leaving]
Tricon has quit [Read error: Connection reset by peer]
Tricon has joined #ruby
tbrock_ has joined #ruby
sailias has quit [Ping timeout: 245 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
krisquigley has joined #ruby
blackmesa has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
timonv_ has joined #ruby
spyderman4g63 has quit []
jacobat has joined #ruby
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
magic has quit [Killed (verne.freenode.net (Nickname regained by services))]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timgauthier has joined #ruby
PeterBoy has joined #ruby
troulouliou_dev has joined #ruby
allcentury has quit [Quit: WeeChat 1.0]
timgauthier is now known as timgauthier_isaw
kinduff has joined #ruby
allcentury has joined #ruby
dangerousdave has joined #ruby
matchaw_ has joined #ruby
jimmyy has joined #ruby
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Asher has quit [Ping timeout: 272 seconds]
kwd has quit [Ping timeout: 272 seconds]
Seich has quit [Ping timeout: 272 seconds]
kirun has quit [Quit: Client exiting]
krisquigley has quit [Ping timeout: 260 seconds]
jimmyy has quit [Max SendQ exceeded]
Asher has joined #ruby
ixti has joined #ruby
silkfox has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 260 seconds]
timonv_ has quit [Ping timeout: 246 seconds]
matchaw has quit [Ping timeout: 250 seconds]
Seich has joined #ruby
jacobat has quit [Ping timeout: 272 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
x1337807x has quit [Ping timeout: 272 seconds]
deric_skibotn has quit [Ping timeout: 260 seconds]
avalon_ has joined #ruby
goodenough has joined #ruby
iliketurtles has joined #ruby
allcentury has quit [Quit: WeeChat 1.0]
kenneth has quit [Quit: Bye.]
allcentury has joined #ruby
explodes has quit [Ping timeout: 246 seconds]
avalon_ is now known as lgyre
allcentury has quit [Client Quit]
roolo has quit [Quit: Leaving...]
allcentury has joined #ruby
Pumukel has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kenneth has joined #ruby
lgyre has left #ruby [#ruby]
timgauthier has joined #ruby
timgauthier is now known as timgauthier_isaw
kwd has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asteros has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moritzs has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pupeno has quit [Read error: Connection reset by peer]
davasaurous has joined #ruby
Pupeno has joined #ruby
Techguy305 has quit [Ping timeout: 260 seconds]
narcan has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
allcentury has quit [Quit: WeeChat 1.0]
skammer1 has joined #ruby
momomomomo has quit [Quit: momomomomo]
mastr_bennett[x] has joined #ruby
j_mcnally has joined #ruby
JoshGlzBrk has joined #ruby
Pupeno has quit [Remote host closed the connection]
binw has quit [Ping timeout: 272 seconds]
papile has quit [Quit: papile]
JohnBat26 has quit [Ping timeout: 240 seconds]
sevvie has quit [Ping timeout: 272 seconds]
shlant has joined #ruby
michaeldeol has joined #ruby
kaplejon has quit [Ping timeout: 272 seconds]
waxjar has quit [Ping timeout: 272 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skammer has quit [Ping timeout: 272 seconds]
<shlant> hi all! if I had a variable containing a string like '/home/deploy/app/releases/299546d9b0eb498c3b1515cfe73e713bff173053', what is the best way to reference just the hash?
Tricon_ has joined #ruby
oso|away is now known as oso96_2000
binw has joined #ruby
<crome> there are several ways, you can split it at slashes, which is pretty good as long as your directories don't have slashes
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
matchaw_ has quit [Ping timeout: 258 seconds]
MCDev has joined #ruby
kaplejon has joined #ruby
<shlant> crome: they won't, the only thing that would change is the app name
Tricon_ has quit [Client Quit]
Tricon_ has joined #ruby
<crome> >> '/home/deploy/app/releases/299546d9b0eb498c3b1515cfe73e713bff173053'.split('/').last
<eval-in_> crome => "299546d9b0eb498c3b1515cfe73e713bff173053" (https://eval.in/202875)
<shlant> crome: beautiful, thanks!
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
waxjar has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
neonixcoder has joined #ruby
gengmao has quit [Ping timeout: 272 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
timgauthier has joined #ruby
timgauthier is now known as timgauthier_isaw
tessi is now known as tessi_zz
<crome> yw!
gengmao has joined #ruby
jontmorehouse has quit [Ping timeout: 272 seconds]
jasooon has joined #ruby
j_mcnally has quit [Remote host closed the connection]
cherwin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kinduff> >> {a: ' ‮abc'}
<eam> if you don't want to hardcode / File.split is the cross platform way to do it
narcan has joined #ruby
<crome> yes, there are definitely more sophisticated ways
<eam> >> File.split('/home/deploy/app/releases/299546d9b0eb498c3b1515cfe73e713bff173053').last
<eval-in_> eam => "299546d9b0eb498c3b1515cfe73e713bff173053" (https://eval.in/202879)
<kinduff> I'm having a lot of troubles to handle a "backward" unicode inside a hash
justinmburrous has joined #ruby
natewalck has left #ruby [#ruby]
<eam> >> File.join %w{a b c d}
<eval-in_> eam => "a/b/c/d" (https://eval.in/202880)
gengmao has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
lun_ has quit [Remote host closed the connection]
bobishh has quit [Ping timeout: 244 seconds]
deric_skibotn has joined #ruby
benzrf|offline is now known as benzrf
KC9YDN has joined #ruby
nfk has quit [Quit: yawn]
<kinduff> So, there's this unicode code that makes text backwards and it's currently breaking a function I have
jontmorehouse has joined #ruby
<kinduff> if I try to build a hash with that, it just breaks it
Kricir has joined #ruby
<kinduff> having troubles to reproduce the bug tho, best example is
<kinduff> {a: ' ‮abc'}
shlant has left #ruby [#ruby]
jasooon has quit [Ping timeout: 272 seconds]
gilr00y has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 250 seconds]
thsig_ has quit [Remote host closed the connection]
nfk has joined #ruby
apeiros has joined #ruby
Hper has quit [Quit: Saliendo]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshGlzBrk has joined #ruby
JoshGlzBrk has quit [Remote host closed the connection]
yetanoth1rdave has quit [Ping timeout: 246 seconds]
neonixcoder has quit [Quit: Leaving.]
m8 has quit [Ping timeout: 272 seconds]
yetanotherdave has quit [Ping timeout: 260 seconds]
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kinduff> is_a?(Hash) works tho
Pumukel has quit [Ping timeout: 245 seconds]
MaciejCzyzewski has joined #ruby
yetanotherdave has joined #ruby
yetanoth1rdave has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
timgauthier has joined #ruby
timonv_ has joined #ruby
timgauthier is now known as timgauthier_isaw
fabrice31 has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
dte has quit [Remote host closed the connection]
lolmaus has quit [Remote host closed the connection]
lolmaus has joined #ruby
timonv_ has quit [Ping timeout: 258 seconds]
justinmburrous has quit [Remote host closed the connection]
aspires has quit []
fabrice31 has quit [Ping timeout: 272 seconds]
chrishough has joined #ruby
russt has quit [Ping timeout: 260 seconds]
arturhoo has quit [Quit: arturhoo]
aspires has joined #ruby
sevvie has joined #ruby
Kricir has quit [Remote host closed the connection]
chthon has joined #ruby
Kricir has joined #ruby
volty has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
chthon has quit [Client Quit]
Kricir has joined #ruby
icebourg has quit []
Tricon_ has quit [Quit: leaving]
freerobby has quit [Quit: Leaving.]
justinmburrous has joined #ruby
Tricon_ has joined #ruby
allcentury has joined #ruby
tkuchiki has joined #ruby
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
msmith_ has quit [Remote host closed the connection]
timgauthier has joined #ruby
bMalum has joined #ruby
narcan has quit [Ping timeout: 272 seconds]
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timgauthier is now known as timgauthier_isaw
MaciejCzyzewski has joined #ruby
jonmorehouse has joined #ruby
jontmorehouse has quit [Ping timeout: 260 seconds]
qmfnp has joined #ruby
tkuchiki has quit [Ping timeout: 260 seconds]
andrewlio has joined #ruby
freezey has quit []
skfax has quit [Quit: Page closed]
manzo has quit [Ping timeout: 260 seconds]
bobishh has joined #ruby
chouchen has quit [Ping timeout: 260 seconds]
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jontmorehouse has joined #ruby
bMalum has quit [Quit: bMalum]
elben has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
kinduff has quit [Quit: Saliendo]
jonmorehouse has quit [Ping timeout: 272 seconds]
stunder has joined #ruby
benlieb has quit [Quit: benlieb]
dorei has quit []
kinduff has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
benzrf is now known as benzrf|offline
emmesswhy has quit [Quit: Leaving]
timgauthier_isaw is now known as timgauthier
benzrf|offline is now known as benzrf
freerobby has joined #ruby
timgauthier is now known as timgauthier_isaw
coderdad_ has quit [Remote host closed the connection]
slester has joined #ruby
bobishh has quit [Ping timeout: 260 seconds]
nfk has quit [Quit: yawn]
cina has joined #ruby
teddyp1cker has joined #ruby
jonmorehouse has joined #ruby
freerobby has quit [Client Quit]
justinmburrous has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
julieeharshaw has quit [Quit: ZNC - http://znc.in]
julieeharshaw has joined #ruby
<elben> has anyone had any issues w/ webmock on jruby not disabling localhost access even with WebMock.disable_net_connect!(allow_localhost: false)?
julieeharshaw has quit [Remote host closed the connection]
jontmorehouse has quit [Ping timeout: 272 seconds]
asteros has quit [Quit: asteros]
julieeharshaw has joined #ruby
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davasaurous has quit [Remote host closed the connection]
jrhe_ has quit [Quit: Connection closed for inactivity]
teddyp1cker has quit [Ping timeout: 258 seconds]
jonmorehouse has quit [Ping timeout: 260 seconds]
<elben> interesting, VCR is screwing up WebMock somehow
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
klaut has quit [Remote host closed the connection]
djstorm has quit [Ping timeout: 272 seconds]
julieeharshaw has quit [Quit: ZNC - http://znc.in]
timgauthier has joined #ruby
MaciejCzyzewski has joined #ruby
julieeharshaw has joined #ruby
timgauthier is now known as timgauthier_isaw
klmlfl has quit [Remote host closed the connection]
jonmorehouse has joined #ruby
jimmyy has joined #ruby
lukevinc has quit [Quit: ChatZilla 0.9.91 [Firefox 24.8.0/20000101000000]]
asteros has joined #ruby
asteros has quit [Client Quit]
kaspertidemann has quit []
pagioss has quit [Ping timeout: 260 seconds]
phutchins has quit [Ping timeout: 272 seconds]
stunder has quit [Remote host closed the connection]
moritzs has joined #ruby
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
Takle has quit [Remote host closed the connection]
klaut has joined #ruby
neonixcoder has joined #ruby
PeterBoy has quit [Quit: Bye Bye]
enebo has quit [Quit: enebo]
tbrock_ has quit [Quit: Computer has gone to sleep.]
skammer1 has quit [Ping timeout: 258 seconds]
justinmburrous has joined #ruby
goodenough has quit [Remote host closed the connection]
KC9YDN has quit [Quit: "Let a hundred flowers bloom: let a hundred schools of thought contend." - Mao Zedong]
eat_multi has quit [Quit: leaving]
wolves_cs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kricir has quit [Ping timeout: 245 seconds]
thomasxie has joined #ruby
timgauthier has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0]
timgauthier is now known as timgauthier_isaw
iliketurtles has quit [Quit: zzzzz…..]
MCDev has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
kobain_ has quit [Read error: Connection timed out]
narcan has joined #ruby
cina has quit [Ping timeout: 272 seconds]
boombadaroomba has quit [Remote host closed the connection]
mattstratton has joined #ruby
marr has quit [Ping timeout: 272 seconds]
jasooon has joined #ruby
kobain_ has joined #ruby
andrewlio has quit [Quit: Leaving.]
neonixcoder has quit [Quit: Leaving.]
KC9YDN has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wjimenez_ has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
geggam has quit [Ping timeout: 260 seconds]
silkfox has joined #ruby
mrsolo has quit [Quit: Leaving]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davasaurous has joined #ruby
jonr22 has joined #ruby
jonr22 has quit [Client Quit]
gigetoo has quit [Ping timeout: 260 seconds]
gigetoo has joined #ruby
jonr22 has joined #ruby
jonr22 has quit [Client Quit]
troulouliou_dev has quit [Ping timeout: 260 seconds]
icarus has quit [Remote host closed the connection]
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Spami has joined #ruby
jasooon has quit [Ping timeout: 246 seconds]
timgauthier has joined #ruby
emmesswhy has joined #ruby
timgauthier is now known as timgauthier_isaw
haroldwu has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davasaur_ has joined #ruby
justinmburrous has quit [Remote host closed the connection]
elben has quit [Quit: elben]
haroldwu has quit [Changing host]
haroldwu has joined #ruby
skolma___ has quit [Remote host closed the connection]
tbrock_ has joined #ruby
skolman has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
timonv_ has joined #ruby
allcentury has quit [Ping timeout: 245 seconds]
cherwin has joined #ruby
davasaurous has quit [Ping timeout: 272 seconds]
Mia has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby
skolman has quit [Ping timeout: 258 seconds]
Kricir has joined #ruby
Tricon_ has quit [Quit: leaving]
Tricon_ has joined #ruby
timonv_ has quit [Ping timeout: 272 seconds]
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timgauthier has joined #ruby
qmfnp has joined #ruby
sleepee has quit [Quit: Leaving]
timgauthier is now known as timgauthier_isaw
ixti has quit [Quit: WeeChat 1.0]
Takle has joined #ruby
spicerack has joined #ruby
Sht0 has quit []
kinduff has quit [Quit: Saliendo]
jonr22 has joined #ruby
krisquigley has joined #ruby
devdazed has joined #ruby
justinmburrous has joined #ruby
Kricir has quit [Remote host closed the connection]
jacobat has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Kricir has joined #ruby
tbrock_ has quit [Quit: Computer has gone to sleep.]
Beoran__ has joined #ruby
x1337807x has joined #ruby
klaut has quit [Remote host closed the connection]
nb_bez___ has joined #ruby
krisquigley has quit [Ping timeout: 260 seconds]
jacobat has quit [Ping timeout: 246 seconds]
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takle has quit [Ping timeout: 245 seconds]
Kricir has quit [Ping timeout: 260 seconds]
rkazak has joined #ruby
timgauthier has joined #ruby
tbrock_ has joined #ruby
Beoran_ has quit [Ping timeout: 260 seconds]
iiinzg has joined #ruby
timgauthier is now known as timgauthier_isaw
pothibo has joined #ruby
bobishh has joined #ruby
cndiv_away is now known as cndiv
neonixcoder has joined #ruby
jonr22 has quit []
jhass is now known as jhass|off
jonr22 has joined #ruby
jelera has joined #ruby
iinzg has quit [Ping timeout: 250 seconds]