jhass changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
rajdesai has joined #ruby
polyidus has joined #ruby
govg has quit [Ping timeout: 244 seconds]
bruce_lee has quit [Remote host closed the connection]
govg has joined #ruby
polyidus has quit [Client Quit]
hutch34 has joined #ruby
xall has joined #ruby
rajdesai has quit [Remote host closed the connection]
vdamewood has joined #ruby
byteflame has quit [Ping timeout: 258 seconds]
polyidus has joined #ruby
Guest38_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shmuli has joined #ruby
shmuli has quit [Read error: Connection reset by peer]
rajdesai has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
polysics has quit [Read error: Connection reset by peer]
polysics has joined #ruby
polyidus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polyidus has joined #ruby
polysics has quit [Read error: Connection reset by peer]
polysics has joined #ruby
polyidus has quit [Client Quit]
IanMalcolm has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polysics has quit [Ping timeout: 258 seconds]
nando293921 has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
leea has quit [Ping timeout: 244 seconds]
the_rhizo has quit [Ping timeout: 265 seconds]
jpterry has quit [Read error: Connection reset by peer]
zarubin has joined #ruby
airdisa has quit []
polyidus has joined #ruby
Rodya_ has quit [Remote host closed the connection]
the_rhizo has joined #ruby
leea has joined #ruby
zarubin has quit [Ping timeout: 244 seconds]
Torrone has quit [Quit: This computer has gone to sleep]
sp__ has quit [Quit: leaving]
marr has quit [Ping timeout: 260 seconds]
roflmyeggo has joined #ruby
shmuli has joined #ruby
Spami has joined #ruby
Spami has quit [Client Quit]
jpterry has joined #ruby
byteflame has joined #ruby
Nahra has quit [Read error: Connection reset by peer]
Nahra has joined #ruby
polyidus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Torrone has joined #ruby
shmuli has quit [Remote host closed the connection]
Aerlinger has joined #ruby
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
polyidus has joined #ruby
hahuang61 has joined #ruby
LoneHerm_ has joined #ruby
byteflame has quit [Ping timeout: 244 seconds]
A_Drone has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
SteenJobs has joined #ruby
the_rhizo has quit [Ping timeout: 276 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
LoneHerm_ has quit [Ping timeout: 244 seconds]
byteflame has joined #ruby
replay has quit []
Nahra has quit [Ping timeout: 250 seconds]
A_Drone has quit [Ping timeout: 258 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Madplatypus has joined #ruby
karapetyan has quit [Remote host closed the connection]
SnowboardTechie has joined #ruby
aghalarp has joined #ruby
karapetyan has joined #ruby
SilverKey has quit [Quit: Halted.]
Rodya_ has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
the_rhizo has joined #ruby
SilverKey has joined #ruby
rajdesai has quit [Remote host closed the connection]
Salve has quit []
the_rhizo has quit [Ping timeout: 244 seconds]
Dimik has quit [Ping timeout: 244 seconds]
rajdesai has joined #ruby
<r_rios> Hello, all. I'm chaining a select operation with a map operation and I want a variable I defined in the select block to be passed to the map block. Is that somehow possible?
A_Drone has joined #ruby
JeanCarloMachado has joined #ruby
A_Drone has quit [Remote host closed the connection]
sumobob has joined #ruby
ruby[bot] has joined #ruby
rajdesai has quit [Remote host closed the connection]
A_Drone has joined #ruby
pawnbox has joined #ruby
AzureStigma has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
polyidus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Vingador has quit [Remote host closed the connection]
nando293921 has joined #ruby
shmuli has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
A_Drone has quit [Remote host closed the connection]
kyleolivo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rajdesai has joined #ruby
caustic has joined #ruby
patche_ has joined #ruby
nando293921 has quit [Ping timeout: 258 seconds]
shmuli has quit [Remote host closed the connection]
rajdesai has quit [Ping timeout: 244 seconds]
Torrone has quit [Quit: This computer has gone to sleep]
spudowiar has quit [Quit: Leaving.]
vinleod has joined #ruby
vdamewood has quit [Ping timeout: 244 seconds]
vinleod is now known as vdamewood
shmuli has joined #ruby
RegulationD has quit [Read error: Connection reset by peer]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
byteflame has quit [Ping timeout: 260 seconds]
plugine has joined #ruby
TheWhip has joined #ruby
RegulationD has joined #ruby
plugine has quit [Remote host closed the connection]
shmuli has quit [Remote host closed the connection]
plugine has joined #ruby
plugine has quit [Client Quit]
shinnya has joined #ruby
zarubin has joined #ruby
TheWhip has quit [Ping timeout: 260 seconds]
craysiii has joined #ruby
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zarubin has quit [Ping timeout: 244 seconds]
sumobob has quit [Ping timeout: 250 seconds]
Ropeney has joined #ruby
marloi has quit [Ping timeout: 264 seconds]
swills__ has joined #ruby
swills has quit [Ping timeout: 244 seconds]
swills_ has quit [Ping timeout: 250 seconds]
LoneHermit has joined #ruby
Dimik-- has joined #ruby
SnowboardTechie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bluOxigen has joined #ruby
bluOxigen has left #ruby [#ruby]
swills__ has quit [Max SendQ exceeded]
caustic has quit [Quit: Textual IRC Client: www.textualapp.com]
Regulati_ has joined #ruby
jhack has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
<lupine> r_rios: not really, the easiest thing to do is define it to a local variable in the tightest scope shared by the select and map block
<lupine> assign it*
RegulationD has quit [Ping timeout: 240 seconds]
SilverKey has quit [Quit: Halted.]
swills has joined #ruby
rajdesai has joined #ruby
SnowboardTechie has joined #ruby
rajdesai has quit [Remote host closed the connection]
vdamewood has quit [Quit: Life beckons.]
sumobob has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
postmodern has joined #ruby
leea has joined #ruby
<postmodern> shouldn't webmock hook open-uri, since it uses Net::HTTP under the hood?
cibs has quit [Ping timeout: 240 seconds]
A_Drone has joined #ruby
<jhack> in the last episode of Mr. Robot, was he writing his metasploit in ruby
<jhack> ?
Aerlinger has quit [Remote host closed the connection]
Aerlinger has joined #ruby
<postmodern> jhack, metasploit is written in ruby
cibs has joined #ruby
swills__ has joined #ruby
<jhack> LOL
<jhack> oh....
<jhack> thanks for clarifying that
marloi has joined #ruby
leea has quit [Ping timeout: 276 seconds]
Aerlinger has quit [Ping timeout: 258 seconds]
shmuli has joined #ruby
sumobob has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
marloi has quit [Ping timeout: 264 seconds]
djellemah has quit [Ping timeout: 240 seconds]
PoweredByPrana has joined #ruby
rajdesai has joined #ruby
shmuli has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 252 seconds]
shinnya has quit [Ping timeout: 244 seconds]
Es0teric has joined #ruby
polysics has joined #ruby
leea has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
polysics has quit [Ping timeout: 244 seconds]
AndrewIsHere has quit [Remote host closed the connection]
PoweredByPrana has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kasky has quit [Read error: Connection reset by peer]
PoweredByPrana has joined #ruby
sdothum has joined #ruby
douglascorrea has joined #ruby
A_Drone has quit [Remote host closed the connection]
cdg has joined #ruby
jgt3 has quit [Ping timeout: 265 seconds]
JakFrist has joined #ruby
bjh13 has joined #ruby
<thanoj> exit
thanoj has quit [Quit: leaving]
djbkd has quit [Quit: My people need me...]
xue has joined #ruby
SilverKey has joined #ruby
r0_0 has joined #ruby
shmuli has joined #ruby
r0_0 has left #ruby [#ruby]
jgt3 has joined #ruby
elifoster has joined #ruby
OTORelic4 has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
matp_ is now known as matp
r_rios has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
OTORelic has joined #ruby
jgt3 has quit [Ping timeout: 244 seconds]
Velizar has joined #ruby
OTORelic4 has quit [Ping timeout: 258 seconds]
rajdesai has quit [Remote host closed the connection]
Spami has joined #ruby
Velizar has quit [Client Quit]
Devalo has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
govg has quit [Ping timeout: 252 seconds]
shmuli has quit [Remote host closed the connection]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SilverKey has quit [Quit: Halted.]
aghalarp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Devalo has quit [Ping timeout: 250 seconds]
pokalyis has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
shmuli has joined #ruby
SnowboardTechie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkazak has quit [Quit: Sleep.....ing....]
karapetyan has joined #ruby
rkazak has joined #ruby
cd-rum_ has quit [Ping timeout: 240 seconds]
Spami_ has joined #ruby
Spami has quit [Ping timeout: 264 seconds]
SilverKey has joined #ruby
A_Drone has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xue has quit [Ping timeout: 258 seconds]
pokalyis has joined #ruby
PoweredByPrana has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whathappens has quit [Read error: Connection reset by peer]
davedev24 has quit []
chipotle has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PoweredByPrana has joined #ruby
whathappens has joined #ruby
chipotle has quit [Max SendQ exceeded]
PoweredByPrana has quit [Client Quit]
chipotle has joined #ruby
chipotle has quit [Max SendQ exceeded]
chipotle has joined #ruby
chipotle has quit [Max SendQ exceeded]
chipotle has joined #ruby
chipotle has quit [Max SendQ exceeded]
chipotle has joined #ruby
braincrash has quit [Quit: bye bye]
SilverKey has quit [Quit: Halted.]
shmuli has quit [Remote host closed the connection]
chipotle has quit [Max SendQ exceeded]
rkazak has quit [Quit: Sleep.....ing....]
chipotle has joined #ruby
chipotle has quit [Max SendQ exceeded]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkazak has joined #ruby
chipotle has joined #ruby
SpikeMaster has joined #ruby
chipotle has quit [Max SendQ exceeded]
pokalyis has joined #ruby
SpikeMaster has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
jenrzzz has quit [Ping timeout: 258 seconds]
alfiemax has quit [Ping timeout: 244 seconds]
SilverKey has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
tmtwd has joined #ruby
Silthias has quit [Ping timeout: 244 seconds]
cdg has quit [Ping timeout: 250 seconds]
braincras has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Silthias has joined #ruby
shmuli has joined #ruby
A_Drone has quit [Remote host closed the connection]
pokalyis has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
arescorpio has joined #ruby
jaequery has joined #ruby
A_Drone has joined #ruby
Helheim has quit [Ping timeout: 258 seconds]
rajdesai has joined #ruby
Velizar has joined #ruby
govg has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pokalyis has joined #ruby
ryan_notabot has quit [Ping timeout: 258 seconds]
<nofxx> jhack, haha ruby got into a series?
jgt3 has joined #ruby
SteenJobs has joined #ruby
rajdesai has quit [Ping timeout: 250 seconds]
aibot_ has quit [Ping timeout: 265 seconds]
diegoviola has quit [Quit: WeeChat 1.5]
beilabs has joined #ruby
<nofxx> mr robot got the same feeling as independence day and star wars for me: get a good story, f* it with teens and racial quotas, getting all the hope that good films will be made again and put it in the trash
Helheim has joined #ruby
pawnbox has joined #ruby
etetz has joined #ruby
karapetyan has quit [Remote host closed the connection]
jgt3 has quit [Ping timeout: 252 seconds]
ThinTim has joined #ruby
LoneHermit has joined #ruby
Mrgoose2 has joined #ruby
<Mrgoose2> bundler: failed to load command: rackup , any idea why i would get that
aibot_ has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
etetz has quit [Ping timeout: 264 seconds]
etetz has joined #ruby
pokalyis has joined #ruby
xall has quit [Ping timeout: 276 seconds]
LoneHermit has quit [Ping timeout: 265 seconds]
TheWhip has joined #ruby
etetz has quit [Ping timeout: 244 seconds]
Spami has joined #ruby
etetz has joined #ruby
xall has joined #ruby
pawnbox has quit [Remote host closed the connection]
paradisaeidae_ has joined #ruby
pawnbox has joined #ruby
shmuli has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
TheWhip has quit [Remote host closed the connection]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
etetz has quit [Ping timeout: 252 seconds]
pokalyis has joined #ruby
gix has quit [Ping timeout: 240 seconds]
rkazak has quit [Quit: Sleep.....ing....]
gix has joined #ruby
dionysus69 has joined #ruby
roflmyeggo has quit [Ping timeout: 260 seconds]
macsteps_ has quit []
rkazak has joined #ruby
iLogic has quit [Ping timeout: 240 seconds]
macsteps has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
craigp has quit [Ping timeout: 240 seconds]
xue has joined #ruby
xue has quit [Max SendQ exceeded]
xue has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SteenJobs has quit [Quit: SteenJobs]
pokalyis has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
polysics has joined #ruby
djellemah has joined #ruby
Chris3y_RubyNewb has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
polysics has quit [Ping timeout: 244 seconds]
<postmodern> what is a good minimum ruby version to require these days for a gem?
<postmodern> 1.9.3 is no longer maintained, so maybe >= 2.0.0?
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkazak has quit [Quit: Sleep.....ing....]
grenierm has joined #ruby
<Nilium> What version do you use normally?
xue has quit [Ping timeout: 240 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pokalyis has joined #ruby
<postmodern> Nilium, was previously >= 1.9.3 to exclude 1.8 and the awkward 1.9.1 and 1.9.2 releases
<postmodern> which contained various bugs we shall not speak of
xue has joined #ruby
sarbs has quit [Max SendQ exceeded]
sarbs has joined #ruby
<postmodern> this is for the spidr gem btw
rajdesai has joined #ruby
s2013 has joined #ruby
rajdesai has quit [Read error: Connection reset by peer]
rajdesai has joined #ruby
s2013 has quit [Client Quit]
enterprisey has joined #ruby
jishankai has joined #ruby
jgt3 has joined #ruby
TheWhip has joined #ruby
yfeldblum has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
pawnbox has quit [Remote host closed the connection]
hahuang61 has joined #ruby
tmtwd has quit [Ping timeout: 276 seconds]
jgt3 has quit [Ping timeout: 260 seconds]
Spami has quit [Quit: This computer has gone to sleep]
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aleskandro has quit [Remote host closed the connection]
iMadper has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
amclain has quit [Quit: Leaving]
spongebonghemppa has quit [Quit: Page closed]
dminuoso has joined #ruby
pawnbox has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
Velizar has quit [Ping timeout: 258 seconds]
johnny56 has joined #ruby
hipertracker has joined #ruby
macsteps has quit [Remote host closed the connection]
Spami has joined #ruby
alfiemax has joined #ruby
SilverKey has quit [Quit: Cheerio!]
Velizar has joined #ruby
Cohedrin has joined #ruby
s2013 has joined #ruby
s2013 has quit [Client Quit]
s2013 has joined #ruby
SilverKey has joined #ruby
postmodern has quit [Ping timeout: 250 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ThinTim has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patche has joined #ruby
pokalyis has joined #ruby
patche has quit [Client Quit]
patche_ is now known as patche
craigp has joined #ruby
rajdesai_ has joined #ruby
threadNecromance has joined #ruby
rajdesai_ has quit [Remote host closed the connection]
rajdesai has quit [Read error: Connection reset by peer]
rajdesai has joined #ruby
iMadper` has joined #ruby
M-mistake has quit [Read error: Connection reset by peer]
M-shine has quit [Read error: Connection reset by peer]
TheGillies has quit [Read error: Connection reset by peer]
M-manveru has quit [Write error: Connection reset by peer]
threadNecromance has quit [Client Quit]
threadNecromance has joined #ruby
A_Drone has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
TomyLobo has joined #ruby
iMadper has quit [Ping timeout: 276 seconds]
rajdesai has quit [Remote host closed the connection]
rajdesai has joined #ruby
postmodern has joined #ruby
jackjackdripper has joined #ruby
dminuoso has quit [Remote host closed the connection]
OTORelic has quit [Ping timeout: 258 seconds]
rajdesai has quit [Ping timeout: 240 seconds]
the_rhizo has joined #ruby
Spami has joined #ruby
rkazak has joined #ruby
shellie_ has quit [Ping timeout: 244 seconds]
A_Drone has joined #ruby
enterprisey has quit [Quit: Leaving]
chouhoulis has quit [Remote host closed the connection]
phrozen77 has joined #ruby
dminuoso has joined #ruby
M-shine has joined #ruby
anahtar has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
ThinTim has joined #ruby
shellie_ has joined #ruby
pokalyis has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
jgt3 has joined #ruby
TPug has joined #ruby
postmodern has quit [Quit: Leaving]
Sucks has joined #ruby
A_Drone has quit [Remote host closed the connection]
duckpuppy has joined #ruby
Sucks has quit [Max SendQ exceeded]
nadir has quit [Ping timeout: 250 seconds]
A_Drone has joined #ruby
jgt3 has quit [Ping timeout: 244 seconds]
LoneHerm_ has joined #ruby
astrobun_ has joined #ruby
l4v2 has quit [Quit: l4v2]
<anahtar> Hello from Turkey :)
bocaneri has joined #ruby
Sucks has joined #ruby
Sucks has quit [Max SendQ exceeded]
nadir has joined #ruby
Sucks has joined #ruby
SnowboardTechie has joined #ruby
PoweredByPrana has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Ping timeout: 250 seconds]
pokalyis has joined #ruby
A_Drone has quit [Remote host closed the connection]
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobun_ has quit [Remote host closed the connection]
A_Drone has joined #ruby
astrobun_ has joined #ruby
PoweredByPrana has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shmuli has joined #ruby
aupadhye has joined #ruby
giz|work|2 has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pokalyis has joined #ruby
macsteps has joined #ruby
threadNecromance has quit [Remote host closed the connection]
SnowboardTechie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
arescorpio has quit [Quit: Leaving.]
last_staff has joined #ruby
TheGillies has joined #ruby
Pupp3tm4st3r has joined #ruby
xlegoman has joined #ruby
bjh13 has quit [Quit: ERC (IRC client for Emacs 25.1.50.10)]
macsteps has quit [Ping timeout: 240 seconds]
A_Drone has quit [Read error: Connection reset by peer]
the_rhizo has quit [Ping timeout: 264 seconds]
A_Drone has joined #ruby
chouhoulis has joined #ruby
threadNecromance has joined #ruby
Sucks has quit [Remote host closed the connection]
RegulationD has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
Regulati_ has quit [Ping timeout: 244 seconds]
raeoks has joined #ruby
pokalyis has joined #ruby
s2013 has joined #ruby
ur5us has joined #ruby
tax has quit [Quit: Leaving]
aufi has joined #ruby
tax has joined #ruby
Rodya_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
TomyLobo has quit [Ping timeout: 264 seconds]
Lewix_ has quit [Quit: #javascript]
ur5us has quit [Ping timeout: 276 seconds]
SnowboardTechie has joined #ruby
raeoks has quit [Quit: Textual IRC Client: www.textualapp.com]
Lewix has joined #ruby
tax has quit [Excess Flood]
yfeldblum has quit [Ping timeout: 250 seconds]
tax has joined #ruby
giz|work|2 has quit [Ping timeout: 244 seconds]
polysics has joined #ruby
armyriad has quit [Quit: Leaving]
OTORelic has joined #ruby
Velizar has quit [Ping timeout: 258 seconds]
astrobun_ has quit [Read error: Connection reset by peer]
astrobu__ has joined #ruby
Velizar has joined #ruby
shmuli has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shmuli has joined #ruby
shmuli has quit [Remote host closed the connection]
polysics has quit [Ping timeout: 244 seconds]
pokalyis has joined #ruby
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
iMadper`` has joined #ruby
douglascorrea has quit [Remote host closed the connection]
astrobu__ has quit [Read error: No route to host]
shmuli has joined #ruby
douglascorrea has joined #ruby
iMadper` has quit [Ping timeout: 240 seconds]
OTORelic has quit [Ping timeout: 260 seconds]
djbkd has quit []
giz|work|2 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
SnowboardTechie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
grenierm has quit [Quit: grenierm]
douglascorrea has quit [Ping timeout: 244 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
andikr has joined #ruby
PickAndMix has quit [Quit: WeeChat 1.4]
ICantCook has quit [Quit: bye]
jgt3 has joined #ruby
the_drow_ has joined #ruby
shmuli has quit [Remote host closed the connection]
shmuli has joined #ruby
karapetyan has joined #ruby
hahuang61 has joined #ruby
grenierm has joined #ruby
giz|work|2 has quit [Ping timeout: 250 seconds]
LoneHermit has joined #ruby
jgt3 has quit [Ping timeout: 250 seconds]
karapetyan has quit [Ping timeout: 244 seconds]
Devalo has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
firstdayonthejob has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
LoneHermit has quit [Ping timeout: 250 seconds]
shmuli has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 250 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shmuli has joined #ruby
shmuli has quit [Remote host closed the connection]
the_drow_ has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby
giz|work|2 has joined #ruby
dhollinger has quit [Ping timeout: 260 seconds]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
TheWhip_ has joined #ruby
raeoks has joined #ruby
the_rhizo has joined #ruby
macsteps has joined #ruby
TheWhip has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
elifoster has quit [Quit: sleep]
pawnbox has joined #ruby
ThinTim has quit [Quit: Textual IRC Client: www.textualapp.com]
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_rhizo has quit [Ping timeout: 240 seconds]
submitnine has joined #ruby
macsteps has quit [Ping timeout: 244 seconds]
symm- has joined #ruby
davidklsn has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
A_Drone has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
llaine has joined #ruby
llaine has left #ruby [#ruby]
Coldblackice_ has quit [Ping timeout: 250 seconds]
saneax_AFK is now known as saneax
Torrone has joined #ruby
Coldblackice has joined #ruby
Nahra has joined #ruby
aganov has joined #ruby
beilabs_ has joined #ruby
ixti has quit [Quit: WeeChat 1.5]
frozengeek has joined #ruby
djbkd has joined #ruby
xall has quit [Ping timeout: 252 seconds]
shmuli has joined #ruby
beilabs has quit [Ping timeout: 258 seconds]
frozengeek has quit [Client Quit]
max1 has joined #ruby
OTORelic has joined #ruby
M-manveru has joined #ruby
M-mistake has joined #ruby
davidklsn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davidklsn has joined #ruby
duckpuppy has joined #ruby
mark_66 has joined #ruby
shmuli has quit [Ping timeout: 250 seconds]
anisha has joined #ruby
ta_ has joined #ruby
OTORelic has quit [Ping timeout: 260 seconds]
hipertracker has quit [Quit: hipertracker]
A_Drone has joined #ruby
A_Drone has quit [Remote host closed the connection]
douglascorrea has joined #ruby
yeticry has quit [Ping timeout: 265 seconds]
duckpuppy has quit [Ping timeout: 260 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yeticry has joined #ruby
dionysus69 has quit [Remote host closed the connection]
A_Drone has joined #ruby
dionysus69 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
mtkd has quit [Ping timeout: 252 seconds]
mtkd has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
teclator has quit [Ping timeout: 264 seconds]
A_Drone has quit [Remote host closed the connection]
paradisaeidae_ has quit [Quit: ChatZilla 0.9.92 [Firefox 48.0/20160726073904]]
A_Drone has joined #ruby
jgt3 has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
A_Drone has quit [Remote host closed the connection]
Torrone has quit [Quit: This computer has gone to sleep]
jgt3 has quit [Ping timeout: 244 seconds]
haxrbyte has joined #ruby
blaxter has joined #ruby
pawnbox has joined #ruby
symm- has quit [Ping timeout: 264 seconds]
skade has joined #ruby
A_Drone has joined #ruby
mim1k_ has joined #ruby
mim1k has quit [Ping timeout: 244 seconds]
mrgrieves has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
skade has quit [Ping timeout: 252 seconds]
<ule> anahtar: hello
Torrone has joined #ruby
Snowy has joined #ruby
teclator has joined #ruby
grenierm has quit [Quit: grenierm]
tomphp has joined #ruby
xall has joined #ruby
blackgoat has quit [Ping timeout: 250 seconds]
haxrbyte has quit [Remote host closed the connection]
polysics has joined #ruby
giz|work|2 has quit [Ping timeout: 240 seconds]
<anahtar> ule: Have a nice day :)
jenrzzz has quit [Ping timeout: 258 seconds]
shmuli has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
polysics has quit [Read error: Connection reset by peer]
rkazak has quit [Quit: Sleep.....ing....]
polysics has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
TheWhip_ has quit [Remote host closed the connection]
yardenbar has quit [Remote host closed the connection]
<dminuoso> >> module M; def self.m; class_eval { define_method(:q) {} }; end; end; M.m; M.q
<ruby[bot]> dminuoso: # => undefined method `q' for M:Module (NoMethodError) ...check link for more (https://eval.in/618296)
<dminuoso> Where is the error in my line of thought?
astrobun_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
Dimik-- has quit [Ping timeout: 276 seconds]
frozengeek has joined #ruby
glcx_ has joined #ruby
TheWhip has joined #ruby
<dminuoso> Ohh!
<dminuoso> >> module M; def self.m; singleton_class.class_eval { define_method(:q) {} }; end; end; M.m; M.q
<ruby[bot]> dminuoso: # => nil (https://eval.in/618306)
<dminuoso> Is there a simpler way of doing this?
aupadhye has quit [Quit: Leaving]
<jhass> there's a define_singleton_method
aupadhye has joined #ruby
aupadhye is now known as aupadhye|intervi
aupadhye|intervi is now known as aupadhye
<dminuoso> >> module M; def self.m; define_singleton_method(:q) {}; end; end; M.m; M.q
<ruby[bot]> dminuoso: # => nil (https://eval.in/618308)
<dminuoso> jhass: Beautiful thanks.
xall has joined #ruby
A_Drone has quit [Remote host closed the connection]
OTORelic has joined #ruby
bad_ip has quit [Ping timeout: 260 seconds]
TheWhip has quit [Ping timeout: 258 seconds]
mim1k_ has quit [Quit: Reconnecting]
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
<dminuoso> jhass: What about my first example though, why didn't work as expected?
<dminuoso> Or doesn't class_eval change the default assignee for methods?
<dminuoso> No nevermind, it's about the default receiver actually.
leea has joined #ruby
xall has quit [Ping timeout: 265 seconds]
<jhass> class_eval does change the definee, yes, that's what makes it different from instance_eval in the first place, yes. Also yes, it doesn't matter for define_method, the receiver does. however there self is not the singleton class, it's the module instance (the instance of the singleton class)
<ule> anahtar: thanks
OTORelic has quit [Ping timeout: 258 seconds]
<jhass> so M.class_eval
djbkd has quit [Quit: My people need me...]
The_Phoenix1 has joined #ruby
<dminuoso> jhass: Ah that makes perfect sense now.
The_Phoenix1 has quit [Max SendQ exceeded]
<dminuoso> Thank you for explaining.
<jhass> yw
aalmenar has joined #ruby
aalmenar has quit [Changing host]
aalmenar has joined #ruby
A_Drone has joined #ruby
The_Phoenix1 has joined #ruby
The_Phoenix1 has quit [Max SendQ exceeded]
c0mrad3 has joined #ruby
rodfersou has joined #ruby
The_Phoenix1 has joined #ruby
The_Phoenix1 has quit [Max SendQ exceeded]
The_Phoenix1 has joined #ruby
The_Phoenix1 has quit [Max SendQ exceeded]
TheWhip has joined #ruby
The_Phoenix1 has joined #ruby
max1 is now known as pickandmix
Spami has quit [Quit: This computer has gone to sleep]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<dminuoso> jhass: It never occured to me that inside the context of a class self has different meanings "def self.foo" vs "self". :)
<dminuoso> But I guess it makes sense.
tomphp has joined #ruby
hahuang61 has joined #ruby
jgt3 has joined #ruby
<jhass> well, it doesn't? class A; a = self; def self.foo; b = self; end; end; here a and b are the same object
matp has quit [Remote host closed the connection]
matp_ has joined #ruby
<jhass> while you expected it to a's singleton class in your first example
<jhass> and def a.b is just syntax sugar for a.define_singleton_method(:b) if you so wish
xall has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
jgt3 has quit [Ping timeout: 264 seconds]
bigkevmcd has joined #ruby
Spami has joined #ruby
hutch34 has joined #ruby
Chair has joined #ruby
Jaxan has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
skade has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
xall has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
Derperperd has quit [Quit: Derperperd]
Spami has quit [Quit: This computer has gone to sleep]
shmuli has quit [Remote host closed the connection]
shmuli has joined #ruby
edwinvdgraaf has joined #ruby
shmuli has quit [Remote host closed the connection]
rodfersou has quit [Ping timeout: 244 seconds]
skade has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
shmuli has joined #ruby
shmuli has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
matp_ has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
shmuli has joined #ruby
craysiii has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rodfersou has joined #ruby
tomphp has quit [Ping timeout: 250 seconds]
spudowiar has joined #ruby
jgt3 has joined #ruby
xall has joined #ruby
tomphp has joined #ruby
c355e3b has joined #ruby
tvw has joined #ruby
aupadhye has quit [Ping timeout: 264 seconds]
xall has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
Mon_Ouie has joined #ruby
KaliLinuxGR has joined #ruby
nofxx has quit [Ping timeout: 250 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
aupadhye has joined #ruby
fergal_ has joined #ruby
hahuang65 has quit [Ping timeout: 258 seconds]
A_Drone has quit [Ping timeout: 252 seconds]
tubuliferous_ has quit [Ping timeout: 244 seconds]
A_Drone has joined #ruby
astrobun_ has joined #ruby
aupadhye has quit [Client Quit]
etetz has joined #ruby
aupadhye has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
mim1k has quit [Ping timeout: 244 seconds]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
cfec0b8d has joined #ruby
vuoto has joined #ruby
braincras has quit [Ping timeout: 244 seconds]
LACampbell has joined #ruby
<LACampbell> Is there anyway to pass the output of exec to /dev/null?
Silthias has joined #ruby
<LACampbell> 'exec "mpg123", "-q", @char + ".mp3", "2>/dev/null"' didn't quite work as expected
etetz has quit [Ping timeout: 264 seconds]
threadNecromance has quit [Quit: Goodnight, sweet prince.]
braincrash has joined #ruby
<Mon_Ouie> Before calling exec, call $stderr.reopen File:::NULL
iMadper`` has quit [Ping timeout: 252 seconds]
duckpuppy has joined #ruby
OTORelic has joined #ruby
ecksit has joined #ruby
xall has joined #ruby
polysics has quit []
Torrone_1 has joined #ruby
Torrone has quit [Ping timeout: 276 seconds]
A_Drone has quit [Remote host closed the connection]
mim1k has joined #ruby
Silthias has quit [Ping timeout: 260 seconds]
Torrone_1 has quit [Read error: Connection reset by peer]
duckpuppy has quit [Ping timeout: 240 seconds]
OTORelic has quit [Ping timeout: 258 seconds]
Torrone_1 has joined #ruby
xall has quit [Ping timeout: 240 seconds]
<LACampbell> thanks Mon_Ouie. I can shutup a lot of output channels now. was driving me nuts
Coldblackice has quit [Ping timeout: 244 seconds]
harfangk has joined #ruby
giz|work|2 has joined #ruby
braincrash has quit [Ping timeout: 258 seconds]
ur5us has joined #ruby
braincrash has joined #ruby
ecksit has quit [Quit: Textual IRC Client: www.textualapp.com]
vuoto has quit [Remote host closed the connection]
cfec0b8d has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
saneax is now known as saneax_AFK
face has quit [Ping timeout: 244 seconds]
Devalo has joined #ruby
Rodya_ has quit [Remote host closed the connection]
xall has joined #ruby
saneax_AFK is now known as saneax
Devalo has quit [Ping timeout: 250 seconds]
skade has joined #ruby
xall has quit [Ping timeout: 240 seconds]
hk238 has joined #ruby
pandaant has joined #ruby
thomas has quit [Quit: leaving]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
skade has quit [Ping timeout: 276 seconds]
biberu has joined #ruby
lizard2010 has quit [Ping timeout: 250 seconds]
Silthias has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
KaliLinuxGR has quit [Remote host closed the connection]
grn has joined #ruby
shmuli has quit [Remote host closed the connection]
craigp has quit [Quit: WeeChat 1.5]
xall has joined #ruby
craigp has joined #ruby
shmuli has joined #ruby
toretore has joined #ruby
AlexJakeGreen has joined #ruby
workmad3 has joined #ruby
pokalyis has joined #ruby
glcx_ has quit [Quit: This computer has gone to sleep]
chouhoulis has joined #ruby
nisstyre has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 258 seconds]
shmuli has quit [Remote host closed the connection]
sdothum has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
OTORelic has joined #ruby
braincrash has quit [Ping timeout: 244 seconds]
minimalism has quit [Quit: minimalism]
A_Drone has joined #ruby
xall has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
ur5us has quit [Remote host closed the connection]
mim1k has joined #ruby
ur5us has joined #ruby
OTORelic has quit [Ping timeout: 260 seconds]
macsteps has joined #ruby
Torrone_1 has quit [Quit: This computer has gone to sleep]
xall has quit [Ping timeout: 244 seconds]
craigp has quit [Ping timeout: 240 seconds]
ryan_notabot has joined #ruby
ryan_notabot has quit [Remote host closed the connection]
A_Drone has quit [Ping timeout: 250 seconds]
ur5us has quit [Ping timeout: 252 seconds]
tomphp has joined #ruby
macsteps has quit [Ping timeout: 252 seconds]
Velizar has quit [Quit: Velizar]
tomphp has quit [Max SendQ exceeded]
tomphp has joined #ruby
A_Drone has joined #ruby
tomphp has quit [Max SendQ exceeded]
tomphp has joined #ruby
A_Drone has quit [Remote host closed the connection]
giz|work|2 has quit [Ping timeout: 240 seconds]
binaryplease1 has joined #ruby
shum has joined #ruby
A_Drone has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
binaryplease has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
zotherstupidguy has joined #ruby
xall has joined #ruby
alfiemax has quit [Ping timeout: 250 seconds]
craigp has joined #ruby
matp has joined #ruby
TheWhip has quit [Remote host closed the connection]
marr has joined #ruby
xall has quit [Ping timeout: 258 seconds]
binaryplease1 is now known as binaryplease
koooge has quit [Quit: Leaving...]
AzureStigma has joined #ruby
AzureStigma has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 258 seconds]
pawnbox has joined #ruby
alfiemax has joined #ruby
antgel has joined #ruby
r_rios has joined #ruby
TheWhip has joined #ruby
ledestin has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
aryaching has joined #ruby
shum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
A_Drone has quit [Ping timeout: 250 seconds]
sdothum has joined #ruby
A_Drone has joined #ruby
xall has joined #ruby
Torrone_1 has joined #ruby
umdstu has joined #ruby
sdothum has quit [Ping timeout: 252 seconds]
dminuoso has quit [Ping timeout: 250 seconds]
sdothum has joined #ruby
dminuoso has joined #ruby
xall has quit [Ping timeout: 258 seconds]
pawnbox has quit [Remote host closed the connection]
grn has quit [Remote host closed the connection]
pawnbox has joined #ruby
pandaant has quit [Remote host closed the connection]
Torrone has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
skade has joined #ruby
rafadc has joined #ruby
etetz has joined #ruby
Torrone_1 has quit [Ping timeout: 244 seconds]
<fergal_> hi guys, i’m trying to write an rspec test that calls a method with bogus data, and expects the method to raise a TypeError - does anyone have any resources on expecing loggers to receive errors?
Sammichmaker has quit [Ping timeout: 258 seconds]
duckpuppy has joined #ruby
etetz has quit [Ping timeout: 244 seconds]
strg has joined #ruby
grn has joined #ruby
strg has left #ruby [#ruby]
<dminuoso> fergal_: expect { ... }.to raise_error(TypeError) ?
<dminuoso> Note this requires the block form.
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
Torrone has quit [Ping timeout: 250 seconds]
OTORelic has joined #ruby
Torrone has joined #ruby
duckpuppy has quit [Ping timeout: 258 seconds]
The_Phoenix1 has quit [Read error: Connection reset by peer]
Azure has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Quit: dionysus69]
xall has joined #ruby
ledestin has joined #ruby
The_Phoenix1 has joined #ruby
OTORelic has quit [Ping timeout: 258 seconds]
Torrone has quit [Client Quit]
Hyuk has joined #ruby
spudowiar has quit [Quit: Leaving.]
Azure has joined #ruby
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
hanmac has joined #ruby
the_drow has joined #ruby
xall has quit [Ping timeout: 244 seconds]
JeanCarloMachado has joined #ruby
astrobun_ has quit [Remote host closed the connection]
ldnunes has joined #ruby
babblebre has joined #ruby
Azure|dc has joined #ruby
Azure has quit [Ping timeout: 258 seconds]
dionysus69 has joined #ruby
alfiemax has quit [Ping timeout: 276 seconds]
mim1k has quit [Ping timeout: 260 seconds]
last_staff has quit [Quit: last_staff]
mim1k has joined #ruby
last_staff has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
A_Drone has quit [Read error: Connection reset by peer]
xall has joined #ruby
blackgoat has joined #ruby
A_Drone has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xue has quit [Ping timeout: 258 seconds]
ruid has quit [Ping timeout: 264 seconds]
swills__ has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 264 seconds]
Dimik-- has joined #ruby
tyang has joined #ruby
mim1k has quit [Ping timeout: 244 seconds]
ferr has joined #ruby
airdisa has joined #ruby
Dimik-- has quit [Ping timeout: 250 seconds]
saneax is now known as saneax_AFK
tk__ has joined #ruby
<fergal_> guys i’m testing a method that parses a hash and raises exceptions if there are formatting errors. is there a way to hard code malformed hashes in ruby? i’m currently doing something like `{:my_key” => {:other_key => value}}`, which when i run my app, fails with an excpected exception, but when i run my test, i am not getting the same exception, presumably because ruby is presumably cleaning up the values to form the hash?
bonhoeffer has joined #ruby
<bonhoeffer> how do i define an instance method in the console -- if i've already defined a user and want @user.foo('hi') would that be: def User::foo(string)
<dminuoso> bonhoeffer: You can simply reopen the User class.
<dminuoso> class User; def foo; ...; end; end
skweek has quit [Ping timeout: 258 seconds]
<bonhoeffer> yeah -- easy enough -- but i'm curious -- if you are in irb -- can you send to an existing class definition
<bonhoeffer> you would be augmenting the user class
<dminuoso> fergal_: Show us some code.
<dminuoso> bonhoeffer: I just told you one variant. You can also use class_eval or send to access define_method
<dminuoso> bonhoeffer: Im not sure what you want to do instead of augmentin.g
kobain has joined #ruby
<bonhoeffer> thanks -- i'll look into those
<dminuoso> bonhoeffer: Those are effectively the same thing, I am not sure what you mean by "can you send to an existing class definition"
<bonhoeffer> what i would like to be able to do is test inside the console -- to define a method there and play with it
<bonhoeffer> without reloading the console
Snowy has quit [Remote host closed the connection]
craigp_ has joined #ruby
<dminuoso> 14:12 < dminuoso> class User; def foo; ...; end; end
<dminuoso> And that doesn't do this how?
openstruct has joined #ruby
<dminuoso> bonhoeffer: "console" are you talking about rails?
<bonhoeffer> dminuoso: it would
saneax_AFK is now known as saneax
<bonhoeffer> i missed how i could use that
<dminuoso> bonhoeffer: If so, you can use reload! to make source code chances visible to your rails console.
craigp has quit [Ping timeout: 252 seconds]
<bonhoeffer> irb -- but could be rails console
<dminuoso> bonhoeffer: (This is really useful in rails, as it lets you write code and interactively test code as you write it)
<rails> AAAA
rails has left #ruby ["I thought what I'd do was, I'd pretend I was one of those deaf-mutes."]
<bonhoeffer> yeah
<bonhoeffer> i like that
the_drow has quit [Quit: This computer has gone to sleep]
glcx_ has joined #ruby
killerkamel has quit [Ping timeout: 244 seconds]
Snowy has joined #ruby
hahuang65 has joined #ruby
tyang has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 244 seconds]
macsteps has joined #ruby
blackgoat has quit [Ping timeout: 264 seconds]
face has joined #ruby
<fergal_> dminuoso: it’s okay i got it sorted, just needed to use triple quotes, thanks!
hahuang65 has quit [Ping timeout: 258 seconds]
A_Drone has quit [Remote host closed the connection]
macsteps has quit [Ping timeout: 276 seconds]
<fergal_> if i have `rescue TypeError` in my method, is it possible with rspec to test that the method raised and rescued a TypeError?
A_Drone has joined #ruby
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
xybre has quit [Ping timeout: 258 seconds]
Didac has quit [Ping timeout: 258 seconds]
<dminuoso> fergal_: Did you just ignore my previous comment?
<fergal_> no?
tyang has joined #ruby
kavanagh has joined #ruby
kavanagh has quit [Remote host closed the connection]
dionysus69 has joined #ruby
Didac has joined #ruby
A_Drone has quit [Read error: Connection reset by peer]
Nahra has quit [Remote host closed the connection]
sepp2k has joined #ruby
Nahra has joined #ruby
xall has joined #ruby
raeoks has quit [Quit: Textual IRC Client: www.textualapp.com]
Nahra has quit [Remote host closed the connection]
<Mon_Ouie> If the exception is rescued, callers can't know about it (except somehow through set_trace_func, but I'd advise against that). I'd recommend that you test for the side-effects of your exception handling code instead, whatever they may be.
bmurt has joined #ruby
jobat has joined #ruby
nofxx has joined #ruby
last_staff has quit [Quit: last_staff]
taverna_Kariolis has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
xall has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
A_Drone has joined #ruby
the_rhizo has joined #ruby
Snowy has quit [Quit: ragequit]
<taverna_Kariolis> Can I just send a Job for processing immediately to the queue without having to execute a service like rake jobs etc. ? I am working with delayed job.
<taverna_Kariolis> I cross posted this to #rubyonrails sorry
<dminuoso> fergal_: You are testing multiple things. If you want to test behavior of your methods, mock the internal method to raise an exception and see test the handling of that. If you then want, you can test the internal method and expect { ..it.. }.to raise_error
duckpuppy has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
antgel has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
randomname has joined #ruby
IanMalcolm has joined #ruby
IanMalcolm has quit [Max SendQ exceeded]
Silthias1 has joined #ruby
kavanagh has joined #ruby
mikecmpbll has joined #ruby
Silthias has quit [Ping timeout: 244 seconds]
<randomname> Hi, I'm iterating over a nested hash and want to print each key + its values. How can I prevent the key from being printed twice when its value is hash? Currently, this is my code: http://sprunge.us/aZfg
bmurt has quit [Ping timeout: 244 seconds]
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall has joined #ruby
ta_ has quit [Remote host closed the connection]
rkazak has joined #ruby
mim1k has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
pokalyis has quit [Read error: Connection reset by peer]
IanMalcolm has joined #ruby
rkazak has quit [Client Quit]
pokalyis has joined #ruby
xall has quit [Ping timeout: 260 seconds]
<Zarthus> randomname: what do you mean? both produces and desired seem the same to me
<Zarthus> ah, i see, there's two 'remote repo'
AimlessRaven has joined #ruby
<AimlessRaven> text = "<script>toastr.#{type}('#{message}');</script>"
<AimlessRaven> how to escape if my message contain quote
<AimlessRaven> someone have idea
<AimlessRaven> ?
<mikecmpbll> AimlessRaven : rails?
bmurt has joined #ruby
<AimlessRaven> mikecmpbll: there no one to help me
saneax is now known as saneax_AFK
<AimlessRaven> absolutely silece
<AimlessRaven> :D
<mikecmpbll> i was asking if it was rails you're using
<mikecmpbll> but k i'll answer there assuming it is.
<AimlessRaven> yea i use rails
<AimlessRaven> but i think in ruby is same
<AimlessRaven> :)
<AimlessRaven> do you have some idea how to escape this
jishankai has quit [Ping timeout: 264 seconds]
pokalyis has quit [Read error: Connection reset by peer]
pokalyis has joined #ruby
taverna_Kariolis has quit [Quit: leaving]
dr0lan has joined #ruby
giz|work|2 has joined #ruby
AimlessRaven has quit [Quit: Page closed]
pandaant has joined #ruby
saneax_AFK is now known as saneax
<jobat> AimlessRaven: message.gsub('\'', %q(\\\')) should do the job
xlegoman has joined #ruby
TheWhip has quit [Remote host closed the connection]
ramortegui has joined #ruby
jhack has quit []
<jobat> or message.gsub('\'', '\\\\'') if you really like punctuation
ChiefAlexander has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<jobat> Oh he'd already left. Oh well!
<randomname> Zarthus: exactly, i'd like to suppress one of the remote_repo keys
saneax is now known as saneax_AFK
Pupp3tm4st3r has quit [Quit: Leaving...]
jrafanie has joined #ruby
<Zarthus> randomname: it's because the key is the same in each iteration for value.each
<Zarthus> randomname: You want to move puts key + ": " up one line (before value.each do |a|)
malconis has joined #ruby
<Zarthus> because only the value is changing
openstruct has quit []
<randomname> doh
platzhirsch has joined #ruby
<randomname> Zarthus: thanks, that was exactly what I needed!
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
qguv has joined #ruby
killerkamel has joined #ruby
A_Drone has quit [Remote host closed the connection]
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
fmcgeough has joined #ruby
shinnya has joined #ruby
randomname has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
pawnbox has quit [Ping timeout: 252 seconds]
marsjaninzmarsa has joined #ruby
marsjaninzmarsa has quit [Excess Flood]
macsteps has joined #ruby
xall has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
fergal_ has quit [Quit: fergal_]
minotep has joined #ruby
macsteps has quit [Ping timeout: 252 seconds]
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
<kegster> this may sound dumb, but how do i know which exception to rescue?
byteflame has joined #ruby
xall has quit [Ping timeout: 244 seconds]
ixti has joined #ruby
frozengeek has quit [Quit: frozengeek]
frozengeek has joined #ruby
<mikecmpbll> kegster : the most specific exception that you expect to have to rescue.
<kegster> how do i find that? i'm working with an API here-- so do i just see the error it gave?
Ropeney has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
<mikecmpbll> a web API?
rafadc has quit [Remote host closed the connection]
<mikecmpbll> if you want to catch a specific exception, yes, look what it raises.
freerobby has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
pawnbox has joined #ruby
zacts has joined #ruby
marsjaninzmarsa has joined #ruby
karapetyan has joined #ruby
marsjaninzmarsa has quit [Excess Flood]
mim1k has quit [Ping timeout: 250 seconds]
kedibasi has joined #ruby
killerkamel has quit [Quit: Lost terminal]
pawnbox has quit [Ping timeout: 250 seconds]
griffindy has joined #ruby
marsjaninzmarsa has joined #ruby
karapetyan has quit [Ping timeout: 244 seconds]
marsjaninzmarsa has quit [Excess Flood]
<zacts> hi rubyists
xall has joined #ruby
Ropeney has quit [Quit: Leaving]
Ropeney has joined #ruby
snebel has joined #ruby
dhollinger has joined #ruby
<snebel> trying to understand the splat '*' Array coercion
<snebel> why does this only seems working when assigning to a value?
<snebel> like a = *"whatever"
<snebel> but not
dhollinger has quit [Client Quit]
workmad3 has quit [Ping timeout: 240 seconds]
<snebel> *"whatever"
flashpoint9 has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
dhollinger has joined #ruby
xall has quit [Ping timeout: 276 seconds]
<dminuoso> snebel: Because it's part of the syntax.
<Mon_Ouie> It works in most contexts where you can enter multiple comma-separated values
swills__ has joined #ruby
<dminuoso> Mon_Ouie: From the top off your head, can you think of such a context where it doesn't work?
<snebel> and why in the here is pushing an integer instead of an array?
<snebel> still don't get what exactly it does..
<Mon_Ouie> No, but I'm not sure I can think of all contexts from the top off my head.
douglascorrea has quit [Remote host closed the connection]
<dminuoso> snebel: Because the splat is applied to the outer expression, not the array.
douglascorrea has joined #ruby
<dminuoso> >> [].push(*[1])
<ruby[bot]> dminuoso: # => [1] (https://eval.in/618548)
<dminuoso> asm>> [].push(*([1]))
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/618549
babblebre has quit [Quit: Connection closed for inactivity]
dionysus69 has quit [Ping timeout: 258 seconds]
<snebel> dminuoso: so this is kind of being sure the outer result is an array ?
marsjaninzmarsa has joined #ruby
dennisvennink has joined #ruby
<dminuoso> That came out wrong.
pokalyis has quit [Quit: Textual IRC Client: www.textualapp.com]
<Mon_Ouie> you can imagine that *foo when foo is an array (or responds to #to_a) is like replacing foo with all its elements separated by commas. So push(*[1, 2, 3]) is the same as push(1, 2, 3) and push(*[1]) is the same as push(1).
<dminuoso> snebel: Basically the splat is realized as an operator, ignorant about what its passed to.
marsjaninzmarsa has quit [Excess Flood]
tyang has quit [Ping timeout: 258 seconds]
craigp_ has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
aryaching has quit [Ping timeout: 258 seconds]
<snebel> so it's kind of "expanding" the results and pass one by one to push..
<snebel> so it does not fail right?
freerobby has joined #ruby
<dminuoso> snebel: I think the most generic way of describing is: Take away the [] off the array, and interpret it this way
douglascorrea has quit []
biberu has quit [Ping timeout: 276 seconds]
<snebel> sounds weird but start getting it
<snebel> let's play a little bit more
<snebel> with it
<snebel> thanks!
tomphp has joined #ruby
<mikecmpbll> can be used in other less intuitive ways too
<mikecmpbll> >> a, b, *c, d = [1,2,3,4,5,6,7]; puts c
<ruby[bot]> mikecmpbll: # => 3 ...check link for more (https://eval.in/618562)
<mikecmpbll> d'oh
<mikecmpbll> >> a, b, *c, d = *[1,2,3,4,5,6,7]; puts c
<ruby[bot]> mikecmpbll: # => 3 ...check link for more (https://eval.in/618563)
<snebel> ah yes I've read of those
<snebel> those are more intuitive for me :-)
<snebel> it's more like a wildcard
jgt4 has joined #ruby
<dminuoso> mikecmpbll: those are different * things though.
<mikecmpbll> dminuoso : oh right, well damn why don't we have a different name? :d
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso> asm>> a, *c = 1,2,3,4,5
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/618564
<mikecmpbll> it's not working as i'd intended anyways.
<Mon_Ouie> I've seen people refer to the other one as 'unsplat'
tyang has joined #ruby
<Mon_Ouie> It is probably working as you intended, it's just that puts displays all values in an array separated by new lines.
<Mon_Ouie> >> a, b, *c, d = *[1,2,3,4,5,6,7]; c
<ruby[bot]> Mon_Ouie: # => [3, 4, 5, 6] (https://eval.in/618565)
<mikecmpbll> >> a, *b, c = *[1,2,3,4]; puts b.inspect
<ruby[bot]> mikecmpbll: # => [2, 3] ...check link for more (https://eval.in/618566)
<mikecmpbll> oops. my bad.
<mikecmpbll> yeah, that's what i was after.
<Mon_Ouie> (And the splat on the right hand side is not required)
s2013 has joined #ruby
axl_ has joined #ruby
LACampbell has quit [Ping timeout: 244 seconds]
jgt3 has quit [Ping timeout: 260 seconds]
<mikecmpbll> oh yeah
Burgestrand has joined #ruby
agent_white has quit [Quit: brb]
aupadhye has joined #ruby
zacstewart has joined #ruby
hahuang65 has joined #ruby
jhack has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
spudowiar has joined #ruby
anisha has quit [Quit: Leaving]
speakingcode has joined #ruby
dionysus69 has joined #ruby
marsjaninzmarsa has joined #ruby
speakingcode has left #ruby [#ruby]
hutch34 has joined #ruby
solars has quit [Ping timeout: 258 seconds]
trinaldi has joined #ruby
marsjaninzmarsa has quit [Excess Flood]
bonhoeffer has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 250 seconds]
ChiefAlexander has quit [Remote host closed the connection]
agent_white has joined #ruby
<agent_white> Mornin'
<trinaldi> Hi, I have a HTML snippet with the code:<p class="cms-center"><b>content</b></p>. I'm using .scan to turn it to an array. How can I get that exactly content, including the tags? So far I'm getting only what's inside the <p> tag
<dminuoso> trinaldi: Before I entertain the thought, do you maybe want an actual XML parser library like Nokogiri instead?
<trinaldi> We are already using Prawn =/
ChiefAlexander has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Silthias1 has quit [Read error: Connection reset by peer]
<trinaldi> brb
jason____ has joined #ruby
chouhoulis has joined #ruby
braincrash has quit [Ping timeout: 244 seconds]
jason____ has quit [Client Quit]
braincrash has joined #ruby
jason____ has joined #ruby
jason____ is now known as rubyroo
marloi has joined #ruby
rubyroo is now known as rubyrubyroo
teclator has quit [Ping timeout: 264 seconds]
dminuoso has quit [Ping timeout: 240 seconds]
tyang has quit [Ping timeout: 258 seconds]
madsa has joined #ruby
rubyrubyroo has left #ruby [#ruby]
l4v2 has joined #ruby
Devalo has joined #ruby
hs366 has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 250 seconds]
GinoManWorks has quit [Read error: Connection reset by peer]
submitnine has quit []
Torrone has joined #ruby
xall has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
zacts has quit [Quit: WeeChat 1.4]
IanMalcolm has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duckpuppy has quit [Ping timeout: 250 seconds]
davidklsn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacts has joined #ruby
xall has quit [Ping timeout: 250 seconds]
teclator has joined #ruby
dminuoso has joined #ruby
SnowboardTechie has joined #ruby
LoneHermit has joined #ruby
duckpuppy has joined #ruby
Mirubiri has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
davidklsn has joined #ruby
<Mirubiri> Hi!, somebody knows where is safe navigator operator documented?
LoneHermit has quit [Ping timeout: 252 seconds]
<dminuoso> Mirubiri: In the changelog.
<dminuoso> (As sad as this may sound)
<Mirubiri> haha, ok ok
duckpuppy has quit [Ping timeout: 265 seconds]
<dminuoso> This is as close as an official documentation as it can get.
Torrone has quit [Ping timeout: 250 seconds]
<Mirubiri> I couldn't find it
rafadc has joined #ruby
<dminuoso> This is where it was officially mentioned.
<Mirubiri> Yes, I know
Torrone has joined #ruby
aganov has quit [Remote host closed the connection]
<Mirubiri> I was looking for it in Dash and...
ChiefAlexander has quit [Remote host closed the connection]
<Mirubiri> so dig is documented and the safe operator isn´t..
tyang has joined #ruby
davidklsn has quit [Client Quit]
<dminuoso> Mirubiri: It's because dig is a method (and almost all methods are very well documented), Syntax however does not have the same courtesy.
<dminuoso> Mirubiri: Which is probably the reason why almost noone in the Ruby community knows about the "flip flop" operator.
<dminuoso> Mirubiri: But actually there is a document that should cover the safe navigation operator
<Mirubiri> umm
<dminuoso> Mirubiri: If you want, you can make a pull request on github.
<dminuoso> And document it yourself.
<Mirubiri> I'm gonna check 2.4 docs...
<dminuoso> Mirubiri: *trunk you mean :)
<Mirubiri> yeah
<Mirubiri> nope
<Mirubiri> not documented
nando293921 has joined #ruby
<Mirubiri> but I thnik that flip flop is documented somewhere
Helheim_ has joined #ruby
<dminuoso> Mirubiri: It is infact, wow I have never seen this folder of rdocs.
ChiefAlexander has joined #ruby
Helheim_ has quit [Max SendQ exceeded]
<Mirubiri> yeah, at the end of control expressions
<dminuoso> Think I may have only looked at the refinements.rdoc from that folder.
Helheim_ has joined #ruby
The_Phoenix1 has quit [Quit: Leaving.]
IanMalcolm has joined #ruby
Helheim has quit [Remote host closed the connection]
etetz has joined #ruby
terrabl has joined #ruby
tyang has quit [Ping timeout: 265 seconds]
<terrabl> I'm having trouble checking to see if a float is equal to nil. I tried doing if float.nil == false but I'm getting a NoMethodError, is this not the correct way to see if a float is nil
JeanCarloMachado has quit [Ping timeout: 264 seconds]
JakFrist has joined #ruby
aupadhye has quit [Quit: Leaving]
<dminuoso> terrabl: use .nil?
<ghr> 1.0.nil?
<terrabl> ohh whoops.
<terrabl> thanks guys
failshell has joined #ruby
<dminuoso> terrabl: and you dont need to test this ever: foo == false
tvw has quit [Remote host closed the connection]
<dminuoso> terrabl: It's an unnecessary comparison. Just use: "if float.nil?" or "unless float.nil?"
fergal_ has joined #ruby
<terrabl> Hmm, im confused on the unless statement. Is if float.nil? the same as unless float.nil?
<canton7> if (true == true) == false
cschneid_ has joined #ruby
aufi has quit [Remote host closed the connection]
marsjaninzmarsa has joined #ruby
<ghr> `unless float.nil?` is the same as `if ! float.nil?`
<dminuoso> terrabl: unless just negates the condition
<dminuoso> terrabl: Pick the one that reads better in the context.
chouhoulis has joined #ruby
<terrabl> Perfect, thanks for that.
<ghr> using unless/else is generally avoided though
<dminuoso> terrabl: Personally I only use "unless" when used as modifier_unless
<dminuoso> i.e. "do_something unless condition"
<dminuoso> (There it's very readable)
failshell has quit [Client Quit]
d0lph1n98 has joined #ruby
minotep has quit [Ping timeout: 276 seconds]
sdothum has joined #ruby
Spami has joined #ruby
whiteline has quit [Read error: Connection reset by peer]
terrabl has quit [Quit: Page closed]
whiteline has joined #ruby
axsuul has joined #ruby
rafadc has quit []
mim1k has joined #ruby
dminuoso has quit [Remote host closed the connection]
Helheim_ is now known as Helheim
pokalyis has joined #ruby
rodfersou is now known as rodfersou|lunch
marsjaninzmarsa has quit [Ping timeout: 258 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
grn has quit [Remote host closed the connection]
nando293921 has quit [Ping timeout: 250 seconds]
beilabs has joined #ruby
beilabs_ has quit [Ping timeout: 265 seconds]
dmst has joined #ruby
SnowboardTechie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SnowboardTechie has joined #ruby
macsteps has joined #ruby
rstacruz has joined #ruby
AzureStigma has joined #ruby
cschneid_ has quit []
d0lph1n98 has quit [Quit: leaving]
SnowboardTechie has quit [Ping timeout: 250 seconds]
macsteps has quit [Ping timeout: 250 seconds]
duckpuppy has joined #ruby
[Butch] has joined #ruby
<Diabolik> what's the general consensus on hanami vs Rails
teclator has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
IanMalcolm has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fmcgeough has quit [Quit: fmcgeough]
AndrewIsHere has joined #ruby
xlegoman has joined #ruby
AzureStigma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
calipso has joined #ruby
<apeiros> is there ever consensus on questions like this?
Mon_Ouie has quit [Ping timeout: 244 seconds]
Guest38_ has joined #ruby
<calipso> Hi
beilabs has quit [Remote host closed the connection]
<eam> consensus is: both appear to be software
beilabs has joined #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
morochena has joined #ruby
morochena has quit [Client Quit]
mrgrieves has quit [Ping timeout: 250 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
<zacts> hello
eljimador has quit [Read error: Connection reset by peer]
mfb2 has joined #ruby
<zacts> I'm going to try to port the latest ruby to minix3
solars has joined #ruby
<zacts> can I link ruby easily against gnu pthreads?
<zacts> (and is this a proper channel to ask this question?)
ftj has joined #ruby
<zacts> :-)
beilabs has quit [Ping timeout: 244 seconds]
<zacts> minix3 doesn't offer threads by default or something
<ftj> Interesting little puzzle here. I have an application in which users contribute content. Some users include images to represent their content. Others don't. For the ones that don't, I'd like to generate a hex color deterministically based on attributes of the item. Any ideas on an algo for something like that?
<ftj> I could use, for example, the id of the item and the first letter of its name (or something)
SnowboardTechie has joined #ruby
AzureStigma has joined #ruby
sumobob has joined #ruby
Vingador has joined #ruby
<eam> zacts: that's a bit of a confusing question; ruby links pthread by default
teclator has joined #ruby
fergal_ has quit [Quit: fergal_]
<eam> oh, do you mean pth?
<zacts> eam: I meant pth yes
AzureStigma has quit [Client Quit]
mindcrimes has joined #ruby
<eam> sounds like a fascinating experiment
jhodge521 has joined #ruby
tk__ has quit [Quit: ばいばい]
Lord_of_Life has quit [Changing host]
Lord_of_Life has joined #ruby
<mindcrimes> anyone know how to run two bots on one script?
Lord_of_Life has quit [Changing host]
Lord_of_Life has joined #ruby
<zacts> eam: heh ok
<eam> if pth implements pthread then I don't see how it could fail to link
<mindcrimes> or at last have both of the bots communicate with eachover?
<zacts> I'll let you know how far I get
govg has quit [Ping timeout: 250 seconds]
sumobob has quit [Remote host closed the connection]
<eam> whether it works is another matter of course
LoneHermit has joined #ruby
mfb2 has quit []
<zacts> it will be awesome to run ruby on minix3. I would like to have ruby + minix3 + beaglebone to demonstrate at my local ruby meetup
glcx_ has quit [Quit: Quitte]
Chair has quit [Ping timeout: 240 seconds]
marsjaninzmarsa has joined #ruby
Mirubiri has quit [Read error: No route to host]
dionysus69 has joined #ruby
duckpuppy has quit [Ping timeout: 252 seconds]
TomyLobo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
LoneHermit has quit [Ping timeout: 252 seconds]
Velizar has joined #ruby
zacts has quit [Quit: WeeChat 1.4]
edwinvdgraaf has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
hipertracker has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.4]
tw1sted has quit [Remote host closed the connection]
fergal_ has joined #ruby
symm- has joined #ruby
SilverKey has quit [Quit: Halted.]
<trinaldi> Hi, I have a HTML snippet with the code:<p class="cms-center"><b>content</b></p>. I'm using .scan to turn it to an array. How can I get that exactly content, including the tags? So far I'm getting only what's inside the <p> tag
grn has joined #ruby
tw1sted has joined #ruby
TPug has joined #ruby
<matthewd> trinaldi: Same question: why not nokogiri?
ftj has quit [Read error: Connection reset by peer]
SnowboardTechie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<trinaldi> Sorry, I was out for lunch. As I said, we are already using Prawn to write the PDF
<matthewd> How is that related to what you use to parse the HTML?
hipertracker has quit [Quit: hipertracker]
<calipso> Yepp
mindcrimes has left #ruby [#ruby]
amclain has joined #ruby
<trinaldi> I'm new to the project and Ruby, tbh.
beilabs has joined #ruby
<trinaldi> We are making some medical reports, we use a pdf and a png as the template and the doctor signature. The HTML part would be the doctor notes, if you will.
rails has joined #ruby
grn has quit [Ping timeout: 258 seconds]
mikecmpbll has quit [Ping timeout: 276 seconds]
platzhirsch has quit [Ping timeout: 244 seconds]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<matthewd> trinaldi: Basically, manual parsing of HTML is problematic.
frozengeek has quit [Ping timeout: 244 seconds]
<trinaldi> Indeed
<matthewd> trinaldi: .. whereas it's exactly the job nokogiri is there for
<aeruder> i think you should use nokogiri
<aeruder> don't know if it has been mentioned, but you should really look into it (nokogiri)
<aeruder> lol
<trinaldi> I'm gonna look through Nokogiri documentation and see what I can come up with. Thanks so far, guys.
<trinaldi> It doesn't seem so difficult to both use it and integrate it with the current project
SteenJobs has joined #ruby
eljimmy has joined #ruby
fergal_ has quit [Quit: fergal_]
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axsuul has joined #ruby
macsteps has joined #ruby
brendan- is now known as bmurt
r_rios has quit [Ping timeout: 240 seconds]
polyidus has joined #ruby
Devalo has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
macsteps has quit [Remote host closed the connection]
Devalo has joined #ruby
kyleolivo has joined #ruby
hahuang65 has joined #ruby
matp has quit [Remote host closed the connection]
jaequery has joined #ruby
xapak has joined #ruby
<xapak> Hello there.
RegulationD has quit []
xapak has left #ruby [#ruby]
AlexJakeGreen has quit [Remote host closed the connection]
dionysus69 has quit [Remote host closed the connection]
tomphp has quit [Ping timeout: 244 seconds]
Devalo has quit [Ping timeout: 264 seconds]
polyidus has quit [Quit: Textual IRC Client: www.textualapp.com]
daffy_duck_2 has joined #ruby
hahuang65 has quit [Ping timeout: 264 seconds]
nekompetentnyj has quit [Ping timeout: 258 seconds]
Helheim_ has joined #ruby
Helheim has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
vuoto has joined #ruby
tyang has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vuoto has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
gheegh has joined #ruby
Bloodshot has joined #ruby
vuoto has joined #ruby
Bloodshot has left #ruby [#ruby]
blaxter has quit [Quit: foo]
<gheegh> Hey all.. quick question.. anyone seen any code anywhere (a gist or gem) that converts a string like "23k" to an integer 23000?
<gheegh> i don't want to write one myself if I don't have to.. :-)
the_rhizo has quit [Ping timeout: 276 seconds]
postmodern has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
IanMalcolm has joined #ruby
zacts has joined #ruby
Spami has joined #ruby
The_Phoenix1 has joined #ruby
Spami has quit [Client Quit]
davedev24 has joined #ruby
Helheim_ is now known as Helheim
FernandoBasso has quit [Quit: WeeChat 1.3]
Fernando-Basso has joined #ruby
Spami has joined #ruby
mikecmpbll has joined #ruby
bad_ip has joined #ruby
mim1k has quit [Ping timeout: 244 seconds]
Derperperd has joined #ruby
marxarelli has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Cohedrin has joined #ruby
govg has joined #ruby
TPug has joined #ruby
tomphp has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
<apeiros> gheegh: units gem might do that
<gheegh> apeiros: thanks.. i'll go look
sdothum has joined #ruby
armyriad has joined #ruby
karapetyan has joined #ruby
rodfersou|lunch is now known as rodfersou
IanMalcolm has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
centrx has joined #ruby
LoneHermit has joined #ruby
antgel has joined #ruby
calipso has quit [Ping timeout: 265 seconds]
sdothum has quit [Read error: Connection reset by peer]
marcoecc has joined #ruby
chouhoulis has quit [Remote host closed the connection]
shmuli has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
marcoecc has quit [Remote host closed the connection]
The_Phoenix1 has quit [Quit: Leaving.]
sdothum has joined #ruby
marcoecc has joined #ruby
tyang has quit [Ping timeout: 240 seconds]
marcoecc has quit [Remote host closed the connection]
duckpuppy has joined #ruby
shmuli has quit [Remote host closed the connection]
Vingador has quit [Remote host closed the connection]
shmuli_ has joined #ruby
tyang has joined #ruby
karapetyan has quit [Remote host closed the connection]
sleepee has joined #ruby
tubuliferous_ has joined #ruby
Eiam_ has joined #ruby
dr0lan has quit [Quit: WeeChat 1.0.1]
JeanCarloMachado has quit [Quit: Lost terminal]
<snebel> stupid question what name is the convention for a rspec spec file when describing MyModule::MyClass ?
Devalo has joined #ruby
<snebel> should be my_class_spec ?
<snebel> should I include the module in the name ? or just describe it within the file itself ?
JeanCarloMachado has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
<matthewd> snebel: my_module/my_class_spec.rb, I would think
<snebel> ah! make sense..
<snebel> thanks!
centrx has quit []
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
OTORelic has joined #ruby
araujo has quit [Max SendQ exceeded]
flashpoint9 has joined #ruby
araujo has joined #ruby
bjh13 has joined #ruby
jobat has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
giz|work|2 has quit [Ping timeout: 276 seconds]
JakFrist has joined #ruby
houhoulis has joined #ruby
firstdayonthejob has joined #ruby
pandaant has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
giz|work|2 has joined #ruby
shmuli_ has quit [Remote host closed the connection]
Helheim has quit [Ping timeout: 240 seconds]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
the_rhizo has joined #ruby
s2013 has joined #ruby
Dimik has joined #ruby
Helheim has joined #ruby
karapetyan has quit [Remote host closed the connection]
BTRE has quit [Quit: Leaving]
karapetyan has joined #ruby
djbkd has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
SilverKey has joined #ruby
ramfjord has joined #ruby
SilverKey has quit [Max SendQ exceeded]
SilverKey has joined #ruby
BTRE has joined #ruby
SilverKey has quit [Max SendQ exceeded]
ejnahc has quit [Ping timeout: 264 seconds]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
HammyJammy has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
diegoviola has joined #ruby
jrafanie has joined #ruby
ejnahc has joined #ruby
mark_66 has quit [Remote host closed the connection]
SilverKey has quit [Max SendQ exceeded]
beilabs has quit [Remote host closed the connection]
beilabs has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<trinaldi> Regarding Nokogiri. How can I replace each children from my HTML fragment]
<trinaldi> i.e I wanna replace divs with p
<trinaldi> I tried .name, but nothing =/
ChiefAlexander has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ChiefAlexander has joined #ruby
giz|work|2 has quit [Ping timeout: 258 seconds]
hutch34 has quit [Ping timeout: 258 seconds]
SilverKey has joined #ruby
SilverKey has quit [Client Quit]
ebbflowgo has joined #ruby
Nahra has joined #ruby
skade has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
JakFrist has joined #ruby
the_rhizo has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
armyriad has quit [Ping timeout: 244 seconds]
symm- has quit [Read error: Connection reset by peer]
davidklsn has joined #ruby
hipertracker has joined #ruby
phredus_ has quit [Read error: Connection reset by peer]
phredus has quit [Read error: No route to host]
phredus has joined #ruby
armyriad has joined #ruby
JakFrist has quit [Client Quit]
phredus_ has joined #ruby
AzureStigma has joined #ruby
JakFrist has joined #ruby
symm- has joined #ruby
Helheim has quit [Ping timeout: 244 seconds]
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
the_rhizo has joined #ruby
IanMalcolm has joined #ruby
grn has joined #ruby
<snebel> I'm confused, starting with rspec ... I'm defining some variables within spec_helper file then loading this from my *_spec tests
<snebel> the require_relative of my lib/ stuff is working
<snebel> however when trying to define a simple variable to reuse within the _spec files it always says is not defined..
MarkBilk_ has quit [Ping timeout: 250 seconds]
<snebel> should a variable set within spec_helper be available for the rspec code?
shmuli has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
dionysus69 has joined #ruby
Helheim has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
<snebel> ah!
<snebel> had to do it instance variable..
<snebel> :-)
djbkd has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
grn has quit [Ping timeout: 258 seconds]
<ramfjord> snebel: I'd encourage you to check out the ``let`` syntax for rspec - I think it's considered good practice now
<snebel> mmm ah ok i'll take a look thanks
<ramfjord> it lets you refer to things like local variables, and they're only initialized if your specific test case uses them
<ramfjord> this is a pretty good resource for writing pretty tests
Eiam_ has joined #ruby
<snebel> nice
<snebel> what i really tried to do is to store a big hash with "fixtures" out of the _spec files
<snebel> then being able to use them within the _spec files
matp has joined #ruby
<snebel> doing Hash.each and using the key and value..
duckpuppy has quit [Ping timeout: 250 seconds]
<snebel> I'm going to use let as proposed to load the Hash and reuse it
<ramfjord> ahh, that makes sense
karapetyan has quit [Remote host closed the connection]
duckpuppy has joined #ruby
<snebel> but still thinking on having the Hash definition in the spec_helper
<ramfjord> does the hash need to be mutable? Does it contain ruby classes?
<snebel> because is huge and ugly
<snebel> does this make sense?
<snebel> no just strings
<ramfjord> yeah, that makes sense. You could even put it in a separate file
shmuli has quit [Ping timeout: 250 seconds]
<snebel> cool!
postmodern has quit [Ping timeout: 250 seconds]
<snebel> yeah I'm so happy hehehe
<snebel> thanks
<ramfjord> you might consider just putting it in a yaml file, and doing let!(:hash) { File.read("spec/resources/hash.yaml") }
<snebel> ohhh really cool
<ramfjord> doh - YAML.load(File.read(blah))
<snebel> much better yeah
<snebel> clap clap clap :-)
karapetyan has joined #ruby
craigp_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nanoz has joined #ruby
JakFrist has joined #ruby
Cohedrin has joined #ruby
jhodge522 has joined #ruby
jhodge521 has quit [Ping timeout: 258 seconds]
jhodge522 is now known as jhodge521
Cohedrin has quit [Max SendQ exceeded]
xall has joined #ruby
AzureStigma is now known as AzureStigma|Away
AzureStigma|Away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xall has quit [Client Quit]
Cohedrin has joined #ruby
xall has joined #ruby
nando293921 has joined #ruby
snath has joined #ruby
karapetyan has quit [Ping timeout: 276 seconds]
sepp2k has joined #ruby
<snath> how do I convince Net::SSH::Telnet to absolutely never ask for a password?
postmodern has joined #ruby
Xiti has quit [Quit: Xiti]
zacts has quit [Ping timeout: 244 seconds]
n90b0jjf has joined #ruby
<n90b0jjf> when API's require a user redirect (for auth), is it possible to do all that through an HTTP client, assuming the correct credentials are passed? (and get the proper auth code param at the end)
antgel has quit [Ping timeout: 244 seconds]
jhodge522 has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
malconis has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
jhodge521 has quit [Ping timeout: 265 seconds]
jhodge522 is now known as jhodge521
dhollinger has quit [Remote host closed the connection]
Xiti has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
ponyofdeath has joined #ruby
hahuang65 has joined #ruby
<ponyofdeath> hi, trying to figure out the syntax for this vagrant plugin i am trying to trouble shoot
<ponyofdeath> #@version = support_version_command? ? run(:start, '--version') : run(:start, '--version')
karapetyan has joined #ruby
<ponyofdeath> does that mean if version_command exists run 1 : or 2
<ponyofdeath> what does the : mean there
<Papierkorb> ponyofdeath: `x ? y : z` is the ternary operator. It says "if (x), then (y) else (z)"
<ponyofdeath> Papierkorb: thanks!
<Papierkorb> ponyofdeath: Besides, both branches are the same so the operator is useless, and the # at the start makes the line a comment (so it's not run)
Guest38_ has quit [Read error: Connection reset by peer]
ChiefAlexander has joined #ruby
<ponyofdeath> yup thats me trying to get it to work
<Papierkorb> ponyofdeath: Maybe you meant something like this: @version = run(:start, '--version') if support_version_command?
lxsameer has quit [Quit: WeeChat 1.5]
jackjackdripper has quit [Quit: Leaving.]
karapetyan has quit [Ping timeout: 244 seconds]
<ponyofdeath> line 32
hahuang65 has quit [Ping timeout: 260 seconds]
<ponyofdeath> basically lxc-version is dpricated and need to use lxc-start --version
<ponyofdeath> so i modified the support_version_command to look for lxc-start
Devalo has quit [Remote host closed the connection]
<ponyofdeath> and the if @version =~ /(lxc version:\s+|)(.+)\s*$/ to be just if @version =~ /(.+)\s*$/
<ponyofdeath> as lxc-start --version returns just 2.0.3
Nahra has quit [Ping timeout: 240 seconds]
<ponyofdeath> not sure $2.downcase is needed but
Devalo has joined #ruby
macsteps has joined #ruby
jhodge521 has quit [Quit: jhodge521]
rajdesai has joined #ruby
djbkd has joined #ruby
<Papierkorb> Ah. LXC. Why on earth don't they have at least a stable CLI 'api'.
<Papierkorb> Bunch of scripts broke on my end too some time ago. Whole lxc-* tools were gone and replaced by who knows what.
<ponyofdeath> lol
<ponyofdeath> yeah
Vingador has joined #ruby
r_rios has joined #ruby
<ponyofdeath> /home/vladi/.vagrant.d/gems/gems/vagrant-lxc-1.2.1/lib/vagrant-lxc/driver/cli.rb:37:in `version': Unable to parse lxc version! (RuntimeError)
<ponyofdeath> from /home/vladi/.vagrant.d/gems/gems/vagrant-lxc-1.2.1/lib/vagrant-lxc/driver/cli.rb:148:in `support_config_command?'
<ponyofdeath> is there some cache i need to fix or something
dmst has quit [Quit: Connection closed for inactivity]
Devalo has quit [Ping timeout: 250 seconds]
<Papierkorb> No idea, the Vagrant API could do something magical.
<Papierkorb> ponyofdeath: Also, you don't want to mess directly in the installed gem source. Instead, `git clone` it somewhere, make vagrant use that, and then work on your own copy
<Papierkorb> ponyofdeath: Or is that how you do it with Vagrant plugins?
rstacruz has quit [Quit: rstacruz]
Torrone has quit [Quit: This computer has gone to sleep]
<ponyofdeath> hmm, well modifying the code seems to work as if i break it it def breaks :)
<ponyofdeath> any ideas why def support_config_command?
<ponyofdeath> version[0].to_i >= 1
<ponyofdeath> end
<ponyofdeath> is bombing out after i fix
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
<Papierkorb> ponyofdeath: Just make sure to not lose it, and contributing it back would probably be appreciated
marloi has quit [Ping timeout: 244 seconds]
<Papierkorb> ponyofdeath: version is a string? String#[] gives a string, and String >= Numeric doesn't make much sense
<Papierkorb> ah didn't see the #to_i
<Papierkorb> ponyofdeath: So, nope, please gist the whole file and the error message(s) you're getting
johnny56 has quit [Read error: Connection reset by peer]
rajdesai has quit [Remote host closed the connection]
Contigi has quit [Quit: Leaving]
tristanp has quit []
ta_ has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
johnny56 has joined #ruby
tristanp has joined #ruby
shinnya has quit [Ping timeout: 265 seconds]
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
jhack has quit [Quit: jhack]
Torrone has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<trinaldi> matthewd, just a heads up. I got it working. Thanks for all the help :)
n90b0jjf has quit [Ping timeout: 240 seconds]
Coldblackice has joined #ruby
<Papierkorb> ponyofdeath: Please change the file name to something ending in .rb to enable syntax highlighting and stuff
<Papierkorb> ponyofdeath: And you can add multiple files into the same gist
rajdesai has joined #ruby
Tennis__ has joined #ruby
A124 has joined #ruby
ta_ has quit [Remote host closed the connection]
JakFrist has joined #ruby
JakFrist has quit [Client Quit]
<Papierkorb> ponyofdeath: output the @version before the if to see what it actually contains.
<Papierkorb> ponyofdeath: puts and #inspect will be of help to you.
Nahra has joined #ruby
<Tennis__> How can I submit this form using watir-webdriver: http://pastebin.com/NtdtiGCY
<ruby[bot]> Tennis__: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/f46e8a0ed433fdb16371587920ee4b64
<ruby[bot]> Tennis__: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
phredus has quit [Read error: Connection reset by peer]
rajdesai has quit [Remote host closed the connection]
s2013 has joined #ruby
<ponyofdeath> Papierkorb: how do i output it in the vagrant output?
<Papierkorb> [20:50] <Papierkorb> ponyofdeath: puts and #inspect will be of help to you.
minimalism has joined #ruby
chouhoulis has quit [Remote host closed the connection]
phredus__ has joined #ruby
tyang has quit [Ping timeout: 240 seconds]
phredus__ has quit [Read error: No route to host]
Nahra has quit [Ping timeout: 244 seconds]
s2013 has quit [Client Quit]
hipertracker has quit [Quit: hipertracker]
phredus_ has quit [Ping timeout: 240 seconds]
Nahra has joined #ruby
phredus has joined #ruby
shmuli has joined #ruby
beilabs_ has joined #ruby
phredus_ has joined #ruby
s2013 has joined #ruby
Derperperd has quit [Quit: Derperperd]
leea has joined #ruby
kirun has joined #ruby
tyang has joined #ruby
IanMalcolm has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LastWhisper____ has joined #ruby
LastWhisper____ has quit [Read error: Connection reset by peer]
<ramfjord> snath: looks like you pass a Net::SSH to Net::SSH::Telnet, and Net::SSH takes an auth_methods parameter on creation that you could use to disable password auth
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beilabs has quit [Ping timeout: 276 seconds]
Jackneill has joined #ruby
banisterfiend has joined #ruby
LastWhisper____ has joined #ruby
banisterfiend has quit [Client Quit]
Jackneill has quit [Read error: Connection reset by peer]
<snath> thanks, I'll give it a shot
Jackneill has joined #ruby
<ramfjord> description of options at http://net-ssh.github.io/ssh/v1/chapter-2.html
Torrone has quit [Quit: This computer has gone to sleep]
duckpuppy has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
Fernando-Basso has quit [Quit: Leaving]
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 265 seconds]
tyang has quit [Ping timeout: 258 seconds]
Derperperd has joined #ruby
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
griff has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
macsteps has quit [Remote host closed the connection]
trinaldi has quit [Quit: WeeChat 1.6-dev]
n90b0jjf has joined #ruby
nando293921 has joined #ruby
<snath> now it is asking for a password when a key should work
antgel has joined #ruby
leea has joined #ruby
solars has quit [Quit: WeeChat 0.4.2]
Ishido has joined #ruby
zeroDi has joined #ruby
davidklsn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nando293921 has quit [Ping timeout: 244 seconds]
l4v2 has quit [Quit: l4v2]
dunpeal has joined #ruby
solars has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dunpeal> Hi. I have two ActiveSupport::TimeWithZone instances. Does Ruby/Rails have anything to get the difference between them in days?
rajdesai has joined #ruby
qguv has quit [Ping timeout: 240 seconds]
qguv has joined #ruby
<dunpeal> NVM, found it: (d2 - d2) / 1.day
Xiti has quit [Quit: Xiti]
TheBrayn has quit [Quit: WeeChat 1.4]
sarbs has quit [Max SendQ exceeded]
<snath> wow, :auth_methods really screws up. If I specify 'publickey' it forces a password entry. WTF?
jhack has joined #ruby
sarbs has joined #ruby
andikr has quit [Remote host closed the connection]
LastWhisper____ has quit [Ping timeout: 252 seconds]
spider-mario has joined #ruby
davidklsn has joined #ruby
rajdesai has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
nando293921 has joined #ruby
jackjackdripper has joined #ruby
swills__ has quit [Ping timeout: 250 seconds]
AlexRussia has joined #ruby
cdg has quit [Remote host closed the connection]
postmodern has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
QORRiE has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby
cdg has quit [Ping timeout: 250 seconds]
miqlas-H has joined #ruby
TheBrayn has joined #ruby
<snath> if I specify :keys_only => true, it immediately asks for a password
Spami has joined #ruby
Tennis__ has quit [Ping timeout: 250 seconds]
Spami has quit [Client Quit]
davidklsn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bjh13 has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
karapetyan has joined #ruby
postmodern has joined #ruby
kavanagh has quit [Quit: That's all folks!]
LoneHerm_ has joined #ruby
ta_ has joined #ruby
griff has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubuliferous_ has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
LoneHerm_ has quit [Ping timeout: 252 seconds]
skweek has joined #ruby
govg has quit [Ping timeout: 258 seconds]
davidklsn has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
<snebel> mmm is rake shipped by default with recent ruby version?
<snebel> or should I include it within my GEmfile ?
<snebel> to allow proper bundle ?
govg has joined #ruby
bluOxigen has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
Vingador has quit [Ping timeout: 244 seconds]
blackgoat has joined #ruby
zacts has joined #ruby
ta_ has quit [Remote host closed the connection]
houhoulis has quit [Remote host closed the connection]
tyang has joined #ruby
tubuliferous_ has joined #ruby
nando293921 has quit [Ping timeout: 250 seconds]
Rodya_ has joined #ruby
macsteps has joined #ruby
hutch34 has joined #ruby
tubuliferous_ has quit [Read error: Connection reset by peer]
tubuliferous_ has joined #ruby
tyang has quit [Ping timeout: 258 seconds]
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheWhip has joined #ruby
Spami has joined #ruby
ChiefAlexander has joined #ruby
leea has joined #ruby
platzhirsch has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
firstdayonthejob has quit [Quit: WeeChat 1.5]
cschneid_ has joined #ruby
Madplatypus has joined #ruby
cdg has joined #ruby
shinnya has joined #ruby
djbkd has quit [Remote host closed the connection]
slappy16 has joined #ruby
zacts has quit [Quit: WeeChat 1.4]
TomyWork has quit [Ping timeout: 276 seconds]
cdg has quit [Ping timeout: 250 seconds]
hahuang65 has joined #ruby
MarkBilk_ has joined #ruby
umdstu has quit [Quit: umdstu]
hipertracker has joined #ruby
firstdayonthejob has joined #ruby
PoweredByPrana has joined #ruby
hahuang65 has quit [Ping timeout: 258 seconds]
SnowboardTechie has joined #ruby
aef has quit [Remote host closed the connection]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n90b0jjf has quit [Remote host closed the connection]
beilabs_ has quit [Remote host closed the connection]
macsteps has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
e4xit has quit [Quit: Right I'm out!]
eljimmy has joined #ruby
aghalarp has joined #ruby
aef has joined #ruby
shmuli has quit [Remote host closed the connection]
zeroDi has quit [Quit: WeeChat 1.5]
rodfersou has quit [Quit: leaving]
maloik21 has quit [Remote host closed the connection]
maloik has joined #ruby
Xiti has joined #ruby
jgt4 has quit [Ping timeout: 258 seconds]
A124 has quit [Quit: '']
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
qguv has quit [Ping timeout: 276 seconds]
TheWhip has quit [Remote host closed the connection]
snebel has quit [Quit: Leaving]
qguv has joined #ruby
armyriad has quit [Ping timeout: 276 seconds]
LoneHermit has joined #ruby
The_Phoenix has joined #ruby
armyriad has joined #ruby
Devalo has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
r_rios has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
vk_ has joined #ruby
TinkerTyper has quit [Ping timeout: 260 seconds]
The_Phoenix has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
triangles has joined #ruby
<vk_> help
vk_ has quit [Client Quit]
spiette has quit [Quit: :qa!]
TheWhip has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheWhip has quit [Ping timeout: 250 seconds]
pokalyis has quit [Read error: Connection reset by peer]
sepp2k has quit [Read error: Connection reset by peer]
AlexRussia has quit [Ping timeout: 244 seconds]
pokalyis has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
Eiam_ has quit [Ping timeout: 244 seconds]
ramfjord_ has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
KCmetro has joined #ruby
shellie_ has quit [Ping timeout: 244 seconds]
ChiefAlexander has quit [Quit: Leaving...]
kirun has quit [Remote host closed the connection]
alfiemax has joined #ruby
ldnunes has quit [Quit: Leaving]
AndrewIsHere has quit [Ping timeout: 250 seconds]
n90b0jjf has joined #ruby
shellie_ has joined #ruby
JeanCarloMachado has joined #ruby
shellie_ has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
AndrewIsHere has quit [Read error: Connection reset by peer]
AndrewIsHere has joined #ruby
IanMalcolm has joined #ruby
n90b0jjf has quit [Ping timeout: 240 seconds]
n90b0jjf has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
QORRiE has quit [Quit: Leaving]
youch has joined #ruby
Gasher has joined #ruby
duckpuppy has quit [Ping timeout: 265 seconds]
antgel has quit [Ping timeout: 265 seconds]
SnowboardTechie has quit [Quit: Textual IRC Client: www.textualapp.com]
etetz has quit [Remote host closed the connection]
symm- has quit [Quit: Leaving...]
OTORelic has quit [Ping timeout: 244 seconds]
etetz has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
Cohedrin has joined #ruby
shmuli has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
bocaneri has quit [Remote host closed the connection]
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
macsteps has joined #ruby
etetz has quit [Ping timeout: 258 seconds]
macsteps_ has joined #ruby
macsteps has quit [Read error: Connection reset by peer]
byteflame has quit [Ping timeout: 244 seconds]
KCmetro has quit [Quit: Leaving...]
ta_ has joined #ruby
dmst has joined #ruby
n90b0jjf has quit [Remote host closed the connection]
dmst has left #ruby [#ruby]
cevett has quit [Read error: Connection reset by peer]
IanMalcolm has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
Derperperd has quit [Quit: Derperperd]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
jondot has joined #ruby
macsteps_ has quit [Remote host closed the connection]
TheWhip has joined #ruby
LACampbell has joined #ruby
rellis has joined #ruby
ramfjord_ has quit [Ping timeout: 250 seconds]
<rellis> hi all, is there a convenient way to say "install gem X with dependency version Y"?
<rellis> would i just want to force instal the version of the depdency i want first?
symm- has joined #ruby
TheWhip has quit [Ping timeout: 276 seconds]
ramfjord has joined #ruby
wrkrcoop has joined #ruby
<wrkrcoop> i have a string that refers to a method
<wrkrcoop> how can i use that string to call that method and pass in the arguments?
bluOxigen has quit [Ping timeout: 250 seconds]
<wrkrcoop> looks like there is send, call, and eval. ive heard eval is dangerous
nettoweb has joined #ruby
vuoto has joined #ruby
daffy_duck_2 is now known as nekompetentnyj
<wrkrcoop> should iuse send?
<xpitr> if you send arbitrary, unfiltered string it will also be dangerous ...
<xpitr> if you control it on all ends you can as well use eval. but question is, do you really need it?
<wrkrcoop> xpitr: i want to iterate over an array and call methods in that array
<xpitr> arbitrary methods? where are they made from?
Hobbyboy has quit [Ping timeout: 260 seconds]
jhack has quit [Quit: jhack]
<wrkrcoop> xpitr: i define them in my code
tubuliferous_ has quit [Ping timeout: 244 seconds]
jhack has joined #ruby
<wrkrcoop> they’re hard coded
symm- has quit [Quit: Leaving...]
<xpitr> you can use case/when if there is not a lot of them? but this seems weirdly designed, dunno
<xpitr> like, why construct array full of methods you want to call?
<wrkrcoop> gmmm well how should i call them
<wrkrcoop> xpitr: so i dont repeat myself
<wrkrcoop> every call does the same thing
n90b0jjf has joined #ruby
<wrkrcoop> calls the method with same arguments, checks if it failed, if not keep going else return
<xpitr> why put method name in array instead of calling it?
<xpitr> but you can call the methods by eg. Kernel.send(:methodname, param1, param2, param3...)
nofxx has quit [Remote host closed the connection]
unreal_ is now known as unreal
leea has joined #ruby
chihhsin has quit [Remote host closed the connection]
spudowiar has quit [Remote host closed the connection]
youch has quit [Remote host closed the connection]
n90b0jjf has quit [Remote host closed the connection]
spudowiar has joined #ruby
DEac- has quit [Ping timeout: 240 seconds]
rkazak has joined #ruby
ged has quit [Ping timeout: 276 seconds]
qguv has quit [Ping timeout: 260 seconds]
DEac- has joined #ruby
mahlon has quit [Ping timeout: 244 seconds]
spudowiar has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
_ht_ has joined #ruby
bjh13 has joined #ruby
Devalo has quit [Remote host closed the connection]
<wrkrcoop> how do i use calll …
_ht has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 240 seconds]
claw has quit [Quit: No Ping reply in 180 seconds.]
Devalo has joined #ruby
<wrkrcoop> i ahve this array of symbols which correspond to methods
<wrkrcoop> [:buy, :sell, :be_depressed]
<wrkrcoop> and im trying to call them by iterating methods.each {|m| m.call(a)}
ghr has joined #ruby
<wrkrcoop> and it isnt working
FernandoBasso has joined #ruby
<drbrain> sounds like someone is into bitcoin
<wrkrcoop> drbrain: haha
<drbrain> try methods { |m| a.call m }
<wrkrcoop> but what the hell is a
<drbrain> assuming `a` responds to each of those methods
<apeiros> call?
claw has joined #ruby
<drbrain> if `self` responds to those methods then self.call :buy
<wrkrcoop> is a like the class?
<drbrain> the object
<wrkrcoop> ok ill try sel
<wrkrcoop> self
nando293921 has joined #ruby
<apeiros> &ri Object#public_send wrkrcoop
<apeiros> call/apply is js :)
qguv has joined #ruby
spudowiar has joined #ruby
<apeiros> (though, then it'd indeed be m.call(a))
<apeiros> then/there
Hobbyboy has joined #ruby
<wrkrcoop> so im doing self.public_send(method, arg1, arg2, arg3, arg4)
<wrkrcoop> that can’t be right because its erroring out
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
Devalo has quit [Ping timeout: 250 seconds]
<apeiros> can't help with "erroring out"
xall has joined #ruby
yeticry has quit [Ping timeout: 276 seconds]
<wrkrcoop> well the app just wont start up and doesnt give a good explanation
yeticry has joined #ruby
swills has quit [Ping timeout: 244 seconds]
aries_liuxueyang has joined #ruby
xlegoman has joined #ruby
swills has joined #ruby
<apeiros> wrkrcoop: well, you don't give a good explanation either
<wrkrcoop> for self.public_send the first argument should be the method as a symbol? the rest are the argumetns?
<apeiros> and afair you've been instructed many many maaaaany times on how to properly provide useful information
jondot has quit [Quit: Leaving.]
<apeiros> yes
* apeiros afk
davidklsn has quit [Ping timeout: 240 seconds]
<wrkrcoop> lmao it was a typo
roflmyeggo has joined #ruby
axl_ has quit [Quit: axl_]
platzhirsch has quit [Ping timeout: 258 seconds]
astrobun_ has joined #ruby
TheWhip has joined #ruby
karapetyan has quit [Remote host closed the connection]
n90b0jjf has joined #ruby
vuoto has quit [Remote host closed the connection]
hahuang65 has joined #ruby
TheWhip has quit [Ping timeout: 244 seconds]
shmuli has quit [Remote host closed the connection]
sleepee has quit [Quit: Leaving]
<wrkrcoop> thanks drbrain apeiros
byteflame has joined #ruby
astrobun_ has quit [Remote host closed the connection]
Derperperd has joined #ruby
swills has quit [Ping timeout: 244 seconds]
swills has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
n90b0jjf has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 264 seconds]
spudowiar has quit [Read error: Connection reset by peer]
n90b0jjf has joined #ruby
n90b0jjf has quit [Remote host closed the connection]
toretore has quit [Ping timeout: 240 seconds]
IanMalcolm has joined #ruby
spudowiar has joined #ruby
IanMalcolm has quit [Max SendQ exceeded]
jhack has quit [Quit: jhack]
hutch34 has quit [Ping timeout: 258 seconds]
mostlybadfly has joined #ruby
symm- has joined #ruby
spudowiar has quit [Ping timeout: 240 seconds]
byteflame has quit [Ping timeout: 258 seconds]
spudowiar has joined #ruby
xxneolithicxx has quit [Quit: Leaving.]
Rodya_ has quit [Remote host closed the connection]
matp has quit [Remote host closed the connection]
astrobun_ has joined #ruby
eljimador has joined #ruby
snath has quit [Ping timeout: 250 seconds]
<wrkrcoop> so i have this module which has a class
<wrkrcoop> and i made all the methods class methods
Rodya_ has joined #ruby
<wrkrcoop> so i dont need to create instances of the class
rodfersou has joined #ruby
<wrkrcoop> i have these instance variables that im trying to set … but i dont have them in an initialize method because i dont instantiate the class
<wrkrcoop> how can i call the methods that they call …
<wrkrcoop> i tried self.method but that didnt work
cschneid_ has quit [Remote host closed the connection]
amitchellbullard has quit [Ping timeout: 244 seconds]
amitchellbullard has joined #ruby
astrobun_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
araujo_ has joined #ruby
rajdesai has joined #ruby
solars has quit [Ping timeout: 244 seconds]
<al2o3-cr> wrkrcoop: self is self, you wear someones jeans. it is theres, otherwise it is yours (presuming you've not tea leafed them)
aghalarp has quit [Quit: Textual IRC Client: www.textualapp.com]
<wrkrcoop> al2o3-cr: so how do i call that method
araujo has quit [Ping timeout: 258 seconds]
Xeago_ has joined #ruby
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> Why are you not just making it into a regular class with an initialize?
<baweaver> you can have an instance of a hammer
Xeago has quit [Ping timeout: 244 seconds]
Xeago_ is now known as Xeago
<baweaver> Tool::Hammer.identify_material
giz|work|2 has joined #ruby
<xpitr> ew
the_rhizo has quit [Ping timeout: 264 seconds]
<baweaver> xpitr?
matp has joined #ruby
soulisson has joined #ruby
<soulisson> Hi, is the random class good for cryptographic purposes?
<wrkrcoop> baweaver: because im going to make thousands of instances then
<soulisson> Random
<wrkrcoop> i dont want to instantatie ti
<baweaver> What exactly are you trying to do?
<baweaver> Because if each hammer is distinct, you need to
<al2o3-cr> double fuckin dutch comes to mind
colept has joined #ruby
<baweaver> al2o3-cr be nice.
<al2o3-cr> k
d0nn1e has quit [Ping timeout: 244 seconds]
<baweaver> soulisson: I think there was a SecureRandom
<baweaver> &ri SecureRandom
<baweaver> aha
<colept> Let's say I have ModuleA with method_missing that calls methodA. I can't seem to override methodA without also overriding method_missing. Why?
<soulisson> baweaver, thank you
symm- has quit [Quit: Leaving...]
<baweaver> colept: Do you have some example code that you could gist?
d0nn1e has joined #ruby
<colept> I'm trying to override `unauthorized_entity`
<wrkrcoop> baweaver: no thats just a random example
<wrkrcoop> i just have a class in a method its actually called SQS::Publisher
<colept> But `method_missing` always executes the module's pre-defined method
<wrkrcoop> i dont want to instantiate the sqs publisher 1000s of times
Rodya_ has quit [Remote host closed the connection]
<baweaver> wrkrcoop: do you have the real code?
nando293921 has quit [Quit: Lost terminal]
symm- has joined #ruby
<baweaver> huh, can't say I've seen that before.
Rodya_ has joined #ruby
<colept> It'z bizarre (using Rails 5)
pawnbox has joined #ruby
<baweaver> Y'might check on #RubyOnRails as well.
spider-mario has quit [Remote host closed the connection]
<colept> okie doke
<colept> thanks baweaver!
<baweaver> np np
Rodya_ has quit [Remote host closed the connection]
<colept> I think this question is more ruby-specific? Is there a way to "override" a method by copying the same source (without explicitly copying it)
<colept> Because if I could just reallocate the method I think it would be ok
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 244 seconds]
nando293921 has joined #ruby
xybre has joined #ruby
PoweredByPrana has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
surrounder has quit [Quit: WeeChat 1.4]
symm- has quit [Quit: Leaving...]
surrounder has joined #ruby
symm- has joined #ruby
agent_white has quit [Quit: brb]
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
PoweredByPrana has joined #ruby
Spami has joined #ruby
kyleolivo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
xall has quit [Ping timeout: 250 seconds]
wrkrcoop has quit [Quit: wrkrcoop]
byteflame has joined #ruby
symm- has quit [Quit: Leaving...]
stevecrozz has joined #ruby
<stevecrozz> I'm finding that Mutex#synchronize occasionally raises Errno::EINTR. Is that expected? I'm not seeing much info on this happening to other people
<stevecrozz> Am I expected to retry interrupted system calls in Mutex#synchronize? or should ruby be doing that under the hood for me?
ur5us has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
griffindy has joined #ruby
flashpoint9 has joined #ruby
PoweredByPrana has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
strat0cat has joined #ruby
TheWhip has joined #ruby