gusrub__ has quit [Remote host closed the connection]
gusrub has quit [Ping timeout: 246 seconds]
enyo has quit [Ping timeout: 258 seconds]
ruby590 has joined #ruby
gusrub has joined #ruby
optiz0r has joined #ruby
enilsen16 has joined #ruby
ruby590 has left #ruby [#ruby]
beilabs has quit [Ping timeout: 252 seconds]
JosephAustin has joined #ruby
symm- has quit [Quit: Leaving...]
<JosephAustin>
Hey you guys. I have a question i cant seem to google-fu an answer to. is 'load <file>' thread safe? Or if some other thread is midway through a function in the loaded file, will it explode in my face
enilsen16 has quit [Client Quit]
<JosephAustin>
because i wanted code to dynamically reload with like, 100+ threads accessing it >_> i mean, rails does it
j0bk has quit [Ping timeout: 250 seconds]
j0bk has joined #ruby
Trynemjoel has quit [Quit: Quitting]
SeepingN has joined #ruby
enilsen16 has joined #ruby
foption has joined #ruby
foption has quit [Remote host closed the connection]
<JosephAustin>
i wonder why i cant find anyone else asking this. Live code in a multi-user environment should be a common problem
ur5us has quit [Remote host closed the connection]
brendan- has joined #ruby
Trynemjoel has joined #ruby
<JosephAustin>
… closest thing ive found suggests 'autoload' is at least not threadsafe
<JosephAustin>
oh. thats an old article and may no longer be true.
harai has joined #ruby
jshjsh has joined #ruby
harai_ has quit [Ping timeout: 248 seconds]
<JosephAustin>
guess ill have to write some elaborate test and find out
JoshS has quit [Ping timeout: 268 seconds]
chouhoulis has quit [Ping timeout: 258 seconds]
h1fuelcell has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
<JosephAustin>
seems like load is threadsafe
h1fuelcell has quit [Remote host closed the connection]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Ikri has joined #ruby
AlexRussia has quit [Ping timeout: 268 seconds]
pawnbox has quit [Remote host closed the connection]
Guest53205 has quit []
pawnbox has joined #ruby
enilsen16 has quit [Quit: enilsen16]
bronson has joined #ruby
pawnbox has quit [Remote host closed the connection]
symm- has joined #ruby
enilsen16 has joined #ruby
pawnbox has joined #ruby
<JosephAustin>
so is autoload multithreaded now, or did that never happen
<JosephAustin>
okay then.
JosephAustin has left #ruby [#ruby]
Pumukel has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
pawnbox has quit [Remote host closed the connection]
shayan_ has quit [Quit: shayan_]
alexar has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 246 seconds]
alexar has joined #ruby
braincrash has joined #ruby
Ikri has quit [Remote host closed the connection]
sicktastic has joined #ruby
h1fuelcell has joined #ruby
pawnbox has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
xall has quit [Ping timeout: 265 seconds]
rippa has joined #ruby
gix has quit [Ping timeout: 252 seconds]
shayan_ has joined #ruby
troys is now known as troys_
foption has joined #ruby
gix has joined #ruby
Rodya_ has quit [Remote host closed the connection]
tarvos has joined #ruby
jshjsh has quit [Ping timeout: 268 seconds]
sicktastic has quit [Remote host closed the connection]
xall has joined #ruby
cyphase has quit [Ping timeout: 260 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
nankyokusei has joined #ruby
h1fuelcell has joined #ruby
lightstalker has quit [Remote host closed the connection]
hays_ has quit [Changing host]
hays_ has joined #ruby
cyphase has joined #ruby
duderonomy has joined #ruby
frozengeek has quit [Quit: frozengeek]
lightstalker has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
aremaref has quit [Ping timeout: 245 seconds]
_defk0n_ has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
matp has quit [Quit: ZZzzzZz...]
Madper|AAAFFFKKK is now known as Madper
troys_ is now known as troys
Pumukel has joined #ruby
username_ has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
duderonomy has quit [Ping timeout: 245 seconds]
duderonomy has joined #ruby
Channel6 has quit [Quit: Leaving]
_whitelogger has joined #ruby
tarvos has quit [Quit: Lost terminal]
gusrub has quit []
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
EasyMode has joined #ruby
bluOxigen has joined #ruby
JoshS has joined #ruby
bronson has joined #ruby
reverberations has quit [Ping timeout: 265 seconds]
xall has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 260 seconds]
xall has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
reverberations has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
ResidentBiscuit has joined #ruby
enyo has joined #ruby
username_ has quit [Ping timeout: 248 seconds]
AlexRussia has joined #ruby
xall has quit [Ping timeout: 252 seconds]
Anonymoose2 has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
machinewar has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 245 seconds]
reverberations has quit [Ping timeout: 268 seconds]
ResidentBiscuit has quit [Ping timeout: 258 seconds]
enyo has quit [Ping timeout: 252 seconds]
troys is now known as troys_
Xiti` has joined #ruby
raul782 has joined #ruby
minimalism has joined #ruby
Xiti has quit [Ping timeout: 245 seconds]
harai has quit [Ping timeout: 260 seconds]
bocaneri has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
Anonymoose2 has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
h1fuelcell has joined #ruby
blackbombay has quit [Ping timeout: 268 seconds]
blackbombay has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
enilsen16 has quit [Quit: enilsen16]
dionysus69 has joined #ruby
eggshke has joined #ruby
Devalo has joined #ruby
anisha has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
saneax-_-|AFK is now known as saneax
_defk0n_ has quit [Quit: Its been real!]
Devalo has quit [Ping timeout: 246 seconds]
triangles has joined #ruby
codeshah has joined #ruby
reverberations has joined #ruby
troys_ is now known as troys
beilabs has joined #ruby
beilabs has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
A_Drone has joined #ruby
shayan_ has quit [Quit: shayan_]
bronson has joined #ruby
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MissionCritical has quit [Ping timeout: 250 seconds]
bronson has quit [Ping timeout: 260 seconds]
hipopo99 has joined #ruby
hipopo99 has left #ruby [#ruby]
beilabs has quit [Ping timeout: 245 seconds]
Xiti` has quit [Ping timeout: 252 seconds]
symm- has quit [Ping timeout: 258 seconds]
nhhc has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.6]
CloCkWeRX has quit [Quit: Leaving.]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZU has quit [Quit: WeeChat 1.5]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nankyokusei has joined #ruby
troys has quit [Quit: Bye]
Lap64 has joined #ruby
coyo has quit [Quit: Heaven is not a place, Bartleby, it's being with people who love you.]
h1fuelcell has joined #ruby
coyo has joined #ruby
ignarps has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 256 seconds]
amclain has quit [Quit: Leaving]
beilabs has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
cgibsonmm has joined #ruby
Pumukel has joined #ruby
jack has quit [Quit: Page closed]
<dminuoso>
Is there some useful library that abstracts the notion of network interfaces away?
<dminuoso>
I just want to interrogate the state of network interfaces on my computer.
cgibsonm_ has joined #ruby
cgibsonmm has quit [Client Quit]
cgibsonm_ has quit [Client Quit]
cgibsonmm has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
harfangk has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
ignarps has joined #ruby
cibs has joined #ruby
ayonkhan has joined #ruby
symm- has joined #ruby
braincrash has quit [Ping timeout: 246 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
CloCkWeRX has joined #ruby
AlexRussia has joined #ruby
JoshS has quit [Ping timeout: 265 seconds]
dionysus69 has quit [Remote host closed the connection]
Guest88 has joined #ruby
jgt has joined #ruby
howdoi has joined #ruby
Macaveli has joined #ruby
JoshS has joined #ruby
pwnd_nsfw has joined #ruby
kassav has joined #ruby
Macaveli has quit [Client Quit]
ayonkhan has quit [Ping timeout: 245 seconds]
beilabs has quit [Remote host closed the connection]
beilabs has joined #ruby
<dminuoso>
Man my fingers are itching, I have the chance to develop a really awesome custom provisioning system. I'm still not sure what technologies I should employ.
<dminuoso>
Part of me really wants to write this in C++ because it's fun
enyo has joined #ruby
ayonkhan has joined #ruby
naprimer_3 has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
beilabs has quit [Ping timeout: 252 seconds]
cibs has quit [Ping timeout: 268 seconds]
emilkarl has joined #ruby
enyo has quit [Ping timeout: 258 seconds]
cibs has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
x00r__ has joined #ruby
ayonkhan has quit [Ping timeout: 258 seconds]
x00r__ has quit [Client Quit]
x00r___ has joined #ruby
cgibsonmm has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
Guest88 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spectrum has joined #ruby
emilkarl has quit [Read error: Connection reset by peer]
SJr has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ResidentBiscuit has quit [Ping timeout: 258 seconds]
bluOxigen has quit [Ping timeout: 246 seconds]
emilkarl has joined #ruby
harai has joined #ruby
SpiffTR has joined #ruby
blaxter has joined #ruby
SesMan has joined #ruby
SpiffTR has quit [Quit: Leaving.]
enyo has joined #ruby
Devalo has joined #ruby
h1fuelcell has joined #ruby
Devalo has quit [Remote host closed the connection]
jgt has quit [Read error: No route to host]
h1fuelcell has quit [Ping timeout: 248 seconds]
Pumukel has joined #ruby
walterheck has joined #ruby
naprimer has joined #ruby
Devalo has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pumukel has quit [Ping timeout: 246 seconds]
wugy has joined #ruby
wugy has quit [Excess Flood]
matp has joined #ruby
symm- has quit [Ping timeout: 268 seconds]
cgibsonmm has joined #ruby
cgibsonmm has quit [Remote host closed the connection]
BitWhisperer has quit [Ping timeout: 265 seconds]
cgibsonmm has joined #ruby
biberu has joined #ruby
BitWhisperer has joined #ruby
raul782 has quit [Remote host closed the connection]
enyo has quit [Ping timeout: 246 seconds]
olegt has joined #ruby
bronson has joined #ruby
Devalo has quit [Remote host closed the connection]
Fernando-Basso has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
Kug3lis has joined #ruby
rajdesai has joined #ruby
slackbotgz has joined #ruby
raul782 has joined #ruby
raul782 has quit [Remote host closed the connection]
blaxter has quit [Quit: foo]
BitWhisperer has quit [Ping timeout: 246 seconds]
haylon has quit [Quit: Leaving]
icey has quit [Ping timeout: 265 seconds]
lszhu has quit [Ping timeout: 252 seconds]
testuser1 has quit [Quit: Leaving.]
testuser1 has joined #ruby
lszhu has joined #ruby
testuser1 has quit [Client Quit]
naprimer has quit [Ping timeout: 246 seconds]
BitWhisperer has joined #ruby
icey has joined #ruby
icey has quit [Changing host]
icey has joined #ruby
enyo has joined #ruby
atmosx has joined #ruby
ayonkhan has joined #ruby
marr has joined #ruby
lxsameer has joined #ruby
nankyokusei has joined #ruby
emilkarl has quit [Quit: emilkarl]
nankyokusei has quit [Ping timeout: 258 seconds]
dionysus69 has joined #ruby
Pumukel has joined #ruby
charliesome has joined #ruby
h1fuelcell has joined #ruby
roshanavand__ has joined #ruby
loechel has joined #ruby
jgt has joined #ruby
naprimer has joined #ruby
slackbotgz has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
cibs has quit [Ping timeout: 268 seconds]
spectrum has quit [Read error: Connection reset by peer]
cibs has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
flying has joined #ruby
beilabs has joined #ruby
ishe_ua has joined #ruby
jgt has quit [Ping timeout: 258 seconds]
braincrash has joined #ruby
alem0lars has quit [Ping timeout: 258 seconds]
Pumukel has joined #ruby
Couch has joined #ruby
duderonomy has joined #ruby
bronson has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
beilabs has quit [Remote host closed the connection]
jgt has joined #ruby
alem0lars has joined #ruby
pwnd_nsfw` has joined #ruby
pawnbox has quit [Remote host closed the connection]
<manveru>
now just gotta figure out how to make it work with bacon
benlieb has joined #ruby
postmodern has quit [Quit: Leaving]
loechel has joined #ruby
aupadhye has joined #ruby
CloCkWeRX has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
aupadhye has quit [Ping timeout: 245 seconds]
karapetyan has joined #ruby
benlieb has quit [Quit: benlieb]
<zenspider>
bacon?? that's still used somewhere?
<manveru>
i still use it for my stuff :)
<zenspider>
manveru: good luck. simplecov is kinda a pita. I can get it to work with minitest SOMETIMES>.. so maybe you can use minitest-bacon :)
<manveru>
no worries, got simplecov working already
<manveru>
it's got an annoying bug though, it copies the assets for the coverage html from the gem without adjusting permissions
Devalo has quit [Remote host closed the connection]
<manveru>
so when i run it twice, it'll fail because the files are read-only
rajdesai has quit [Remote host closed the connection]
rajdesai has joined #ruby
muuse has joined #ruby
Gasher has joined #ruby
rajdesai has quit [Ping timeout: 265 seconds]
CloCkWeRX has quit [Ping timeout: 258 seconds]
d^sh_ is now known as d^sh
enyo has joined #ruby
montanonic has quit [Ping timeout: 248 seconds]
montanonic has joined #ruby
mdw_ has joined #ruby
iogf has joined #ruby
foption has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 248 seconds]
foption has joined #ruby
Bacta has joined #ruby
marcoecc has quit [Remote host closed the connection]
mdw has quit [Ping timeout: 252 seconds]
h1fuelcell has joined #ruby
doubleemms has joined #ruby
iogf has quit [Remote host closed the connection]
doubleemms has quit [Ping timeout: 240 seconds]
h1fuelcell has quit [Ping timeout: 248 seconds]
shinnya has joined #ruby
A124 has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
nunchuck has joined #ruby
dmnd has joined #ruby
CloCkWeRX has joined #ruby
dviola has joined #ruby
A124 has joined #ruby
catphish has left #ruby ["Leaving"]
aupadhye has joined #ruby
karapety_ has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
flying has quit [Read error: Connection reset by peer]
flying has joined #ruby
Qommand0r has joined #ruby
vasilakisfil has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
<vasilakisfil>
hello! when I do 1&.foobar I get undefined method foobar.. shouldn't I get nil ?
sdwrage has joined #ruby
nowhere_man has joined #ruby
milardovich has quit [Remote host closed the connection]
pawnbox has joined #ruby
milardovich has joined #ruby
bronson has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapety_ has quit [Remote host closed the connection]
<vasilakisfil>
ok I think I got it.. it only works for nil
milardovich has quit [Ping timeout: 264 seconds]
<dminuoso>
vasilakisfil: &. will invoke if the LHS is not nil - if the method still does not exist, you get the exception.
<dminuoso>
vasilakisfil: For example:
<dminuoso>
1.this_method_does_not_exist
<dminuoso>
>> 1.this_method_does_not_exist
<ruby[bot]>
dminuoso: # => undefined method `this_method_does_not_exist' for 1:Fixnum (NoMethodError) ...check link for more (https://eval.in/705902)
<dminuoso>
>> 1&.this_method_does_not_exist
<ruby[bot]>
dminuoso: # => undefined method `this_method_does_not_exist' for 1:Fixnum (NoMethodError) ...check link for more (https://eval.in/705903)
<dminuoso>
These two are equivalent, because 1 is not nil
montanonic has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 265 seconds]
<zenspider>
I know I sound like an old man... but UGH I do not like &.
<dminuoso>
^-
mdw_ has quit [Quit: Sleeping Zzzzz]
<herwin>
now I feel like an old man...
<dminuoso>
zenspider: I only use it in rails, because it's sometimes the more elegant way: td= resource.house&.street&.district&.city&.name
<zenspider>
that's not elegant
rajdesai has joined #ruby
hightower2 has joined #ruby
skydiver_ has joined #ruby
minimalism has quit [Quit: minimalism]
<dminuoso>
Yeah I guess
tubuliferous has quit [Ping timeout: 248 seconds]
hightower3 has quit [Ping timeout: 260 seconds]
Yxhuvud has joined #ruby
sdothum has joined #ruby
* apeiros
remembers when zenspider patched NilClass#method_missing
<apeiros>
boy was I pissed :D
<apeiros>
If we could subclass NilClass maybe we could have a sane null-pattern in ruby. but the way it is now I don't feel like using that. and non-nullable is IMO not viable everywhere. so &. while ugly is a viable compromise. that's my $0.02 :)
SpiffTR has joined #ruby
nankyokusei has joined #ruby
mdw has joined #ruby
jottr has joined #ruby
mdw has quit [Max SendQ exceeded]
nhhc has quit [Quit: Leaving]
mdw has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
rwb has quit [Ping timeout: 256 seconds]
jottr has quit [Ping timeout: 248 seconds]
cyberRavan has left #ruby [#ruby]
psychicist__ has joined #ruby
GinoManWorks has joined #ruby
foption has quit [Remote host closed the connection]
foption has joined #ruby
h1fuelcell has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
atomicTrue has joined #ruby
shinnya has quit [Ping timeout: 256 seconds]
h1fuelcell has quit [Ping timeout: 248 seconds]
millerti_ has joined #ruby
millerti has quit [Ping timeout: 248 seconds]
SpiffTR has quit [Quit: Leaving.]
last_staff has joined #ruby
gnufied has joined #ruby
milardovich has joined #ruby
ishe_ua has quit [Remote host closed the connection]
_ixti_ has joined #ruby
ixti has quit [Ping timeout: 246 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
nowhere_man has quit [Remote host closed the connection]
foption has quit [Read error: Connection reset by peer]
jottr has joined #ruby
foption has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
jmignault has joined #ruby
bronson has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
atomicTrue has left #ruby [#ruby]
ramortegui has joined #ruby
SpiffTR has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
flyingX has joined #ruby
flying has quit [Ping timeout: 245 seconds]
kus has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
beilabs has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
jottr has quit [Ping timeout: 245 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
reverberations has quit [Ping timeout: 258 seconds]
foption has quit [Remote host closed the connection]
foption has joined #ruby
milardovich has joined #ruby
gnufied has quit [Ping timeout: 258 seconds]
kassav has quit [Read error: No route to host]
kassav_ has joined #ruby
kassav_ is now known as kassav
Kug3lis has joined #ruby
pandaant has quit [Remote host closed the connection]
Kug3lis has quit [Client Quit]
Mr_Pancake has joined #ruby
sepp2k1 has joined #ruby
last_staff has quit [Quit: last_staff]
anisha has quit [Quit: Leaving]
sepp2k has quit [Ping timeout: 256 seconds]
koldbrutality has quit [Ping timeout: 252 seconds]
cratchet311 has joined #ruby
doubleemms has joined #ruby
h1fuelcell has joined #ruby
jottr has joined #ruby
Kug3lis has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Ax has joined #ruby
machinewar has joined #ruby
newbie1 has joined #ruby
cratchet311 has quit [Read error: Connection reset by peer]
cratchet311 has joined #ruby
UserJosh has joined #ruby
jhack has joined #ruby
doubleemms has quit [Ping timeout: 258 seconds]
jottr has quit [Ping timeout: 252 seconds]
ruid_ has joined #ruby
Ax has quit [Ping timeout: 265 seconds]
jshjsh has quit [Ping timeout: 268 seconds]
c355e3b has joined #ruby
tvon has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
tvon has joined #ruby
jmignault has quit [Ping timeout: 256 seconds]
milardov_ has joined #ruby
milardov_ has quit [Remote host closed the connection]
rajdesai has quit [Ping timeout: 245 seconds]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
ruid_ has quit [Ping timeout: 256 seconds]
cratchet311 has quit [Remote host closed the connection]
milardovich has joined #ruby
tvon has quit [Ping timeout: 252 seconds]
cratchet311 has joined #ruby
symm- has joined #ruby
SpiffTR has quit [Quit: Leaving.]
milardovich has quit [Remote host closed the connection]
cratchet311 has quit [Remote host closed the connection]
SpiffTR has joined #ruby
cratchet311 has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.6]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
tvon has joined #ruby
saslam has joined #ruby
DLSteve_ has joined #ruby
Azure has joined #ruby
machinewar has quit [Remote host closed the connection]
cratchet311 has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 258 seconds]
bronson has joined #ruby
bronson has quit [Ping timeout: 258 seconds]
jmignault has joined #ruby
GodFather has joined #ruby
ruid_ has joined #ruby
phoo1234567 has joined #ruby
psychicist__ has quit [Ping timeout: 258 seconds]
beilabs has quit [Remote host closed the connection]
psychicist__ has joined #ruby
braincrash has joined #ruby
Yxhuvud has quit [Ping timeout: 265 seconds]
polysics has quit [Remote host closed the connection]
polysics has joined #ruby
Rodya_ has joined #ruby
polysics has quit [Ping timeout: 246 seconds]
beilabs has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
nankyokusei has joined #ruby
ferr1 has quit [Quit: WeeChat 1.6]
zacts has quit [Ping timeout: 245 seconds]
CloCkWeRX has quit [Quit: Leaving.]
walterheck has quit [Ping timeout: 252 seconds]
Yxhuvud has joined #ruby
nankyokusei has quit [Ping timeout: 264 seconds]
milardovich has quit [Remote host closed the connection]
polysics has joined #ruby
milardovich has joined #ruby
Aria has quit [Ping timeout: 248 seconds]
polysics has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
Couch has quit [Quit: Ex-Chat]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bluOxigen has joined #ruby
cgfbee has joined #ruby
wlanboy has quit [Ping timeout: 248 seconds]
flyingX has quit [Remote host closed the connection]
flying has joined #ruby
Kug3lis has joined #ruby
wlanboy has joined #ruby
wlanboy has quit [Changing host]
wlanboy has joined #ruby
gnufied has quit [Ping timeout: 258 seconds]
doubleemms has joined #ruby
siddart has joined #ruby
machinewar has joined #ruby
username_ has joined #ruby
<machinewar>
best way to test for a class to implement a method with rspec? expect(klass.new).to respond_to(:method), or expect(klass.instance_methods).to include(:method)
<machinewar>
not quite sure the best way to test this
bronson has joined #ruby
flying has quit []
flying has joined #ruby
doubleemms has quit [Ping timeout: 258 seconds]
bronson has quit [Remote host closed the connection]
SpiffTR has quit [Quit: Leaving.]
username_ has quit [Quit: Lost terminal]
<herwin>
first way looks more suitable to me, since that also covers things that are handled via method_missing
gnufied has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
flying has quit []
<Papierkorb>
machinewar: do you have a `subject` set up? if so, just ask that to respond_to your :method
aredridel has joined #ruby
roshanavand__ has quit [Ping timeout: 265 seconds]
psychicist__ has quit [Ping timeout: 258 seconds]
Fernando-Basso has joined #ruby
<Papierkorb>
machinewar: while herwin's point is valid, your code can become nasty as you may have to clutter the example with (dummy) arguments to the #initializer - You can get around that if you just use your subject. Though to me it'd also be ok to check the instance_methods
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
gnufied has quit [Ping timeout: 258 seconds]
<machinewar>
Papierkorb: that's what I was thinking in the case that I add arguments to the initialize function. if my subject is a class though I won't be able to check the instance responds to the method right?
Guest74384 has joined #ruby
kassav has quit [Quit: kassav]
<Papierkorb>
machinewar: Why's your subject the class?
kassav_ has joined #ruby
haylon has joined #ruby
GodFather has quit [Ping timeout: 252 seconds]
<Papierkorb>
machinewar: Is that class 'special'?
kassav_ is now known as kassav
<Papierkorb>
As in, is the class itself you want to test, or do you want to test instances of that class?
<machinewar>
Papierkorb: well I actually lied the subject is an array of classes
<machinewar>
making sure they all implement an interface
Fernando-Basso has quit [Client Quit]
username_ has joined #ruby
<machinewar>
its not the best test
<Papierkorb>
machinewar: Either store instances of each class instead, or have require all initializers to have the same arguments, or use #instance_methods
<machinewar>
makes sense thanks
<Papierkorb>
machinewar: I'd go with the first option I think
blackbom1 has joined #ruby
<Papierkorb>
Most flexible, and you actually ask the instance if it responds to something, so you're really asking the thing you're testing
<machinewar>
yep
<Papierkorb>
The #instance_methods solution is only asking the class if the instance would have the method, it's not really testing the instance itself
Ishido has joined #ruby
GodFather has joined #ruby
blackbombay has quit [Ping timeout: 258 seconds]
<Rich_Morin>
clear
<Papierkorb>
Ctrl+L
GeekOfflineNL has quit [Quit: Leaving]
pwnd_nsfw` has quit [Read error: Connection reset by peer]
pwnd_nsfw` has joined #ruby
Fernando-Basso has joined #ruby
flying has joined #ruby
polysics has joined #ruby
<username_>
why is there a Thread class to spin up new threads if CRuby is single threaded?
<username_>
its just single threaded unless you spin up your own threads?
<apeiros>
why do you think CRuby was single threaded?
GodFather has quit [Ping timeout: 252 seconds]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
CRuby (usually called MRI) has multiple threads. it does not allow them to run in parallel. but concurrency doesn't necessarily have to be parallel.
<username_>
ahhhh i see i see
<username_>
derp
<username_>
apeiros: thanks
polysics has quit [Ping timeout: 258 seconds]
<apeiros>
also other implementations do allow parallelism. see jruby.
<apeiros>
i.e. language != implementation
harfangk has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
<username_>
apeiros: nice
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Ping timeout: 264 seconds]
d0nn1e has quit [Ping timeout: 260 seconds]
Guest74384 has quit [Ping timeout: 264 seconds]
d0nn1e has joined #ruby
shayan_ has joined #ruby
raul782 has joined #ruby
chouhoulis has joined #ruby
gnufied has joined #ruby
zacts has joined #ruby
Xiti has joined #ruby
polysics has joined #ruby
xit has joined #ruby
minimalism has joined #ruby
xit has quit [Client Quit]
xit has joined #ruby
bronson has joined #ruby
milardovich has joined #ruby
rwb has joined #ruby
milardovich has quit [Remote host closed the connection]
kassav has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
vuoto has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
roshanavand__ has joined #ruby
vuoto_ has joined #ruby
alexar has quit [Remote host closed the connection]
vuoto has quit [Client Quit]
CrazyEddy has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 252 seconds]
alexar has joined #ruby
Bacta has quit [Ping timeout: 245 seconds]
polysics has quit [Remote host closed the connection]
conta has joined #ruby
polysics has joined #ruby
nankyokusei has joined #ruby
mic_e has joined #ruby
amclain has joined #ruby
psychicist__ has joined #ruby
polysics has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
gnufied has quit [Ping timeout: 265 seconds]
skydiver_ has quit [Ping timeout: 252 seconds]
vuoto_ has quit [Remote host closed the connection]
vasilakisfil has quit [Remote host closed the connection]
xit has quit [Ping timeout: 265 seconds]
gusrub has joined #ruby
agit0 has joined #ruby
skweek has joined #ruby
nanoz has joined #ruby
canteen4 has quit [Ping timeout: 268 seconds]
ace05 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
doubleemms has joined #ruby
roychri has quit [Quit: And that's the way the cookie crumbles!]
canteen4 has joined #ruby
xit has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
doubleemms has quit [Ping timeout: 258 seconds]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xit has left #ruby ["Killed buffer"]
mrwn has joined #ruby
splud has joined #ruby
CrazyEddy has joined #ruby
xen0fon has quit [Ping timeout: 268 seconds]
jhack has quit [Quit: jhack]
xen0fon has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
sdwrage has quit [Quit: Leaving]
mustmodify has joined #ruby
SpiffTR has joined #ruby
milardovich has quit [Ping timeout: 252 seconds]
Lord_of_Life has quit [Excess Flood]
<mustmodify>
Does BigDecimal have some feature where BigDecimal.new('invalid') == nil instead of 0.0? Because 0 is kind of a dumb answer.
mrwn has quit [Remote host closed the connection]
tubuliferous has joined #ruby
Bacta has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lord_of_Life has joined #ruby
jmignault has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
aupadhye has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
bronson has joined #ruby
jottr has quit [Read error: Connection reset by peer]
jottr has joined #ruby
brendan- has joined #ruby
gnufied has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
blackbom1 has quit [Ping timeout: 258 seconds]
ignarps has quit [Ping timeout: 260 seconds]
tubuliferous has quit [Ping timeout: 256 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polysics has joined #ruby
roshanavand__ has quit [Ping timeout: 268 seconds]
<apeiros>
mustmodify: oh wow, indeed. I'd expect an exception…
<hanmac>
mustmodify: BigDecimal("invalid") does cause an ArgumentError if that helps you
tubuliferous has joined #ruby
<hanmac>
hm okay BigDecimal.new("invalid") does that too
blackbom1 has joined #ruby
alexar_ has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros>
hanmac: which ruby version? (I'm still on 2.3)
<apeiros>
the weird thing is - RUBY_VERSION as code has worked in the past just fine…
aremaref has joined #ruby
bocaneri has quit [Remote host closed the connection]
hotpancakes has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
h1fuelcell has joined #ruby
reverberations has joined #ruby
splud has quit [Quit: splud]
Ax has joined #ruby
hutch34 has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
shayan_ has quit [Quit: shayan_]
h1fuelcell has quit [Ping timeout: 265 seconds]
milardovich has joined #ruby
skweek has quit [Ping timeout: 268 seconds]
Ax has quit [Ping timeout: 265 seconds]
agit0 has quit [Ping timeout: 245 seconds]
izaac has quit [Ping timeout: 250 seconds]
pilne has joined #ruby
izaac has joined #ruby
jottr has joined #ruby
jottr has quit [Client Quit]
milardovich has quit [Remote host closed the connection]
psychicist__ has quit [Read error: Connection reset by peer]
machinewar has quit []
Rodya_ has quit [Quit: Leaving...]
milardovich has joined #ruby
splud has joined #ruby
Kug3lis has joined #ruby
rwb has quit [Remote host closed the connection]
Kug3lis has quit [Client Quit]
nettoweb has joined #ruby
braincrash has quit [Ping timeout: 248 seconds]
milardovich has quit [Ping timeout: 252 seconds]
braincrash has joined #ruby
alexar_ has quit [Read error: Connection reset by peer]
neoncortex has joined #ruby
alexar has joined #ruby
alan_w has quit [Ping timeout: 256 seconds]
alexar has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 248 seconds]
alexar has joined #ruby
bronson has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kus has quit [Quit: Konversation terminated!]
agit0 has joined #ruby
Guest66 has joined #ruby
ruid_ has joined #ruby
bronson has quit [Ping timeout: 258 seconds]
xen0fon has quit [Quit: xen0fon]
dionysus69 has joined #ruby
polysics has joined #ruby
BTRE has joined #ruby
doubleemms has joined #ruby
nankyokusei has joined #ruby
sepp2k1 has quit [Quit: Leaving.]
rwb has joined #ruby
xen0fon has joined #ruby
hotpancakes has quit []
dionysus69 has quit [Ping timeout: 256 seconds]
dionysus70 has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
polysics has quit [Ping timeout: 248 seconds]
micah has joined #ruby
<micah>
i've got a simple rails app (rack) that works fine. I want to run a second one, using the same code base, but change some values. I can create a whole new repository with the new values, but it seems like I should be able to pass a variable in and use it in the app?
dionysus70 is now known as dionysus69
ruid_ is now known as ruind
jgt has joined #ruby
ruind is now known as ruid
ruid has quit [Changing host]
ruid has joined #ruby
hutch34 has quit [Ping timeout: 245 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nanoz has quit [Read error: Connection reset by peer]
<catphish>
zenspider: i probably should :) is it basically a binary search on an integer hash of the input?
<apeiros>
hm, charliesome is not on
shayan_ has quit [Quit: shayan_]
<catphish>
anyway, that makes sense now, thanks zenspider :)
<catphish>
would have been easier if the bot wasnt being an asshat :)
shayan_ has joined #ruby
<zenspider>
catphish: no, not really... but yes the hash values are involved to bin them
nankyokusei has joined #ruby
<catphish>
zenspider: awesomely the #hash of an array is some function of the #hash of everything in the array
<catphish>
which is really what i was hoping, i wanted to be able to do things like {[1,2] => value}[1,2]
<catphish>
and that works
Azure has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
<apeiros>
catphish: any object which implements sensible #eql? and #hash methods can be used as a hash key
<catphish>
apeiros: fantastic, that seems to be the case for array :)
<apeiros>
just remember that mutating a key turns the hash inconsistent
<zenspider>
catphish: until you modify the contents of an array already used as a key... then things go awry
<apeiros>
you can use Hash#rehash, but that's a strong smell
<catphish>
well i won't do that :)
<zenspider>
problem: solved
a7d7p has joined #ruby
<catphish>
it's a really simple use case, i want to correlate packets from the same source IP and port, and [ip, port] seemed neater than "#{ip}:#{port}" as a key :)
nankyokusei has quit [Ping timeout: 252 seconds]
<catphish>
then i started thinking about why the latter would work and the former wouldn't
<catphish>
thanks all
djbkd has quit [Quit: My people need me...]
<zenspider>
n/p
<catphish>
except you ruby[bot]
SeepingN has joined #ruby
hahuang61 has quit [Ping timeout: 258 seconds]
<apeiros>
catphish: not really its fault
<apeiros>
(except for handling the server errors badly)
<catphish>
it appeared to be passing through an error
tubuliferous has quit [Ping timeout: 252 seconds]
rwb has joined #ruby
<apeiros>
catphish: the eval.in servers (external service ruboto uses for eval) crash with an internal server error. and ruboto has a bug handling that server error (which is the exception you see)
<catphish>
oooh ok :)
<catphish>
apeiros: just coincidence that my code had a [] call :)
<apeiros>
yes
loechel has quit [Remote host closed the connection]
nofxx has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
phoo1234567 has quit [Quit: Gotta go]
jenrzzz has quit [Ping timeout: 258 seconds]
<zenspider>
apeiros: huh. the code I pasted doesn't error if I paste it into eval.in directly? is it the wrapper morphing the code to cause it to output?
<apeiros>
zenspider: I had `puts "hi"` in eval.in and it crashed with an internal server error. so I think it's randomly crashing.
<zenspider>
ah! suck
<apeiros>
sadly yes
<apeiros>
but I'll fix the reporting of the error on saturday
<apeiros>
but now pillow hitting time
xen0fon has joined #ruby
Pumukel has joined #ruby
raul782 has quit [Ping timeout: 252 seconds]
a7d7p has quit [Quit: a7d7p]
symm has joined #ruby
symm- has quit [Ping timeout: 248 seconds]
saslam has quit [Ping timeout: 248 seconds]
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
Pumukel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
raul782 has joined #ruby
jgt1 has joined #ruby
shayan_ has quit [Quit: shayan_]
frozengeek has quit [Quit: frozengeek]
c355e3b has joined #ruby
raul782 has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 246 seconds]
jgt1 has quit [Ping timeout: 246 seconds]
montanonic has joined #ruby
shayan_ has joined #ruby
Pumukel has joined #ruby
marr has quit [Ping timeout: 248 seconds]
charliesome has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]