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
kobain has quit [Max SendQ exceeded]
Beoran has quit [Ping timeout: 245 seconds]
kobain has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
x77686d has joined #ruby
r0bby_ has quit [Ping timeout: 240 seconds]
davasaurous has joined #ruby
volty has left #ruby ["Konversation terminated!"]
Spami has joined #ruby
kobain has quit [Max SendQ exceeded]
aCicloid is now known as cicloid
x77686d has quit [Ping timeout: 255 seconds]
kobain has joined #ruby
livathinos has joined #ruby
jlast has joined #ruby
r0bby_ has joined #ruby
ferr has quit [Ping timeout: 246 seconds]
babykosh has joined #ruby
<shevy> where did he go
ferr has joined #ruby
robustus|Off has quit [Ping timeout: 255 seconds]
livathinos has quit [Ping timeout: 245 seconds]
tredstone has joined #ruby
Beoran has joined #ruby
vyorkin has quit [Quit: WeeChat 1.0.1]
jlast has quit [Ping timeout: 244 seconds]
ta_ has quit [Ping timeout: 260 seconds]
robustus has joined #ruby
<godd2> wheredidthesodago
s00pcan has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
qmfnp has joined #ruby
siwica has quit [Ping timeout: 260 seconds]
chrisja has quit [Quit: leaving]
magic has quit [Quit: ZNC - http://znc.in]
crazydiamond has joined #ruby
claw___ has joined #ruby
magic has joined #ruby
narcan has joined #ruby
claw__ has quit [Ping timeout: 265 seconds]
lolmaus has quit [Ping timeout: 240 seconds]
nichtdiebohne1 has joined #ruby
ctp has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nichtdiebohne has quit [Ping timeout: 272 seconds]
zz_karupa is now known as karupa
ctp has quit [Quit: Connection reset by peer... Isn't he that short little Mexican with the wire cutters heading your way?]
ctp has joined #ruby
ctp has quit [Client Quit]
ctp has joined #ruby
ctp has quit [Client Quit]
ctp has joined #ruby
pu22l3r has joined #ruby
ferr has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
jlast has joined #ruby
ferr has joined #ruby
msmith_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
crunk_bear has joined #ruby
babykosh has quit [Quit: babykosh]
jlast has quit [Ping timeout: 272 seconds]
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
crunk_bear has quit [Client Quit]
tier has quit [Quit: WeeChat 1.0.1]
marr has quit []
mikecmpbll has quit [Quit: i've nodded off.]
maletor has joined #ruby
Glacer232 has joined #ruby
postmodern has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
Channel6 has quit [Quit: Leaving]
kireevco has joined #ruby
dopiee is now known as dopie
r0bby_ has quit [Excess Flood]
r0bby_ has joined #ruby
x1337807x has joined #ruby
Glacer232 has left #ruby ["Textual IRC Client: www.textualapp.com"]
lolmaus has joined #ruby
echooo has quit [Quit: echooo]
sevenseacat has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 258 seconds]
qmfnp has joined #ruby
r0bby_ has quit [Ping timeout: 260 seconds]
msmith_ has quit [Remote host closed the connection]
thisguy123 has joined #ruby
msmith_ has joined #ruby
msmith_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<thisguy123> I'm having trouble converting a string to a date, getting 'invalid date' argument error
<thisguy123> Anyone know what i'm doing wrong?
Scotteh_ has joined #ruby
r0bby_ has joined #ruby
davasaurous has quit [Remote host closed the connection]
<havenwood> thisguy123: '%Y.%m.%d'
Scotteh has quit [Ping timeout: 258 seconds]
<thisguy123> bleh I feel dumb. thnx
zaid_h has quit [Quit: ZZZzzz…]
tredstone has quit [Quit: Leaving.]
bricker`work has quit [Ping timeout: 244 seconds]
apeiros has quit [Remote host closed the connection]
<havenwood> thisguy123: i like: http://strftimer.com/
apeiros has joined #ruby
x77686d has joined #ruby
jhass is now known as jhass|off
havenwood has quit []
<thisguy123> havenwood that's pretty cool! thanks
bricker`work has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
livathinos has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor has quit [Quit: Computer has gone to sleep.]
seitensei has joined #ruby
rkazak_ has quit [Quit: Sleep.....ing....]
seitensei is now known as tenseiten
bricker`work has quit [Ping timeout: 255 seconds]
tenseiten is now known as seitensei
ghostskittles has joined #ruby
livathinos has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
baordog has joined #ruby
i_s has joined #ruby
ramfjord has joined #ruby
davasaurous has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
i_s has quit [Ping timeout: 244 seconds]
ctp has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 272 seconds]
mercwithamouth has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
AlexRussia has joined #ruby
j_mcnally has joined #ruby
ph8 has quit [Ping timeout: 260 seconds]
Afforess has joined #ruby
Cache_Money has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
skolman_ has joined #ruby
jlast has joined #ruby
hololeap has joined #ruby
skolman_ has quit [Remote host closed the connection]
<hololeap> I'm having an issue with Mutex in version 2.1.3. It may be a bug. See here: http://stackoverflow.com/q/26435095/983883
skolman_ has joined #ruby
<hololeap> if anyone could take a look at that i would really appreciate it
Takle has quit [Ping timeout: 260 seconds]
pu22l3r has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 265 seconds]
ph8 has joined #ruby
thisguy123 has quit [Ping timeout: 246 seconds]
JoshGlzBrk has joined #ruby
<banister> hololeap i don't really get what's going on in there... @mutex has to be shared between threads in order for it to have any effect, but in your example @mutex i local to each thread so it's meaningless
<banister> hololeap there's a few other things in there that don't make a lot of sense to me either
<banister> hololeap i don't have time now, but i suggest you read a tutorial on threading primitives, cos at first blush (unless you're doing something subtle/clever that i can't see at first blush) that code appears really confused
<hololeap> the idea was for each thread to have a mutex so it can lock while it is doing work, that way the thread can be shut down cleanly
echooo has joined #ruby
<hololeap> the mutex locks while it is working on each iteration and unlocks when it is done. the stop method uses the same mutex so it doesn't kill the thread while in the middle of an iteration
x77686d has quit [Quit: x77686d]
<hololeap> that's the idea anyway. shouldn't this work?
<hololeap> i can't think of a reason why this wouldn't work, but if you test it, it behaves kind of strangely
benzrf is now known as benzrf|offline
bricker`work has joined #ruby
echooo1 has joined #ruby
echooo has quit [Ping timeout: 246 seconds]
fuhgeddaboudit has joined #ruby
tokik has joined #ruby
manzo has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
iamjarvo has joined #ruby
manzo has quit [Ping timeout: 246 seconds]
oo_ has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby
bricker`work has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
arup_r has joined #ruby
lnormous has quit [Ping timeout: 240 seconds]
x77686d has joined #ruby
tyll_ has joined #ruby
Photism has joined #ruby
rkalfane has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
karupa has left #ruby ["Leaving..."]
tyll has quit [Ping timeout: 240 seconds]
mary5030_ has joined #ruby
qmfnp has joined #ruby
Dude007 has quit [Remote host closed the connection]
thisguy123 has joined #ruby
Dude007 has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
AndChat| has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
sepp2k has joined #ruby
livathinos has joined #ruby
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
msmith_ has joined #ruby
Photism has quit [Quit: Leaving]
lw has joined #ruby
jlast has joined #ruby
it0a has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamakn has quit [Remote host closed the connection]
xymbol__ has joined #ruby
benzrf|offline is now known as benzrf
fandi has quit [Remote host closed the connection]
livathinos has quit [Ping timeout: 272 seconds]
xymbol_ has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
hamakn has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
radic has quit [Disconnected by services]
radic_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Fezzler has joined #ruby
x77686d has quit [Quit: x77686d]
agrinb has joined #ruby
AmBienCeD has quit [Read error: Connection reset by peer]
NoNMaDDeN has joined #ruby
maroloccio has quit [Ping timeout: 255 seconds]
hamakn has joined #ruby
mikepack has joined #ruby
j_mcnally has quit [Read error: Connection reset by peer]
krz has joined #ruby
maroloccio has joined #ruby
pu22l3r has joined #ruby
thisguy123 has quit [Ping timeout: 255 seconds]
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
x77686d has joined #ruby
starless has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
zzach has quit [Ping timeout: 240 seconds]
zzach has joined #ruby
bricker`work has joined #ruby
arup_r has quit [Quit: Leaving.]
rkazak_ has joined #ruby
aspires has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
Fezzler has quit [Quit: Leaving]
x77686d has quit [Quit: x77686d]
Asher has joined #ruby
yeticry has joined #ruby
davasaurous has quit [Remote host closed the connection]
ferr has quit [Ping timeout: 245 seconds]
agrinb has quit [Remote host closed the connection]
wedgeV has joined #ruby
weaksauce has joined #ruby
justin_pdx has joined #ruby
agrinb has joined #ruby
aspires has quit []
r0bby_ is now known as robbyoconnor
robbyoconnor has quit [Quit: Konversation terminated!]
j_mcnally has joined #ruby
emmesswhy has joined #ruby
drkyro has joined #ruby
davasaurous has joined #ruby
coderwill has quit [Quit: leaving]
agjacome has quit [Quit: leaving]
fabrice31 has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
NoNMaDDeN has joined #ruby
braincrash has quit [Quit: bye bye]
i_s has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
braincrash has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
arescorpio has joined #ruby
i_s has quit [Ping timeout: 246 seconds]
xorax has joined #ruby
livathinos has joined #ruby
davasaurous has quit [Remote host closed the connection]
icebourg has joined #ruby
Lewix has joined #ruby
gheegh has quit [Read error: Connection reset by peer]
livathinos has quit [Ping timeout: 272 seconds]
coderwill has joined #ruby
coderwill has quit [Changing host]
coderwill has joined #ruby
coderwill has quit [Client Quit]
davasaurous has joined #ruby
coderwill has joined #ruby
kireevco has quit [Ping timeout: 240 seconds]
baordog has quit [Ping timeout: 250 seconds]
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
agrinb has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
mercwithamouth has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
linojon has quit [Quit: linojon]
alec-c4 has joined #ruby
x1337807x has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
baordog has joined #ruby
thisguy123 has joined #ruby
klmlfl has joined #ruby
Vile` has quit [Ping timeout: 246 seconds]
agent_white has joined #ruby
<agent_white> evenin'
Vile` has joined #ruby
whatasunnyday has joined #ruby
fuhgeddaboudit has joined #ruby
starless has quit [Quit: WeeChat 1.0.1]
Photism has joined #ruby
<havenwood> good eve
wedgeV has quit [Quit: wedgeV]
nonks has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
az7ar_away is now known as az7ar
robbyoconnor has joined #ruby
lw has quit [Quit: s]
msmith_ has quit [Remote host closed the connection]
az7ar is now known as az7ar_away
Kricir has joined #ruby
freezey has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
chrishou_ has joined #ruby
Joufflu has quit [Quit: Leaving]
arup_r has joined #ruby
freerobby has joined #ruby
chrishough has quit [Ping timeout: 260 seconds]
havenwood has quit []
bricker`work has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Remote host closed the connection]
jnollette has quit [Quit: Leaving...]
nonks has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hololeap> I'm having an issue with Mutex in version 2.1.3. It may be a bug. See here: http://stackoverflow.com/q/26435095/983883
<hololeap> if anyone could take a look at that i would really appreciate it
xorax_ has joined #ruby
mikepack has quit [Remote host closed the connection]
lnormous has joined #ruby
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davasaurous has quit [Remote host closed the connection]
xorax_ has quit [Client Quit]
xorax_ has joined #ruby
Mia has quit [Read error: Connection reset by peer]
tokik has quit [Ping timeout: 250 seconds]
xorax_ has quit [Client Quit]
xorax_ has joined #ruby
alec-c4 has quit [Remote host closed the connection]
BBBThunda has quit [Ping timeout: 260 seconds]
alec-c4 has joined #ruby
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
alec-c4 has quit [Ping timeout: 245 seconds]
klmlfl has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
emmesswhy has quit [Quit: This computer has gone to sleep]
livathinos has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 272 seconds]
oleo__ has joined #ruby
oleo is now known as Guest78623
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
agrinb has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
NoNMaDDeN has quit [Quit: Leaving...]
Guest78623 has quit [Ping timeout: 250 seconds]
livathinos has quit [Ping timeout: 272 seconds]
arup_r has quit [Quit: Leaving.]
NoNMaDDeN has joined #ruby
agrinb has quit [Ping timeout: 240 seconds]
icedp has quit [Quit: _]
hololeap has quit [Ping timeout: 264 seconds]
icebourg has quit []
whatasunnyday has quit [Quit: whatasunnyday]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
freezey has quit []
BBBThunda has joined #ruby
xorax_ has quit [Quit: leaving]
Kricir has quit [Ping timeout: 258 seconds]
thisguy123 has quit [Ping timeout: 246 seconds]
JoshGlzBrk has joined #ruby
godd2 has quit [Ping timeout: 272 seconds]
tredstone has joined #ruby
_shrine has joined #ruby
kyb3r_ has joined #ruby
_cake has quit [Ping timeout: 260 seconds]
alec-c4 has joined #ruby
atmosx has quit [Ping timeout: 264 seconds]
Lewix has quit [Remote host closed the connection]
Snowstormer has quit [Ping timeout: 272 seconds]
prasselpikachu has quit [Ping timeout: 245 seconds]
claw has joined #ruby
Lewix has joined #ruby
prasselpikachu has joined #ruby
rshetty has quit [Remote host closed the connection]
Snowstormer has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 258 seconds]
claw___ has quit [Ping timeout: 245 seconds]
rshetty has joined #ruby
hololeap has joined #ruby
atmosx has joined #ruby
michaeldeol has joined #ruby
pu22l3r has joined #ruby
fabrice31 has joined #ruby
kartouch|gone has quit [Quit: WeeChat 1.0.1]
St_Marx has quit [Remote host closed the connection]
hmsimha has quit [Ping timeout: 240 seconds]
i_s has joined #ruby
St_Marx has joined #ruby
mercwithamouth has joined #ruby
rippa has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
swartwulf has quit [Remote host closed the connection]
shortCircuit__ has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
oo_ has quit [Remote host closed the connection]
Morkel has joined #ruby
krz has quit [Ping timeout: 255 seconds]
x77686d has joined #ruby
jbueza has joined #ruby
pu22l3r has quit [Ping timeout: 272 seconds]
swartwulf has joined #ruby
nonks has quit [Ping timeout: 255 seconds]
i_s has quit [Ping timeout: 258 seconds]
iinzg has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
SouL_ has quit [Ping timeout: 244 seconds]
chipotle has quit [Quit: cya]
x77686d has quit [Ping timeout: 245 seconds]
tokik has joined #ruby
justin_pdx has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lw has joined #ruby
lnormous has quit [Ping timeout: 246 seconds]
<tmoore> hololeap: it doesn't make sense for each lock to have its own mutex instance
<tmoore> each thread rather
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tmoore> you want one mutex shared between all of the threads
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ylluminarious has quit [Quit: Leaving...]
<hololeap> tmoore: did you read what the purpose of the mutex in each thread was? i wrote it in the question
xorax has quit [Quit: leaving]
xorax has joined #ruby
<tmoore> sorry no I was just reading the scrollback
<tmoore> reading the SO now
<hololeap> :)
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
<tmoore> OK so the problem is likely that there's no guarantee that the fetcher thread won't just re-acquire the same mutex
xorax has quit [Client Quit]
<hololeap> tmoore: so there is no queuing system to handle which thread gets the lock?
<tmoore> it's not guaranteed that the order that threads try to acquire the lock is the order that they will be scheduled
<tmoore> another way to do this:
<tmoore> make the method stop set @stop = true
<tmoore> in your loop, break if @stop
spicerack has joined #ruby
<hololeap> tmoore: i had considered that. i just couldn't understand WHY it didn't work
cmxu has joined #ruby
<tmoore> (or use 'until @stop' instead of loop)
livathinos has joined #ruby
<tmoore> hololeap: are you running on Linux by any chance?
<hololeap> tmoore: yes
<tmoore> yeah so Linux doesn't use a first-come first served algorithm for scheduling threads that are waiting on a lock
<tmoore> some OSes do
goodenough has joined #ruby
<hololeap> i thought ruby handled threads internally
<tmoore> FIFO is intuitive but not always optimal
<tmoore> hololeap: not since 1.9 I think
<hololeap> ok, so when multiple threads are waiting for a lock, there's no guarantee which one will get it
<hololeap> i will remember that
<tmoore> with multithreading, you have to be _very_ careful about what is and what is not actually guaranteed by the API
<tmoore> because the behaviour is likely to be very different depending on OS, number of CPUs, what else is happening on the machine, today's weather, etc :-)
<tmoore> and what I said about setting @stop and checking @stop won't work reliably on JRuby and Rubinius unless you put a mutex around @stop
sumark has quit [Remote host closed the connection]
<tmoore> in which case you might have the same problem
bluOxigen has quit [Ping timeout: 255 seconds]
<hololeap> tmoore: thank you. you're the first one to give me an answer. if you have a SO account you can write an answer and i will accept it. but you don' have to
livathinos has quit [Ping timeout: 272 seconds]
<tmoore> heh sure
<hololeap> :D
NoNMaDDeN has quit [Remote host closed the connection]
justin_pdx has quit [Quit: justin_pdx]
sumark has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tredstone has quit [Quit: Leaving.]
Spami has joined #ruby
nonks has joined #ruby
<tmoore> actually hololeap before you go too far ahead... this is probably the best thing to use... had to do a bit of Googling before I could remember it: http://ruby-doc.org/stdlib-2.0/libdoc/thread/rdoc/ConditionVariable.html
<tmoore> I'll put that in SO
jnollette has joined #ruby
<hololeap> thanks, you're awesome
thisguy123 has joined #ruby
JoshGlzBrk has joined #ruby
ndrei has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
oo_ has joined #ruby
vpretzel has joined #ruby
<tmoore> actually on second thought... condition variable might not be appropriate for this case... sorry I'll try to write something more coherent in Stack Overflow ;-)
renderful has joined #ruby
msmith_ has joined #ruby
speaking2ode has joined #ruby
speakingcode has quit [Ping timeout: 244 seconds]
NoNMaDDeN has joined #ruby
<hololeap> at the very least, I can use `unless @stop; do stuff; end`
JohnBat26 has joined #ruby
renderful has quit [Ping timeout: 250 seconds]
byprdct has joined #ruby
msmith_ has quit [Ping timeout: 272 seconds]
tagrudev has joined #ruby
rbrs has joined #ruby
neoxquick has quit [Read error: Connection reset by peer]
<tmoore> hololeap: I think the key thing though is that you don't want to wrap your whole do_stuff block in a mutex
Morkel_ has joined #ruby
<tmoore> because otherwise, any other thread trying to stop it will have to wait
govg has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tmoore> and there's a good chance that given the choice between scheduling the thread doing the stopping, and scheduling the thread trying to do another iteration of the loop, the kernel will prefer the latter (because then it doesn't have to do a context switch)
<hololeap> true, which is why i created individual threads to handle calling FetcherThread#stop
<tmoore> either way
<hololeap> your solution is much better, but why put `@stop = true` inside a synchronize block?
<tmoore> your fetcher thread shouldn't be holding the lock while it's doing the work, only for a brief moment in between each loop
<tmoore> hololeap: the synchronize blocks around @stop aren't strictly necessary on MRI because of the GIL
Morkel has quit [Ping timeout: 260 seconds]
Morkel_ is now known as Morkel
<tmoore> but on other Rubies they might be
<tmoore> on JRuby for example... the JVM has strict rules around when changes made in one thread are "published" to other threads
starkhalo has quit [Ping timeout: 272 seconds]
<hololeap> what race condition would this prevent? at the very worst, it would only run do_stuff once more than expected, right?
<shevy> does one of you guys have an elegant solution - could be a library too - for the following problem
<tmoore> hololeap: so for example a variable write on one thread wouldn't be seen by other threads without the synchronize
<shevy> I may have a long line of a string "abc... \n" <--- it ends with a newline. I can only display 30 characters, but I want to keep whole words
<shevy> if I would do string[0,30] I may end up with an incomplete word
<shevy> so I would need a better solution
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
nonks has quit [Ping timeout: 255 seconds]
<tmoore> basically, as a rule of thumb, if you have data shared between threads, you need to synchronize access to it or do something else to guarantee that the changes are "published" to other threads
<hololeap> shevy: activesupport has something like that in its String core extension
<shevy> hololeap cool!
<hololeap> tmoore: gotcha
anaeem1_ has joined #ruby
arescorpio has quit [Excess Flood]
anaeem1_ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
Photism has quit [Quit: Leaving]
oleo__ has quit [Quit: Verlassend]
charliesome has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
apeiros_ has quit [Remote host closed the connection]
apeiros has joined #ruby
Xeago has joined #ruby
tokik has quit [Ping timeout: 245 seconds]
apeiros has quit [Ping timeout: 265 seconds]
linojon has joined #ruby
luckyruby has joined #ruby
x77686d has joined #ruby
subraminion has joined #ruby
cajone has left #ruby [#ruby]
linojon has quit [Client Quit]
baordog has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
baordog has joined #ruby
kartouch has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
alec-c4 has quit [Remote host closed the connection]
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alec-c4 has joined #ruby
arup_r has joined #ruby
c107 has quit [Remote host closed the connection]
cmxu has joined #ruby
boombadaroomba has joined #ruby
timonv_ has quit [Remote host closed the connection]
thisguy123 has quit [Ping timeout: 260 seconds]
alec-c4 has quit [Remote host closed the connection]
codecop has joined #ruby
timonv_ has joined #ruby
alec-c4 has joined #ruby
JoshGlzBrk has joined #ruby
schaerli has joined #ruby
bw_ has left #ruby [#ruby]
timonv_ has quit [Client Quit]
goodenough has quit []
sinkensabe has joined #ruby
SouL_ has joined #ruby
hanmac1 has joined #ruby
timonv_ has joined #ruby
nonks has joined #ruby
livathinos has joined #ruby
boombadaroomba has quit [Ping timeout: 255 seconds]
subraminion is now known as zugadu
sigurding has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
sepp2k has quit [Read error: Connection reset by peer]
ht__th has joined #ruby
nonks has quit [Ping timeout: 240 seconds]
livathinos has quit [Ping timeout: 272 seconds]
maZtah_ is now known as maZtah
maZtah has quit [Changing host]
maZtah has joined #ruby
maZtah has joined #ruby
bal has joined #ruby
Deejay has joined #ruby
last_staff has joined #ruby
Deejay is now known as Guest69965
zugadu has quit [Quit: (null)]
arup_r has quit [Quit: Leaving.]
subraminion has joined #ruby
Guest69965 has quit [Client Quit]
nonks has joined #ruby
Photism has joined #ruby
Zugadu has quit [Client Quit]
subraminion has joined #ruby
anaeem___ has joined #ruby
lw has quit [Quit: s]
subraminion has quit [Client Quit]
shevy has left #ruby ["I'll be back ... maybe"]
lolmaus has joined #ruby
anaeem1_ has quit [Ping timeout: 245 seconds]
anarang has joined #ruby
nonks has quit [Ping timeout: 244 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
alec-c4 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
alec-c4 has joined #ruby
alec-c4 has quit [Remote host closed the connection]
dh64 has quit [Ping timeout: 265 seconds]
alec-c4 has joined #ruby
shevy has joined #ruby
davasaurous has joined #ruby
emmesswhy has joined #ruby
blueOxigen has joined #ruby
rbrs has quit [Remote host closed the connection]
it0a has quit [Ping timeout: 245 seconds]
davasaurous has quit [Remote host closed the connection]
davasaurous has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
charliesome has quit [Quit: zzz]
kwd_ has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
anaeem___ has quit [Remote host closed the connection]
Xeago has joined #ruby
anaeem1_ has joined #ruby
timonv_ has quit [Ping timeout: 258 seconds]
Xeago_ has joined #ruby
xymbol__ has quit [Ping timeout: 246 seconds]
bigkevmcd has joined #ruby
Maxdamantus has quit [Ping timeout: 246 seconds]
i_s has joined #ruby
HelperW has joined #ruby
amundj has joined #ruby
coderhs has quit [Ping timeout: 246 seconds]
Xeago has quit [Ping timeout: 258 seconds]
duncannz has joined #ruby
arup_r has joined #ruby
andikr has joined #ruby
nonks has joined #ruby
timonv_ has joined #ruby
davasaurous has quit [Remote host closed the connection]
mityaz has joined #ruby
rshetty has quit [Remote host closed the connection]
bricker`work has joined #ruby
i_s has quit [Ping timeout: 255 seconds]
tokik has joined #ruby
amundj has quit [Ping timeout: 272 seconds]
davasaurous has joined #ruby
kenneth has joined #ruby
aganov has joined #ruby
chinaski has joined #ruby
bMalum has joined #ruby
brushdemon has quit [Quit: <3]
bricker`work has quit [Ping timeout: 255 seconds]
brushdemon has joined #ruby
davasaurous has quit [Remote host closed the connection]
davasaurous has joined #ruby
govg has quit [Ping timeout: 246 seconds]
pu22l3r has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kartouch is now known as caugello|brb
Maxdamantus has joined #ruby
jacobat has joined #ruby
last_staff has quit [Quit: last_staff]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nonks has quit [Ping timeout: 258 seconds]
kaspergrubbe has joined #ruby
gauke has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
baordog has quit [Ping timeout: 265 seconds]
pu22l3r has quit [Ping timeout: 255 seconds]
<agent_white> So. Is there any good open-source IRC bots for eval'ing ruby out there?
hellangel7 has joined #ruby
<shevy> agent_white perhaps cinch
<shevy> not sure what eval-in__ is using
<shevy> I once wrote an IRC bot! but I broke it :(
<tobiasvl> I thought maybe eval-in__ was kirby
<tobiasvl> hmm
kaspergrubbe has quit [Ping timeout: 258 seconds]
<tobiasvl> nah that looks to old
<tobiasvl> too*
Macaveli has joined #ruby
alec-c4 has quit [Remote host closed the connection]
<agent_white> shevy: Hmmm... I'll look into it. I'm tempted to make one myself, but I wouldn't trust it to public-use :P
chrishou_ has quit [Ping timeout: 244 seconds]
<hanmac1> agent_white: hm try to ask charliesome when he is back what evalin does use and if its opensource
<agent_white> hanmac1: Roger that! Thank you.
sepp2k has joined #ruby
kwd__ has joined #ruby
Dude007 has quit [Read error: Connection reset by peer]
kwd_ has quit [Read error: Connection reset by peer]
narcan has joined #ruby
xiq has quit [Remote host closed the connection]
Tricon has quit [Ping timeout: 240 seconds]
Dude007 has joined #ruby
rshetty has joined #ruby
chrishough has joined #ruby
matt_d has joined #ruby
narcan has quit [Ping timeout: 258 seconds]
jbueza has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago_ has quit [Remote host closed the connection]
nrsk has joined #ruby
Xeago has joined #ruby
<agent_white> Also
rkazak_ has quit [Quit: Sleep.....ing....]
Xeago_ has joined #ruby
<agent_white> I'm learning a bit about passing blocks as method parameters. It seems cool!... but what's a scenario in which you would do that? Maybe I just have no use-cases for it at the moment.
sinkensabe has quit [Remote host closed the connection]
msmith_ has joined #ruby
caugello|brb is now known as kartouch
JoshGlzBrk has joined #ruby
alec-c4 has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
Xeago_ has quit [Remote host closed the connection]
kwd__ has quit [Quit: Leaving.]
kwd has joined #ruby
chinaski has quit [Quit: Leaving]
<hanmac1> agent_white: maybe you have a Map object and you want to add an enumerator for each layer then you might do: def each_layer(&block); return to_enum(__method__) unless block_given?; @layers.each(&block); return self; end with something like that you can access the layer but the layers array is protected ...
<agent_white> hanmac1: Ooo...
<agent_white> hanmac1: Just what I was looking for! Thank you! :D
msmith_ has quit [Ping timeout: 240 seconds]
<shevy> agent_white I use this to cascade blocks downwards between different methods
<agent_white> shevy: Care to share a teeny snippet example?
<shevy> div( id: 'main_content') {{ colourize_in_pink: true } <-- and then the yielded block will get passed towards the code that handles that instructional hash in yet another method
<shevy> I forgot a } too
zhtrsd has joined #ruby
alex88 has joined #ruby
<agent_white> Ahhh!
<agent_white> I need to learn ruby's fancy things.
timonv_ has quit [Remote host closed the connection]
<shevy> it's best when you find a use case
<shevy> I didn't understand the &foo thing for a long while
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving.]
psy has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
sk87 has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
krz has joined #ruby
psy has joined #ruby
sinkensabe has joined #ruby
<shevy> I wonder when mruby will kick off
valeriansaliou_ has joined #ruby
Soda has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
relix has joined #ruby
baordog has joined #ruby
livathinos has joined #ruby
zhtrsd has quit []
coderhs has joined #ruby
valeriansaliou_ has quit [Quit: Bye.]
valeriansaliou has joined #ruby
HelloFred has joined #ruby
nrsk has quit [Ping timeout: 256 seconds]
HelloFred has quit [Changing host]
HelloFred has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nonks has joined #ruby
havenwood has quit [Remote host closed the connection]
echooo has joined #ruby
Xeago has joined #ruby
charliesome has joined #ruby
codecop has quit [Remote host closed the connection]
echooo1 has quit [Ping timeout: 260 seconds]
vyorkin has joined #ruby
vyorkin has quit [Client Quit]
valeriansaliou has quit [Client Quit]
valeriansaliou has joined #ruby
apeiros has joined #ruby
hellangel7 has quit [Remote host closed the connection]
rbrs has joined #ruby
Tricon has joined #ruby
shock_one has joined #ruby
msmith_ has joined #ruby
davasaurous has quit [Remote host closed the connection]
jacobat has quit [Ping timeout: 240 seconds]
<shock_one> banister: have you ever thought of improving multiline commands support in pry? For example, opening the current line in an external editor (like BASH does with C-x C-e), or bringing the whole multiline command when it was executed and then I pressed up. I think I could help with that if you're interested.
<tobiasvl> wow, TIL about C-x C-e
livathinos has quit [Remote host closed the connection]
nrsk has joined #ruby
msmith_ has quit [Ping timeout: 255 seconds]
majoh has joined #ruby
JoshGlzBrk has quit [Quit: Textual IRC Client: www.textualapp.com]
nonks has quit [Ping timeout: 245 seconds]
klaut has joined #ruby
Juanchito has joined #ruby
livathinos has joined #ruby
charliesome has quit [Quit: zzz]
Xeago has quit [Remote host closed the connection]
mitt3ns has joined #ruby
agent_white has quit [Ping timeout: 240 seconds]
brushdemon has quit [Quit: <3]
<shevy> is this emacs
<tobiasvl> shevy: bash has emacs inspired hotkeys, yes
ixti has joined #ruby
Dude007 has quit [Remote host closed the connection]
<tobiasvl> shevy: you can change it to vi style if you want. set -o vi
<shock_one> tobiasvl: technically, it's readline, and not bash.
mitt3ns is now known as agent_white
<tobiasvl> yeah
<tobiasvl> tru dat
Xeago has joined #ruby
jacobat has joined #ruby
<shevy> ack
<shevy> vim vs. emacs
klaut has quit [Ping timeout: 265 seconds]
<shevy> who is going to win this epic battle
<tobiasvl> let's not
<shevy> tobiasvl actually I mostly just use bash because I am too lazy to master zsh
<shevy> but the RPROMPT is really cool
bMalum has quit [Quit: bMalum]
dumdedum has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
william3 has joined #ruby
davedev24_ has quit [Remote host closed the connection]
hololeap has quit [Remote host closed the connection]
davedev24_ has joined #ruby
Dude007 has joined #ruby
<agent_white> I think the loser is the person who chooses not to learn either vim or emacs.
<shock_one> I like this one from ZSH, shevy. If you have a file ~/projects/my_project/app/controllers/awesome_controller.rb, you can open it with "vim ~/p/m/a/c/a <TAB>"
Dude007 has quit [Read error: Connection reset by peer]
rshetty has quit [Remote host closed the connection]
Nahra has quit [Ping timeout: 255 seconds]
Hobogrammer has quit [Ping timeout: 246 seconds]
nrsk has quit [Ping timeout: 256 seconds]
dumdedum has quit [Ping timeout: 260 seconds]
<gr33n7007h> that's the only criticism I have about pry this exactly "bringing the whole multiline command when it was executed and then I pressed up" otherwise awesome!!
<william3> pretty awesome feature of zsh
a___ has quit [Ping timeout: 245 seconds]
<shevy> ewww
<shevy> I could never remember the ~/p/m/a/c/a
davedev24_ has quit [Ping timeout: 260 seconds]
<shevy> I simply use aliases :-)
<shock_one> gr33n7007h: you may want to know that typing 'edit' will open this command in your editor. It's not perfect, but at least something.
<gr33n7007h> Thanks
<gr33n7007h> like ipython with multiline command
<shock_one> shevy, speaking about aliases. Both BASH and ZSH use the environmental variable CDPATH to look for directories. For example, if you set it to CDPATH=:~/projects, and you have a project my_project in this directory, you'll be able to "cd my_project" from any place instead of "cd ~/projects/my_project".
rshetty has joined #ruby
<william3> I remember that one
<william3> it ended up being a bit of a pain
<shock_one> Why?
<william3> as too many things got completed when I was searching for stuff (say in the current directory)
<william3> each to their own preferences I guess :D
ephemerian has joined #ruby
<shevy> shock_one yeah but I simply use aliases like "to1" or "to5" instead
<william3> yeah
<shock_one> william3: perhaps your configuration wasn't correct. It should have completed the directories from CDPATH only for the cd command. Well, also for pushd and stuff.
<william3> it was a while ago, maybe I'm misremembering
charliesome has joined #ruby
jacobat has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
govg has joined #ruby
Xeago has joined #ruby
a_ has joined #ruby
roolo has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
skolman_ has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 258 seconds]
skolman_ has joined #ruby
rshetty has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
AFKGeek has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
nrsk has joined #ruby
einarj has joined #ruby
WormDrink has quit [Ping timeout: 244 seconds]
dumdedum has joined #ruby
rshetty has joined #ruby
bweston92 has joined #ruby
NoNMaDDeN has joined #ruby
skolman_ has quit [Ping timeout: 272 seconds]
<shock_one> Excuse me if it's not a proper place, but is anybody hiring for a remote job?
Aaaal has joined #ruby
a_ has quit [Ping timeout: 260 seconds]
<william3> how remote is remote?
<william3> i.e. 100% at home (wherever you're based)
blackmesa has joined #ruby
<shock_one> Let's talk privately, william3.
<sevenseacat> lol
Takle has joined #ruby
<hanmac1> shock_one: do i get that right? do you want a job or do you have a job for us?
<shock_one> hanmac1, I want a job. Do you have one? :)
<hanmac1> i have one, but i need that one for myself ;P
Aaaal has quit [Ping timeout: 246 seconds]
pedromoreira has joined #ruby
rshetty has quit [Remote host closed the connection]
timonv_ has joined #ruby
olivier_bK has joined #ruby
tomaw has quit [Changing host]
tomaw has joined #ruby
coderhs has joined #ruby
speaking1ode has quit [Quit: leaving]
dumdedum has quit [Ping timeout: 250 seconds]
i_s has joined #ruby
nrsk has quit [Ping timeout: 256 seconds]
qba73 has joined #ruby
siwica has joined #ruby
charliesome has quit [Quit: zzz]
Xeago has joined #ruby
i_s has quit [Ping timeout: 255 seconds]
kamilc__ has joined #ruby
ta has joined #ruby
ta has quit [Client Quit]
charliesome has joined #ruby
thsig has joined #ruby
mdw has joined #ruby
nonks has joined #ruby
ta has joined #ruby
<shock_one> sevenseacat: I can see that The Frontier Group is hiring. ;)
thsig has quit [Remote host closed the connection]
<sevenseacat> hallo
<sevenseacat> we do that from time to time/
sigurding has quit [Quit: sigurding]
Spami has quit [Quit: This computer has gone to sleep]
<shock_one> sevenseacat: I'd love to work with you, you're my superstar, Rebecca!
<sevenseacat> i appear to have a stalker.
* sevenseacat waves hello
noop has joined #ruby
duncannz has quit [Remote host closed the connection]
AlSquire has joined #ruby
WormDrink has joined #ruby
dumdedum has joined #ruby
AlSquire has quit [Client Quit]
tayara79 has joined #ruby
tayara79 has left #ruby [#ruby]
Scotteh_ has quit [Ping timeout: 246 seconds]
<shock_one> Sorry, I didn't mean that. You're my superstar as a programmer.
manzo has joined #ruby
thsig has joined #ruby
AlSquire has joined #ruby
AlSquire has quit [Remote host closed the connection]
<wasamasa> rebecca?
<sevenseacat> thats my name.
<wasamasa> The More You Know™
echooo1 has joined #ruby
<shevy> I prefer the name sevenseacat
thsig_ has joined #ruby
<shevy> it includes the mythical substring 'cat'
Aaaal has joined #ruby
echooo has quit [Ping timeout: 246 seconds]
<wasamasa> ^
siwica has quit [Remote host closed the connection]
<william3> a cat that traverses the seven seas
tvw has joined #ruby
siwica has joined #ruby
<shevy> can it swim?
<william3> on a peagreen boat?
<william3> on a pea green boat?
<hanmac1> shevy: i think its a pirate cat ;P
sigurding has joined #ruby
<william3> lol
thsig has quit [Ping timeout: 272 seconds]
alec-c4 has quit [Remote host closed the connection]
aspiers has joined #ruby
alec-c4 has joined #ruby
<olivier_bK> hy
<william3> where is everyone from?
<hanmac1> shevy: already tested new pushed/gem'ed rwx now? ;P
Spami has joined #ruby
<shevy> hanmac1 what wxwidget version should I use?
timonv_ has quit [Remote host closed the connection]
andrewlio has joined #ruby
<hanmac1> shevy wx2.9-3.1+ should work
doev has joined #ruby
rdark has joined #ruby
Xeago has quit [Remote host closed the connection]
alec-c4 has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
SouL_ has quit [Ping timeout: 260 seconds]
zwischenzug3 has quit [Quit: Leaving]
Xeago has joined #ruby
sevenseacat has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 244 seconds]
ndrei has quit [Quit: Lost terminal]
govg has quit [Ping timeout: 265 seconds]
samflores has quit [Quit: ZNC - http://znc.in]
<shevy> ./src/unix/mediactrl.cpp:24:40: fatal error: gst/interfaces/xoverlay.h: No such file or directory
<shevy> dunno
<shevy> I'll wait until that gstreamer mess is gone
ndrei has joined #ruby
govg has joined #ruby
ndrei has quit [Client Quit]
ndrei has joined #ruby
ndrei has quit [Client Quit]
ndrei has joined #ruby
a_ has joined #ruby
ndrei has quit [Client Quit]
<hanmac1> shevy: did you reconfigure wx again?
ndrei has joined #ruby
Xeago_ has joined #ruby
linojon has joined #ruby
<shevy> sure
echooo has joined #ruby
Dude007 has joined #ruby
govg has quit [Ping timeout: 260 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
govg has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
echooo1 has quit [Ping timeout: 265 seconds]
AlSquire has joined #ruby
alec-c4 has joined #ruby
a_ has quit [Ping timeout: 240 seconds]
<hanmac1> shevy hm ok then i might ask in the wx channel when the gst problem is fixed
mercwithamouth has quit [Ping timeout: 272 seconds]
joonty has joined #ruby
<lupine> oh my god ruby wat
<lupine> RUBYOPT=-v erb any-file.erb > any-file
byprdct has quit []
mengu has quit [Remote host closed the connection]
timonv_ has joined #ruby
bMalum has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
rdark has quit [Quit: leaving]
a_ has joined #ruby
rdark has joined #ruby
iraj has joined #ruby
timonv_ has quit [Remote host closed the connection]
baordog has quit [Ping timeout: 260 seconds]
<iraj> i have installed ruby in rbnv , i need an interpreter for learnin ruby,
<iraj> *rbenv
rdark has quit [Client Quit]
rdark has joined #ruby
timonv_ has joined #ruby
<hanmac1> iraj: if you installed ruby with rbenv or something else, didnt you already have an interpreter now?, or do you mean a interactive thing for testing?
matchaw has quit [Ping timeout: 258 seconds]
<iraj> hanmac1: yeah , i mean intractive for tesing, my friend told me "pry"
SouL_ has joined #ruby
<hanmac1> iraj: with ruby you get "irb"
baordog has joined #ruby
<hanmac1> "pry" is a bit better but 3rdparty
<shock_one> iraj: you can install it with 'gem install pry'. For your information, such programs are called REPL: read, evaluate, print loop.
<iraj> hanmac1: aha, thank you so much buddy, i didn'y know about irb :)
wm3|away has joined #ruby
linojon has quit [Quit: linojon]
<iraj> shock_one: thanks buddy
Macaveli has quit [Read error: No route to host]
<shock_one> iraj: you're welcome.
Macaveli has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
zarubin has quit [Remote host closed the connection]
<shock_one> Does anybody know a way to remember that in alias_method the new name comes first? Even writing this sentence made me stop an think about it for a while. My current technique is to think of how 'ln' works, and do the opposite.
govg has quit [Ping timeout: 250 seconds]
SouL_ has quit [Ping timeout: 258 seconds]
davidhq has joined #ruby
SouL_ has joined #ruby
yfeldblum has joined #ruby
<tobiasvl> lol. I never remember how ln works
<agent_white> hanmac1: Can't scroll up in my history far enough. But I spoke about finding an IRC-ruby-eval bot. Who did you say I should ask about eval-in's code?
govg has joined #ruby
<hanmac1> "charliesome" but he isnt currently available
<hanmac1> oh wrong he is
<agent_white> hanmac1: Ah alrighty. Thank you for the reminder :D
<hanmac1> ping charliesome
<agent_white> charliesome: Is the code to eval-in available?
<charliesome> yo
<charliesome> agent_white: not the actual evaluator part
<agent_white> charliesome: Ah alrighty! I was just looking for an open-source IRC-bot for evaluating ruby code.
<tobiasvl> security through obscurity, eh?
<hanmac1> maybe NSA plugin?;P
<shevy> shock_one I always use alias
<shevy> def foo;
<shevy> end; alias bar foo
<shevy> eh, ignore the first ; there
davedev24_ has joined #ruby
wm3|away is now known as workmad3
<shevy> shock_one the way I remember is like a hash pointer
<shevy> key ->(points towards) value
<shevy> where the value must already exist
<shevy> and key can be anything that points to it
<shock_one> shevy, that makes sense, thank you.
<shevy> I always wonder whether using aliases is good or bad design
<shevy> because I use a lot of aliases in ruby code
<hanmac1> shevy on newer ruby: class Object; alias_method :bar, def foo; end; end
Takle has quit [Remote host closed the connection]
a_ has quit [Read error: Connection reset by peer]
<shevy> I don't use alias_method
<shock_one> It must work with alias too.
<agent_white> What do you use?
<shevy> I hate the extra '_method' and that I must use : and ,
<shevy> alias all the way
ayaz has joined #ruby
<shevy> I'd wish we could easily alias class methods too
<shevy> I hate class << self
<shevy> the << out of nowhere interferes visually with the rest of my code :(
<shock_one> You can create an alias_class_method method, shevy. ;_
<shevy> well
<shevy> I can do a lot of stuff, sure
<shevy> but if I use it in my gems, and distribute that, I have to carry my modifications as dependency in those gems too
Takle has joined #ruby
<shevy> that is not very convenient, so I stick to core ruby idioms
<shevy> I'd rather try and lobby for inclusion :)
<workmad3> shevy: singleton_class.class_eval do ... end
bMalum has quit [Quit: bMalum]
<shevy> aah
davedev24_ has quit [Ping timeout: 260 seconds]
<shevy> let me think
<shevy> you mean, class_eval { alias foo bar } should work?
<workmad3> shevy: yup
<shevy> let me try
Heskie has joined #ruby
<agent_white>
wpp has joined #ruby
<shevy> cool
jottr has joined #ruby
<shevy> >> alias e puts; class Foo; def bar; e 'Hi from bar()'; end; end; Foo.class_eval { alias foo bar }; Foo.new.foo
<eval-in__> shevy => Hi from bar() ... (https://eval.in/207844)
<shevy> now I like class_eval a lot more
<shevy> thanks workmad3
<shock_one> shevy, "self.send :alias_method, :baz, :bar" should also work.
<shock_one> Even without self.
<shevy> hmm
<shevy> that makes it a bit better
<shevy> but I still have to use : there and ,
<shevy> I suppose .send :alias would not work?
Takle has quit [Ping timeout: 245 seconds]
govg has quit [Ping timeout: 246 seconds]
<workmad3> shevy: alias is a keyword, not a method, afaik
<shock_one> I'm not sure if it's a method. But even if it is, you steel need to pass symbols to send.
<workmad3> shevy: which is why it has different semantics to every other method in ruby
<shevy> shock_one steel needs? :)
echooo1 has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
<shevy> we are construction workers! \o/
<shevy> alias_method seems more powerful
govg has joined #ruby
echooo has quit [Ping timeout: 245 seconds]
<workmad3> shevy: alias_method is at least a normal method too, so doesn't require memorising a special-case ;)
siwica has quit [Read error: Connection reset by peer]
siwica has joined #ruby
echooo1 has quit [Client Quit]
<shock_one> workmad3: instance_eval changes the current class to the singleton class.
sk87 has joined #ruby
<shock_one> So, singleton_class.class_eval could be instance_eval.
echooo has joined #ruby
Takle has joined #ruby
<workmad3> shock_one: class_eval worked fine too
<shock_one> workmad3: sure, just two identifiers instead of one.
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<ta> noget der har en smart måde at teste, om der bliver pipe'd noget til et .rb script? (echo "hest" | test.rb)
<ta> uh, sorry
<workmad3> shock_one: in fact, instance_eval doesn't work
<tobiasvl> ta: davs
<workmad3> shock_one: Object.singleton_class.class_eval {alias to_string to_s} <-- Object.to_string works (and Object.new.to_string doesn't)
<ta> tobiasvl: hello :)
<banister> shock_one that's not true
<workmad3> shock_one: while using instance_eval, Object.to_string doesn't work
echooo has quit [Client Quit]
<banister> shock_one instance_eval does not change thse self to teh singleton, it changes the 'default definee' to the singleton
mengu has quit [Ping timeout: 260 seconds]
<shock_one> banister: you're right.
<banister> shock_one of course i am, i'm an 31337 hax0r
siwica has quit [Ping timeout: 246 seconds]
<workmad3> heh :) I thought I had a reason for going straight to class_eval and not instance_eval
<workmad3> I just couldn't express it ;)
jacobat has joined #ruby
alec-c4 has quit [Remote host closed the connection]
alec-c4 has joined #ruby
relix_ has joined #ruby
<shock_one> banister: have you seen my message about multi line commands?
<banister> shock_one no
<shock_one> banister: have you ever thought of improving multiline commands support in pry? For example, opening the current line in an external editor (like BASH does with C-x C-e), or bringing the whole multiline command when it was executed and then I pressed up. I think I could help with that if you're interested.
thsig_ has quit [Remote host closed the connection]
<banister> shock_one readline isn't designed for that, and the ways around it feel like hacks -- instead we have commands that work around that, check out 'edit' and 'amend-line' and 'play' etc
<banister> when you get the hang of those you dont need multi-line editing
boombadaroomba has joined #ruby
roolo has quit [Remote host closed the connection]
jacobat has quit [Ping timeout: 260 seconds]
relix has quit [Ping timeout: 260 seconds]
banister is now known as banisterfiend
alec-c4 has quit [Ping timeout: 245 seconds]
<shock_one> banister, yes, I'm aware of those commands. However, BASH, which uses the same library, does support the up behaviour I describe.
<shock_one> banisterfiend: you can try to open a string i bash, and close it a couple of lines later.
boombadaroomba has quit [Ping timeout: 265 seconds]
mengu has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
sevenseacat has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
i_s has joined #ruby
Atttwww has quit [Ping timeout: 272 seconds]
<shock_one> banisterfiend: So, do you mind having this feature in pry, providing it's not a bunch of hacks?
blackmesa has quit [Ping timeout: 240 seconds]
<banisterfiend> shock_one if you write a prototype and it's cool, of course :)
tokik has quit [Ping timeout: 255 seconds]
<banisterfiend> but it's going to have to be pretty awesome :D
bauruine_ has joined #ruby
<shock_one> Pretty awesome is exactly the type of code I write.
bayed has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
shock_one has quit [Quit: Be back later ...]
i_s has quit [Ping timeout: 255 seconds]
shock_one has joined #ruby
nonks has quit [Ping timeout: 265 seconds]
rikai has quit [Remote host closed the connection]
rikai has joined #ruby
jhass|off is now known as jhass
Deejay_ has joined #ruby
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
shock_one has quit [Ping timeout: 245 seconds]
rshetty has joined #ruby
mrgrieves has joined #ruby
agjacome has joined #ruby
Heskie has quit []
Heskie has joined #ruby
Aova is now known as A0v4
Deejay_ has quit [Quit: Computer has gone to sleep.]
ndrei has quit [Quit: Lost terminal]
ndrei has joined #ruby
ndrei has quit [Client Quit]
govg has quit [Ping timeout: 260 seconds]
ndrei has joined #ruby
jacobat has joined #ruby
Soda has quit [Remote host closed the connection]
oponder has joined #ruby
gldnbear has joined #ruby
pedromoreira has quit [Ping timeout: 272 seconds]
nonks has joined #ruby
Guest92474 has joined #ruby
sameerynho has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gldnbear has quit [Quit: gldnbear]
SouL_ has quit [Ping timeout: 272 seconds]
rshetty has quit [Remote host closed the connection]
davidhq has joined #ruby
davidhq has quit [Client Quit]
SouL_ has joined #ruby
ndrei has quit [Quit: Lost terminal]
qba73 has quit [Remote host closed the connection]
ndrei has joined #ruby
<mrgrieves> I have hashes with key=>values like this: "created_at"=>"2014-05-21T09:19:17+01:00"
ndrei has quit [Client Quit]
<mrgrieves> how do you suggest to parse and compare date values like these?
timonv_ has quit [Remote host closed the connection]
ndrei has joined #ruby
sprihodko has joined #ruby
jxport_ is now known as jxport
ndrei has quit [Client Quit]
ndrei has joined #ruby
Loplin has joined #ruby
eka has joined #ruby
rshetty has joined #ruby
<apeiros> mrgrieves: see Time::strptime
<mrgrieves> apeiros: cheers! will take a look now ..
bauruine has quit [Quit: ZNC - http://znc.in]
<Loplin> Hello. I am new to ruby and am attempting to do : copy_proc = Proc.new { `sudo -- sh -c "cat /etc/hosts.d/* > #{hosts_location}"` }; copy_proc.call, but I get the error: cat: /etc/hosts.d/*: No such file or directory
bauruine_ has quit [Quit: ZNC - http://znc.in]
<Loplin> /etc/hosts.d/ does exist, so I assume it isn't processing the glob correctly. How can I fix that?
timonv_ has joined #ruby
bauruine- has joined #ruby
ndrei has quit [Client Quit]
ndrei has joined #ruby
<czaks> Loplin: possibly it's empty
<czaks> so * is not being expanded
qba73 has joined #ruby
<Loplin> czaks: I actually just realized that. Yes, it is empty.
<czaks> maybe do 2>/dev/null
<czaks> :)
ndrei has quit [Client Quit]
abilon has joined #ruby
ndrei has joined #ruby
fsapo has joined #ruby
matthewhill has joined #ruby
<Loplin> czaks: good idea. It might be better to fail on that error though, so I'll think about it
pedromoreira has joined #ruby
matthewhill has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
shredding has joined #ruby
roolo has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki_ has joined #ruby
pedromoreira has left #ruby ["WeeChat 1.0"]
nonks has quit [Ping timeout: 265 seconds]
autonomousdev has joined #ruby
tkuchiki_ has quit [Ping timeout: 255 seconds]
mxrguspxrt has joined #ruby
tvw has quit [Read error: Connection reset by peer]
byprdct has joined #ruby
xiq has joined #ruby
phutchins has joined #ruby
HelloFred has quit [Remote host closed the connection]
charliesome has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
charliesome has joined #ruby
oo_ has joined #ruby
sprihodko has quit [Quit: (null)]
jack_rabbit has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 240 seconds]
Doddlin has joined #ruby
Doddlin has quit [Client Quit]
SouL_ has quit [Quit: No Ping reply in 180 seconds.]
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NoNMaDDeN has quit [Remote host closed the connection]
Rx_o has joined #ruby
bMalum has joined #ruby
ldnunes has joined #ruby
SouL_ has joined #ruby
Rx_o has quit [Client Quit]
aspiers has joined #ruby
schaerli has quit [Remote host closed the connection]
workmad3 is now known as wm3|away
schaerli has joined #ruby
shock_one has joined #ruby
ee99ee2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SouL_ has quit [Ping timeout: 246 seconds]
Takle has joined #ruby
moritzs has joined #ruby
nfk has joined #ruby
shock_one has quit [Ping timeout: 265 seconds]
byprdct has quit []
rbrs has quit [Remote host closed the connection]
zaid_h has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
starkhalo has joined #ruby
bMalum has quit [Quit: bMalum]
lolmaus has quit [Remote host closed the connection]
lolmaus has joined #ruby
Deejay_ has joined #ruby
manzo has quit [Ping timeout: 240 seconds]
chthon has joined #ruby
bMalum has joined #ruby
thsig has joined #ruby
Photism has quit [Quit: Leaving]
krz has quit [Quit: WeeChat 1.0.1]
thsig_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Deejay_ has quit [Quit: Computer has gone to sleep.]
thsig has quit [Ping timeout: 272 seconds]
Deejay_ has joined #ruby
NoNMaDDeN has joined #ruby
rshetty has quit [Remote host closed the connection]
Takle has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
poulet_a has joined #ruby
kirun has joined #ruby
siwica has joined #ruby
william3 has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 245 seconds]
matthewhill has joined #ruby
AlSquirrel has joined #ruby
moritzs has joined #ruby
sk87 has joined #ruby
mengu has quit [Remote host closed the connection]
AlSquire has quit [Ping timeout: 245 seconds]
pu22l3r has joined #ruby
ping-pong has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
kaspergrubbe has quit [Read error: No route to host]
kaspergrubbe has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
siwica1 has joined #ruby
max96at|off is now known as max96at
anarang has quit [Quit: Leaving]
pu22l3r has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
terlar has joined #ruby
siwica has quit [Ping timeout: 272 seconds]
MrSamuel has joined #ruby
bMalum has quit [Quit: bMalum]
i_s has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davedev24_ has joined #ruby
tjsousa has joined #ruby
coderhs has quit [Ping timeout: 246 seconds]
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aclearman037 has joined #ruby
i_s has quit [Ping timeout: 255 seconds]
ping-pong has joined #ruby
AFKGeek has quit [Quit: Leaving]
AFKGeek has joined #ruby
wm3|away has quit [Ping timeout: 260 seconds]
jacobat has quit [Ping timeout: 240 seconds]
doev has quit [Quit: Verlassend]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
moritzs has quit [Ping timeout: 265 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 272 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
banister has quit [Max SendQ exceeded]
banister has joined #ruby
paulfm has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
x77686d has quit [Quit: x77686d]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
Synthead has quit [Ping timeout: 258 seconds]
banister has quit [Max SendQ exceeded]
zarubin has joined #ruby
benzrf|offline is now known as benzrf
banister has joined #ruby
zarubin has quit [Remote host closed the connection]
shock_one has joined #ruby
zarubin has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
matthewhill has quit [Quit: Lingo: www.lingoirc.com]
larsam has left #ruby [#ruby]
banister is now known as banisterfiend
mahyuddin has joined #ruby
felipecvo has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
shock_one has quit [Ping timeout: 255 seconds]
mengu has joined #ruby
reinaldob has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
Synthead has joined #ruby
toretore has joined #ruby
spastorino has joined #ruby
twistedpixels is now known as zz_twistedpixels
bweston92 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
livingstn has joined #ruby
nonks has joined #ruby
rshetty has joined #ruby
bweston92 has joined #ruby
mxrguspxrt has quit []
zz_twistedpixels is now known as twistedpixels
zaid_h has quit [Quit: ZZZzzz…]
mike32 has joined #ruby
rshetty has quit [Remote host closed the connection]
gccostabr has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Soda has joined #ruby
benzrf is now known as benzrf|offline
vinleod has joined #ruby
ddv has joined #ruby
rshetty has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
nonks has quit [Ping timeout: 260 seconds]
rshetty has quit [Remote host closed the connection]
marr has joined #ruby
mxrguspxrt has joined #ruby
mkaesz has joined #ruby
RaCx has joined #ruby
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti> Hi
rshetty has joined #ruby
livingstn has quit [Ping timeout: 256 seconds]
abilon has quit [Read error: Connection reset by peer]
Spami has joined #ruby
linojon has joined #ruby
SilkFox_ has joined #ruby
banister has joined #ruby
Squarepy has joined #ruby
livingstn has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
definity has joined #ruby
bluenemo has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
<definity> Hi, I'm learning Ruby and I am confused why its true and nil value is above 1. Any reason why?
shock_one has joined #ruby
<canton7> "value is above 1"?
FooMunki has joined #ruby
<canton7> what does that mean?
himsin has joined #ruby
bauruine- has quit [Quit: ZNC - http://znc.in]
<banister> canton7 i assume he's talking about object_id
bauruine has joined #ruby
<banister> if you are talking about object_id, then that's an implementation detail, ignore it
<definity> banister: Yeah
Guest70315 has quit [Changing host]
Guest70315 has joined #ruby
<banister> definity that's not something you should care about
<definity> banister: Okay thanks :)
Guest70315 is now known as ArchBeOS-cloud
<canton7> that's just an arbitary number
devdazed has joined #ruby
<banister> for some definition of 'arbitrary' ;)
pu22l3r has joined #ruby
<banister> arbitrary according to the spec perhaps, but not arbitrary for a given implementation
<apeiros> arbitrary as in: any ruby implementation may do it in whatever way it wants
<banister> ya
iamjarvo has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
<canton7> as in, "you shouldn't care if there's a pattern" :P
rshetty has quit [Remote host closed the connection]
livathinos has quit [Remote host closed the connection]
RaCx_ has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0.1]
livathinos has joined #ruby
RaCx has quit [Ping timeout: 258 seconds]
RaCx_ is now known as RaCx
davidhq has joined #ruby
alem0lars has joined #ruby
govg has joined #ruby
lukevinc has joined #ruby
taptapdan has quit [Quit: taptapdan]
oo_ has joined #ruby
twohlix has joined #ruby
alem0lars has quit [Max SendQ exceeded]
qmfnp has joined #ruby
dblessing has joined #ruby
sevvie has joined #ruby
HelloFred has joined #ruby
coderhs has joined #ruby
tesaf has joined #ruby
willywos has joined #ruby
<hanmac1> definity: also the object_id can differ between versions and architectures (on newer ruby2.0 or something on a 64bit os, FLONUM might be enabled that does support fixed object_id for Floats)
hellangel7 has joined #ruby
codecop has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
HelloFred has quit [Client Quit]
stunder has joined #ruby
tjsousa has quit [Remote host closed the connection]
twohlix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shock_one has quit [Quit: Be back later ...]
shock_one has joined #ruby
hanmac1 has quit [Read error: Connection reset by peer]
jerius has joined #ruby
tier has joined #ruby
j2p2 has joined #ruby
ee99ee2 has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
hanmac1 has joined #ruby
it0a has joined #ruby
dANO_ has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
RaCx has joined #ruby
shock_one has quit [Ping timeout: 250 seconds]
jimbach has joined #ruby
siwica has joined #ruby
<mike32> hi, colud u say, what is the difference in speed between c++ and ruby nowadays
lukevinc has quit [Quit: ChatZilla 0.9.91 [Firefox 24.8.0/20000101000000]]
jimbach_ has joined #ruby
siwica1 has quit [Ping timeout: 272 seconds]
yeticry has quit [Read error: Connection reset by peer]
livathinos has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 272 seconds]
mitt3ns has joined #ruby
Takle has quit [Remote host closed the connection]
jerius has quit []
agent_white has quit [Read error: Connection reset by peer]
HelloFred has joined #ruby
matchaw has joined #ruby
Avahey has joined #ruby
jimbach has quit [Ping timeout: 245 seconds]
mxrguspxrt has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
<hanmac1> mike32 c++ is fast but ruby is nice, thats why i write bindings in c++
timmmaaaayyy has left #ruby ["Leaving..."]
HelloFred has left #ruby [#ruby]
oleo has joined #ruby
GPH|work has joined #ruby
SilkFox has joined #ruby
yeticry has joined #ruby
larsam has joined #ruby
stunder has quit [Quit: Leaving]
mitt3ns is now known as agent_white
RaCx has quit [Ping timeout: 260 seconds]
renderful has joined #ruby
Takle has joined #ruby
slester has joined #ruby
rustypigeon has joined #ruby
ocx has left #ruby [#ruby]
<banister> hanmac1 i'm curoius how that sentence would look in german, can you rewrite for me?
<banister> curious*
HelperW has quit [Excess Flood]
charliesome has quit [Quit: zzz]
<hanmac1> "C++ ist schnell, aber Ruby ist nett, darum schreibe ich Erweiterungen in C++"
iraj has quit [Ping timeout: 245 seconds]
<bhaak> aren't bindings and extensions 2 different things?
<ddv> i'm not a big fan of external ruby dependencies
chipotle has joined #ruby
<bhaak> bindings being extensions for libraries to get them callable from ruby?
autonomousdev has joined #ruby
renderful has quit [Ping timeout: 255 seconds]
<banister> hanmac1 thanks, but what about all those funny german characters with the 2 dots over them and so on? how that sentence has none of those?
matchaw_ has joined #ruby
linojon has quit [Quit: linojon]
matchaw has quit [Ping timeout: 272 seconds]
<tobiasvl> lol. there are no z's or o's in that sentence either
<hanmac1> bhaak: yes, like by rwx gem does bind wxwidgets into ruby
shredding has quit [Quit: shredding]
HelperW has joined #ruby
IceDragon has joined #ruby
<bhaak> banister: yes, there are none in there.
<banister> bhaak i'd like to see the sentence rewritten to include some
TH3_D35T1NY has joined #ruby
djstorm has quit [Ping timeout: 255 seconds]
RaCx has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
mike32 has quit [Quit: Leaving]
jottr has joined #ruby
<bhaak> banister: Wäre Ruby schneller und nicht nur netter als C++, schröbe ich keine Erweiterungen in C++.
baordog has quit [Remote host closed the connection]
<banister> bhaak thanks man! it's been a while since i've seen those characters and i just wanted to have a little peek and see how they're doing
baordog has joined #ruby
sailias has joined #ruby
wm3|away has joined #ruby
linojon has joined #ruby
matchaw_ has quit [Ping timeout: 265 seconds]
fmcgeough has joined #ruby
cmxu has joined #ruby
cmxu has quit [Max SendQ exceeded]
<bhaak> banister: they're doing fine and even if they didn't, they will always have a home with heavy metal bands
jottr has quit [Ping timeout: 250 seconds]
<banister> lol
livathinos has joined #ruby
zaid_h has joined #ruby
<banister> bhaak yeah they seemed cheerful and happy in that last sentence and obviously out for a good time
wm3|away is now known as workmad3
SilkFox has quit [Quit: WeeChat 0.4.3]
TH3_D35T1NY has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
* agent_white blasts rammstein
matchaw has joined #ruby
mmochan_ has quit [Quit: Connection closed for inactivity]
cajone has joined #ruby
jacobat has joined #ruby
rkalfane has joined #ruby
xaxisx has joined #ruby
<hanmac1> hahaha i found https://codeclimate.com/ ,,, good that it does not work for my stuff ;P
<ddv> I guess PHP will get a bad score instantly
godd2 has joined #ruby
gaganjyot has joined #ruby
xaxisx has quit [Client Quit]
aagdbl has joined #ruby
aagdbl has quit [Client Quit]
j2p2 has quit []
i_s has joined #ruby
xaxisx has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snath has quit [Ping timeout: 255 seconds]
Glacer232 has joined #ruby
Glacer232 has quit [Max SendQ exceeded]
a_ has joined #ruby
<a_> How can I do something like a Hash#delete without removing it from the actual hash object?
<a_> i.e. i just want to return a new hash that is missing that element, without messing around with the original one
freerobby has joined #ruby
<godd2> Hash#reject may be your friend here
otakbeku has joined #ruby
<workmad3> godd2: heh :) I was about to suggest that, was just checking it worked as I expected (and returned a hash)
<godd2> though youll have to pass a block instead of a straight key
<ddv> come on you can google this
i_s has quit [Ping timeout: 244 seconds]
Takle has quit [Remote host closed the connection]
<apeiros> a_: with ActiveSupport, see also Hash#except
<godd2> workmad3 haha well once I saw "Equivalent to hsh.dup.delete_if." in the docs, I knew it was what I wanted
rbrs has joined #ruby
shortCircuit__ has quit [Remote host closed the connection]
<workmad3> godd2: my first impulse is to crack open irb and play, rather than chrome and search :(
<agent_white> I vote we change Hash#reject to Hash#dismiss. We need to take into account the feelings of those keys we wish not to come inside.
<a_> apeiros: a shame such a simple primitive operation requires ActiveSupport :/
<a_> especially considering how rich Hash / Enumerable etc. is with Ruby, otherwise
<workmad3> agent_white: class Hash; alias screw_you reject; end
<godd2> you'd think that Hash#delete would not change the Hash, but that the non-existent Hash#delete! would
catphish has joined #ruby
bauruine_ has joined #ruby
<agent_white> workmad3: D:
definity has quit [Remote host closed the connection]
<godd2> so much for the principle of least surprise :p
timonv_ has quit [Remote host closed the connection]
matchaw has quit [Ping timeout: 245 seconds]
<workmad3> godd2: I'd be surprised if 'delete' *didn't* modify the hash personally
<workmad3> godd2: I find its behaviour very unsurprising... delete's the key from the hash
<workmad3> *deletes (no ')
<godd2> it's just that select, reject, and merge all have bang alts
doodlehaus has joined #ruby
<workmad3> godd2: right... because all of them have sensible non-bang alternatives
<workmad3> godd2: ! doesn't mean destructive op
<siwica> what is the standard way to obtain the ruby-doc for a gem?
<workmad3> godd2: ! means 'be careful of this alternative, it works differently'
timonv_ has joined #ruby
himsin has quit [Quit: himsin]
<apeiros> a_: it's easy to implement
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cajone> Guys if I have a very large hash or array in memory how can I drop it and reclaim back the memory, it seems the the clear method empties the array/hash but does not free up the memory ?
<apeiros> I mean, AS implementation is literally just `def except!(*keys); keys.each { |key| delete(key) }; self; end` and `def except(*keys); dup.except!(*keys); end`
AFKGeek has quit [Quit: Leaving]
<apeiros> cajone: that's not how memory management works
<godd2> cajone: you are at the mercy of the garbage collector. best you can do is remove all references to the object and wait until the memory is free
iamjarvo has joined #ruby
<a_> apeiros: my solution was this
<a_> apeiros: hash.dup.tap { |h| h.delete :key }
<jhass> godd2: the rule is quite simple, all methods of mutable types are self modifying unless it makes no sense for the operation or there's a method with the same name ending with a !
zaid_h has quit [Quit: ZZZzzz…]
<apeiros> cajone: even with the object no longer referenced and GC having run it's not necessarily the case that ruby returns memory to the OS
robbyoconnor has quit [Read error: No route to host]
<apeiros> godd2: ^
<apeiros> a_: yupp, sensible
robbyoconnor has joined #ruby
bweston92 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<godd2> jhass: "or there's a method with the same name ending with a !" I'm just saying I expect there to be a delete! method on Hash.
<workmad3> godd2: ok... so if there was, what would 'delete' do
<workmad3> godd2: as compared to 'delete!'
<apeiros> workmad3: the thing a_ wanted it to do
<apeiros> return a hash with the key deleted
<godd2> apeiros yes
<godd2> just like select returns a hash with the keys selected
<workmad3> but that's then just reject :P
<godd2> no, reject requires a block and works like delete_if
jamesrward has joined #ruby
<godd2> you can't just pass a key as an argument
RaCx has quit [Ping timeout: 258 seconds]
<hanmac1> shevy: ping
<godd2> this argument is fruitless, haha. It's just my opinion that I expected ther eto be a delete!. Its fine that there's not
AlSquirrel has quit [Quit: Quitte]
<cajone> apeiros: ok thanks, I guess it is what it is, but does that not somehow seem fundamentally flawed, I mean why would you run a clear method at all if it was not for the case of gaining back memory
sameerynho has quit [Quit: Leaving]
<hanmac1> shevy: i also added rwx there: https://www.versioneye.com/ruby/rwx
rkalfane has joined #ruby
<shevy> well gems rule
<apeiros> cajone: no. google about how virtual memory works.
hmsimha has joined #ruby
<workmad3> godd2: fair enough :)
<a_> Hash#delete does totally break the API's convention
timonv_ has quit [Remote host closed the connection]
<workmad3> a_: how so?
<agent_white> delete is a serious word. We need "!" next to it.
RaCx has joined #ruby
<a_> workmad3: it's mutable, and most of such have a !, with a non-! being immutable
<apeiros> workmad3: no, or since when does reject take a key, or list of keys as argument?
<godd2> agent_white or better yet, make it !! to please me and a_
<workmad3> a_: lots of mutable methods have no !
<shevy> a_ the problem is that you need two methods
mary5030 has joined #ruby
<workmad3> a_: push, pop, shift, unshift...
<a_> workmad3: true,
<apeiros> workmad3: also, there's a reason AS Hash#except uses each + delete and not reject
<agent_white> godd2: When I started ruby, I hoped I could use "xxx.exists?!"
<agent_white> That would make my day.
<a_> shevy: if that's a problem, what are we doing with merge! and merge, reject and reject!
weemsledeux has joined #ruby
<shevy> so in the case of Hash#delete you'd need to state that .delete applied on a hash will return a new hash
<a_> etc.
<apeiros> (that all was re: "but then it's just reject")
<workmad3> a_: the rule is that ! is an *alternative*
<workmad3> a_: there shouldn't be a ! method if there isn't a non-! alternative that is similar enough to warrent the same name
<ddv> now hug eachother
<godd2> I once proposed (jokingly) an opposite to ternary of !? which just switches which side of the colon gets run
<shevy> ddv not unless you wear pants
<workmad3> apeiros: yeah, I know I was glossing over a lot there :P
SilkFox_ has joined #ruby
<a_> workmad3: we are in agreement - i mean alternative between an in-place and a not-in-place delete
<ddv> shevy: :)
timonv_ has joined #ruby
narph has joined #ruby
<godd2> so like `3.odd? !? "3 is even" : "3 is odd"`
<shevy> please godd2
AlSquire has joined #ruby
doodleha_ has joined #ruby
<agent_white> Hash.explode(key)
<catphish> here's a fun thing that briefly confused me: http://paste.codebasehq.com/pastes/mz7uyydopwbdd9212a
<workmad3> godd2: evil!!!!
<agent_white> Hash.demolish(key)... hmmm.
<jamesrward> I am having trouble with rvm and .ruby-version. I created a .ruby-version file for my project with just the text 2.1.1p76 in it. When I cd to the project directory rvm says "ruby-2.1.1-p76 is not installed." but when I do ruby --version it says ruby 2.1.1p76. Any idea what I am missing?
doodlehaus has quit [Read error: Connection reset by peer]
<godd2> Hash.decimate(key) #only works when hash contains 10 key value pairs
shock_one has joined #ruby
msmith_ has joined #ruby
<workmad3> jamesrward: 2.1.x doesn't have releases with patch-levels
<workmad3> jamesrward: but sometimes the patch-level still appears in --version
<hanmac1> shevy: if i get it working i will also add rwx to travis or something ...
<workmad3> jamesrward: so 2.1.1 is always 2.1.1, the next release was 2.1.2
doodleha_ has quit [Read error: Connection reset by peer]
<workmad3> jamesrward: or, in other words, just put '2.1.1' in your .ruby-version file
Takle has joined #ruby
payne has joined #ruby
moritzs has joined #ruby
<shevy> hanmac1 eh - a simple gem that works is more than enough
gr33n7007h has quit [Quit: Leaving]
gr33n7007h has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
enebo has joined #ruby
mrgrieves has quit [Quit: leaving]
<hanmac1> shevy: it does works for me ;P the only thing which does not work for you is wx itself with the gst problem ...
zarubin has quit [Quit: Leaving.]
shock_one has quit [Ping timeout: 260 seconds]
zarubin has joined #ruby
<shevy> I am sure they'll enable --disable-gstreamer one day
shredding has joined #ruby
Xeago has joined #ruby
<shevy> you are in such a hurry Hanmac
<shevy> you are even twice here
Xeago has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
psy has quit [Remote host closed the connection]
zarubin has quit [Client Quit]
zarubin has joined #ruby
<hanmac1> shevy: doppler effect ;P
zarubin has quit [Client Quit]
<jamesrward> workmad3: ahh thanks
zarubin has joined #ruby
agrinb has joined #ruby
tagrudev has quit [Quit: Me = Awesome]
Xeago has joined #ruby
zarubin has quit [Client Quit]
Xeago_ has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
apeiros has joined #ruby
gaganjyot has quit [Ping timeout: 240 seconds]
FL1SK has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
matchaw has joined #ruby
twohlix has joined #ruby
mwlang has joined #ruby
timonv_ has quit [Remote host closed the connection]
<alex88> I don't get this https://gist.github.com/alex88/b2113c6763db810e6392 why Date.current + 1.month works, Date.current + 1.month * 1 gives 9111, and the last sentence is true?
Kricir has joined #ruby
apeiros has quit [Ping timeout: 272 seconds]
jamesrward has left #ruby [#ruby]
<mwlang> Is it possible to use tiny_tds to insert and pull data from the “IMAGE” field type in SQL Server?
moritzs has quit [Ping timeout: 272 seconds]
x77686d has joined #ruby
agrinb has quit [Remote host closed the connection]
<hanmac1> alex88 ask in #rubyonrails ... they did the shit with active support
<hanmac1> alex88: what does "1.month.class" return? maybe thats the question with date+
shredding has quit [Quit: shredding]
x77686d has quit [Ping timeout: 260 seconds]
lolmaus has quit [Quit: Konversation terminated!]
lnormous has joined #ruby
SilkFox has joined #ruby
shredding has joined #ruby
terlar has quit [Quit: WeeChat 1.0.1]
jacobat has quit [Ping timeout: 245 seconds]
<a_> hmm. guise. Is it proper to do this? rescue => e; raise MyOwnError, e; end;
<a_> Or would it be more: raise MyOwnError, e.message;
matchaw has quit [Ping timeout: 260 seconds]
<a_> I don't want to lose information from the exception I'm re-raising
mskaesz has joined #ruby
Loplin has quit [Quit: Leaving.]
mkaesz has quit [Read error: No route to host]
klmlfl has joined #ruby
taptapdan has joined #ruby
Heskie has quit []
kedare has joined #ruby
devdazed has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
zaid_h has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
devdazed has joined #ruby
decoponio has joined #ruby
<alex88> hanmac1: fixnum, problem is, 3.months returns seconds, adding to Date adds days
RaCx has quit [Ping timeout: 245 seconds]
agjacome has quit [Quit: leaving]
jottr has quit [Ping timeout: 245 seconds]
RaCx has joined #ruby
<hanmac1> hm yeah thats why i am wondering why the first line seems to be working ... and like i said its active-support shit you are messing with, #rubyonrails are the ones that should be blaimed
mikepack has joined #ruby
jottr has joined #ruby
lmickh has joined #ruby
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
ta has quit [Remote host closed the connection]
IcyDragon has joined #ruby
<workmad3> hanmac1: 1.month returns an ActiveSupport::Duration
<hanmac1> ha i knew it there is something like that
<workmad3> hanmac1: but it converts to an integer (of seconds) on inspection, or if you use it in normal arithmetic
iamjarvo has joined #ruby
gaganjyot has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
IceDragon has quit [Ping timeout: 260 seconds]
Hobogrammer has joined #ruby
iamjarvo has joined #ruby
cassianoleal has quit [Quit: (null)]
himsin has joined #ruby
himsin has quit [Client Quit]
noop has quit [Ping timeout: 260 seconds]
djstorm has joined #ruby
<alex88> hanmac1: btw it ended up that using Time instead of DateTime works since it adds seconds and not days as DateTime does
ylluminarious has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
Xeago has quit [Remote host closed the connection]
davedev24_ has quit []
fsapo_ has joined #ruby
JBreit has joined #ruby
Kruppe has joined #ruby
IcyDragon is now known as IceDragon
hobodave has joined #ruby
bal has quit [Quit: bal]
sardev has joined #ruby
apeiros has joined #ruby
Takle has quit [Remote host closed the connection]
fsapo has quit [Ping timeout: 265 seconds]
a_ has quit [Ping timeout: 272 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
livathinos has quit [Read error: Connection reset by peer]
livathinos has joined #ruby
alec-c4 has joined #ruby
RaCx has joined #ruby
lw has joined #ruby
Takle has joined #ruby
axl_ has joined #ruby
renderful has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
matchaw has joined #ruby
yfeldblum has joined #ruby
Takle has joined #ruby
mskaesz has quit [Remote host closed the connection]
gauke has quit [Quit: gauke]
ohwhoa has joined #ruby
ta has joined #ruby
hamakn has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
lw has quit [Quit: s]
fabrice31 has joined #ruby
shredding has quit [Quit: shredding]
nrsk has joined #ruby
chrisseaton has joined #ruby
<chrisseaton> If I'm making module functions by doing def self.foo how do I then annotate that as private?
i_s has joined #ruby
ephemerian has quit [Quit: Leaving.]
<jhass> chrisseaton: first of all that are not module functions
snath has joined #ruby
<jhass> you define module functions with the module_function decorator
<jhass> we call these class or better singleton methods
yfeldblum has quit [Ping timeout: 260 seconds]
mengu has joined #ruby
<jhass> they're defined in a singleton class which you need to open in order to mark it as private
<jhass> to open a singleton class you use class << obj
<jhass> so class << self; private :foo; end; or class << self; private; def foo; end; end;
mengu has quit [Remote host closed the connection]
<godd2> chrisseaton also, you wouldn't make a self.method in a module private. You'd only make self methods in a module that you aren't going to give to classes.
fabrice31 has quit [Ping timeout: 255 seconds]
justinsmestad has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<godd2> so like Math.sin isn't going to be included in or extended to a different class.
<jhass> I occasionally use private singleton methods if I want to compose a complex public one
livathinos has quit []
<chrisseaton> my use case is a module, not included or extended, but used as in MyModule.foo. The implementation of foo needs some helper methods, so I want to define a method foo, but keep it private. How do I do that?
i_s has quit [Ping timeout: 240 seconds]
<jhass> chrisseaton: I just showed you
jimbach has joined #ruby
agrinb has joined #ruby
gsd has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
<chrisseaton> jhass: ok thanks I'll try that
oo_ has joined #ruby
schaerli has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
oponder has quit [Remote host closed the connection]
jimbach_ has quit [Ping timeout: 265 seconds]
renderful has quit [Remote host closed the connection]
<apeiros> chrisseaton: there's Module#private_class_method
shock_one has joined #ruby
schaerli_ has joined #ruby
<apeiros> but private class methods are quite a strong smell.
<jhass> ah, right, I always forget that one
<jhass> it's sad that core can't decide to call them singleton methods or class methods
wpp has quit [Quit: ZZZzzz…]
<apeiros> jhass: yeah, thought the same
<apeiros> consistency in ruby has strong and weak points. this one is certainly a weak point.
Xeago has joined #ruby
ta has quit [Remote host closed the connection]
aspiers has quit [Ping timeout: 244 seconds]
<headius> chrisseaton: generally if you need to control visibility you would do all the defs in a class << self body instead
<chrisseaton> apeiros: am I creating a code smell here? http://collabedit.com/fkwjq is there a better way to structure this?
anaeem1 has joined #ruby
<headius> def obj.name is a convenience for when public is fine
<jhass> chrisseaton: don't make it abstract, show your actual problem
nirvdrum has joined #ruby
schaerli has quit [Ping timeout: 265 seconds]
<chrisseaton> jhass: thanks, I've expanded it
<apeiros> headius: I generally use def self.foo, makes grepping so much easier
<apeiros> only case I don't use it is for attr_*
Akagi201 has joined #ruby
shock_one has quit [Ping timeout: 245 seconds]
j_mcnally has joined #ruby
az7ar_away is now known as az7ar
havenwood has joined #ruby
suffice has quit [Ping timeout: 244 seconds]
suffice has joined #ruby
abuzze_ has joined #ruby
agrinb has quit [Remote host closed the connection]
t_mmyv has joined #ruby
hamakn has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
matchaw has quit [Ping timeout: 255 seconds]
Guest92474 has quit [Ping timeout: 245 seconds]
bauruine_ has quit [Ping timeout: 255 seconds]
<jhass> chrisseaton: I think I actually wouldn't bother to make bootstrap_sample private, it can possibly useful on it's own, it doesn't just give a name to a complex operation in the actual method
<jhass> I don't quite follow why you do the nested def though
aspires has joined #ruby
<chrisseaton> jhass: yeah this is transliterated from Python and I'm tidying it up to make it idiomatic Ruby
qwyeth has joined #ruby
FL1SK has joined #ruby
HelperW has quit [Ping timeout: 255 seconds]
<chrisseaton> jhass: so I'll remove that
Channel6 has joined #ruby
benzrf|offline is now known as benzrf
shredding has joined #ruby
abuzze has quit [Ping timeout: 250 seconds]
<apeiros> chrisseaton: idiomatic ruby code would be to just define both methods as instance methods and mark them as module_function
<apeiros> and you document the case that you consider bootstrap_sample to not be for public consumption
abuzze_ has quit [Ping timeout: 240 seconds]
Macaveli has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
<apeiros> babysitting devs-- IMO
poulet_a has quit [Quit: Quitte]
<apeiros> (also it's somewhat pointless in ruby anyway)
Hobogrammer has quit [Ping timeout: 255 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
oo_ has joined #ruby
hobodave has quit [Ping timeout: 246 seconds]
crazydiamond has quit [Ping timeout: 245 seconds]
siwica has quit [Ping timeout: 246 seconds]
Xeago_ has joined #ruby
xaxisx has quit [Quit: xaxisx]
keen_______ has joined #ruby
autonomousdev has quit [Quit: Textual IRC Client: www.textualapp.com]
siwica has joined #ruby
Xeago__ has joined #ruby
srkn has joined #ruby
valeriansaliou has quit [Quit: Be back later ...]
olivier_bK has quit [Ping timeout: 250 seconds]
keen______ has quit [Ping timeout: 244 seconds]
chipotle has quit [Quit: cya]
xaxisx has joined #ruby
linojon has quit [Ping timeout: 272 seconds]
Avahey has quit [Quit: Connection closed for inactivity]
kartouch has quit [Quit: WeeChat 1.0.1]
i_s has joined #ruby
hobodave has joined #ruby
autonomousdev has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
siwica1 has joined #ruby
Xeago has quit [Ping timeout: 258 seconds]
IceDragon has quit [Ping timeout: 244 seconds]
IceDragon has joined #ruby
Xeago_ has quit [Ping timeout: 260 seconds]
agrinb has joined #ruby
treehug88 has joined #ruby
siwica has quit [Ping timeout: 272 seconds]
xaxisx has quit [Client Quit]
speaking2ode is now known as speakingcode
`mike` has joined #ruby
andikr has quit [Remote host closed the connection]
treehug88 has quit [Client Quit]
<`mike`> hi rails folks
linojon has joined #ruby
<ericwood> we're just ruby folks
<ericwood> see #rubyonrails for rails folks
omosoj has joined #ruby
siwica has joined #ruby
timonv_ has joined #ruby
hanmac1 has quit [Quit: Leaving.]
siwica1 has quit [Ping timeout: 272 seconds]
treehug88 has joined #ruby
hightower has joined #ruby
dANO_ has quit []
qba73 has quit []
sambao21 has joined #ruby
alec-c4 has quit [Remote host closed the connection]
siwica1 has joined #ruby
alec-c4 has joined #ruby
timonv_ has quit [Remote host closed the connection]
x77686d has joined #ruby
C0deMaver1ck has quit [Ping timeout: 260 seconds]
siwica has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
renderful has joined #ruby
ghostmoth has joined #ruby
matchaw has joined #ruby
timonv_ has quit [Remote host closed the connection]
alec-c4 has quit [Ping timeout: 245 seconds]
C0deMaver1ck_ has joined #ruby
timonv_ has joined #ruby
benzrf is now known as benzrf|offline
spyderman4g63 has joined #ruby
paulfm has quit []
x77686d has quit [Ping timeout: 250 seconds]
timonv_ has quit [Remote host closed the connection]
weaksauce has joined #ruby
siwica has joined #ruby
thsig_ has quit []
Squarepy has quit [Ping timeout: 240 seconds]
tier_ has joined #ruby
siwica1 has quit [Ping timeout: 255 seconds]
matchaw has quit [Remote host closed the connection]
Scotteh has joined #ruby
SilkFox_ has joined #ruby
Ulrike_Rayne has quit [Quit: ZNC - http://znc.in]
aganov has quit [Remote host closed the connection]
Xeago__ has quit [Remote host closed the connection]
sevenseacat has quit [Remote host closed the connection]
xxneolithicxx has joined #ruby
<xxneolithicxx> hi all
aspiers has joined #ruby
<ericwood> wassup
<xxneolithicxx> would like some opinions/thoughts on Gemfile.lock
tier has quit [Ping timeout: 240 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
multi_io has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<xxneolithicxx> Im working with a vagrant plugin thats a ruby gem and we support multiple versions of vagrant and thus ruby as it bundles specific versions
<xxneolithicxx> im trying to decide if we should or should not include a gemfile.lock (most plugins dont)
pmarreck_ is now known as pmarreck
TripTastic has joined #ruby
tier_ has quit [Remote host closed the connection]
<xxneolithicxx> if I were to include a Gemfile.lock based on testing using a ruby 2.0 for example and then I had a user try to test the same plugin against ruby 1.9.3 wouldnt that be likely to cause issues (I dont use rbenv or bundler much)
tier has joined #ruby
jobewan has joined #ruby
Ulrike_Rayne has joined #ruby
SilkFox_ has quit [Ping timeout: 265 seconds]
hobodave has joined #ruby
Takle has quit [Remote host closed the connection]
multi_io_ has quit [Ping timeout: 250 seconds]
JBreit has quit [Ping timeout: 245 seconds]
renderful has quit [Remote host closed the connection]
_JamieD_ has joined #ruby
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> you probably should ship a separate Gemfile (and thus Gemfile.lock) for each supported version
<linagee> ack. I'm a ruby newb and keep getting "can't convert false into String"
Soda has quit [Remote host closed the connection]
x1337807x has joined #ruby
JBreit has joined #ruby
<jhass> xxna Gem file is a normal ruby file so you can extract common stuff into a shared file and just require it
TripTastic has quit [Ping timeout: 240 seconds]
<jhass> xxneolithicxx: ^
<linagee> (trying to return a value from a def, store it in a variable from the calling def, and then compare
weaksauce has joined #ruby
<jhass> linagee: Please share your code on https://gist.github.com
jfran has joined #ruby
siwica1 has joined #ruby
devdazed has joined #ruby
grzywacz has joined #ruby
grzywacz has joined #ruby
siwica has quit [Ping timeout: 272 seconds]
<xxneolithicxx> I guess I dont understand the need for the lock in the first place if the Gemfile already sets the version requirements. Its like its just a time snapshot for convenience and nothing more.
kaspergrubbe has quit [Remote host closed the connection]
<jhass> linagee: which line yields the error?
<linagee> jhass: I was previously getting "No file generated" when I just had return. So now I'm trying to not check if it exists if it was bypassed.
rshetty has joined #ruby
schaerli_ has quit []
<linagee> jhass: I'm getting: "in filter CompressJavascript: can't convert false into String"
yfeldblum has joined #ruby
<workmad3> xxneolithicxx: the lock contains the installed versions of all dependencies, direct and transitive
<workmad3> xxneolithicxx: Gemfile only contains direct dependencies
kamilc__ has quit [Quit: Leaving...]
<linagee> jhass: I think its somewhere on lines: 9, 20, 21.
<jhass> linagee: the error has no line number /trace attached?
siwica1 has quit [Ping timeout: 246 seconds]
<workmad3> xxneolithicxx: and it's pretty common for gems to have imprecise dependency versions, so the Gemfile.lock ensures that the entire set of dependencies are installed with the same versions across the board, rather than just direct dependencies
<jhass> linagee: ah right, line 21 it is
srkn has quit [Quit: WeeChat 1.0]
<linagee> jhass: ah. its being generated on line 25 I see now. "Problem with <path here> in filter CompressJavascript: can't convert false into String"
<linagee> jhass: no idea what rescue is for.
<jhass> File.exists? temp && !ret is the same as File.exists?(temp && !ret)
<godd2> *I* can convert false to a string. God, Ruby is soo stupid.
joonty has quit [Quit: Leaving]
<linagee> jhass: hrm... so bad syntax there? I want to see if the file exists *and* if ret had something specific returned.
<xxneolithicxx> workmad3: ok but my concern is that the version of those transitive gems are ruby version specific, if our ruby gem supports multiple ruby versions how do we make that work correctly
<workmad3> xxneolithicxx: in your case, I'd suggest you'd probably want to have a different Gemfile.lock for different setups, so another tester can simply move the appropriate lockfile into place
<jhass> godd2: implicit vs. explicit conversion
Scotteh_ has joined #ruby
<jhass> godd2: it won't do implicit conversion for good reason
<xxneolithicxx> workmad3: right so wouldnt that defeat the benefit of adding one in the first place
<jhass> linagee: yes, you need parens
<xxneolithicxx> workmad3: due to our support matrix
<workmad3> xxneolithicxx: possibly, depends on the exact setup... bundler is primarily intended as a way to provision apps with the exact set of gem versions it should work with after all
siwica has joined #ruby
<jhass> linagee: if temp is not false or nil, you pass !ret to File.exists? which is false which can't be implicitly converted to a string
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3> xxneolithicxx: when using it to manage dependencies inside a gem, it's really to ensure that testers can set up a set of gems that should work
<xxneolithicxx> workmad3: thx, i think that clarifies the reasoning why most other vagrant plugins probably dont include it
<workmad3> xxneolithicxx: it's not paid attention to when bundler or rubygems looks at the gem's dependencies though
yfeldblum has quit [Ping timeout: 246 seconds]
spyderman4g63 has quit [Remote host closed the connection]
<linagee> jhass: ack. :( so now I have: unless (File.exists? temp) && ret != 1 (but its actually saying "No file generated")
msmith_ has quit [Remote host closed the connection]
Scotteh has quit [Ping timeout: 246 seconds]
justinsmesta has joined #ruby
Squarepy has joined #ruby
<linagee> or do I need parenthesis around my entire expression? hrm
spyderman4g63 has joined #ruby
<jhass> linagee: parens to the method call would suffice
<jhass> File.exists?(temp)
weeb1e has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Takle has joined #ruby
<jhass> but if you get that exception either call evaluates to false
<jhass> verify their values
alec-c4 has joined #ruby
<linagee> jhass: unless File.exists?(temp) && ret != 1 and I still got "No file generated". hrm....
marr has quit [Ping timeout: 260 seconds]
mxrguspxrt has quit [Remote host closed the connection]
hhutch has joined #ruby
<jhass> linagee: verify all values (temp, the return value of File.exists?(temp) and ret) are what you think they are
justinsmestad has quit [Ping timeout: 240 seconds]
<jhass> for example by printing them out with the p method
ohwhoa has quit [Quit: woah!]
<linagee> jhass: jhass I added this after line 20. p "filter returned " + ret and now I get: "in filter CompressJavascript: can't convert Fixnum into String"
<linagee> how annoying. is Ruby this type specific? :(
* linagee decides to try returning a string instead, maybe that will be easier. :-/
RaCx has joined #ruby
<jhass> yes, and it's a good thing
<godd2> Ruby is strongly typed even though it is dynamically typed
boombadaroomba has joined #ruby
<jhass> use "filter returned #{ret}"
<workmad3> or + ret.to_s
xaxisx has joined #ruby
bricker`work has joined #ruby
spyderman4g63 has quit [Ping timeout: 244 seconds]
shredding has quit [Quit: shredding]
xaxisx has quit [Remote host closed the connection]
<jhass> and I think you actually want to return true or false there
twohlix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
shredding has joined #ruby
<linagee> ack......
spyderman4g63 has joined #ruby
jorjski has joined #ruby
<linagee> unless = evil. hah.
<linagee> I just put an if on the next line.
<linagee> inverse logic crazyness.
az7ar is now known as az7ar_away
twohlix has joined #ruby
shock_one has joined #ruby
jorjski has quit [Client Quit]
boombadaroomba has quit [Ping timeout: 250 seconds]
<jhass> yeah, always write ifs
skolman_ has joined #ruby
<jhass> and if you feel the need to add a ! to the whole expression use unless instead
danijoo has quit [Quit: Leaving...]
wpp has joined #ruby
msmith_ has joined #ruby
cndiv has joined #ruby
roolo has quit [Remote host closed the connection]
<linagee> I just put an if before the whole unless stuff. (if (ret == -1) \n return \n end)
diegoviola has joined #ruby
<linagee> works perfectly now. :)
<linagee> jhass: thanks
agrinb has quit [Remote host closed the connection]
* linagee is just visiting Ruby as a language. (normally I program in Perl. But there was a "hey, can you please modify this past programmers thing?")
<agent_white> linagee: Stay awhile. The pool is always... full of jello!! :D
hellangel7 has joined #ruby
fsapo_ has quit [Remote host closed the connection]
valeriansaliou has joined #ruby
<Morrolan> linagee: Oh! I left a Perl programmer at work a box full of Ruby scripts, too. :P
<godd2> Ever since Matz partnered with Cosby, Ruby has never been the same
einarj has quit [Remote host closed the connection]
<agent_white> godd2: Who?
<godd2> Bill Cosby
<godd2> Famous for Jello Pudding Pop commercials?
sigurding has joined #ruby
``mike`` has joined #ruby
weeb1e has joined #ruby
<agent_white> PUDDIN' POPS
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<agent_white> godd2: Sry. Thought you were going all serious for a moment.
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
suzylee has joined #ruby
chipotle has joined #ruby
weeb1e has quit [Client Quit]
hellangel7 has quit [Max SendQ exceeded]
suzylee has left #ruby ["Leaving"]
hellangel7 has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
mikecmpbll has quit [Ping timeout: 245 seconds]
kaspergrubbe has joined #ruby
weeb1e has joined #ruby
rustypigeon has quit [Remote host closed the connection]
`mike` has quit [Ping timeout: 265 seconds]
weeb1e has quit [Client Quit]
<shevy> godd2 mruby drains a lot of time from matz
<shock_one> shevy: you can't use alias_method in the global scope, or how is it called when self is main, because alias_method is a class method. So, you have to use alias there or do some magic like opening the singleton class.
chipotle has quit [Client Quit]
ursooperduper has joined #ruby
<shevy> linagee eam here is also a perl user
<shevy> but not long ago I managed to capture this from him:
<shevy> 18th october 2014
<shevy> <eam> oh holy cow
<shevy> <eam> you're right, that's insane (looks like you disable it with binmode)
<shevy> <eam> $^I disables it, looks like
<shevy> <eam> well that's super dumb
<shevy> <eam> I'm disappointed in perl
<shevy> I had to print the last statement and put it on the wall
Spami has quit [Quit: This computer has gone to sleep]
<shevy> linagee in general, objects may have a string representation, which you can get via .to_s
<shevy> "#{variable}" should imply .to_s on the object represented by variable
matchaw has joined #ruby
Eiam has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
alec-c4 has quit [Remote host closed the connection]
<shock_one> puts also calls #to_s.
weeb1e has joined #ruby
alec-c4 has joined #ruby
alec-c4 has quit [Remote host closed the connection]
alem0lars has joined #ruby
alec-c4 has joined #ruby
dangerousdave has joined #ruby
Haiiro has left #ruby [#ruby]
RaCx has joined #ruby
omosoj has quit [Ping timeout: 246 seconds]
Haiiro has joined #ruby
codezomb has joined #ruby
<eam> >> ObjectSpace.each_object(Class) { |klass| klass.instance_eval { define_method :to_s, lambda { "s" } } }; "hello world".to_s
<eval-in__> eam => "s" (https://eval.in/208052)
BigRonnieRon has joined #ruby
omosoj has joined #ruby
justinsmesta has quit [Ping timeout: 260 seconds]
WormDrink has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
grzywacz has quit [Ping timeout: 246 seconds]
andrewjanssen has joined #ruby
linojon_ has joined #ruby
JaMz has joined #ruby
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
linojon has quit [Ping timeout: 250 seconds]
linojon_ is now known as linojon
valedances has joined #ruby
<valedances> ciao
BadQuanta has joined #ruby
<valedances> !list
BigRonnieRon has quit [Quit: Textual IRC Client: www.textualapp.com]
jerematic_ has quit [Quit: Leaving]
Channel6 has quit [Quit: Leaving]
jerematic has joined #ruby
alex88 has quit [Quit: Leaving...]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
lw has joined #ruby
thagomizer has joined #ruby
matchaw has quit [Remote host closed the connection]
stef204 has joined #ruby
<jhass> hi
spyderman4g63 has quit [Remote host closed the connection]
siwica1 has joined #ruby
spyderman4g63 has joined #ruby
x77686d has joined #ruby
siwica has quit [Ping timeout: 255 seconds]
alec-c4 has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
alec-c4 has joined #ruby
emmesswhy has joined #ruby
RaCx has joined #ruby
mercwithamouth has joined #ruby
timonv_ has joined #ruby
xxneolithicxx has left #ruby [#ruby]
matchaw has joined #ruby
obs has joined #ruby
Eiam has joined #ruby
skolman_ has quit [Remote host closed the connection]
skolman has joined #ruby
spyderman4g63 has quit [Ping timeout: 244 seconds]
x77686d has quit [Ping timeout: 250 seconds]
ephemerian has joined #ruby
alec-c4 has quit [Ping timeout: 246 seconds]
valedances has quit []
chthon has quit [Ping timeout: 245 seconds]
nonks has joined #ruby
Takle has quit [Remote host closed the connection]
Eiam has quit [Client Quit]
magic is now known as pretty
otakbeku has quit [Remote host closed the connection]
BadQuanta has quit [Ping timeout: 265 seconds]
Eiam has joined #ruby
Eiam has left #ruby [#ruby]
Eiam has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
IceDragon has quit [Quit: Space~~~]
<featheryahn> i would like to access a gems test directory from within my app (to be exact i want to re-use already defined fixtures/factorygirls)
lw has quit [Quit: s]
mxrguspxrt has joined #ruby
IceDragon has joined #ruby
<featheryahn> can i do something like GEM('magiderpy').path + "/test" ?
panini has joined #ruby
iraj has joined #ruby
iraj has joined #ruby
<featheryahn> to include in my fixtures config
GeorgesLeYeti has quit [Quit: Leaving]
BadQuanta has joined #ruby
catphish has quit [Quit: Leaving]
ptrrr has joined #ruby
Takle has joined #ruby
nonks has quit [Ping timeout: 255 seconds]
Eiam has quit [Client Quit]
yfeldblum has joined #ruby
<workmad3> featheryahn: I'd personally suggest that if you want to publish your fixtures/factories, that you move them into lib/
OffTheRails has joined #ruby
<workmad3> featheryahn: and then load them in your tests from there
<featheryahn> workmad3: you mean 'statically' copying them for sure? makes kind of sense, thanks
<workmad3> featheryahn: I mean move them
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> I guess it's not his gems fixtures that he wants to use
gaganjyot has quit [Ping timeout: 244 seconds]
<featheryahn> workmad3: that is not my gem i'm using another gem and want to reuse the defined factories therein
Eiam has joined #ruby
<workmad3> featheryahn: ah, ok :)
<shevy> yeah shock_one but we have to get linagee into the ruby object world - he wants to join two objects, so it would be: puts foo+bar where one of these might not be of class String
<featheryahn> workmad3: =D
<workmad3> featheryahn: in that case... just copy them out would be my suggestion :)
xymbol has joined #ruby
Eiam has quit [Client Quit]
<featheryahn> workmad3: thanks for pragmatism sometimes you can stuck yourself in a rut with too much 'dynamicy' thinking =D
phantummm has joined #ruby
fabrice31 has joined #ruby
<workmad3> featheryahn: I'd also put in a PR for the gem on github saying 'it would be really useful if you published the factories and fixtures for your gem so I can make use of them in prepping test data in my own test suite' ;)
stunder has joined #ruby
<featheryahn> workmad3: that is a good idea
wallerdev has joined #ruby
iraj has quit [Ping timeout: 250 seconds]
<featheryahn> workmad3: for hat my pull request would amount to putting things into /lib so it can get accessed from upper app which included via gemfile?
yfeldblum has quit [Ping timeout: 255 seconds]
timonv^ has joined #ruby
<featheryahn> workmad3: (might as weell make it easy for maintainer)
x1337807x has joined #ruby
<workmad3> featheryahn: yeah, and adjusting the spec_helper or whatever so that it loads the factories up from there
<featheryahn> workmad3: PR == pull request just got it haha =D
<featheryahn> workmad3: verry cool, thank yous
<featheryahn> (i will do it)
agrinb has joined #ruby
Synthead has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 250 seconds]
Macaveli has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
timonv_ has quit [Ping timeout: 245 seconds]
agrinb has joined #ruby
workmad3 is now known as wm3|away
byprdct has joined #ruby
az7ar_away is now known as az7ar
oleo is now known as Guest5008
oleo__ has joined #ruby
sardev has quit [Quit: Leaving]
Guest5008 has quit [Ping timeout: 240 seconds]
oleo__ has quit [Read error: Connection reset by peer]
Aaaal has quit [Quit: Aaaal]
oleo__ has joined #ruby
oleo__ is now known as oleo
Eiam has joined #ruby
agrinb has quit [Ping timeout: 260 seconds]
Dude007 has quit []
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
OffTheRails has quit [Ping timeout: 260 seconds]
otakbeku has joined #ruby
gaganjyot has joined #ruby
carraroj has joined #ruby
Takle has quit [Remote host closed the connection]
gaganjyot has quit [Max SendQ exceeded]
spyderman4g63 has joined #ruby
gaganjyot has joined #ruby
Hightower666 has joined #ruby
riceandbeans has quit [Changing host]
riceandbeans has joined #ruby
rshetty has quit [Ping timeout: 240 seconds]
jimbach has quit [Remote host closed the connection]
Hightower666 has quit [Client Quit]
Hightower666 has joined #ruby
danijoo has joined #ruby
jottr_ has joined #ruby
Dude007 has joined #ruby
omosoj has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 260 seconds]
BadQuanta has quit [Read error: Connection reset by peer]
omosoj has joined #ruby
Hightower666 has quit [Read error: Connection reset by peer]
niKeITA has joined #ruby
last_staff has joined #ruby
paulfm has joined #ruby
x77686d has joined #ruby
BadQuanta has joined #ruby
otakbeku has quit [Quit: leaving]
chipotle has joined #ruby
Fire-Dragon-DoL has joined #ruby
danijoo has quit [Quit: Leaving...]
Dude007 has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
phantummm has quit [Quit: phantummm]
C0deMaver1ck_ has quit [Ping timeout: 255 seconds]
andrewjanssen has quit [Quit: Linkinus - http://linkinus.com]
danijoo has joined #ruby
<featheryahn> workmad3: what do you think per convention - is it better to put the factories in /lib/[GEMNAME]/factories or /lib/[GEMNAME]/test/factories?
andrewjanssen has joined #ruby
hamakn has joined #ruby
mityaz_ has joined #ruby
mkaesz has joined #ruby
Hightower666 has joined #ruby
siwica has joined #ruby
timonv^ has quit [Remote host closed the connection]
maestrojed has joined #ruby
wpp has quit []
siwica1 has quit [Ping timeout: 272 seconds]
michaeldeol has joined #ruby
Soda has joined #ruby
michaeldeol has quit [Client Quit]
matchaw has quit [Ping timeout: 240 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
RaCx has quit [Quit: Computer has gone to sleep.]
hhutch has quit [Ping timeout: 240 seconds]
C0deMaver1ck_ has joined #ruby
<shevy> is test part of lib?
<shevy> it usually resides at the level of the first /lib or?
Juzzika has joined #ruby
RaCx has joined #ruby
<apeiros> featheryahn: neither test nor factories should go into /lib
Wolland has joined #ruby
Synthead has joined #ruby
<featheryahn> apeiros: it makes sense yes but it also makes sense to re-use factories from a gem?
Takle has joined #ruby
LoBoGoL has joined #ruby
<featheryahn> (if i want to use the gem *and* its factories for my tests)
wldcordeiro has joined #ruby
mercwithamouth has quit [Ping timeout: 244 seconds]
AngryEgret has quit [Quit: ZNC - http://znc.in]
apeiros has quit [Read error: Connection reset by peer]
zerick has joined #ruby
apeiros has joined #ruby
justin_pdx has joined #ruby
sinkensabe has joined #ruby
tyll_ has quit [Ping timeout: 240 seconds]
hamakn has quit [Remote host closed the connection]
iamjarvo has joined #ruby
hamakn has joined #ruby
folippi has joined #ruby
kobain has joined #ruby
<zerick> Hi folks, Does anybody know what exactly does "rake db:migrate RAILS_ENV="production" ?
<havenwood> zerick: you might try #rubyonrails
elaptics is now known as elaptics`away
kobain has quit [Max SendQ exceeded]
<havenwood> zerick: `db:migrate` is one of Rails' Rake tasks
luckyruby has quit [Quit: Leaving...]
kobain has joined #ruby
<zerick> ok
sigurding has quit [Quit: sigurding]
C0deMaver1ck_ has quit [Ping timeout: 265 seconds]
<havenwood> featheryahn: factories smactories!
<havenwood> schmactories*
alec-c4 has joined #ruby
tyll has joined #ruby
<featheryahn> havenwood: haaha =D
<featheryahn> havenwood: (too good not use)
mengu has quit [Remote host closed the connection]
spider-mario has joined #ruby
yetanotherdave has joined #ruby
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mengu has joined #ruby
skolman has quit [Remote host closed the connection]
mengu has quit [Read error: Connection reset by peer]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamakn has quit [Ping timeout: 260 seconds]
mengu has joined #ruby
kamil has joined #ruby
jaequery has joined #ruby
<jaequery> hi
<Hanmac> the day will come when producing factories will be cheaper than producing the product they produce ;P
rockdon_ has joined #ruby
<jaequery> im a php dev, and now, im trying to learn ruby, finally.
<havenwood> jaequery: welcome
<jaequery> skimming over tutorials now, but anyonw know of any good one for a seasoned php dev transitioning over to ruby?
Synthead has quit [Remote host closed the connection]
<jaequery> damn u must've read my mind, thanks!
jimmyhoughjr has joined #ruby
dangerousdave has joined #ruby
<last_staff> how does one escape the pound character?
<folippi> I've got a rake task for deploying a web app, but after the first exec (a git call) it exits. It does not execute the other lines. How come? Can rake only run things that have one exec() call? https://gist.github.com/fromheten/02e6865b5aa7c6bf4972
havenwood has quit [Remote host closed the connection]
<jhass> last_staff: just prepend a \
wm3|away has quit [Ping timeout: 272 seconds]
<jhass> folippi: exec replaces the current process. In rake use sh()
<last_staff> jaequery: you mean like nya? http://rubyfromphp.com/
<folippi> jhass: thanks! Didn't know that.
havenwood has joined #ruby
<last_staff> jhass: dammit, something else must be happening in the vagrantfile then
<jaequery> what is : in ruby?
poguez has joined #ruby
<last_staff> powershell inside winrm inside ruby - inception much?
<jaequery> is that like php's $ ?
<folippi> jhass: works great. Thank you!
skolman has joined #ruby
<last_staff> jaequery: something like Java/C#/c++' "="
<last_staff> i zink
<Hanmac> jaequery: can you show me a sample what you mean?
bayed has quit [Quit: Connection closed for inactivity]
<jhass> jaequery: on it's own it's nothing, it depends a lot on the context
<jhass> *its, dammit
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> jaequery: i'm guessing you mean a Symbol?: http://www.ruby-doc.org/core-2.1.3/Symbol.html
sepp2k has quit [Quit: Konversation terminated!]
ravster has joined #ruby
<jaequery> yea i guess so
slester has quit [Remote host closed the connection]
msmith_ has quit [Remote host closed the connection]
<last_staff> I think he's talking about myVar: "myValue"
aspires has quit []
<jhass> I guess we should stop guessing and let him provide context
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
qwyeth has quit [Ping timeout: 245 seconds]
<jaequery> like, $f2 = :Fred
yfeldblum has joined #ruby
<havenwood> Symbol
noop has joined #ruby
tier_ has joined #ruby
<jaequery> yea thats quite new to me
dopiee has joined #ruby
<havenwood> jhass: i wasn't really guessing, i KNEW, just being polite :P
skolman has quit [Remote host closed the connection]
<havenwood> could feel it in my bones
<jhass> :P
<jaequery> is that like a global variable?
aspires has joined #ruby
msmith_ has joined #ruby
<jhass> jaequery: a symbol is an identifier, we use it if need to identify something
skolman_ has joined #ruby
<jhass> it's a value, not a variable
AmBienCeD has joined #ruby
AmBienCeD has joined #ruby
fsapo has joined #ruby
msmith_ has quit [Remote host closed the connection]
msmith_ has joined #ruby
<jaequery> i see a lot of these 'symbols' in ruby code
<jhass> for example one could do: status = :success; if status == :success; ...; elsif status == :failure; ... elsif status == :pending; ... end
<jaequery> cant you also do, status = 'success' , if status == 'succes' ... etc
<jaequery> ?
omosoj has quit [Ping timeout: 246 seconds]
<jhass> yes, but that's slower and uses more memory
tier has quit [Ping timeout: 265 seconds]
Soda has quit [Remote host closed the connection]
aspires has quit [Client Quit]
<jhass> and while 'success' == 'success' is always true, it's not guaranteed to be the same object, while :success is always the same object
yfeldblum has quit [Ping timeout: 265 seconds]
mary5030 has quit [Remote host closed the connection]
aclearman037 has quit [Ping timeout: 260 seconds]
tier_ has quit [Remote host closed the connection]
Jarboe has joined #ruby
<jhass> and using a symbol provides a nice separation between data and magic values
tyll has quit [Ping timeout: 245 seconds]
Soda has joined #ruby
tier has joined #ruby
skolman_ has quit [Ping timeout: 255 seconds]
omosoj has joined #ruby
<havenwood> >> 'success'.equal? 'success'
<eval-in__> havenwood => false (https://eval.in/208064)
renderful has joined #ruby
<havenwood> >> :success.equal? :success
<eval-in__> havenwood => true (https://eval.in/208065)
sigurding has joined #ruby
<jaequery> hm , so you cant do , :a = :b , huh?
<jhass> no, you can't
<jhass> as said a symbol is a value, not a variable
<havenwood> jaequery: that'd be like saying: 1 = 2
<jaequery> ic
Morkel_ has joined #ruby
aclearman037 has joined #ruby
tyll has joined #ruby
<jaequery> basically immutable variable
<jhass> value
<jhass> not variable
niKeITA is now known as niKeITA_away
niKeITA_away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> but immutable, yes
<jaequery> got it, thx
agrinb has joined #ruby
<havenwood> jaequery: Nothing equivalent I'm aware of in PHP. Symbols are called Atoms in some languages: https://www.gnu.org/software/emacs/manual/html_node/eintr/Lisp-Atoms.html
<jaequery> when would you use symbols? coming from php, there were hardly any places where we needed immutable values
<jhass> as said to identify stuff
<jhass> like my status example above
Morkel has quit [Ping timeout: 260 seconds]
Morkel_ is now known as Morkel
<jhass> they're also commonly used as hash (php array) keys
mary5030 has joined #ruby
<jhass> if you're familiar with enums and/or magic values, that's where you use symbols in ruby too
<apeiros> jaequery: when in doubt, preferably use strings
renderful has quit [Ping timeout: 260 seconds]
matchaw has joined #ruby
chipotle has quit [Quit: cya]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skolman has joined #ruby
blackmesa has joined #ruby
agrinb has quit [Ping timeout: 255 seconds]
relix has joined #ruby
bauruine_ has joined #ruby
DLSteve has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
niKeITA has joined #ruby
shock_one has quit [Quit: Be back later ...]
folippi has quit [Ping timeout: 240 seconds]
kamil has quit [Disconnected by services]
shock_one has joined #ruby
neoxquick has joined #ruby
skolman__ has joined #ruby
skolman has quit [Read error: Connection reset by peer]
aspires has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
matchaw has quit [Remote host closed the connection]
zaid_h has quit [Quit: ZZZzzz…]
ephemerian has quit [Ping timeout: 272 seconds]
shock_one has quit [Ping timeout: 244 seconds]
sepp2k has joined #ruby
sinkensabe has quit [Remote host closed the connection]
|\|370 has joined #ruby
RaCx has quit [Ping timeout: 250 seconds]
lolmaus has joined #ruby
Dude007 has joined #ruby
skolman has joined #ruby
RaCx has joined #ruby
RaCx has quit [Client Quit]
rdark has quit [Quit: leaving]
RaCx has joined #ruby
RaCx has quit [Client Quit]
Hightower666 has quit [Quit: For Sale: Intergalactic Proton Powered Electrical Tentacled Advertising Droids]
RaCx has joined #ruby
hhutch has joined #ruby
RaCx has quit [Remote host closed the connection]
skolman__ has quit [Ping timeout: 265 seconds]
agrinb has joined #ruby
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
drkyro has quit [Quit: Textual IRC Client: www.textualapp.com]
Squarepy has quit [Quit: Leaving]
aspires has quit []
ta has joined #ruby
agrinb has quit [Ping timeout: 244 seconds]
aspires has joined #ruby
klmlfl has quit [Remote host closed the connection]
mxrguspxrt has joined #ruby
soulcake has quit [Quit: Quack.]
iceden has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has quit [Remote host closed the connection]
shock_one has joined #ruby
soulcake has joined #ruby
Kricir has joined #ruby
<shevy> ideally string tangas
payne has quit [Remote host closed the connection]
Kricir has quit [Read error: No route to host]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
reset has joined #ruby
Kricir has joined #ruby
jimbach has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby
iamjarvo has joined #ruby
failshell has joined #ruby
poulet_a has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
rubie has joined #ruby
JohnBat26 has joined #ruby
jdj_dk has joined #ruby
claw has quit [Ping timeout: 244 seconds]
abuzze has joined #ruby
shevy has quit [Ping timeout: 250 seconds]
lolmaus has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
lolmaus has joined #ruby
sambao21 has joined #ruby
Skeit has joined #ruby
`mike` has joined #ruby
aspires has quit []
Loplin has joined #ruby
bklane has joined #ruby
``mike`` has quit [Ping timeout: 258 seconds]
panini has quit [Remote host closed the connection]
koderok has joined #ruby
klmlfl has joined #ruby
koderok has quit [Remote host closed the connection]
shock_one has quit [Ping timeout: 240 seconds]
siwica1 has joined #ruby
beef-wellington has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
siwica has quit [Ping timeout: 272 seconds]
_shrine has quit [Ping timeout: 260 seconds]
LoBoGoL has quit [Ping timeout: 258 seconds]
SilkFox has quit [Ping timeout: 272 seconds]
spicerack has joined #ruby
musl has quit [Quit: WeeChat 0.4.3]
ta has quit [Quit: Leaving...]
arup_r has quit [Quit: Leaving.]
iamjarvo has joined #ruby
shevy has joined #ruby
dangerousdave has joined #ruby
<godd2> havenwood Symbols in other languages are called Interned Strings I believe
<godd2> at least, Java does
|\|370 has quit [Ping timeout: 255 seconds]
RaCx has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
paulfm has quit []
fabrice31 has joined #ruby
ta has joined #ruby
<godd2> It's also an example of the Flyweight Pattern.
claymore has joined #ruby
fourmyle has joined #ruby
skolman has quit [Remote host closed the connection]
fourmyle has quit [Excess Flood]
skolman_ has joined #ruby
sambao21 has quit [Ping timeout: 260 seconds]
AndroUser has joined #ruby
fourmyle has joined #ruby
fourmyle has quit [Max SendQ exceeded]
`mike` has left #ruby [#ruby]
<godd2> oh wow. >> "hello".intern
<godd2> >> "hello".intern
<eval-in__> godd2 => :hello (https://eval.in/208077)
anarang has joined #ruby
nfk has quit [Quit: yawn]
aclearman037 has joined #ruby
alem0lars has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 260 seconds]
<eam> >> class Symbol; def fetch_my x; "yessir" end; end; "hello".intern.fetch_my :coffee
<eval-in__> eam => "yessir" (https://eval.in/208078)
<AndroUser> Hey sometimes the answers on this can be a lil convoluted or not specific, I was wondering if anyone has issues or a guide for fixes for the new Yosemite update so it doesn't screw up my dev environment. ..?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> AndroUser: Is it screwed up already or you're just preparing?
alec-c4 has quit []
<shevy> IO.sysopen 'TODO' # => 10
paulfm has joined #ruby
skolman_ has quit [Ping timeout: 265 seconds]
<shevy> what does the "file descriptor" mean?
<AndroUser> I haven't dl'ed it yet
fourmyle has joined #ruby
fourmyle has quit [Max SendQ exceeded]
fourmyle has joined #ruby
fourmyle has quit [Max SendQ exceeded]
<eam> shevy: the descriptor is how the kernel tracks open filehandles
<shevy> hmm
<eam> each one is assigned a unique integer
<shevy> oh funny
<havenwood> AndroUser: I've not had any issues on Yosemite.
<shevy> if I do this repeatedly, I can increment the return value
agjacome has joined #ruby
<AndroUser> Tight thanks
<eam> shevy: are you on linux? take a look at /proc/$$/fd
Deejay_ has joined #ruby
<shevy> yeah
j_mcnally has joined #ruby
LoBoGoL has joined #ruby
<shevy> where is the /fd ?
<eam> hunting for fd leaks is a staple of developing under non-RAII languages like ruby
<csmrfx> you ps the process id
<csmrfx> the you can ls the /proc fir
<csmrfx> *then you can ls the /proc dir
<eam> >> system "ls -l /proc/#{$$}/fd"
<eval-in__> eam => (https://eval.in/208079)
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> or you know, outside of the sandbox
<shevy> cat status
<shevy> Name: irb
<shevy> State: S (sleeping)
<eam> zzzzz my user is so slow inputing data zzzzz
<shevy> yeah it works in irb
<shevy> the $$ are weird
<eam> $$ is the current pid
<eam> $$ in a shell is also the current pid (of your shell)
<shevy> oooohh.... you mean like system "ls -l /proc/#{$PROCESS_ID}/fd"
rubie has quit [Ping timeout: 246 seconds]
<eam> yes
<eam> though, who the heck calls it $PROCESS_ID
<shevy> ruby does!
abuzze_ has joined #ruby
<eam> ruby calls it $$
<eam> >> $$
<eval-in__> eam => 14074 (https://eval.in/208080)
<shevy> >> $PROCESS_ID
<eval-in__> shevy => nil (https://eval.in/208081)
<shevy> ack
<eam> WHAM
<shevy> that sucks
<eam> >> Dir["/proc/#{$$}/fd/*"]
<eval-in__> eam => (https://eval.in/208082)
<eam> oops, sandbox
paulfm has quit []
aspires has joined #ruby
byprdct has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
<havenwood> >> require 'english'; $PROCESS_ID
<eval-in__> havenwood => cannot load such file -- english (LoadError) ... (https://eval.in/208083)
<havenwood> shevy: ^
<havenwood> shevy: oh >.>
<shevy> ok now the next question
fourmyle has joined #ruby
<eam> busted
abuzze has quit [Ping timeout: 265 seconds]
<shevy> is knowing the file descriptor useful at all for ruby programmers?
justin_pdx has quit [Quit: justin_pdx]
<eam> sure, quite often you need to manipulate them directly
|\|370 has joined #ruby
<shevy> hmm
<eam> for example, when setting up state to spawn a sub-program
<eam> shevy: for example, you've written grep foo 2> /dev/null before, in shell?
drkyro has joined #ruby
abuzze_ has quit [Ping timeout: 265 seconds]
<eam> 0, 1 and 2 are the actual numeric descriptors for standard in(0) out(1) and err(2)
<havenwood> >> ObjectSpace.each_object(IO) { |io| puts io unless io.closed? }
<eval-in__> havenwood => #<IO:0x41b84e30> ... (https://eval.in/208084)
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam> 2> in shell means essentially this: IO.new(2).reopen("/dev/null")
<eam> shevy: it's also useful to know how they work because it's SUPER common to write ruby programs that leak descriptors
<eam> or other non-memory resources
agjacome has quit [Ping timeout: 258 seconds]
jfran has quit [Read error: Connection reset by peer]
<atmosx> hello
agjacome has joined #ruby
jfran has joined #ruby
<havenwood> shevy: ObjectSpace.each_object(IO) { |io| puts io.fileno unless io.closed? }
niKeITA has quit [Quit: Textual IRC Client: www.textualapp.com]
<eam> havenwood: it's also possible to have an open descriptor which isn't connected to an IO object
bMalum has joined #ruby
<shevy> atmosx they know so much
<atmosx> shevy: who are they?
<shevy> atmosx eam and havenwood
<atmosx> ah yes I don't knwo about eam but havenwood is good
<eam> I'm not very good at ruby
<Hanmac> and Hanmac is evil ;P
<havenwood> Hanmac: \o/
<godd2> All IRC Rubyists are liars.
davedev24_ has joined #ruby
<jhass> >> require 'English'; $PROCESS_ID
<eval-in__> jhass => 14096 (https://eval.in/208085)
<shevy> atmosx eam used perl even before larry wall
omosoj has quit [Ping timeout: 255 seconds]
<havenwood> jhass: whaaa
agrinb has joined #ruby
x77686d has quit [Quit: x77686d]
<havenwood> jhass: capital E, eh. oh, OS X.
<jhass> >> `uname`
<eval-in__> jhass => (https://eval.in/208086)
<jhass> :(
jfran has quit [Read error: Connection reset by peer]
jfran has joined #ruby
<godd2> >> $SAFE
<eval-in__> godd2 => 0 (https://eval.in/208087)
<havenwood> >> Gem.platforms
<eval-in__> havenwood => ["ruby", #<Gem::Platform:0x2044c83c @cpu="x86", @os="linux", @version=nil>] (https://eval.in/208088)
<havenwood> jhass: my silly case insensitive OS let me live a lie!
<jhass> see! switch while you're still alive!
<havenwood> a lie i enjoyed... Caps!!!!
carraroj has quit [Quit: Konversation terminated!]
tier_ has joined #ruby
paulfm has joined #ruby
agrinb has quit [Ping timeout: 260 seconds]
<bricker`work> the rsync man page is the most frustrating man page
<bricker`work> the hundreds of options aren't ordered in any way
Kricir has quit [Remote host closed the connection]
<jhass> but it has examples!
workmad3 has joined #ruby
<godd2> are they ordered the way they're ordered?
<eam> I can't imagine any ordering scheme that would make sense
* jhass has seen as complex stuff without examples
Kricir has joined #ruby
<eam> luckily pagers have search ...
tier has quit [Ping timeout: 245 seconds]
Kricir has quit [Read error: Connection reset by peer]
<atmosx> shevy: that's twisted
Kricir has joined #ruby
jaequery has joined #ruby
sinkensabe has joined #ruby
Takle has quit [Remote host closed the connection]
<atmosx> shevy: if I ever made a successful startup, I'll hire havenwood as consultant.
Kricir has quit [Remote host closed the connection]
<atmosx> as/made/make
fmcgeough has quit [Quit: fmcgeough]
<havenwood> atmosx: yay! :)
Kricir has joined #ruby
fmcgeough has joined #ruby
fsapo has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
Nilium has quit [Ping timeout: 260 seconds]
fmcgeough has quit [Client Quit]
davedev24_ has quit [Read error: Connection reset by peer]
ee99ee2 has quit [Quit: Textual IRC Client: www.textualapp.com]
davedev24_ has joined #ruby
Scorchin has left #ruby [#ruby]
jxf has quit [Ping timeout: 245 seconds]
<havenwood> show me the code! grr: http://www.rubyraptor.org
<bricker`work> eam: alphabetical
<havenwood> are open source devs hiring PR firms now?
sambao21 has joined #ruby
Kricir has quit [Ping timeout: 255 seconds]
<eam> bricker`work: eh, but wouldn't you want like-functions grouped?
|\|370 has quit [Read error: Connection reset by peer]
Akagi201 has quit []
<eam> eg -L and -H being listed together makes sense to me
carraroj has joined #ruby
|\|370 has joined #ruby
kaspertidemann has joined #ruby
poulet_a has quit [Ping timeout: 272 seconds]
jottr_ has quit [Ping timeout: 260 seconds]
bluenemo has quit [Quit: Verlassend]
Takle has joined #ruby
postmodern has quit [Quit: Leaving]
neoxquick has quit [Read error: Connection reset by peer]
paulfm has quit []
<siwica1> is there a ruby command to show the documentation for a specific gem?
mskaesz has joined #ruby
<havenwood> maybe they just hadn't heard of rack-cache :P
mkaesz has quit [Read error: Connection reset by peer]
<bricker`work> eam: I guess it depends on why you're looking at the manual
JBreit has left #ruby ["Leaving"]
sigurding has quit [Quit: sigurding]
<eam> bricker`work: I don't see the benefit of alpha-ordering is all
<eam> especially since half the commands have two names long/short
<atmosx> havenwood: fear not, we're gonna be rich! lol
<atmosx> siwica1: yes there is.
tier_ has quit [Remote host closed the connection]
postmodern has joined #ruby
paulfm has joined #ruby
<siwica1> atmosx: so, what's the command?
renderful has joined #ruby
<waxjar> siwica1: ri can browse documentation, but you need to know the constant i think
sigurding has joined #ruby
<atmosx> siwica1: gem server is thebest, you could use 'ri' if you live in CLI
<havenwood> siwica1: try: gem server --launch
<siwica1> waxjar: Since I am quite new to ruby: Let's take the gem "Nokogiri" what would be the way to obtain the documentation?
blueOxigen has quit [Ping timeout: 240 seconds]
<waxjar> personally i'd just go to rubydoc.info and search for it there
|\|370 has quit [Ping timeout: 258 seconds]
<siwica1> havenwood: thank's that is awesome. Why didn't I learn about that before? :)
<havenwood> waxjar: aye the interwebs are handy
_2easy has quit [Ping timeout: 260 seconds]
renderful has quit [Remote host closed the connection]
<waxjar> only thing i dont like about rubydoc is that it doesnt parse tomdoc documentation properly :p
_2easy has joined #ruby
_2easy has joined #ruby
<waxjar> i like the tomdocs
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
JBreit has joined #ruby
chrishough has joined #ruby
FooMunki has quit [Quit: FooMunki]
emmesswhy has quit [Quit: This computer has gone to sleep]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x77686d has joined #ruby
siwica1 has quit [Remote host closed the connection]
nonks has joined #ruby
sinkensabe has quit [Remote host closed the connection]
JBreit has left #ruby [#ruby]
sepp2k has quit [Read error: Connection reset by peer]
siwica has joined #ruby
jdj_dk has quit [Remote host closed the connection]
jerematic has quit [Quit: Leaving]
AndroUser has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
narph has quit [Quit: Connection closed for inactivity]
mdeboard has joined #ruby
mikepack has joined #ruby
tier has joined #ruby
<mdeboard> Hi, why does `nil or 1` return nothing but `nil || 1` returns 1 (as I'd expect)
<jhass> >> nil or 1
<eval-in__> jhass => 1 (https://eval.in/208100)
x1337807x has joined #ruby
<mdeboard> :|
j_mcnally has quit [Ping timeout: 260 seconds]
siwica1 has joined #ruby
<siwica1> is anybody using nokogiri to some extent to answer a question?
<jhass> siwica1: no, nobody
nonks has quit [Ping timeout: 245 seconds]
<mdeboard> jhass: ^
<jhass> siwica1: (just ask your question)
<jhass> mdeboard: you're seeing the difference between or and ||
<jhass> mdeboard: just always use || for exactly that reason
<mdeboard> Ok, I read that on a couple Stackoverflow answers but don't get how operator precedence plays into it here
<mdeboard> but then I know nothing of ruby at all
<godd2> >> a = true and false; a
<jhass> mdeboard: the or example is (foo = bar) or baz
<eval-in__> godd2 => true (https://eval.in/208101)
<godd2> >> a = true && false; a
<eval-in__> godd2 => false (https://eval.in/208102)
<havenwood> mdeboard: vm_name = (vm_name || cfg.vm.hostname.split('.')[0])
<mdeboard> oh
<havenwood> mdeboard: (vm_name = vm_name) or cfg.vm.hostname.split('.')[0]
<mdeboard> so it's doing vm_name = .. yeah
<mdeboard> gotcha
<mdeboard> that's wonky
<havenwood> mdeboard: mathy
<mdeboard> Cool thanks.
<mdeboard> Wonky.
mdeboard has left #ruby ["Killed buffer"]
<havenwood> at least our opinions rhyme
SouL__ has joined #ruby
siwica has quit [Ping timeout: 255 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
siwica has joined #ruby
siwica1 has quit [Ping timeout: 255 seconds]
skolman_ has joined #ruby
willywos_ has joined #ruby
Aaaal has joined #ruby
<gr33n7007h> Is abort new in 2.1.3
<apeiros> no
<gr33n7007h> since when apeiros ?
NoNMaDDeN has quit [Remote host closed the connection]
<apeiros> no idea. but afaik it's been in for as long as I code ruby. so since 1.8.0 at least. but I'd not be surprised if it had been in ruby since 1.0
oponder has joined #ruby
siwica has quit [Ping timeout: 250 seconds]
willywos has quit [Ping timeout: 250 seconds]
<jhass> 10>> abort
<eval-in__> jhass => (https://eval.in/208103)
<gr33n7007h> well, I didn't even know :)
Skeit has quit [Remote host closed the connection]
gaganjyot has quit [Quit: Leaving]
aspires has quit []
FL1SK has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
Kricir has joined #ruby
nonks has joined #ruby
nirvdrum_ has joined #ruby
Dude007 has quit [Read error: Connection reset by peer]
<gr33n7007h> Just been checking all the new stuff in 2.1, really like Class.include(Module)
willywos_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whoops has joined #ruby
gregf has quit [Quit: WeeChat 1.0.1]
willywos has joined #ruby
jheg has joined #ruby
<waxjar> i wonder why it wasn't public in the first place
nirvdrum has quit [Ping timeout: 255 seconds]
treehug8_ has joined #ruby
gauke has joined #ruby
nairys has joined #ruby
nairys has left #ruby [#ruby]
FL1SK has joined #ruby
siwica has joined #ruby
<gr33n7007h> me too
Dude007 has joined #ruby
yfeldblu_ has joined #ruby
jottr_ has joined #ruby
iamjarvo has joined #ruby
treehug88 has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
marr has joined #ruby
icedp has joined #ruby
BBBThunda has quit [Ping timeout: 272 seconds]
siwica1 has joined #ruby
agrinb has joined #ruby
nirvdrum_ is now known as nirvdrum
siwica has quit [Ping timeout: 260 seconds]
last_staff has quit [Read error: No route to host]
<gr33n7007h> >> 0.step(by: 5, to: 30) { |i| puts i }
<eval-in__> gr33n7007h => 0 ... (https://eval.in/208104)
bMalum has quit [Quit: bMalum]
zrl_ has quit [Quit: I'm out.]
<gr33n7007h> cool
jnollette has quit [Ping timeout: 255 seconds]
last_staff has joined #ruby
mskaesz has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby
agrinb has quit [Ping timeout: 250 seconds]
zrl has joined #ruby
ravster has left #ruby [#ruby]
graydot has joined #ruby
jack_rabbit has joined #ruby
IceDragon has quit [Ping timeout: 258 seconds]
ldnunes has quit [Quit: Leaving]
IceDragon has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
az7ar is now known as az7ar_away
benzrf|offline is now known as benzrf
spastorino has quit [Quit: Connection closed for inactivity]
alvaro_o_ has joined #ruby
alvaro_o has joined #ruby
patrick99e99 has joined #ruby
neoxquick has joined #ruby
siwica has joined #ruby
t_mmyv has quit [Quit: Textual IRC Client: www.textualapp.com]
JohnBat26 has quit [Ping timeout: 240 seconds]
omosoj has joined #ruby
siwica1 has quit [Ping timeout: 272 seconds]
alvaro_o_ has quit [Client Quit]
Dude007 has quit [Read error: Connection reset by peer]
Dude007_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
teejar has quit [Ping timeout: 260 seconds]
siwica1 has joined #ruby
Xiti has quit [Quit: Leaving]
teejar has joined #ruby
BBBThunda has joined #ruby
siwica has quit [Ping timeout: 255 seconds]
AndyBotwin has joined #ruby
bklane has quit [Remote host closed the connection]
TeresaP has joined #ruby
DouweM has joined #ruby
awarner has quit [Remote host closed the connection]
bMalum has joined #ruby
perrier has joined #ruby
yaymukund has joined #ruby
awarner has joined #ruby
baordog has quit [Ping timeout: 246 seconds]
<yaymukund> where's a good explanation of why you would do ::Foo?
<shevy> yaymukund when it is necessary
perrier has quit [Read error: Connection reset by peer]
<jhass> yaymukund: because you have class Foo; end; module Bar; class Foo; end; class Baz; def baz; ::Foo.new; end; end; end;
perrier has joined #ruby
<jhass> or you subclassed from BasicObject
rbrs has quit [Quit: Leaving]
<TeresaP> Let's say I have a .rb file with functions outside of a class structure (file_transfer.rb). One of those functions calls another function in another file outside of a class structure (logger.rb). That function then calls some code defined in a third party .rb file which is inside a triple-nested module (calabash-cucumber/utils/logging.rb). Is it not enough to have "require 'calabash-cucumber/utils/logging'" at the top of the logger.r
<yaymukund> jhass: thank you!
<TeresaP> My code doesn't seem to know about the 3rd party file at the time I run it
moritzs has joined #ruby
<yaymukund> that is exactly the kind of thing I was trying to write myself and failing.
jheg has quit [Quit: jheg]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
end_guy has quit [Remote host closed the connection]
<jhass> TeresaP: sounds like it is, but maybe share your code (use gist.github.com utilizing the multiple files functionality)
end_guy has joined #ruby
<TeresaP> jhass I can't, unfortumately
<TeresaP> unfortunately*
<havenwood> TeresaP: does it work?
<TeresaP> havenwood If it worked, I wouldn't be posting here :-P
spider-mario has quit [Remote host closed the connection]
<jhass> TeresaP: try to make a minimal reproducing example
Xiti has joined #ruby
thisguy123 has joined #ruby
<havenwood> TeresaP: there's the possibility I suppose that it's a LOAD_PATH issue as well, so would be nice to rule that out
<havenwood> TeresaP: is the require of the first file you're requiring successful?
baordog has joined #ruby
<TeresaP> I don't require files in the same folder
noop has quit [Ping timeout: 258 seconds]
<havenwood> TeresaP: what jhass said i good advice ^
<TeresaP> So, the only one I'm requiring is this 3rd party one and that seems to be the problem
<TeresaP> I'm wokring on the gist :)
<TeresaP> working* gah
<havenwood> is*
workmad3 has quit [Ping timeout: 272 seconds]
carraroj has quit [Quit: Konversation terminated!]
Soda has quit [Remote host closed the connection]
St_Marx has quit [Remote host closed the connection]
Nilium has joined #ruby
St_Marx has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Aaaal has quit [Quit: Aaaal]
paulfm has quit []
hololeap has joined #ruby
paulfm has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
tylersmith has joined #ruby
yfeldblum has joined #ruby
aspires has joined #ruby
moritzs has quit [Read error: Connection reset by peer]
<jhass> you can't just call methods defined in a module like that
gregf has joined #ruby
aclearman037 has joined #ruby
<jhass> since the method isn't defined as a module_function or singleton method you have to include the module somewhere in order to call that method
<TeresaP> well, it worked before today
<TeresaP> the only thing I did was call it from a different place than usual
<jhass> then that other place has the module included
<TeresaP> I guess so
allcentury has joined #ruby
fabrice31 has joined #ruby
bklane has joined #ruby
<pipework> Can't you also extend self to do the same as module_function, but for the whole module?
<jhass> pipework: module_function is like private or protected
<jhass> if you do a argless call, all methods defined after are module_functions
<pipework> jhass: oh, I never called it like that. Neat.
mary5030 has quit [Remote host closed the connection]
ramfjord has joined #ruby
mary5030 has joined #ruby
moritzs has joined #ruby
Synthead has joined #ruby
<TeresaP> thanks jhass
fabrice31 has quit [Ping timeout: 272 seconds]
<jhass> you're welcome
<pipework> Yes, thanks jhass.
SilkFox_ has joined #ruby
ptrrr has quit [Quit: ptrrr]
maletor has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
jottr_ has quit [Ping timeout: 245 seconds]
<havenwood> i don't like how a stand-alone module_function stomps on private though
<havenwood> not sure why it has to do that
<pipework> havenwood: Stomps how?
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> it makes the instance method private
Juzzika has quit []
<havenwood> >> module Cheese; module_function; def grate; grind_with_rocks end; private def grind_with_rocks; :grated end end; Cheese.grind_with_rocks
<eval-in__> havenwood => :grated (https://eval.in/208105)
xymbol has quit [Quit: Be back later ...]
<jhass> I think it makes sense since it's intended for utility functions
<havenwood> pipework: #grind_with_rocks was supposed to be private ^ :O
<jhass> you don't want those to clutter the API of your class
Nahra has joined #ruby
<pipework> havenwood: Oh I see how it stomps.
<jhass> oh, interesting
SilkFox_ has quit [Ping timeout: 240 seconds]
<jhass> ah, no, it's actually expected
<jhass> since module_function makes a copy of the method
iamjarvo has joined #ruby
<jhass> and again, it's intended for utility functions
<jhass> making the singleton versions private makes little sense
<havenwood> right
decoponio has quit [Quit: Leaving...]
<havenwood> just not a panacea
Pupeno has joined #ruby
aspiringflaneur has joined #ruby
aspiringflaneur has quit [Max SendQ exceeded]
<apeiros> havenwood: note that that's precisely how Math and Kernel work
<shevy> not a panacea but a pandacake
<pipework> pandacea?
<apeiros> havenwood: making the methods private means that stuff like Kernel#require does not prevent e.g. things like OpenStruct to have a #require member
<apeiros> pancake?
aspiringflaneur has joined #ruby
aspiringflaneur has quit [Max SendQ exceeded]
<havenwood> no pandas were harmed in the making?
<shevy> yeah
abuzze has joined #ruby
<apeiros> they didn't blend?
<pipework> pandamn you all to hell.
aspiringflaneur has joined #ruby
<shevy> we don't wanna blend pandas
bklane has quit [Remote host closed the connection]
Atttwww has joined #ruby
<jokke> hi
bklane has joined #ruby
jlast has joined #ruby
<havenwood> shevy: not us
<jokke> i'm trying to define a grammar with treetop and right now i'm trying reverse polish notation
siwica has joined #ruby
Takle has quit [Remote host closed the connection]
<jokke> i quickly bumped into left recursion which isn't possible
<havenwood> shevy: that's those other folk
jnollette has joined #ruby
<jokke> but i have no idea how to substitute it
siwica1 has quit [Ping timeout: 255 seconds]
shredding has quit [Quit: shredding]
olivier_bK has joined #ruby
bklane has quit [Remote host closed the connection]
<jokke> this grammar: http://p.jreinert.com/bQTCW/ruby
bklane has joined #ruby
Nahra has quit [Ping timeout: 260 seconds]
abuzze has quit [Ping timeout: 265 seconds]
Kricir has quit [Remote host closed the connection]
<jokke> it won't match "42 50 + 5 +" for example
Kricir has joined #ruby
paulfm has quit []
siwica has quit [Ping timeout: 265 seconds]
siwica has joined #ruby
mary5030 has joined #ruby
aclearman037 has quit []
wallerdev has joined #ruby
St_Marx has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
St_Marx has joined #ruby
nonks has quit [Ping timeout: 272 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moritzschaefer has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
siwica1 has joined #ruby
tesaf has quit [Quit: Lost terminal]
tier has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
yetanotherdave has quit [Ping timeout: 255 seconds]
agrinb has joined #ruby
siwica has quit [Ping timeout: 260 seconds]
last_staff has quit [Quit: and makes a groaning, wheezing sound as the box disappears]
jottr_ has joined #ruby
ht__th has quit [Read error: Connection reset by peer]
mkaesz has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
siwica has joined #ruby
mary5030 has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
choke has quit [Read error: Connection reset by peer]
siwica1 has quit [Ping timeout: 260 seconds]
bklane has quit [Remote host closed the connection]
hightower has quit [Ping timeout: 272 seconds]
lnormous has quit [Quit: Leaving]
gauke has quit [Quit: gauke]
nonks has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 246 seconds]
emmesswhy has joined #ruby
max96at is now known as max96at|off
GPH|work has quit [Ping timeout: 272 seconds]
naw_ has quit [Remote host closed the connection]
NoNMaDDeN has joined #ruby
diegoviola has quit [Remote host closed the connection]
naw_ has joined #ruby
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
NoNMaDDeN has quit [Remote host closed the connection]
kenichi_ has joined #ruby
FL1SK has quit [Remote host closed the connection]
naw_ has quit [Client Quit]
matchaw has joined #ruby
Takle has joined #ruby
hamakn has joined #ruby
jheg has joined #ruby
mityaz_ has quit [Quit: See ya!]
siwica1 has joined #ruby
AndyBotwin has quit [Quit: Leaving]
matchaw has quit [Ping timeout: 240 seconds]
siwica has quit [Ping timeout: 260 seconds]
speakingcode has quit [Quit: Lost terminal]
ndrei has quit [Ping timeout: 240 seconds]
matchaw has joined #ruby
speakingcode has joined #ruby
kenichi has quit [Quit: ZNC - http://znc.in]
lolmaus has quit [Remote host closed the connection]
mary5030 has joined #ruby
kenichi_ has quit [Quit: ZNC - http://znc.in]
bklane has joined #ruby
lolmaus has joined #ruby
BadQuanta has quit [Ping timeout: 265 seconds]
hamakn has quit [Ping timeout: 245 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
jheg has quit [Ping timeout: 250 seconds]
claymore has quit [Quit: Leaving]
<jokke> is it just me or is something wrong with rubygems
failshel_ has joined #ruby
<havenwood> jokke: appears all green: http://status.rubygems.org
<jokke> if i run bundle install it just hangs and eats up ram until it's consumed all available memory
ghostskittles has quit [Quit: Lost terminal]
<jokke> gem doesnt work either
BadQuanta has joined #ruby
Dude007__ has joined #ruby
naw_ has joined #ruby
claw has joined #ruby
kenichi has joined #ruby
siwica has joined #ruby
Dude007_ has quit [Ping timeout: 255 seconds]
<havenwood> jokke: bundler api looks happy to me, dunno
failshell has quit [Ping timeout: 255 seconds]
mary5030 has quit [Remote host closed the connection]
siwica1 has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
Guest14066 has quit [Quit: Connection closed for inactivity]
benzrf|offline is now known as benzrf
failshel_ has quit [Ping timeout: 255 seconds]
Morkel has quit [Quit: Morkel]
matchaw has quit [Ping timeout: 240 seconds]
bMalum has quit [Quit: bMalum]
<havenwood> jokke: run `bundle install --verbose` and link to a Gist of the output?
matchaw has joined #ruby
musl has joined #ruby
<mwlang> does tiny_tds muck with DDL statements in any way? If I use Tiny to create a table like this: https://gist.github.com/mwlang/a6f69fa024f0c0b9fb2a I get a table full of not-nullable columns. But if I do the same through ruby-odbc, I get the expected table. What gives?
dangerousdave has joined #ruby
it0a has quit [Read error: Connection reset by peer]
Sonny|3oy has joined #ruby
skolman_ has quit [Ping timeout: 245 seconds]
Fado has joined #ruby
ndrei has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
crazydiamond has joined #ruby
x1337807x has joined #ruby
agent_white has quit [Quit: bbl]
mary5030 has quit [Ping timeout: 255 seconds]
siwica1 has joined #ruby
stef204 has joined #ruby
siwica has quit [Ping timeout: 260 seconds]
FooMunki has joined #ruby
matchaw has quit [Ping timeout: 265 seconds]
RaCx has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
matchaw has joined #ruby
stef204 has quit [Client Quit]
mercwithamouth has joined #ruby
beef-wellington has quit [Ping timeout: 246 seconds]
parduse has quit [Ping timeout: 255 seconds]
Kricir has joined #ruby
melik has joined #ruby
parduse has joined #ruby
claw has quit [Quit: Konversation terminated!]
siwica has joined #ruby
renderful has joined #ruby
jlast has quit [Read error: Connection reset by peer]
siwica1 has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
KC9YDN has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
siwica1 has joined #ruby
awarner has quit [Remote host closed the connection]
siwica has quit [Ping timeout: 240 seconds]
renderful has quit [Ping timeout: 250 seconds]
jxf has joined #ruby
awarner has joined #ruby
reinaldob has quit [Remote host closed the connection]
olivier_bK has quit [Ping timeout: 260 seconds]
matchaw has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spyderman4g63 has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspiers has joined #ruby
spyderman4g63 has joined #ruby
anarang has quit [Quit: Leaving]
obs has quit [Quit: Saliendo]
sailias has quit [Quit: Leaving.]
moritzschaefer has quit [Remote host closed the connection]
moritzs has quit [Remote host closed the connection]
spyderman4g63 has quit [Ping timeout: 240 seconds]
treehug8_ has quit []
Loplin has quit [Quit: Leaving.]
yetanotherdave has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Snowstormer has quit [Ping timeout: 255 seconds]
pretty is now known as magic
ndrei has quit [Ping timeout: 240 seconds]
Snowstormer has joined #ruby
matchaw has joined #ruby
<mwlang> updated gist to a more complete example using tiny_tds both directly and via the sequel ORM as well as DBI::ODBC https://gist.github.com/mwlang/a6f69fa024f0c0b9fb2a This is against a MS SQL Server 2005 DBMS, if that matters.
Techguy305 has joined #ruby
Techguy305 has quit [Max SendQ exceeded]
Sonny|3oy has quit [Quit: Leaving]
emmesswhy has quit [Quit: This computer has gone to sleep]
Techguy305 has joined #ruby
<TeresaP> I installed the calabash-cucumber gem and am unable to use it by simply entering 'cucumber' on the terminal window. This implies something needs to be added to $PATH, but I already have /Users/foo/.rbenv/bin:/Users/foo/.rbenv/shims set in there. Shouldn't that be enough?
<postmodern> TeresaP, rbenv rehash
yetanotherdave has quit [Ping timeout: 240 seconds]
<TeresaP> woohoo, thanks postmodern
<TeresaP> I did not know about that
mengu has quit []
x77686d has quit [Quit: x77686d]
matchaw has quit [Ping timeout: 261 seconds]
Kricir has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 255 seconds]
hobodave has quit [Ping timeout: 246 seconds]
mchelen has joined #ruby
nirvdrum has quit [Ping timeout: 260 seconds]
aspiringflaneur has quit [Quit: ZZZzzz…]
BadQuanta has quit [Ping timeout: 272 seconds]
mg^ has joined #ruby
shock_one has joined #ruby
codecop has quit [Remote host closed the connection]
jimmyhoughjr has joined #ruby
matchaw has joined #ruby
jnollette has quit [Ping timeout: 255 seconds]
pandaant has quit [Quit: Lost terminal]
klaut has joined #ruby
<lagweezle> TeresaP: Work looking for rbenv-rehash and installing it :)
pandaant has joined #ruby
einarj has joined #ruby
hhutch has quit [Ping timeout: 260 seconds]
Atttwww has quit [Ping timeout: 244 seconds]
kaspertidemann has quit []
siwica has joined #ruby
kirun has quit [Quit: Client exiting]
Sgeo has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
siwica1 has quit [Ping timeout: 272 seconds]
Sgeo has joined #ruby
SilkFox_ has joined #ruby
narph has joined #ruby
monsieurp has quit [Remote host closed the connection]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
SilkFox_ has quit [Ping timeout: 272 seconds]
benzrf is now known as benzrf|offline
siwica1 has joined #ruby
enebo has quit [Quit: enebo]
aspiringflaneur has joined #ruby
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
siwica has quit [Ping timeout: 245 seconds]
emmesswhy has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0.1]
fabrice31 has joined #ruby
awarner has quit [Remote host closed the connection]
awarner has joined #ruby
patrick99e99 has joined #ruby
babykosh has joined #ruby
gccostabr has quit [Read error: Connection reset by peer]
gccostabr has joined #ruby
shock_one has quit [Quit: Be back later ...]
babykosh has quit [Client Quit]
baordog has quit [Ping timeout: 255 seconds]
djstorm has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
failshell has joined #ruby
bklane has quit [Remote host closed the connection]
hmsimha has quit [Quit: Leaving]
fabrice31 has quit [Ping timeout: 260 seconds]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nonks has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
Techguy305 has quit [Ping timeout: 255 seconds]
failshell has quit [Ping timeout: 265 seconds]
JaMz has quit [Remote host closed the connection]
nonks has joined #ruby
freerobby has quit [Quit: Leaving.]
valeriansaliou has quit [Quit: Be back later ...]
weemsledeux has joined #ruby
weemsledeux has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
jnollette has joined #ruby
axl_ has quit [Quit: axl_]
sambao21 has joined #ruby
Asher has quit [Quit: Leaving.]
Lingo___ has joined #ruby
abuzze has joined #ruby
siwica has joined #ruby
mikecmpbll has joined #ruby
robbyoconnor has joined #ruby
siwica1 has quit [Ping timeout: 272 seconds]
moritzs has joined #ruby
skolman has joined #ruby
msmith_ has quit [Remote host closed the connection]
moritzschaefer has joined #ruby
chrishough has joined #ruby
abuzze has quit [Ping timeout: 265 seconds]
r0bby_ has joined #ruby
whoops has quit []
robbyoconnor has quit [Ping timeout: 258 seconds]
agjacome has quit [Remote host closed the connection]
Lingo___ is now known as harq
jnollette has quit [Ping timeout: 265 seconds]
thisguy123 has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chrishough has quit [Client Quit]
andrewlio has quit [Quit: Leaving.]
chrishough has joined #ruby
agjacome has joined #ruby
agrinb has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bklane has joined #ruby
graydot has quit [Quit: graydot]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
siwica1 has joined #ruby
siwica has quit [Ping timeout: 260 seconds]
jtdowney has joined #ruby
mikepack has quit []
twohlix has quit [Ping timeout: 250 seconds]
nichtdiebohne1 has quit [Ping timeout: 245 seconds]
agrinb has quit [Ping timeout: 272 seconds]
thisguy123 has joined #ruby
awarner has quit [Remote host closed the connection]
r0bby_ is now known as robbyoconnor
jnollette has joined #ruby
moritzs has quit [Quit: Verlassend]
moritzschaefer has quit [Quit: Verlassend]
awarner has joined #ruby
manzo has joined #ruby
NoNMaDDeN has joined #ruby
phutchins has quit [Ping timeout: 246 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
devdazed has quit [Quit: Computer has gone to sleep.]
M-Technic has joined #ruby
siwica has joined #ruby
siwica1 has quit [Ping timeout: 260 seconds]
KC9YDN has joined #ruby
SilkFox_ has joined #ruby
VBlizzard has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
wenshan has joined #ruby
Photism has joined #ruby
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
bklane has quit [Read error: Connection reset by peer]
bklane has joined #ruby
davasaurous has joined #ruby
larissa has joined #ruby
pork_clips has joined #ruby
pork_clips is now known as _cake
jnollett_ has joined #ruby
baordog has joined #ruby
_cake has quit [Client Quit]
tier has joined #ruby
beef-wellington has joined #ruby
Takle has quit [Remote host closed the connection]
matchaw has quit [Ping timeout: 272 seconds]
jnollette has quit [Ping timeout: 272 seconds]
matchaw has joined #ruby
nichtdiebohne has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
ferr has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
robbyoconnor has joined #ruby
lolmaus has joined #ruby
Kricir has joined #ruby
matchaw has quit [Ping timeout: 265 seconds]
Channel6 has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
thisguy123 has quit [Ping timeout: 240 seconds]
jimmyhoughjr has joined #ruby
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 240 seconds]
momomomomo_ is now known as momomomomo
maestrojed has quit [Quit: Computer has gone to sleep.]
thisguy123 has joined #ruby
skolman has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 240 seconds]
maestrojed has joined #ruby
wenshan has quit [Remote host closed the connection]
skolman_ has joined #ruby
jlast has joined #ruby
IceDragon has joined #ruby
shock_one has joined #ruby
skolman_ has quit [Remote host closed the connection]
snath has quit [Ping timeout: 246 seconds]
skolman_ has joined #ruby
drkyro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
SilkFox_ has joined #ruby
jlast has quit [Ping timeout: 244 seconds]
mercwithamouth has joined #ruby
FooMunki has quit [Quit: FooMunki]
narcan has joined #ruby
shock_one has quit [Ping timeout: 255 seconds]
klaut has quit [Remote host closed the connection]
drkyro has joined #ruby
willywos has quit [Ping timeout: 240 seconds]
Kricir has quit [Remote host closed the connection]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: i've nodded off.]
omosoj has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
kaspergrubbe has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
einarj has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
ioc has joined #ruby
Nilium has quit [Ping timeout: 260 seconds]
mxrguspxrt has quit [Remote host closed the connection]
skolman_ has quit [Remote host closed the connection]
agrinb has joined #ruby
skolman_ has joined #ruby
zaid_h has joined #ruby
skolman_ has quit [Remote host closed the connection]
skolman_ has joined #ruby
charliesome has joined #ruby
klmlfl has quit [Ping timeout: 255 seconds]
<Fire-Dragon-DoL> mhhh... I have a class which should behave exactly like an array except when ADDING something to the array. How can I delegate everything excet "add something to array" methods OR a generic method I can overwrite to change how it behaves when I add elements to array?
agrinb has quit [Ping timeout: 244 seconds]
Nilium has joined #ruby
andrewjanssen has joined #ruby
Kricir has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
SilkFox_ has quit [Ping timeout: 272 seconds]
lw has joined #ruby
chipotle has joined #ruby
vyorkin has joined #ruby
lw has quit [Max SendQ exceeded]
vyorkin has quit [Client Quit]
vyorkin1 has joined #ruby
lw has joined #ruby
vyorkin has joined #ruby
chipotle has quit [Client Quit]
andrewjanssen has quit [Client Quit]
SilkFox_ has joined #ruby
momomomomo_ has joined #ruby
snath has joined #ruby
<Fire-Dragon-DoL> jtdowney: I'm currently using that, the problem is that it delegates all methods that don't exist. I'm having problem with the second part: which are the methods that add something to an array
TeresaP has quit [Ping timeout: 246 seconds]
momomomomo has quit [Ping timeout: 255 seconds]
momomomomo_ is now known as momomomomo
arescorpio has joined #ruby
stunder has quit [Quit: Screw you guys I'm going home]
vyorkin1 has quit [Client Quit]
mxrguspxrt has joined #ruby
robbyoconnor has quit [Ping timeout: 255 seconds]
ghostmoth has quit [Quit: ghostmoth]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
boddah has joined #ruby