havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elifoster has quit [Ping timeout: 256 seconds]
CloCkWeRX has quit [Ping timeout: 250 seconds]
musicnode has quit [Quit: musicnode]
<mg^> Ox0dec: TracePoint confirmed when the inherited hook got called, which was as I figured... before the subclass is populated
bklane has quit [Remote host closed the connection]
<Ox0dec> mg^: Makes good sense.
FernandoBasso has quit [Quit: Leaving]
<mg^> it explains why so many things that use plugin classes out there require a "register" call of some sort rather than use the inherited hook to auto-register
pawnbox has quit [Ping timeout: 250 seconds]
musicnode has joined #ruby
<mg^> it's less pretty, but it works
sakix has quit [Quit: WeeChat 1.3]
<Ox0dec> mg^: Did you notice the :end event?
kalopsian has joined #ruby
dexter_ has joined #ruby
<Ox0dec> It'd be hairier, but you could start monitoring for the appropriate :end event in the inherited hook.
gbgdev has joined #ruby
bklane has joined #ruby
<mg^> yeah that's an interesting idea
<mg^> I also figure that since I know when all subclasses are loaded, I could search ObjectSpace for unregistered plugins
<mg^> I can't think of a situation in my design where someone would load a plugin, and not want to register it
<mg^> I suppose one might want to manually register it after making sure it was set up properly in a debugging/testing scenario
<mg^> but in that case, since it's not the common one, I'd rather they said something like register(false)
sesquipedalian has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
firstdayonthejob has quit [Ping timeout: 256 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mfb2 has quit [Remote host closed the connection]
ropeney has joined #ruby
dlitvak has joined #ruby
<soLucien> help me translate the following line into method calls : dc1.vm.provision "shell", run: "once", path: "shared/shell/PrepareWindows.ps1"
<soLucien> so call method provision with argument shell
<soLucien> then what does the comma do, and what's with the run:"once" synthax ?
<Canar> it's running a powershell script
<soLucien> i mean i understand it's their own DSL
<Canar> at shared/shell/PrepareWindpows.ps1
blackmes1 has quit [Ping timeout: 250 seconds]
<soLucien> i know, i wrote that line , i know what it does
<soLucien> i just don't know ruby
<soLucien> so i don't understand how does it synthactically make sense
<Mon_Ouie> It's like passing a hash {run: "once", path: "…"} to the method (or passing named arguments)
<soLucien> ok great
<soLucien> now i get it
zcreative has quit [Ping timeout: 256 seconds]
<soLucien> so it can be translated into dc1.vm.provision("shell", {run: "once", path: "shared/shell/PrepareWindows.ps1"})
asccigcc_ has quit [Quit: asccigcc_]
<soLucien> a function with 2 arguments
<soLucien> sorry, let me rephrase
<soLucien> dc1.vm.provision("shell", {run => "once", path => "shared/shell/PrepareWindows.ps1"})
<soLucien> is that the case?
<Mon_Ouie> The translation is correct, but the method definition could look like def provision(thingy, opts = {}) or like def provision(thingy, run:, path:)
Aviio_ has joined #ruby
<Mon_Ouie> That second translation is incorrect though, it would {:run => "once", :path => "shared/…"}
<soLucien> ok, great
dlitvak has quit [Ping timeout: 272 seconds]
jam_ has joined #ruby
<soLucien> so a:b is actually :symbol =>value
duckpuppy has joined #ruby
<Mon_Ouie> Yes, except you have to use either 'a: b' for all the entries or the hash or 'key => value', you can't mix both in the same hash
<soLucien> i get it, perfect
atomical has joined #ruby
charliesome has joined #ruby
<soLucien> thanks !
Aviio has quit [Ping timeout: 250 seconds]
<Ox0dec> >> {a: 1, :b => 2 } # Mon_Ouie: Huh?
<ruby[bot]> Ox0dec: # => {:a=>1, :b=>2} (https://eval.in/509606)
<Mon_Ouie> Oh
<Mon_Ouie> 19>> {a: 1, :b => 2}
symm- has joined #ruby
<ruby[bot]> Mon_Ouie: # => {:a=>1, :b=>2} (https://eval.in/509607)
matti has quit [Quit: Reconnecting]
<Mon_Ouie> Odd, for some reason I thought this wasn't the case
matti has joined #ruby
matti has quit [Changing host]
matti has joined #ruby
CloCkWeRX has joined #ruby
jgt has joined #ruby
atomical_ has quit [Ping timeout: 256 seconds]
kies^ has joined #ruby
<Ox0dec> I can't see why such an arbitrary restriction would've been imposed.
jam_ has quit [Ping timeout: 250 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
william3 has joined #ruby
<soLucien> does a ! in a method name have any specific meaning or interpretation
<soLucien> it is it just fo shizzle
<soLucien> array.reverse!
<Canar> in-place vs. returned value
<soLucien> finalize!
<soLucien> ok i see
<Canar> array.reverse! reverses the content of array
<Canar> array.reverse returns a copy that is reversed
<soLucien> great
<soLucien> makes sense
artX000 has quit [Remote host closed the connection]
mikeiniowa has joined #ruby
ellistaa has quit [Quit: ellistaa]
lemur has quit [Ping timeout: 240 seconds]
mjuszczak has joined #ruby
DLSteve has joined #ruby
weemsledeux has joined #ruby
william3 has quit [Ping timeout: 260 seconds]
mikeiniowa has quit [Remote host closed the connection]
mikeiniowa has joined #ruby
kirun_ has quit [Quit: Client exiting]
emilford has quit [Ping timeout: 256 seconds]
<Ox0dec> "Just look around till you find one, 'kay? Thanks, ObjectSpace."
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yoongkang has joined #ruby
emilford has joined #ruby
kent\n has joined #ruby
kent\n has quit [Changing host]
kent\n has joined #ruby
musicnode has quit [Quit: musicnode]
pawnbox has joined #ruby
yoongkang has quit [Ping timeout: 265 seconds]
emilford has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 264 seconds]
bklane has quit [Remote host closed the connection]
emilford has joined #ruby
<soLucien> ox0dec what does that do?
dlitvak has joined #ruby
Brklyn has quit [Ping timeout: 240 seconds]
musicnode has joined #ruby
hayden_ has quit [Quit: Connection closed for inactivity]
cactuzzz has quit [Quit: cactuzzz]
Coldblackice has quit []
<Ox0dec> soLucien: MRI sometimes hides things from us, but they're usually pretty close in memory to an object it doesn't hide.
<Ox0dec> That searches around in memory (in both directions "at the same time") to find the hidden things.
atomical_ has joined #ruby
<soLucien> yes it looks like a hack
bklane has joined #ruby
mfb2 has joined #ruby
<soLucien> i recognized the__id__ thing from python .. there it's some object-specific variable that the interpreter uses
<soLucien> __variables__
<Ox0dec> In this case it's just an alias for #object_id.
Rickmasta has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
Snowy has quit []
atomical has quit [Ping timeout: 240 seconds]
konsolebox has quit [Ping timeout: 276 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
bklane_ has joined #ruby
bklane has quit [Read error: Connection reset by peer]
jgpawletko has joined #ruby
emilford has joined #ruby
karapetyan has quit [Ping timeout: 245 seconds]
cdg has quit [Remote host closed the connection]
phantummm has quit [Ping timeout: 264 seconds]
joonty has joined #ruby
ebbflowgo has joined #ruby
Coldblackice has joined #ruby
yqt has quit [Ping timeout: 250 seconds]
bklane_ has quit [Remote host closed the connection]
joonty has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n_blownapart has quit []
dlitvak has joined #ruby
davedev24 has quit []
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Limix has quit [Quit: Limix]
symm- has quit [Ping timeout: 264 seconds]
x77686d has quit [Quit: x77686d]
mrsolo_ has joined #ruby
musicnode has quit [Quit: musicnode]
spider-mario has quit [Remote host closed the connection]
dfockler has quit [Ping timeout: 272 seconds]
dexter_ has quit [Ping timeout: 250 seconds]
Limix has joined #ruby
Sucks has joined #ruby
musicnode has joined #ruby
dome22xl has quit [Ping timeout: 240 seconds]
phantummm has joined #ruby
Jardayn has quit [Ping timeout: 276 seconds]
william3 has joined #ruby
Limix has quit [Quit: Limix]
baweaver has joined #ruby
dasboot has quit [Remote host closed the connection]
pawnbox has joined #ruby
dasboot has joined #ruby
syk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Aviio_ has quit [Remote host closed the connection]
ElFerna_ has joined #ruby
bklane has joined #ruby
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nickjj_ has joined #ruby
william3 has quit [Ping timeout: 276 seconds]
dtordable has quit [Read error: Connection reset by peer]
dtordable has joined #ruby
marr has quit [Ping timeout: 256 seconds]
rmrrn has quit [Ping timeout: 256 seconds]
pawnbox has quit [Ping timeout: 264 seconds]
nickjj has quit [Ping timeout: 256 seconds]
mfb2 has quit [Remote host closed the connection]
phantummm has quit [Quit: WeeChat 1.3]
sneakerhax has quit [Ping timeout: 272 seconds]
blackmes1 has joined #ruby
griffindy has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
htmldrum has joined #ruby
stevemackinnon has joined #ruby
dasboot has quit [Remote host closed the connection]
mjuszczak has quit []
sankaber has joined #ruby
dasboot has joined #ruby
snockerton has quit [Quit: Leaving.]
sankaber has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sankaber has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
sdothum has joined #ruby
Darmani has joined #ruby
<Darmani> Hey kids<3
mjuszczak has joined #ruby
bonhoeffer_ has joined #ruby
usershell has joined #ruby
bonhoeffer_ is now known as bonhoeffer
mfb2 has joined #ruby
mfb2 has quit [Remote host closed the connection]
bklane has quit [Remote host closed the connection]
bklane_ has joined #ruby
tape88 has quit [Read error: Connection reset by peer]
joonty has joined #ruby
pawnbox has joined #ruby
william3 has joined #ruby
musicnode has quit [Quit: musicnode]
RobertBi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dlitvak has quit [Ping timeout: 272 seconds]
mjuszczak has quit []
sh1rt has quit [Quit: WeeChat 1.0.1]
dasboot has quit [Remote host closed the connection]
joonty has quit [Ping timeout: 250 seconds]
dasboot has joined #ruby
tape88 has joined #ruby
x77686d has joined #ruby
dlitvak has joined #ruby
pawnbox has quit [Ping timeout: 272 seconds]
william3 has quit [Ping timeout: 250 seconds]
ElFerna_ has quit [Ping timeout: 240 seconds]
usershell has quit [Remote host closed the connection]
usershell has joined #ruby
musicnode has joined #ruby
mfb2 has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
william3 has joined #ruby
govg has quit [Ping timeout: 264 seconds]
mfb2 has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
william3 has quit [Ping timeout: 272 seconds]
dlitvak has quit [Remote host closed the connection]
graffix222 has quit [Read error: Connection reset by peer]
govg has joined #ruby
graffix222 has joined #ruby
jam_ has joined #ruby
duckpuppy has joined #ruby
zambini has quit [Quit: Leaving.]
ElFerna_ has joined #ruby
mfb2 has joined #ruby
Xeago has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
jam_ has quit [Ping timeout: 260 seconds]
Limix has joined #ruby
gambl0re has joined #ruby
gambl0re has quit [Changing host]
gambl0re has joined #ruby
lemur has joined #ruby
musicnode has quit [Quit: musicnode]
blackmes1 has quit [Ping timeout: 272 seconds]
ElFerna_ has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
baweaver has quit [Remote host closed the connection]
maletor has quit [Client Quit]
yoongkang has joined #ruby
pawnbox has joined #ruby
Xeago has quit [Ping timeout: 250 seconds]
Limix has quit [Client Quit]
bklane_ has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 256 seconds]
lemur has quit [Ping timeout: 250 seconds]
altair118 has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
musicnode has joined #ruby
yoongkang has quit [Ping timeout: 260 seconds]
hlegius has joined #ruby
ledestin has joined #ruby
arlek has quit [Read error: Connection reset by peer]
arlek has joined #ruby
aryaching has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
usershell has quit [Remote host closed the connection]
william3 has joined #ruby
bklane has joined #ruby
RobertBirnie has joined #ruby
ur5us has joined #ruby
pickandmix has joined #ruby
mrsolo_ has quit [Quit: This computer has gone to sleep]
william3 has quit [Ping timeout: 240 seconds]
paradisaeidae has joined #ruby
govg has quit [Ping timeout: 245 seconds]
f00dMonsta__ has quit [Remote host closed the connection]
govg has joined #ruby
emilford has quit [Ping timeout: 272 seconds]
okdas has quit [Ping timeout: 256 seconds]
hlegius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
dexter_ has joined #ruby
okdas has joined #ruby
okdas has quit [Changing host]
okdas has joined #ruby
Bloomer has joined #ruby
JDiPierro has quit [Remote host closed the connection]
ur5us_ has joined #ruby
joonty has joined #ruby
htmldrum has joined #ruby
william3 has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
A124 has quit [Read error: Connection reset by peer]
joonty has quit [Ping timeout: 245 seconds]
BlkDynmt has quit [Quit: BlkDynmt]
william3 has quit [Ping timeout: 245 seconds]
arthropododo has quit [Remote host closed the connection]
jbrhbr1 has quit [Ping timeout: 245 seconds]
A124 has joined #ruby
User458764 has joined #ruby
dopamean_ has joined #ruby
pawnbox has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
braian has joined #ruby
mg^2 has joined #ruby
pdoherty has joined #ruby
<mg^2> First time connecting to here with my custom HexChat featuring embedded MRuby
duncannz has joined #ruby
ur5us has joined #ruby
pawnbox has quit [Ping timeout: 272 seconds]
dstarh has joined #ruby
stannard has quit [Remote host closed the connection]
tjbiddle has joined #ruby
altair118 has joined #ruby
bonhoeffer has left #ruby [#ruby]
ur5us_ has quit [Ping timeout: 245 seconds]
SenpaiSilver has quit [Quit: Leaving]
braian has quit [Quit: Leaving]
freerobby has quit [Quit: Leaving.]
mg^2 has quit [Quit: Leaving]
musicnode has quit [Quit: musicnode]
saneax_AFK is now known as saneax
frem has quit [Quit: Connection closed for inactivity]
freerobby has joined #ruby
[ace]_ is now known as [ace]
jbrhbr has joined #ruby
iateadonut has joined #ruby
JDiPierro has joined #ruby
AtmosFear has joined #ruby
musicnode has joined #ruby
SenpaiSilver has joined #ruby
<AtmosFear> hey can anyone tell me how to include a module from a gem? In the gem itself, it uses "require 'unit/response_stubs/capture_stubs'" and I want to require that same file in one of my tests
musicnode has quit [Client Quit]
nerium has quit [Quit: nerium]
nerium has joined #ruby
musicnode has joined #ruby
JDiPierro has quit [Ping timeout: 276 seconds]
cpup has quit [Ping timeout: 250 seconds]
visudo has quit [Quit: visudo]
usershell has joined #ruby
jbrhbr has quit [Quit: Leaving.]
karapetyan has joined #ruby
musicnode has quit [Quit: musicnode]
musicnode has joined #ruby
cpup has joined #ruby
toretore has quit [Ping timeout: 276 seconds]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
p0wn3d has joined #ruby
karapetyan has quit [Ping timeout: 245 seconds]
RobertBirnie has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
musicnode has quit [Quit: musicnode]
pawnbox has joined #ruby
howdoi has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
El3ktra has quit [Read error: Connection timed out]
pawnbox has quit [Ping timeout: 245 seconds]
El3ktra has joined #ruby
El3ktra has quit [Changing host]
El3ktra has joined #ruby
<kspencer> I want to test my script that has highline, but don't know how to go about it, because i don't think the actual test gem will work for it, or to set it up
agent_white is now known as agent_afk
_djbkd has quit [Quit: My people need me...]
babblebre has quit [Quit: Connection closed for inactivity]
BlkDynmt has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
joonty has joined #ruby
mistermocha has joined #ruby
<AtmosFear> quit
AtmosFear has quit [Quit: rcirc on GNU Emacs 24.5.1]
joonty has quit [Ping timeout: 264 seconds]
ereslibre_laptop has quit [Ping timeout: 265 seconds]
braincras has quit [Quit: bye bye]
cdg has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
gbgdev has quit [Remote host closed the connection]
treaki_ has joined #ruby
RegulationD has quit [Remote host closed the connection]
zast has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
nfk|laptop has quit [Quit: yawn]
treaki has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
dlitvak has joined #ruby
treaki has joined #ruby
duncannz has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
treaki__ has quit [Ping timeout: 276 seconds]
p0wn3d has quit [Ping timeout: 250 seconds]
duncannz has joined #ruby
pawnbox has joined #ruby
braincrash has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
idefine has quit [Remote host closed the connection]
jam_ has joined #ruby
kalopsian has quit [Ping timeout: 250 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
freerobby has quit [Quit: Leaving.]
pawnbox has quit [Ping timeout: 240 seconds]
william3 has joined #ruby
duckpuppy has joined #ruby
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
william3 has quit [Ping timeout: 240 seconds]
duncannz has quit [Remote host closed the connection]
pdoherty has quit [Ping timeout: 240 seconds]
duckpuppy has quit [Ping timeout: 272 seconds]
duncannz has joined #ruby
idefine has joined #ruby
zast has left #ruby [#ruby]
solocshaw has quit [Ping timeout: 250 seconds]
psy has quit [Read error: No route to host]
ponga has joined #ruby
idefine has quit [Ping timeout: 245 seconds]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_seanc_ has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xpt has joined #ruby
duncannz has quit [Remote host closed the connection]
sankaber has joined #ruby
xpt has quit [Client Quit]
xpt has joined #ruby
DiggerNick_ has joined #ruby
sankaber has quit [Remote host closed the connection]
pawnbox has joined #ruby
sankaber has joined #ruby
gix has quit [Ping timeout: 272 seconds]
BlkDynmt has quit [Quit: BlkDynmt]
aryaching has quit [Read error: No route to host]
Darmani has quit [Ping timeout: 252 seconds]
Ebok has joined #ruby
gix has joined #ruby
pawnbox has quit [Ping timeout: 265 seconds]
DiggerNick_ has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
devbug_ has joined #ruby
devbug__ has joined #ruby
joonty has joined #ruby
Sucks has quit [Read error: Connection reset by peer]
devbug has quit [Ping timeout: 250 seconds]
devbug__ has quit [Ping timeout: 250 seconds]
syk has joined #ruby
syk has quit [Client Quit]
joonty has quit [Ping timeout: 256 seconds]
c0ncealed has quit [Remote host closed the connection]
c0ncealed has joined #ruby
grill has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mrsolo_ has joined #ruby
dseitz has quit [Read error: Connection reset by peer]
dlitvak has joined #ruby
kalopsian has joined #ruby
mrsolo_ has quit [Client Quit]
stevemackinnon has quit [Remote host closed the connection]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has quit [Ping timeout: 240 seconds]
mrsolo_ has joined #ruby
mistermocha has joined #ruby
stevemackinnon has joined #ruby
BlkDynmt has joined #ruby
kalopsian has quit [Ping timeout: 260 seconds]
zambini has joined #ruby
william3 has joined #ruby
zambini has quit [Client Quit]
mistermocha has quit [Ping timeout: 260 seconds]
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
exolu has joined #ruby
william3 has quit [Ping timeout: 245 seconds]
duckpuppy has joined #ruby
lyoshajapan has joined #ruby
duncannz has joined #ruby
exolu has left #ruby ["Leaving"]
griffindy has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
duncannz has quit [Ping timeout: 260 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
mrsolo_ has quit [Quit: This computer has gone to sleep]
duncannz has joined #ruby
Aviio has joined #ruby
Waheedi has joined #ruby
duncannz has quit [Read error: Connection reset by peer]
sigurding has joined #ruby
Aviio_ has joined #ruby
skcin7 has joined #ruby
stevemackinnon has quit [Remote host closed the connection]
<kspencer> I also noticed that the default in highline is not output at the end when there is a validation or that it is in a range or an integer, one of them
Aviio has quit [Ping timeout: 250 seconds]
krz has joined #ruby
ecksit has joined #ruby
Aviio_ has quit [Remote host closed the connection]
ecksit has quit [Max SendQ exceeded]
cdg has quit [Remote host closed the connection]
ecksit has joined #ruby
ecksit has quit [Max SendQ exceeded]
skade has joined #ruby
ecksit has joined #ruby
longlene has joined #ruby
ecksit has quit [Max SendQ exceeded]
ecksit has joined #ruby
ecksit has quit [Client Quit]
joonty has joined #ruby
mfb2 has quit [Remote host closed the connection]
pawnbox has joined #ruby
mfb2 has joined #ruby
cajone_afk is now known as cajone
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
dlitvak has joined #ruby
joonty has quit [Ping timeout: 264 seconds]
mfb2 has quit [Ping timeout: 240 seconds]
nodejunkie has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
astrobun_ has joined #ruby
_djbkd has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
baweaver_ has joined #ruby
barhum2013 has joined #ruby
akaiiro has quit [Ping timeout: 240 seconds]
lemur has quit [Ping timeout: 250 seconds]
musicnode has joined #ruby
yoongkang has joined #ruby
anisha_ has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
yoongkang has quit [Ping timeout: 240 seconds]
mfb2 has joined #ruby
lyoshajapan has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
dionysus69 has joined #ruby
arescorpio has joined #ruby
william3 has joined #ruby
krz has quit [Ping timeout: 256 seconds]
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 44.0/20160123151951]]
jbrhbr has joined #ruby
william3 has quit [Ping timeout: 245 seconds]
tjbiddle has joined #ruby
lyoshajapan has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
darkf has joined #ruby
duncannz has joined #ruby
arup_r has quit []
aganov has joined #ruby
yfeldblum has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
jbrhbr1 has joined #ruby
william3 has joined #ruby
jbrhbr has quit [Ping timeout: 250 seconds]
duncannz has quit [Remote host closed the connection]
piotrj has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
william3 has quit [Ping timeout: 245 seconds]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
sandstrom has joined #ruby
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has quit [Client Quit]
piotrj has quit [Remote host closed the connection]
musicnode has quit [Quit: musicnode]
duckpuppy has quit [Ping timeout: 240 seconds]
zapata has quit [Ping timeout: 240 seconds]
Aviio has joined #ruby
william3 has joined #ruby
Aviio_ has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
cdg has joined #ruby
duckpuppy has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Aviio has quit [Ping timeout: 272 seconds]
govg has quit [Ping timeout: 240 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
william3 has quit [Ping timeout: 245 seconds]
atomical_ has quit [Ping timeout: 240 seconds]
govg has joined #ruby
Dimik has joined #ruby
RegulationD has quit [Remote host closed the connection]
duncannz has joined #ruby
joonty has joined #ruby
duncannz has quit [Max SendQ exceeded]
bklane_ has joined #ruby
duncannz has joined #ruby
lyoshajapan has joined #ruby
aufi has joined #ruby
jam_ has quit []
bklane_ has quit [Remote host closed the connection]
bklane has quit [Ping timeout: 250 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
kalopsian has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
mfb2 has quit [Remote host closed the connection]
zapata has joined #ruby
joonty has quit [Ping timeout: 264 seconds]
bklane has joined #ruby
visudo has joined #ruby
amclain has quit [Quit: Leaving]
altair11_ has joined #ruby
mfb2 has joined #ruby
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
Aviio_ has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
duncannz has quit [Read error: Connection reset by peer]
skade has joined #ruby
sigurding has joined #ruby
ur5us has joined #ruby
duncannz has joined #ruby
kalopsian has quit [Ping timeout: 245 seconds]
rkazak has joined #ruby
altair118 has quit [Ping timeout: 260 seconds]
mfb2 has quit [Ping timeout: 240 seconds]
ohaibbq has joined #ruby
duckpuppy has quit [Ping timeout: 265 seconds]
sigurding has quit [Ping timeout: 240 seconds]
arescorpio has quit [Quit: Leaving.]
pickandmix has quit [Quit: Page closed]
yoongkang has joined #ruby
duckpuppy has joined #ruby
goodroot has quit [Ping timeout: 265 seconds]
piotrj has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 276 seconds]
yoongkang has quit [Ping timeout: 272 seconds]
cactuzzz has joined #ruby
nerium has quit [Quit: nerium]
andikr has joined #ruby
krz has joined #ruby
troulouliou_div2 has joined #ruby
charliesome has joined #ruby
krz has quit [Ping timeout: 265 seconds]
altair118 has joined #ruby
lyoshajapan has quit [Ping timeout: 250 seconds]
bigkevmcd has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
bigkevmcd has joined #ruby
RegulationD has joined #ruby
altair11_ has quit [Ping timeout: 240 seconds]
solars has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf_ has joined #ruby
darkf has quit [Ping timeout: 265 seconds]
bklane has quit [Remote host closed the connection]
akem has joined #ruby
saneax is now known as saneax_AFK
RegulationD has quit [Ping timeout: 240 seconds]
s00pcan has quit [Ping timeout: 240 seconds]
s00pcan has joined #ruby
akem has quit [Client Quit]
akem has joined #ruby
devbug has joined #ruby
govg has quit [Ping timeout: 250 seconds]
codecop has joined #ruby
symm- has joined #ruby
cactuzzz has quit [Quit: cactuzzz]
duckpuppy has quit [Ping timeout: 245 seconds]
firstdayonthejob has joined #ruby
devbug has quit [Ping timeout: 245 seconds]
darkf_ has quit [Ping timeout: 240 seconds]
darkf has joined #ruby
william3 has joined #ruby
lyoshajapan has joined #ruby
TechNick99 has joined #ruby
akem has quit [Quit: Bye]
vondruch has joined #ruby
william3 has quit [Ping timeout: 245 seconds]
usershell has quit [Read error: Connection reset by peer]
darkf has quit [Ping timeout: 260 seconds]
scepticulous has joined #ruby
usershell has joined #ruby
sandstrom has joined #ruby
_djbkd has quit [Quit: My people need me...]
duncannz has quit [Remote host closed the connection]
rkazak has quit [Quit: Sleep.....ing....]
cdg has joined #ruby
duncannz has joined #ruby
darkf has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agit0 has quit [Quit: zzzZZZ….]
charliesome has joined #ruby
arup_r has joined #ruby
visudo has quit [Quit: visudo]
moeabdol has quit [Ping timeout: 256 seconds]
arlek has quit [Ping timeout: 250 seconds]
william3 has joined #ruby
Burgestrand has joined #ruby
devbug has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
srenatus has joined #ruby
Brklyn has joined #ruby
william3 has quit [Ping timeout: 245 seconds]
devbug_ has quit [Ping timeout: 250 seconds]
Ox0dec has quit [Ping timeout: 240 seconds]
TomyWork has joined #ruby
Brklyn has quit [Ping timeout: 256 seconds]
futilegames has joined #ruby
jbrhbr1 has quit [Quit: Leaving.]
blur3d has joined #ruby
darkf_ has joined #ruby
charliesome has quit [Ping timeout: 276 seconds]
blackgoat has quit [Quit: WeeChat 1.3]
yoongkang has joined #ruby
terminalrecluse has joined #ruby
terminalrecluse has quit [Client Quit]
lyoshajapan has quit [Remote host closed the connection]
darkf has quit [Ping timeout: 250 seconds]
govg has joined #ruby
agent_afk is now known as agent_white
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
barhum2013 has quit [Quit: barhum2013]
PedramT_ has joined #ruby
futilegames has quit [Quit: futilegames]
joneshf-laptop has quit [Ping timeout: 276 seconds]
devbug_ has joined #ruby
x77686d has quit [Quit: x77686d]
Xeago has joined #ruby
Napear has joined #ruby
MrSamuel has joined #ruby
Brklyn has joined #ruby
CloCkWeRX has joined #ruby
mdw has joined #ruby
agent_white has quit [Quit: brb]
darkf_ is now known as darkf
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
Jokoast has joined #ruby
<Jokoast> Hii.
Brklyn has quit [Ping timeout: 240 seconds]
devbug_ has quit [Ping timeout: 240 seconds]
<Jokoast> Is someone here and able to help me finding a gem ?
altair118 has quit []
PedramT has joined #ruby
blur3d has quit [Quit: blur3d]
RegulationD has quit [Ping timeout: 265 seconds]
ohaibbq has quit [Quit: Leaving...]
<manveru> Jokoast: hi, did you try ruby-toolbox.com ?
ur5us has quit [Remote host closed the connection]
Waheedi has quit [Quit: Waheedi]
PedramT_ has quit [Ping timeout: 240 seconds]
<atmosx> or gem search <gem>
firstdayonthejob has quit [Ping timeout: 272 seconds]
<manveru> meh, those are too easy :)
gbgdev has joined #ruby
howdoicomputer has joined #ruby
chussenot has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
<Jokoast> Hi again guys. I'm using rmagick (what a pain to install it)
User458764 has joined #ruby
<Jokoast> But i need to turn a picture into 2 colors (B&W) and force the edges to appear to convert it in a grid (to make a little game for a student project)
andchar has joined #ruby
chussenot has quit [Client Quit]
<Jokoast> And funny btw
gbgdev has quit [Ping timeout: 264 seconds]
rdark has joined #ruby
bodi has joined #ruby
longlene has left #ruby [#ruby]
muvbit has joined #ruby
howdoicomputer has quit [Ping timeout: 240 seconds]
SCHAAP137 has joined #ruby
karapetyan has joined #ruby
charliesome has joined #ruby
kalopsian has joined #ruby
devbug has quit [Read error: Connection reset by peer]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
gbgdev has joined #ruby
devbug has joined #ruby
mrd_ has joined #ruby
baweaver_ has quit [Read error: Connection reset by peer]
kalopsian has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
usershell has quit [Read error: Connection reset by peer]
krz has joined #ruby
<manveru> Jokoast: good luck :)
hayden_ has joined #ruby
<manveru> RMagick may be a PITA to install, but they do have pretty good docs at least
mdw has quit [Quit: Sleeping Zzzzz]
usershell has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
<Jokoast> @manveru : Thx dude
charliesome has joined #ruby
<Jokoast> @manveru : i'll give it a new try so ...
<manveru> maybe something like this?
Xeago has quit [Read error: Connection reset by peer]
krz has quit [Ping timeout: 265 seconds]
juddey has quit [Ping timeout: 240 seconds]
MrSamuel has quit [Ping timeout: 250 seconds]
mdw has joined #ruby
<manveru> can't really help you much more, sorry
Ishido has joined #ruby
karapetyan has quit [Remote host closed the connection]
Pumukel has joined #ruby
User458764 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Oog has joined #ruby
sftrabbit has joined #ruby
lxsameer has joined #ruby
kerunaru has joined #ruby
nerium has joined #ruby
Abrin has quit [Ping timeout: 272 seconds]
mark2 has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
Dimik has quit [Ping timeout: 256 seconds]
<Jokoast> Ty for helping manveru
<Jokoast> :)
<Jokoast> cu later
Jokoast has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
einarj has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gbgdev has quit [Remote host closed the connection]
Oog has quit []
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
marr has joined #ruby
rodfersou has joined #ruby
drptbl has joined #ruby
william3 has joined #ruby
Snowy has joined #ruby
symm- has quit [Ping timeout: 276 seconds]
Pumukel has joined #ruby
chussenot has joined #ruby
barhum2013 has joined #ruby
kp666 has quit [Quit: Leaving]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
barhum2013 has quit [Client Quit]
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
barhum2013 has joined #ruby
Xeago has quit [Remote host closed the connection]
<bob_f> Is there a neat idiom for returning `nil` if a value is `nil`, or `val.to_i` otherwise ?
<bob_f> `val.nil? ? nil : val.to_i` is fine, just seems like Ruby usually has some trick for this kind of thing.
robbyoconnor has joined #ruby
huyderman has joined #ruby
piotrj has quit [Read error: Connection reset by peer]
piotrj_ has joined #ruby
dlitvak has joined #ruby
william3 has quit [Remote host closed the connection]
PedramT has quit [Remote host closed the connection]
charliesome has joined #ruby
<heftig> bob_f: val?.to_i if you use 2.3
<heftig> >> nil
<ruby[bot]> heftig: # => nil (https://eval.in/509675)
<heftig> >> val = 3; val?.to_i
<ruby[bot]> heftig: # => undefined method `val?' for main:Object (NoMethodError) ...check link for more (https://eval.in/509676)
karapetyan has joined #ruby
<heftig> er, it was &.
<heftig> >> val = 3; val&.to_i
Terens has joined #ruby
RegulationD has joined #ruby
<ruby[bot]> heftig: # => 3 (https://eval.in/509677)
<heftig> >> val = nil; val&.to_i
PedramT has joined #ruby
Ox0dea has joined #ruby
<heftig> >> val = nil; val&.to_i
<ruby[bot]> heftig: # => nil (https://eval.in/509678)
<Ox0dea> heftig: It was never `?.`, but it did used to be `.?`.
<bob_f> heftig: Unfortunately we don't use 2.3 yet.
<bob_f> But I remember that syntax looking appealing. :)
<bob_f> We're bumping to 2.3.0 soon, we just decided to leave it in the wild for a month first.
<Terens> roobi
charliesome has quit [Client Quit]
charliesome has joined #ruby
<Ox0dea> bob_f: The only other potential nicety in that case would be #try, but that has different semantics.
<Ox0dea> https://bugs.ruby-lang.org/issues/11939 hasn't caught on, but I think it'd be nice.
RegulationD has quit [Ping timeout: 265 seconds]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
duckpuppy has joined #ruby
<Ox0dea> Then you'd be able to say something scary like `foo ||= .to_i`.
<Ox0dea> Er, *&&=.
william3 has joined #ruby
<heftig> brian of rubinius slams the new operator, though: http://rubinius.com/2016/01/11/nil-is-not-null-and-other-tales/
<heftig> seems he's being rather confrontational lately
yfeldblum has joined #ruby
dlitvak has quit [Ping timeout: 265 seconds]
dlitvak_ has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 272 seconds]
User458764 has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
shredding has joined #ruby
<Ox0dea> Not exactly a recent development, frankly. :<
nerium has quit [Quit: nerium]
syk has joined #ruby
nettoweb has joined #ruby
bruce__lee has joined #ruby
PedramT has quit [Remote host closed the connection]
piotrj_ has quit [Remote host closed the connection]
piotrj has joined #ruby
kerunaru has quit [Ping timeout: 256 seconds]
bruce_lee has quit [Ping timeout: 260 seconds]
lee-jon has joined #ruby
piotrj has quit [Read error: Connection reset by peer]
piotrj_ has joined #ruby
kerunaru has joined #ruby
<shevy> :>
sigurding has quit [Quit: sigurding]
ItSANgo has quit [Quit: Leaving...]
Xeago has joined #ruby
<shevy> I haven't even adjusted to -> yet, &. is even farther away from my learning speed!
<apeiros> and then utf-8, teh horror. how will you ever.
tomphp has joined #ruby
colli5ion has joined #ruby
<shevy> hah I can avoid utf!
usershell has quit [Read error: Connection reset by peer]
<shevy> though my yaml files are all invalid :(
Aviio has joined #ruby
fbandov has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
yoongkang has quit [Remote host closed the connection]
PedramT has joined #ruby
<shevy> I am not sure I understand the criticism there ... &. is different to .dig isn't it?
usershell has joined #ruby
<Ox0dea> The semantics are quite similar.
sigurding has joined #ruby
<Ox0dea> thing.dig(foo, bar) == thing&.[](foo)&.[](bar)
dwfait has joined #ruby
sepp2k has joined #ruby
Aviio has quit [Ping timeout: 252 seconds]
<Ox0dea> >> :foo.to_proc.binding
<ruby[bot]> Ox0dea: # => /tmp/execpad-1be44dfc6003/source-1be44dfc6003:2: [BUG] Segmentation fault at 0xb01116 ...check link for more (https://eval.in/509692)
<Ox0dea> What should that even do?
evidex has joined #ruby
anisha_ has quit [Quit: Leaving]
usershell has quit [Client Quit]
blackmes1 has joined #ruby
dlitvak has joined #ruby
arlek has joined #ruby
dlitvak_ has quit [Ping timeout: 260 seconds]
sftrabbit has quit [Quit: sftrabbit]
lyoshajapan has joined #ruby
sftrabbit has joined #ruby
<Ox0dea> I reckon it should either return nil or TOPLEVEL_BINDING, but it's hard to say which.
aufi_ has joined #ruby
william3 has quit [Remote host closed the connection]
aufi has quit [Ping timeout: 276 seconds]
<manveru> yeah... i might have to start using rubinius if they actually implement traceable nil
elaptics`away is now known as elaptics
<manveru> fully agree with brixen on this issue
<manveru> wasn't even aware of the plan to add &. until 2.3 was released :|
FernandoBasso has joined #ruby
<apeiros> manveru: hm? traceable nil as in where nil originated?
lyoshajapan has quit [Ping timeout: 265 seconds]
<manveru> yeah
<manveru> did you read his blog post?
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sonOfRa has quit [Quit: Bye!]
<Ox0dea> Rubinius in dev, CRuby in prod; what could go wrong?
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Liam` has quit [Quit: http://bouncer.ml]
sonOfRa has joined #ruby
SOLDIERz has joined #ruby
drptbl has joined #ruby
william3 has joined #ruby
lee-jon has quit [Quit: lee-jon]
ElFerna_ has joined #ruby
drptbl has quit [Max SendQ exceeded]
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
drptbl has joined #ruby
baweaver has joined #ruby
william3 has quit [Remote host closed the connection]
<shevy> I am all for more tracing and introspection!
william3 has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
sigurding has quit [Quit: sigurding]
drptbl has quit [Max SendQ exceeded]
Sembei has joined #ruby
drptbl has joined #ruby
Burgestrand has joined #ruby
duncannz has quit [Remote host closed the connection]
sigurding has joined #ruby
william3 has quit [Remote host closed the connection]
fbandov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
arup_r has joined #ruby
baweaver has quit [Ping timeout: 272 seconds]
Liam` has joined #ruby
sonOfRa has quit [Quit: Bye!]
william3 has joined #ruby
karapetyan has quit [Remote host closed the connection]
sonOfRa has joined #ruby
<shevy> "Values like 1, 0xcafe, true, false, and nil are immediate values"
<shevy> hey Ox0dea ... for a moment I thought your nick was mentioned there...
<Ox0dea> Heh.
RegulationD has quit [Ping timeout: 264 seconds]
<shevy> the scary Oxcafe
<Ox0dea> >> 0xdeadbeefcafebabe
<ruby[bot]> Ox0dea: # => 16045690984503098046 (https://eval.in/509701)
<shevy> hehe
kalopsian has joined #ruby
<Ox0dea> >> 0xABear.!
<ruby[bot]> Ox0dea: # => false (https://eval.in/509702)
andchar has quit [Ping timeout: 276 seconds]
ElFerna_ has quit [Ping timeout: 240 seconds]
<Ox0dea> This is kinda weird: https://git.io/vzbKi
<Ox0dea> They wrote that massive time_mdump() function and then don't even expose it.
<gregf_> >>class String; def == other; true;end;end; "Ox0dea" == "Oxcafe"
<ruby[bot]> gregf_: # => true (https://eval.in/509703)
<Ox0dea> gregf_: What's all this, then?
william3 has quit [Remote host closed the connection]
* kent\n wonders what happens if he executes "# Ox0dea |= 0xFFFFFF"
<shevy> scary code in Ruby-C shall be hidden from you!
PedramT has quit [Remote host closed the connection]
william3 has joined #ruby
<Ox0dea> kent\n: Why so many nybbles?
kalopsian has quit [Ping timeout: 256 seconds]
PedramT has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
<kent\n> Because if I used a full byte, then a hook would be triggered and the whole line of code would be pulled in.
<Ox0dea> I've only got the three; the padding is for ease of pronunciation.
* kent\n toys with fishing metaphors
Xeago has quit [Remote host closed the connection]
BaroMeter has joined #ruby
Brklyn has joined #ruby
<kent\n> I guess the question was more if your specific sandbox you have for your nickname permits invasive ops that would set your nickname to MAX_NICK, or if only post-increment/decrement are permitted ;)
PedramT has quit [Remote host closed the connection]
william3 has quit [Read error: Connection reset by peer]
<kent\n> people have been similarly tempted to chomp my nickname, only to discover its been defined as an immutable constant.
gbgdev has joined #ruby
<Mon_Ouie> Ox0dea: Except time_dump, which is exposed, uses time_mdump
<Ox0dea> kent\n: It's frozen, you say? :P
<Ox0dea> Mon_Ouie: Oh, fair enough.
<Ox0dea> 18>> 2 * ?\r * (RUBY_COPYRIGHT.size * 3 - ?\n) == 0x0dea
<ruby[bot]> Ox0dea: # => true (https://eval.in/509708)
stevemackinnon has joined #ruby
<Ox0dea> No one knows what it means, but it's provocative.
PedramT has joined #ruby
Brklyn has quit [Ping timeout: 256 seconds]
nodejunkie has quit [Ping timeout: 265 seconds]
yoongkang has joined #ruby
karapetyan has joined #ruby
<Ox0dea> kent\n: Gotcha! https://eval.in/509709
<kent\n> Ox0dea: indeed. But its more pervasive than that, because were you to even find a way around freeze with some C level magic, you'd only be modifying a single value, because the value is constant folded by the time you observe it =)
<Ox0dea> Nice timing. :P
piotrj_ has quit [Remote host closed the connection]
namxam has joined #ruby
sigurding has quit [Quit: sigurding]
* kent\n had to check what freeze meant first because I had forgotten ;)
piotrj has joined #ruby
karapetyan has quit [Remote host closed the connection]
TomyLobo2 has joined #ruby
fbandov has joined #ruby
blarghlarghl has quit [Remote host closed the connection]
william3 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
namxam has quit [Remote host closed the connection]
mrd_ has quit [Quit: Leaving]
ldnunes has joined #ruby
william3 has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
c0m0 has joined #ruby
lee-jon has joined #ruby
william3_ has joined #ruby
PedramT has quit [Remote host closed the connection]
BaroMeter has quit [Quit: Leaving]
PedramT has joined #ruby
william3_ has quit [Ping timeout: 250 seconds]
william3 has joined #ruby
william3 has quit [Remote host closed the connection]
goodroot has joined #ruby
namxam has joined #ruby
bodi has quit [Remote host closed the connection]
william3 has joined #ruby
User458764 has joined #ruby
<sts> hello folks. I would like to ship a internal ruby library via a debian package. I usually use bundler to manage dependencies; is there a way to tell bundler to install gems in a way so I can simply put the files in /usr/lib/ruby/vendor_ruby?
blackmes1 has quit [Ping timeout: 276 seconds]
skade has quit [Ping timeout: 276 seconds]
nerium has joined #ruby
william3 has quit [Remote host closed the connection]
treaki__ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
treaki has quit [Ping timeout: 272 seconds]
treaki_ has quit [Ping timeout: 272 seconds]
DoubleMalt has joined #ruby
arup___ has joined #ruby
treaki has joined #ruby
arup___ has quit [Client Quit]
Bloomer has quit [Remote host closed the connection]
<shevy> hmm ... what was the name of the thing that shows you how much time is spent in each individual method of a given class?
arup___ has joined #ruby
<Ox0dea> A profiler?
william3 has joined #ruby
wanderer has joined #ruby
<Ox0dea> Probably you've got ruby-prof in mind.
<shevy> hmm
wanderer is now known as Guest13183
<shevy> ok
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has quit [Ping timeout: 256 seconds]
tjbiddle has quit [Quit: tjbiddle]
Allen has joined #ruby
jgt has quit [Ping timeout: 250 seconds]
Guest13183 has quit [Changing host]
Guest13183 has joined #ruby
Guest13183 is now known as wanderer
Allen has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
futilegames has joined #ruby
Burgestrand has joined #ruby
lxsameer has quit [Quit: Leaving]
RegulationD has joined #ruby
cdg has joined #ruby
<headius> manveru: I hope you don't agree with the method_missing thing, because that would be terrible
<headius> tracing nils is clever but I think there's some confusion about what &. is for
william3 has quit [Remote host closed the connection]
drptbl has quit [Quit: See you later!]
futilegames has quit [Quit: futilegames]
william3 has joined #ruby
stevemackinnon has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 260 seconds]
drptbl has joined #ruby
lee-jon has quit [Quit: lee-jon]
colli5ion has quit [Ping timeout: 245 seconds]
<Ox0dea> It's fine to want to use some nested data iff it's there; explicitly handling the intermediates in such cases is just noise.
duckpuppy has joined #ruby
mauricio has joined #ruby
lee-jon has joined #ruby
drptbl has quit [Client Quit]
<headius> Ox0dea: precisely
drptbl has joined #ruby
namxam has quit [Remote host closed the connection]
colli5ion has joined #ruby
<headius> the use case described in that nil article is way off the mark...people aren't going to start blindly using it to mask away nils
Brklyn has joined #ruby
colegatron_origi is now known as colegatron
colli5ion has quit [Read error: Connection reset by peer]
<headius> and nil protecting a + b + c is just silly
colli5ion has joined #ruby
william3 has quit [Ping timeout: 240 seconds]
namxam has joined #ruby
<headius> I can't think of a situation where you'd want that to silently succeed and return nil
piotrj has quit [Remote host closed the connection]
dwfait has quit [Remote host closed the connection]
william3 has joined #ruby
blackmes1 has joined #ruby
tvw has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
william3 has quit [Remote host closed the connection]
Shaboum has joined #ruby
piotrj has joined #ruby
Brklyn has quit [Ping timeout: 276 seconds]
william3 has joined #ruby
blackmes1 has quit [Ping timeout: 245 seconds]
Napear has quit [Quit: leaving]
<Ox0dea> In brixen's defense, straw men do have a pleasant sort of airiness to them.
piotrj has quit [Ping timeout: 265 seconds]
william3 has quit [Read error: Connection reset by peer]
william3 has joined #ruby
emilford has joined #ruby
colli5ion has quit [Read error: Connection reset by peer]
colli5ion has joined #ruby
ElFerna_ has joined #ruby
william3 has quit [Remote host closed the connection]
syk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has quit [Ping timeout: 240 seconds]
andchar has joined #ruby
joonty has joined #ruby
jgt has joined #ruby
piotrj has joined #ruby
syk has joined #ruby
william3 has joined #ruby
chussenot has quit [Quit: chussenot]
emilford has quit [Ping timeout: 265 seconds]
emilford has joined #ruby
realtime_ has quit [Quit: ciao]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lee-jon has quit [Quit: lee-jon]
CloCkWeRX has quit [Ping timeout: 256 seconds]
lee-jon has joined #ruby
william3 has quit [Ping timeout: 264 seconds]
syk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fbandov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
william3 has joined #ruby
pdoherty has joined #ruby
PedramT has quit [Remote host closed the connection]
chussenot has joined #ruby
UtkarshRay has joined #ruby
dwfait has joined #ruby
emilford has quit [Ping timeout: 264 seconds]
nerium has quit [Quit: nerium]
emilford has joined #ruby
william3 has quit [Remote host closed the connection]
PedramT has joined #ruby
shredding has quit [Ping timeout: 276 seconds]
FooMunki has joined #ruby
bigkevmcd has quit [Ping timeout: 245 seconds]
rnfkll has joined #ruby
CloCkWeRX has joined #ruby
mauricio has quit [Ping timeout: 240 seconds]
tvw has quit [Ping timeout: 272 seconds]
Shaboum has quit [Quit: WeeChat 1.4]
dome22xl has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
ton31337 has joined #ruby
<ton31337> anyone is using mysql2 gem? does it work with ipv6?
<ton31337> i'm getting
<ton31337> Unknown MySQL server host '[2001:dead::1]' (2)
emilford has quit [Ping timeout: 240 seconds]
<ton31337> but from host i can access this server
lee-jon has quit [Quit: lee-jon]
william3 has joined #ruby
emilford has joined #ruby
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
soLucien has quit [Quit: Leaving]
kalopsian has joined #ruby
lee-jon has joined #ruby
namxam has quit [Remote host closed the connection]
<ddv> ton31337: no one uses that gem, sorry
<ddv> :/
dlitvak has joined #ruby
bigkevmcd has joined #ruby
dlitvak_ has quit [Ping timeout: 265 seconds]
dome22xl has quit [Ping timeout: 240 seconds]
FooMunki has quit [Quit: FooMunki]
kalopsian has quit [Ping timeout: 276 seconds]
FooMunki has joined #ruby
p0wn3d has joined #ruby
william3 has quit [Remote host closed the connection]
RegulationD has joined #ruby
william3 has joined #ruby
Brklyn has joined #ruby
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 276 seconds]
evidex has quit [Ping timeout: 240 seconds]
atomical has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
william3 has quit [Ping timeout: 245 seconds]
Brklyn has quit [Ping timeout: 240 seconds]
Bloomer has joined #ruby
emilford has quit [Ping timeout: 250 seconds]
skade has joined #ruby
evidex has joined #ruby
blackmes1 has joined #ruby
colli5ion has quit [Remote host closed the connection]
lucasb has joined #ruby
colli5ion has joined #ruby
c355e3b has joined #ruby
ton31337 has left #ruby [#ruby]
ramfjord has quit [Ping timeout: 240 seconds]
fbandov has joined #ruby
Xeago has quit [Remote host closed the connection]
duckpuppy has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lyoshajapan has joined #ruby
barhum2013 has quit [Quit: barhum2013]
chussenot has quit [Quit: chussenot]
aupadhye has joined #ruby
Xeago has joined #ruby
atomical_ has joined #ruby
namxam has joined #ruby
sdothum has joined #ruby
lyoshajapan has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
atomical has quit [Ping timeout: 265 seconds]
akem has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
synthroid has joined #ruby
chussenot has joined #ruby
<manveru> headius: people are going to abuse the hell out of &. unfortunately :(
barhum2013 has joined #ruby
astrofog has joined #ruby
JohnBat26|2 has joined #ruby
namxam has quit [Remote host closed the connection]
JohnBat26 has quit [Read error: Connection reset by peer]
skade has quit [Ping timeout: 250 seconds]
<jhass> unsurprisingly
blackmes1 has quit [Ping timeout: 240 seconds]
huyderman has quit [Ping timeout: 240 seconds]
aupadhye has quit [Remote host closed the connection]
<atomical_> abuse what?
barhum2013 has quit [Quit: barhum2013]
symbol_ has joined #ruby
<shevy> people are tinkers!
newdan has joined #ruby
<Ox0dea> tinker (n.): One who tinks.
JohnBat26|2 has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
JohnBat26|2 has joined #ruby
huyderman has joined #ruby
sandstrom has joined #ruby
catbusters has quit [Ping timeout: 240 seconds]
joonty has quit [Ping timeout: 264 seconds]
aupadhye has joined #ruby
consti has quit [Quit: Textual IRC Client: www.textualapp.com]
yoongkang has quit [Remote host closed the connection]
catbusters has joined #ruby
JohnBat26 has quit [Ping timeout: 250 seconds]
<ddv> almost weekend <3
lee-jon has quit [Quit: lee-jon]
<hanmac> i won against "stack level too deep" ... that was the highlight of my day ;P
dlitvak_ has quit [Ping timeout: 245 seconds]
william3 has joined #ruby
kerunaru has quit [Excess Flood]
drptbl has joined #ruby
graffix222 has quit [Ping timeout: 250 seconds]
dlitvak has joined #ruby
graffix222 has joined #ruby
akaiiro has joined #ruby
<shevy> never let a stack get into your way
stannard has joined #ruby
rippa has joined #ruby
<sluukkonen> smash all the stacks!
<hanmac> shevy: my problem was: Actor has Traits, Traits can have Requirement, available Traits does add Skills into Actor. Requiremenr can check if Actor does have Skill ... so it did loop between Actor#skills and Actor#traits ... but i did broke the cycle! XD
<shevy> circular requires!
arlek has quit [Ping timeout: 250 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> caused me headache for .rb files... I ended up trying to put the code that is required in some .rb files but not in others, into standalone .rb files and just load these in the other .rb files when they are needed... bit tedious but the errors would then go away
brendan- has joined #ruby
arup___ has quit [Ping timeout: 240 seconds]
Asher has quit [Read error: Connection reset by peer]
Asher1 has joined #ruby
william3 has quit [Remote host closed the connection]
andchar has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
william3 has joined #ruby
Macaveli has joined #ruby
zzz has joined #ruby
zzz is now known as Guest83706
Coldblackice has quit [Ping timeout: 240 seconds]
william3 has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Asher has joined #ruby
Asher1 has quit [Read error: No route to host]
Asher has quit [Client Quit]
gbgdev has quit [Remote host closed the connection]
kalopsian has joined #ruby
k13nox has joined #ruby
mary5030 has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
danieli has quit [Quit: ZNC - http://znc.in]
william3 has joined #ruby
namxam has joined #ruby
JDiPierro has joined #ruby
danieli has joined #ruby
akem has quit [Ping timeout: 245 seconds]
bruce__lee has quit [Remote host closed the connection]
danieli has quit [Client Quit]
gizmore has joined #ruby
william3 has quit [Remote host closed the connection]
hxegon has joined #ruby
danieli has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
danieli has quit [Changing host]
danieli has joined #ruby
ramortegui has joined #ruby
Azulinho has joined #ruby
codecop has quit [Remote host closed the connection]
william3 has joined #ruby
sandstrom has joined #ruby
duckpuppy has joined #ruby
jottr has joined #ruby
<jottr> Hi all. Is there a convention to where one should store maintenance bash scripts inside a rails project?
gnudon has joined #ruby
Snowy has quit [Remote host closed the connection]
akaiiro has quit [Quit: Leaving]
<manveru> jottr: i think under scripts/ ?
<jhass> I guess most people write rake tasks instead
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pdoherty has quit [Ping timeout: 264 seconds]
<manveru> well, that too
<manveru> but bash is really handy sometimes :)
Asher has joined #ruby
VeryBewitching has joined #ruby
<VeryBewitching> Good morning #ruby
Snowy has joined #ruby
<jottr> Hm. Is it script/ or scripts/ ? I recall that script/ directory used to be the location of the rails binary before it was moved to bin/ ?
william3 has quit [Remote host closed the connection]
<shevy> Good morning BeryVewitching
<manveru> rails love to pluralize stuff, so it must be scripts
<Ox0dea> Morning, VeryBewitching.
<VeryBewitching> What's shakin' folks?
<jottr> Hm. I'm thinking lib/scripts would be even better...
emilford has quit [Ping timeout: 260 seconds]
<hanmac> jottr: why bash scripts and not ruby? ;P
<jottr> hanmac: because the script is installing things a local ruby misses in our case.
sftrabbit has joined #ruby
emilford has joined #ruby
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
sgambino has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
JDiPierro has quit [Remote host closed the connection]
JDiPierro has joined #ruby
dwfait has quit [Remote host closed the connection]
<jhass> why would the script have to depend on the things it's installing if ruby is available though?
<jhass> and that sounds much more like "provision" instead of "maintenance"
BSaboia has joined #ruby
dlitvak has quit [Ping timeout: 245 seconds]
CloCkWeRX has quit [Quit: Leaving.]
PedramT has quit [Remote host closed the connection]
yoongkang has joined #ruby
malconis has joined #ruby
ElFerna_ has quit [Ping timeout: 256 seconds]
sftrabbit has quit [Quit: sftrabbit]
krobzaur_ has joined #ruby
malconis has quit [Remote host closed the connection]
dlitvak has joined #ruby
sandstrom has joined #ruby
malconis has joined #ruby
<shevy> jottr I guess there is no generic generally agreed-upon name at the least for pure ruby .gems, you could perhaps have a look at how chruby/rbenv/rvm and where they put any shell stuff
anisha has quit [Quit: Leaving]
ElFerna_ has joined #ruby
ASTP001 has left #ruby ["bye bye~"]
sftrabbit has joined #ruby
Ishido has quit [Ping timeout: 264 seconds]
<manveru> shevy: you still trying to build an all-ruby OS?
yoongkang has quit [Ping timeout: 240 seconds]
UtkarshRay has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
joneshf-laptop has joined #ruby
Jardayn has joined #ruby
Guest83706 has quit [Quit: Leaving...]
ESpiney has joined #ruby
karapetyan has joined #ruby
dwfait has joined #ruby
william3 has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
Ebok has joined #ruby
arup_r has joined #ruby
william3 has quit [Remote host closed the connection]
evidex has quit [Ping timeout: 240 seconds]
kies^ has quit [Ping timeout: 276 seconds]
evidex has joined #ruby
aganov has quit [Quit: Leaving]
idefine has joined #ruby
william3 has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
hlegius has joined #ruby
weemsledeux has joined #ruby
RegulationD has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
sftrabbit has quit [Quit: sftrabbit]
RegulationD has quit [Ping timeout: 250 seconds]
BrunoSaboia has joined #ruby
emilford has quit [Ping timeout: 245 seconds]
Ishido has joined #ruby
<shevy> manveru hmm if I would have more time I would! but I realized that I don't have enough time left available :(
<manveru> life too short?
<manveru> or OS too slow?
<shevy> life is way too short
emilford has joined #ruby
yasu_ is now known as yasu
BSaboia has quit [Ping timeout: 240 seconds]
Bloomer has quit [Remote host closed the connection]
grill has joined #ruby
decoponio has joined #ruby
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
harly__ has joined #ruby
william3 has quit [Remote host closed the connection]
BSab has joined #ruby
gruz0 has joined #ruby
william3 has joined #ruby
harly_ has quit [Ping timeout: 256 seconds]
william3 has quit [Remote host closed the connection]
BrunoSaboia has quit [Ping timeout: 276 seconds]
babblebre has joined #ruby
lianj has quit [Quit: Lost terminal]
BSaboia has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
hlegius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has joined #ruby
BSab has quit [Ping timeout: 245 seconds]
tiagobarreto has joined #ruby
Xeago has joined #ruby
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hlegius has joined #ruby
idefine has quit [Remote host closed the connection]
griffindy has joined #ruby
zerowaitstate has joined #ruby
<ddv> you need to shave that neckbeard Ox0dea
idefine has joined #ruby
<ddv> :p
william3 has joined #ruby
sandstro_ has joined #ruby
UtkarshRay has joined #ruby
<pantato> quit
sandstrom has quit [Ping timeout: 250 seconds]
Sucks has joined #ruby
ElFerna_ has quit [Ping timeout: 256 seconds]
<Canar> >current year
<Canar> >not embracing the neckbeard
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Burgestrand has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
BSaboia has quit [Quit: Leaving]
SenpaiSilver has joined #ruby
sftrabbit has joined #ruby
atomical has joined #ruby
william3 has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
sftrabbit has quit [Client Quit]
Brklyn has joined #ruby
huyderman has quit [Remote host closed the connection]
sftrabbit has joined #ruby
Xeago has joined #ruby
atomical_ has quit [Ping timeout: 250 seconds]
dhollinger has joined #ruby
uri_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
nettoweb has joined #ruby
davedev24 has joined #ruby
weemsledeux has joined #ruby
saneax_AFK is now known as saneax
skade has joined #ruby
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
idefine has quit [Remote host closed the connection]
davedev2_ has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
hlegius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kaleido has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
<kaleido> if i needed to authenticate a website's login against a tacacs server, what would be te best gem? or something built in?
namxam has quit [Remote host closed the connection]
hlegius has joined #ruby
idefine has joined #ruby
f4cl3y has joined #ruby
lianj has joined #ruby
grill has quit [Quit: Textual IRC Client: www.textualapp.com]
davedev24 has quit [Ping timeout: 260 seconds]
UtkarshRay has quit [Ping timeout: 240 seconds]
idefine has quit [Remote host closed the connection]
dlitvak_ has joined #ruby
shellie has quit [Remote host closed the connection]
Shaboum has joined #ruby
harly has joined #ruby
dlitvak has quit [Ping timeout: 264 seconds]
chussenot has quit [Quit: chussenot]
Shaboum has quit [Client Quit]
Shaboum has joined #ruby
Ebok has joined #ruby
Shaboum has quit [Client Quit]
gbgdev has joined #ruby
idefine has joined #ruby
Shaboum has joined #ruby
harly has quit [Read error: Connection reset by peer]
rmah has joined #ruby
rmah has left #ruby [#ruby]
rodfersou is now known as rodfersou|lunch
lee-jon has joined #ruby
chussenot has joined #ruby
dopamean_ has quit [Ping timeout: 245 seconds]
idefine has quit [Remote host closed the connection]
<ddv> kaleido: what gem?
harly__ has quit [Ping timeout: 272 seconds]
<ddv> kaleido: the only thing I can find is https://github.com/xertres/tacacs_plus
UtkarshRay has joined #ruby
<ddv> and it's horribly outdated and unmaintained
<kaleido> thats what i found as well but its not exactly what i need
<kaleido> thinking of dumbing it down
namxam has joined #ruby
<ddv> then you need to make one yourself
JohnBat26|2 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Xeago has quit [Remote host closed the connection]
maikowblue has joined #ruby
visudo has joined #ruby
Anderson69s has joined #ruby
piotrj has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdothum has quit [Read error: Connection reset by peer]
nickjj_ is now known as nickjj
sdothum has joined #ruby
kaspergr1bbe is now known as kaspergrubbe
hobodave has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hlegius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mr0rris0 has joined #ruby
howdoicomputer has joined #ruby
einarj has quit [Remote host closed the connection]
emilford has joined #ruby
sandstro_ has quit [Quit: My computer has gone to sleep.]
RegulationD has joined #ruby
Ishido has quit [Read error: Connection reset by peer]
ElFerna_ has joined #ruby
hlegius has joined #ruby
<ducklobster> hi all, i am trying to do some hacky remote server monitoring over ssh with ruby
<ducklobster> basically trying to capture the stdout of ssh but having some problems
dopamean_ has joined #ruby
<ducklobster> tldr; the system call seems to put the calls out to stdout, when i try to use popen + select i never get any data :(
<ducklobster> any ideas?
Ishido has joined #ruby
ziyadb has joined #ruby
idefine has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zzz has joined #ruby
<Ox0dea> ducklobster: https://github.com/net-ssh/net-ssh#synopsis is the abstraction you're looking for.
zzz is now known as Guest48087
RegulationD has quit [Ping timeout: 250 seconds]
<kbni> is it possible to get the ActiveSupport::TimeZone from a ActiveSupport::TimeWithZone (for creating a date object with a matching timezone?)
ruby-lang270 has joined #ruby
<ruby-lang270> hi guys
ElFerna_ has quit [Ping timeout: 256 seconds]
kies^ has joined #ruby
<ruby-lang270> I am using RestClient::Request to execute requests
sgambino has joined #ruby
<ruby-lang270> someone of you guys know how can I pass an array using the payload
dlitvak_ has quit [Ping timeout: 250 seconds]
<ruby-lang270> I need to pass an array using RestClient::Request
idefine has quit [Ping timeout: 260 seconds]
<Ox0dea> kbni: Why not just pass the result of TimeWithZone#time_zone to TimeZone.new?
skade has quit [Ping timeout: 264 seconds]
evidex has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
<ducklobster> Ox0dea: i tried net/ssh with the channel method but i had the same issue, the #on_data would never fire
workmad3 has joined #ruby
<ducklobster> Ox0dea: that was end of the day yesterday though, i guess i can give it a try with a fresh set of eyes :P
nettoweb has joined #ruby
<Ox0dea> ducklobster: It may be that somethiing was causing the output not to be flushed; SSH isn't quite line-based.
<Ox0dea> -i
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<ducklobster> that is a good idea, however, if I jump into pry and do a stream.gets it actually returns the line
s00pcan has quit [Remote host closed the connection]
mary5030 has joined #ruby
<ducklobster> so i'm not sure why IO.select isn't handling that stream
Billias has joined #ruby
dlitvak has quit [Ping timeout: 264 seconds]
idefine has joined #ruby
s00pcan has joined #ruby
AlexJakeGreen has joined #ruby
dlitvak has joined #ruby
astrofog has quit [Quit: Quite]
s00pcan has quit [Remote host closed the connection]
<slash_nick> Ox0dea: did tjohnson inspire lens_of_truth?
<Ox0dea> slash_nick: You, tjohnson, and lucasb, aye.
ruby-lang270 has quit [Ping timeout: 252 seconds]
s00pcan has joined #ruby
<Ox0dea> I tried to do it with C like lucasb suggested, but there are so many necessary pieces that don't get exported from enumerator.c. :<
william3 has joined #ruby
Scriptonaut has joined #ruby
<Ox0dea> After about a dozen "TypeError: wrong argument type enumerator (expected enumerator)", I decided to settle for the hack.
PedramT has joined #ruby
AlexJakeGreen has quit [Client Quit]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
<tjohnson> hey, neat!
idefine has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
<Ox0dea> tjohnson: Not sure how to get it not to cause a rewind yet.
BlkDynmt has quit [Quit: BlkDynmt]
hlegius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BlkDynmt has joined #ruby
<Scriptonaut> Hey all. I've been trying to connect to my gmail account with the gmail gem, authenticating with the signet gem. I swear I have followed everything, I have a google developers console app (I chose installed application), I am using my client_id and client_secret to get the authorization_code. I am using that to get the access and refresh tokens. However, when I try to connect to my gmail account, with th
<Scriptonaut> e access_token, I get (invalid credentials). I've been at this for months, and can't figure it out. Here is my stack overflow question, I haven't gotten an answer yet: http://stackoverflow.com/questions/34125745/ruby-gmail-api-with-oauth2-responds-with-invalid-credentials-failure-when-logg
<Scriptonaut> Could someone give it a look and see if I'm doing anything obviously wrong?
<slash_nick> Ox0dea: i'm wondering if you could rescue and resume with an offset or something along those lines
karapetyan has quit [Remote host closed the connection]
mfb2 has joined #ruby
<Ox0dea> slash_nick: The Fiber essentially raises a StopIteration as it dies. :/
s00pcan has quit [Remote host closed the connection]
<Ox0dea> Dunno how to preempt that.
asccigcc has joined #ruby
sepp2k has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
evidex has joined #ruby
cschneid_ has joined #ruby
PedramT has quit [Ping timeout: 240 seconds]
polishdub has joined #ruby
dlitvak has quit [Remote host closed the connection]
william3 has quit [Remote host closed the connection]
<Ox0dea> Never mind that this is me: http://i.imgur.com/xVyoSl.jpg
drptbl has joined #ruby
karapetyan has joined #ruby
s00pcan has joined #ruby
visudo has quit [Quit: visudo]
skade has joined #ruby
<slash_nick> Ox0dea: i was wondering what kind of animal you were... we're actually pretty similar: https://www.dropbox.com/sc/w0to5c3o4xgmkpa/AACpSKfSj6Eu38NNwZwZ01Voa
dlitvak has joined #ruby
dionysus69 has joined #ruby
drptbl has quit [Max SendQ exceeded]
visudo has joined #ruby
william3 has joined #ruby
drptbl has joined #ruby
tiagobarreto has quit [Remote host closed the connection]
idefine has joined #ruby
hogetaro has joined #ruby
<Ox0dea> On the Internet, no one knows you're a god.
workmad3 has quit [Ping timeout: 240 seconds]
tomdp has left #ruby ["Leaving"]
moeabdol has joined #ruby
<Ox0dea> slash_nick: Your one put me in mind of Robb Stark. :<
KensoDev has joined #ruby
zarubin has quit [Quit: leaving]
tomchapin has joined #ruby
zarubin has joined #ruby
felixal has quit [Ping timeout: 260 seconds]
<lucasb> Ox0dea: hey, cool gem! :)
idefine has quit [Remote host closed the connection]
idefine_ has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
<lucasb> but you would still classify the enumerator getting rewind as a bug, no?
sankaber has joined #ruby
Abrin has joined #ruby
Xeago has joined #ruby
evidex has quit [Ping timeout: 240 seconds]
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
william3 has quit [Remote host closed the connection]
hobodave has quit [Quit: Computer has gone to sleep.]
x77686d has joined #ruby
evidex has joined #ruby
dragon9783 has joined #ruby
ljames has quit []
<Ox0dea> lucasb: Hard to say. It seems a little weird to expect a dead Fiber to hold onto all the context that would be necessary to revive it and have it pick up where it left off.
asccigcc has quit [Quit: asccigcc]
<kbni> Ox0dea, hi there - thanks for your help the other day. Sorry I got you booted. :)
<Ox0dea> kbni: No worries.
zarubin has quit [Quit: leaving]
<kspencer> Ox0dea: Was it you that said you used highline before?
dcope has joined #ruby
<dcope> is there any way to add a timer or some sort of timeout to wrap a potentially long running http call?
william3 has joined #ruby
jbrhbr has joined #ruby
vondruch has quit [Quit: Ex-Chat]
vondruch has joined #ruby
<tjohnson> Ox0dea: i was thinking it should at least raise a StopIteration on a subsequent #next call
hnagamin has joined #ruby
solocshaw has joined #ruby
zarubin has joined #ruby
<tjohnson> As it stands, I can call `#next`, rescue a specific error I'm expecting and end up in an infinite loop
zarubin has quit [Client Quit]
scepticulous has quit [Ping timeout: 240 seconds]
Bloomer has joined #ruby
dwfait has quit [Remote host closed the connection]
<lucasb> Ox0dea: hm, ok. I must still understand how everything works. Thanks for the explanation!
skade_ has joined #ruby
<kbni> besides https://github.com/bbatsov/ruby-style-guide - does anyone have any style guide docs that are worth a read?
Waheedi has joined #ruby
william3 has quit [Remote host closed the connection]
mark2 has quit [Quit: Leaving.]
SCHAAP137 has quit [Read error: Connection reset by peer]
dlitvak_ has joined #ruby
skade has quit [Ping timeout: 260 seconds]
TomPeed has joined #ruby
aufi_ has quit [Quit: Konversation terminated!]
dlitvak has quit [Ping timeout: 265 seconds]
<Ox0dea> dcope: Cross your fingers and check whether your HTTP library of choice doesn't already provide a way to timeout requests.
idefine_ has quit [Remote host closed the connection]
<Ox0dea> tjohnson: Aye, that does seem like the more reasonable thing to do.
william3 has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
PedramT has joined #ruby
sftrabbit has joined #ruby
karapetyan has quit [Remote host closed the connection]
skade_ has quit [Ping timeout: 272 seconds]
<lucasb> kbni: bear in mind that bbatsov's style guide is very good, but it's not the absolute answer for everything. a google search for "ruby style guide" yields some other interesting ones. even some core developers write ruby in their own way, so just follow your intuition.
karapetyan has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
davodavo has joined #ruby
karapetyan has quit [Remote host closed the connection]
william3 has quit [Remote host closed the connection]
emilford has joined #ruby
gigetoo has quit [Ping timeout: 276 seconds]
rkazak has joined #ruby
asccigcc has joined #ruby
gigetoo has joined #ruby
BlkDynmt has quit [Quit: BlkDynmt]
davodavo has quit [Ping timeout: 252 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pumukel has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
wolffles has joined #ruby
skade has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
BlkDynmt has joined #ruby
Trynemjoel has quit [Quit: Quitting]
sepp2k has quit [Ping timeout: 245 seconds]
sankaber has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<wolffles> having trouble creating a ternary operator using .include?
<wolffles> ary.values_at(2,4,5,6,7).include?(ary[3]): puts "a" ? puts "b"
dlitvak has joined #ruby
[Butch] has joined #ruby
moei has quit [Quit: Leaving...]
lagweezle has joined #ruby
idefine has joined #ruby
<canton7> puts foo.include?(bar) ? "a" : "b"
pec has joined #ruby
<wolffles> oh lol
mwlang has joined #ruby
<wolffles> i had it backwards huh
<wolffles> derp
skade has quit [Ping timeout: 264 seconds]
sandstrom has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wolffles> puts foo.include?(bar) ? "a" : "b"
sepp2k has joined #ruby
atomical_ has joined #ruby
<Ox0dea> You got it.
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has quit [Ping timeout: 265 seconds]
dlitvak_ has quit [Ping timeout: 250 seconds]
<shevy> we are seeing the transformation of waffles from a beginner to an early expert here
arup_r has quit [Remote host closed the connection]
phantummm has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
idefine has quit [Ping timeout: 240 seconds]
PedramT_ has joined #ruby
kirun has joined #ruby
<wolffles> i switched it around but im still geting a syntax error, unexpected :
<dcope> Ox0dea: it doesn't, that's why im having to look at alternatives
<dcope> it's a gem that makes an http request... so im trying to figure out how to wrap that
PedramT has quit [Ping timeout: 250 seconds]
sftrabbit has joined #ruby
<wolffles> nvm i figured it out
<newdan> wolffles:
SOLDIERz has quit [Ping timeout: 265 seconds]
<tjohnson> dcope: consider https://github.com/lostisland/faraday
<wolffles> shevy: is it showing? cuz im still getting stuck on syntax and i feel like thats very basic problems
<gregf_> >> [1,2].each { |i| p i % 2 == 0 ? "you got it!" : "nevrmind, try again.." }
<ruby[bot]> gregf_: # => "nevrmind, try again.." ...check link for more (https://eval.in/509872)
william3 has joined #ruby
gnudon has quit [Remote host closed the connection]
dwfait has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.2 Aria http://www.kvirc.net/]
<gregf_> haha, the first thing i learnt in uni was syntax, even though the logic was acquired at $work ;)
grill has joined #ruby
<shevy> wolffles ruby syntax can be difficult, I ran into this a few times myself when combining .include? with and without parents, also with "and" and "!" negation
<shevy> erm
<shevy> *parens
<shevy> let's leave the parents out of this
<gregf_> haha
<lucasb> parents always helps their children
<wolffles> lol always know what to say when im doubting myself you should be a shrink as well
<Ox0dea> lucasb: In Unix, parents sometimes kill their children once they've become zombies.
<tjohnson> Ox0dea: it's the humane thing
william3 has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 250 seconds]
mfb2 has quit [Remote host closed the connection]
william3 has joined #ruby
fsapo has joined #ruby
moeabdol has quit [Quit: WeeChat 1.4]
hobodave has joined #ruby
<Ox0dea> tjohnson: PID 0 for president.
sftrabbit has quit [Quit: sftrabbit]
<gregf_> unix parents prolly have more rights that real parents on today *runs*
<gregf_> s/that/than/
Snowy has quit [Remote host closed the connection]
william3 has quit [Remote host closed the connection]
djbkd has quit [Read error: Connection reset by peer]
AckZ has joined #ruby
BlkDynmt has quit [Quit: BlkDynmt]
fbandov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hobodave has quit [Max SendQ exceeded]
<shevy> zombie parents would be cool... they could sneak in to steal PID 0 and take over *everything*
djbkd has joined #ruby
pdoherty has joined #ruby
<Ox0dea> I would `kill` to get hold of PID 0.
<tjohnson> gregf_: I bet if _I_ killed my zombie children CPS would be in here with a bunch of questions and bureaucratic paperwork
william3 has joined #ruby
ceej has quit [Remote host closed the connection]
hobodave has joined #ruby
YankNYC has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
emilford has quit [Ping timeout: 264 seconds]
<tjohnson> there really should be process monitoring software called Child Protective Services.
<YankNYC> good afternoon
<YankNYC> i'm having the oddest time trying to debug my tests. In the console the thing I'm trying to do works but in my tests I end up with unexpected behavior
ceej has joined #ruby
psy_ has joined #ruby
<YankNYC> i'll paste the gist in a min
william3 has quit [Remote host closed the connection]
sftrabbit has joined #ruby
<Ox0dea> It is impossible to search for "Ring -1". :(
psy_ has quit [Max SendQ exceeded]
<slash_nick> Ox0dea: i was able to get [1,2,nil,1,2,nil,1,2,...] by feeding nil in the rescue (e.g. https://gist.github.com/no-reply/4b38f26b3fe32ad266a7#gistcomment-1683794)
<Ox0dea> slash_nick: Progress! :P
psy_ has joined #ruby
<slash_nick> still rewinds :/
chussenot has quit [Quit: chussenot]
bklane has joined #ruby
synthroid has quit [Remote host closed the connection]
<Ox0dea> Oh jeeze, what about cloning the Fiber during every iteration, and using Fiddle to replace the dead one when necessary?
<slash_nick> Ox0dea: i wish: next if peek, rescue peek with skip and next... i don't think there's a way to skip values
<Ox0dea> Nah, not to my knowledge; enumeration != iteration.
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> The previous value can inform the next.
visudo has quit [Quit: visudo]
<slash_nick> Ox0dea: i thought about that... keep a fiber that's at n and another at n-1... if n dies, n-1 becomes the new "n" at n+1... and on the next iteration we have our new n-1
<slash_nick> gross
vyscond has joined #ruby
<Ox0dea> But it might do!
visudo has joined #ruby
<Ox0dea> Such crazy, though.
amclain has joined #ruby
<slash_nick> it might, it is crazy... it hurts my head
mdw has quit [Quit: Sleeping Zzzzz]
mfb2 has joined #ruby
TomPeed has joined #ruby
<lucasb> I still think someone should submit a redmine issue for this "automatic" behavior, since nobody expects that to happen.
<slash_nick> lucasb: good idea, at least stir up conversation
vyscond has left #ruby [#ruby]
<slash_nick> get some more thoughts out there
PedramT has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
UtkarshRay has quit [Ping timeout: 250 seconds]
PedramT_ has quit [Ping timeout: 272 seconds]
Snowy has joined #ruby
PedramT has quit [Remote host closed the connection]
emilford has joined #ruby
iateadonut has quit [Quit: Leaving.]
PedramT has joined #ruby
Anderson69s has joined #ruby
nanoz has joined #ruby
<slash_nick> Ox0dea: i think we still have the problem of getting to n+1... so you clone the fiber so you can replace a dead one... how do you advance past the error? there's no skip, right?
zast has joined #ruby
piotrj has joined #ruby
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
<slash_nick> lucasb: are you writing it up? i don't think i can word that
akem has joined #ruby
lyoshajapan has joined #ruby
<lucasb> I just wrote some simple snippet that I think is clearer the issue. hold on a sec
nodejunkie has joined #ruby
<tjohnson> lucasb++
<tjohnson> if this is intended behavior, it should at least be documented
<shevy> what automatic behaviour
RegulationD has joined #ruby
tomphp has quit [Ping timeout: 245 seconds]
evidex has quit [Remote host closed the connection]
PedramT has quit [Remote host closed the connection]
<YankNYC> sorry slash
<tjohnson> shevy: `Enumerator` rewinds when #next raises an error https://gist.github.com/no-reply/4b38f26b3fe32ad266a7
<slash_nick> YankNYC: no need :)
<shevy> oh
<Ox0dea> slash_nick: Oh, right. And I'm sure it's probably the case that transferring control away and then back won't suffice. :/
vishwa has joined #ruby
<Ox0dea> YankNYC: I see the problem.
<YankNYC> really?!
<Ox0dea> Oui.
emilford has quit [Ping timeout: 272 seconds]
chouhoulis has quit [Remote host closed the connection]
<vishwa> Has anyone here used the ruby decisiontree gem?
<slash_nick> Ox0dea: given the automatic rewinding, i think the only way to avoid it would be to alter the object you're enumerating... "now we know that el 3 raises, strip it out and start over"
<YankNYC> pls tell me
<YankNYC> :P
dwfait has quit [Remote host closed the connection]
<slash_nick> lucasb: nice and clear
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
Sr has joined #ruby
<slash_nick> lucasb: "Both two" :P
lyoshajapan has quit [Ping timeout: 260 seconds]
<tjohnson> +1
namxam has quit [Read error: Connection reset by peer]
<Sr> boa tarde
<YankNYC> oh i think it's the way i'm making that 2d array?
Sr is now known as Guest60821
<Ox0dea> YankNYC: Yeah. You're modifying the same reference.
<Ox0dea> >> foo = Array.new(2, Array.new(1)); foo[1][0] = :uhoh; foo
namxam has joined #ruby
<ruby[bot]> Ox0dea: # => [[:uhoh], [:uhoh]] (https://eval.in/509876)
aupadhye has quit [Ping timeout: 245 seconds]
ledestin has joined #ruby
<Ox0dea> >> foo = Array.new(2) { Array.new(1) }; foo[1][0] = :ftfy; foo
<ruby[bot]> Ox0dea: # => [[nil], [:ftfy]] (https://eval.in/509877)
mfb2 has quit [Remote host closed the connection]
nerium has joined #ruby
<gregf_> you can also do a clone i guess
<Guest60821> How can I make a txt file player in ruby?
workmad3 has quit [Ping timeout: 256 seconds]
<gregf_> >> a = [1]; b= a.clone; b[0] = 4; [a,b]
<ruby[bot]> gregf_: # => [[1], [4]] (https://eval.in/509878)
dwfait has joined #ruby
uri_ has quit [Quit: --]
<gregf_> play a text file *cries*
Guest60821 has quit [Client Quit]
nerium has quit [Client Quit]
jbrhbr has quit [Quit: Leaving.]
diegoviola has joined #ruby
mfb2 has joined #ruby
uri_ has joined #ruby
william3 has joined #ruby
Snowy has quit []
<Ox0dea> YankNYC: Happy to help. :)
<YankNYC> writing tests really does make you better
<YankNYC> and people <3
<Ox0dea> lucasb: Yep, that's a great distillation of the weirdness.
<Ox0dea> As it stands, we can't even get around the problem with an external iterator.
<lucasb> that is one side of the issue, to *not* automatically rewind
<lucasb> the other side is if someone wants to keep going, past the raised exception
aupadhye has joined #ruby
<lucasb> like, if there was more yields after the raise; yield 3; yield 4, etc.
<slash_nick> we haven't tried to identify what in the code is responsible have we?
andikr has quit [Remote host closed the connection]
rodfersou|lunch is now known as rodfersou
kalopsian has quit [Ping timeout: 256 seconds]
<Ox0dea> I think tjohnson found where the StopIteration was being raised?
govg has quit [Ping timeout: 250 seconds]
<tjohnson> A friend in #projecthydra pointed me here: https://github.com/ruby/ruby/blob/trunk/enumerator.c#L655-L660
moeabdol has joined #ruby
rkazak has joined #ruby
<tjohnson> seems quite deliberate. compare: https://github.com/ruby/ruby/blob/trunk/enumerator.c#L925-L930
<Ox0dea> Yeah, Line 651 in there is the one birthing the new Fiber, and since dead ones don't maintain context, the surrounding Enumerator can't pick up where it left off.
<lagweezle> vishwa: Not using it, but thanks for an interesting thing to read! :)
sandstrom has joined #ruby
<vishwa> you're welcome hehe
<vishwa> how do you debug using a library like that?
tomphp has joined #ruby
<vishwa> im getting an error, but i don't know where to start
RegulationD has quit [Remote host closed the connection]
workmad3 has joined #ruby
<Ox0dea> It's almost certainly intentional, and most likely even The Right Thing, but "make easy things easy and hard things possible".
Shaboum has quit [Quit: WeeChat 1.4]
RegulationD has joined #ruby
<tjohnson> Ox0dea: that's the conclusion I'm coming to
<slash_nick> I think that last bit is the crux here
<Ox0dea> s/easy/sane/ and s/hard/crazy/ at your discretion. :)
<slash_nick> it's impossible to do something that you might reasonably want or need to do
<Ox0dea> Seems so.
<slash_nick> well... with this implement
saneax is now known as saneax_AFK
<Ox0dea> Outside of getting one's hands really dirty to muck with it at the byte level.
<Ox0dea> I'd tackle it from C if enumerator.c weren't so damned stingy.
UtkarshRay has joined #ruby
rakm has joined #ruby
arthropododo has joined #ruby
ferr has joined #ruby
PedramT has joined #ruby
<Ox0dea> I copy-pasted everything necessary to get all the symbols to resolve and still got that stupid TypeError. :/
drptbl has quit [Ping timeout: 272 seconds]
KensoDev has quit [Remote host closed the connection]
ramfjord has joined #ruby
pec has quit [Remote host closed the connection]
<Ox0dea> Followed the trail of TypedData_Get_Struct and couldn't find where it was sussing out that my `struct enumerator` wasn't the real one.
synthroid has joined #ruby
cpup has quit [Quit: Breaking stuff]
RegulationD has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 264 seconds]
barhum2013 has joined #ruby
govg has joined #ruby
vvalien has joined #ruby
zambini has joined #ruby
cpup has joined #ruby
Xeago has joined #ruby
atomical_ has quit [Ping timeout: 260 seconds]
casadei has joined #ruby
Bloomer has quit [Remote host closed the connection]
dionysus69 has quit [Quit: dionysus69]
JDiPierro has quit [Remote host closed the connection]
baweaver has joined #ruby
RobertBirnie has joined #ruby
baweaver has quit [Remote host closed the connection]
hxegon has quit [Quit: PEACE OUT]
baweaver has joined #ruby
_ht has joined #ruby
joonty has quit [Ping timeout: 276 seconds]
dwfait has quit [Remote host closed the connection]
nodejunkie has quit [Ping timeout: 265 seconds]
piotrj has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 240 seconds]
piotrj has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
baweaver has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 260 seconds]
duckpuppy has joined #ruby
hobodave has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
newdan has quit [Quit: leaving]
musicnode has joined #ruby
howdoi has joined #ruby
atomical has joined #ruby
piotrj has quit [Ping timeout: 250 seconds]
musicnode has quit [Client Quit]
TechNick99 has quit [Quit: Lost terminal]
visudo has quit [Quit: visudo]
frem has joined #ruby
symm- has joined #ruby
piotrj has joined #ruby
armyriad has joined #ruby
musicnode has joined #ruby
mdw has joined #ruby
jbrhbr has joined #ruby
hnagamin has quit [Ping timeout: 240 seconds]
psy_ has quit [Ping timeout: 256 seconds]
BlkDynmt has joined #ruby
atomical_ has joined #ruby
visudo has joined #ruby
namxam has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Azulinho has quit [Ping timeout: 265 seconds]
c0m0 has quit [Ping timeout: 240 seconds]
atomical has quit [Ping timeout: 240 seconds]
duckpuppy has quit [Ping timeout: 265 seconds]
dlitvak has joined #ruby
william3 has quit [Ping timeout: 245 seconds]
william3 has joined #ruby
william3 has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 250 seconds]
firstdayonthejob has joined #ruby
devbug has joined #ruby
ElFerna_ has joined #ruby
mary5030 has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
william3 has joined #ruby
TomyLobo2 has quit [Ping timeout: 248 seconds]
KensoDev has joined #ruby
TomyWork has quit [Ping timeout: 248 seconds]
pulgolino has quit [Remote host closed the connection]
PedramT has quit [Remote host closed the connection]
ur5us has joined #ruby
JakFrist has joined #ruby
<Terens> hello.. in arrays << is equal to push ?
visudo has quit [Quit: visudo]
<shevy> I think one is faster than the other
mdw has quit [Ping timeout: 250 seconds]
william3 has quit [Ping timeout: 240 seconds]
<shevy> well marginally... http://pastie.org/10700844
JDiPierro has joined #ruby
JakFrist has quit [Client Quit]
d10n-work has joined #ruby
JakFrist has joined #ruby
sepp2k has quit [Quit: Leaving.]
PedramT has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
JakFrist has quit [Client Quit]
uri_ has quit [Read error: Connection reset by peer]
syk has joined #ruby
JDiPierro has quit [Remote host closed the connection]
JDiPierro has joined #ruby
k13nox has quit [Remote host closed the connection]
ferr has quit [Ping timeout: 272 seconds]
nomadicoder has quit []
<jhass> Terens: push can take more than one argument and is potentially faster in that case
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slawrence00 has joined #ruby
k13nox has joined #ruby
akem has quit [Quit: Bye]
k13nox has quit [Remote host closed the connection]
juddey has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
cmckee has joined #ruby
dudedudeman has joined #ruby
rdark has quit [Ping timeout: 250 seconds]
yoongkang has joined #ruby
p0wn3d has quit [Ping timeout: 250 seconds]
Jackneill has joined #ruby
Dimik has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BlkDynmt has quit [Quit: BlkDynmt]
nofxx has joined #ruby
Waheedi has quit [Quit: Waheedi]
<shevy> hmmm... is there an in-built ruby way to convert a string such as "(1..20)" into a ruby Range object? so that we could do x = Token.new "(1..20)"; x.to_a as if x would be (1..20)
arlek has joined #ruby
JakFrist has joined #ruby
<pipework> shevy: parser maybe?
malconis has joined #ruby
yoongkang has quit [Ping timeout: 250 seconds]
<Sou|cutter> shevy: eval
<eam> >> eval("(1..20)").class
<ruby[bot]> eam: # => Range (https://eval.in/509893)
ramfjord has joined #ruby
<Sou|cutter> ^5 eam
<eam> HI-V
<shevy> lol
devbug has quit [Ping timeout: 245 seconds]
JakFrist has quit [Client Quit]
cdg has quit [Remote host closed the connection]
lee-jon has left #ruby [#ruby]
atomical has joined #ruby
Bloomer has joined #ruby
ferr has joined #ruby
musicnode has quit [Quit: musicnode]
arlek has quit [Ping timeout: 250 seconds]
syk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cmckee has quit [Quit: cmckee]
atomical_ has quit [Ping timeout: 240 seconds]
Waheedi has joined #ruby
joonty has joined #ruby
Waheedi has quit [Client Quit]
JDiPierro has quit [Remote host closed the connection]
blandflakes has joined #ruby
govg has quit [Ping timeout: 264 seconds]
pdoherty has quit [Remote host closed the connection]
vishwa has left #ruby [#ruby]
joonty has quit [Ping timeout: 276 seconds]
jpoole has joined #ruby
troulouliou_div2 has quit [Ping timeout: 250 seconds]
arup_r has quit []
poguez_ has joined #ruby
howdoicomputer has quit [Read error: Connection reset by peer]
djbkd has quit [Read error: Connection reset by peer]
KensoDev has quit [Read error: Connection reset by peer]
_seanc_ has quit [Read error: Connection reset by peer]
KensoDev has joined #ruby
riceandbeans has joined #ruby
<riceandbeans> halp
<jpoole> can anyone help me with this module issue? https://gist.github.com/anonymous/5304798041d8675bc0f9
_seanc_ has joined #ruby
<jottr> Is it good practise to specify am minimum version for every gem in a Gemfile? I.e. heroku do not specify a version of 'pg' in their docs. Is there an advantage of not specifying gem versions of some gems?
<riceandbeans> I don't know if I should be using .eql? or .equal?
bklane has quit [Read error: Connection reset by peer]
duderon__ has joined #ruby
djbkd has joined #ruby
<riceandbeans> I'm comparing what should either be a number in the form of \d\.\d, or ''
_seanc_ has left #ruby [#ruby]
howdoicomputer has joined #ruby
<riceandbeans> so like 1.5 or ''
peteyg has quit [Read error: Connection reset by peer]
bklane has joined #ruby
NightMonkey has quit [Ping timeout: 240 seconds]
mostlybadfly has joined #ruby
BlkDynmt has joined #ruby
ReK2GnULinuX has quit [Remote host closed the connection]
lsmola has quit [Ping timeout: 265 seconds]
<riceandbeans> basically, foo = 1.5, bar is determined based on system, it could be like 1.5 or '', I just compare foo to bar to see if they match, I was told not to use != or == but .eql? or .equal? instead
ReK2GnULinuX has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
cmckee has joined #ruby
mjuszczak has joined #ruby
whippythellama has quit [Ping timeout: 245 seconds]
duderonomy has quit [Ping timeout: 240 seconds]
chussenot has joined #ruby
NightMonkey has joined #ruby
peteyg has joined #ruby
sgambino has quit [Read error: Connection reset by peer]
rnfkll has quit [Read error: Connection reset by peer]
mdw has joined #ruby
musicnode has joined #ruby
<Ox0dea> jpoole: You can use `::Foo` to explicitly instruct constant resolution to start at the top.
FernandoBasso has quit [Quit: Leaving]
barajasfab has joined #ruby
Asher has quit [Quit: Leaving.]
<Ox0dea> jottr: Being on the bleeding edge is arguably the advantage there.
<Ox0dea> riceandbeans: Wat.
Waheedi has joined #ruby
mjuszczak has quit []
<jhass> jottr: depends on the competence of your team basically. if you check in the Gemfile.lock (you absolutely should) and have nobody run an open bundle update it's fine to leave them out most of the time
Asher has joined #ruby
govg has joined #ruby
Swappticon has joined #ruby
RegulationD has joined #ruby
lyoshajapan has joined #ruby
<jhass> jpoole: it just errors out with that message since it's the first (but not only) constant it tries to look up
<jhass> the toplevel one isn't found either, the gem is probably not loaded or you just used the wrong one
<riceandbeans> Ox0dea: I think I got it, but new question
<jhass> you probably should move the require to the top of your file
<riceandbeans> Ox0dea: is unless foo.eql('') end, the same as if not foo.eql('') end?
<Ox0dea> riceandbeans: It's fine to think of it that way.
mephistophocles has joined #ruby
piotrj has quit [Remote host closed the connection]
Waheedi has quit [Ping timeout: 240 seconds]
sgambino has joined #ruby
wolffles has quit [Quit: wolffles]
<havenwood> riceandbeans: I'm confused why you're even considering an alternative to ==.
lyoshajapan has quit [Ping timeout: 240 seconds]
<jhass> riceandbeans: note that for most (core) classes == and eql? are synonym
krobzaur has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
tuelz has joined #ruby
<havenwood> riceandbeans: Use equal? if you're actually wanting to check object id equality. Typically use ==.
<shevy> havenwood doing so! but I wondered whether this manual fiddling hasn't been a part of core ruby, it feels tedious
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> shevy: :)
mary5030_ has joined #ruby
<tuelz> if I add a gem dependency in a gemspec, but don't actually require it into that gems lib...I'll then be able to require that dependency in if I use it's parent gem, correct?
<tuelz> s/it's/its/
krobzaur_ has quit [Ping timeout: 240 seconds]
<havenwood> riceandbeans: Don't use === or eql? unless you know why you are.
mary5030_ has quit [Remote host closed the connection]
<jhass> tuelz: I don't follow
Aviio has joined #ruby
hobodave has joined #ruby
<tuelz> so I want to have a choice in the app I'm making, but I want the gem the app uses to manage the versions of its dependencies...so in the app those dependencies will be opt-in with a require, but I won't have to keep up with it in my apps gemfile
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
<riceandbeans> havenwood: I was told not to use == or !=
<havenwood> riceandbeans: Why?
<riceandbeans> to use the methods instead
<riceandbeans> style
Waheedi has joined #ruby
<havenwood> riceandbeans: no
<tuelz> so app, gem_the_app_uses(gtau), gem_thats_a_depend_of_gtau(depgem) I want to create an app, put gtau in my gemfile, and then have a choice whether those dependency gems are actually being loaded up or not
<jhass> riceandbeans: mind telling us where we don't want to work? :P
<riceandbeans> I'm a contractor, I only have so much weight
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wilbert has joined #ruby
mary5030 has quit [Remote host closed the connection]
<jhass> ?fake tuelz
<ruby[bot]> tuelz: Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
<riceandbeans> I'm not going to bite the hand that feeds me
zast has quit [Remote host closed the connection]
m27frogy has joined #ruby
<jhass> tuelz: in this case real names helps a lot to make it more understandable
<havenwood> riceandbeans: If you *must* not use == then use equal?.
casadei has quit [Remote host closed the connection]
<havenwood> riceandbeans: Do not use eql? unless you're using it for Hash key equality. It's not meant to just use willy nilly.
<riceandbeans> havenwood: can you please tell me why I should use .equal? instead of .eql?
<Ox0dea> It's a trap!
atmosx has quit [Ping timeout: 250 seconds]
<riceandbeans> havenwood: when I changed equal to eql my code stopped crashing, and I don't understand why
<havenwood> riceandbeans: So you're supposed to use `==` unless you have a reason to do otherwise. On a rare occasion you actually care about object_id equality.
<havenwood> riceandbeans: 1.0.equal?(1) #=> false
<havenwood> riceandbeans: 'a'.equal?('a') #=> false
<havenwood> riceandbeans: Usually... you don't want that!
<riceandbeans> ok, here's my real example
<havenwood> riceandbeans: You're being told to do it wrong.
<lagweezle> riceandbeans: Equality based on value versus equality based on identity. The question of whether or not something has the same value as something else is very different than if the object referred to by something is the same object referred to by some other variable.
<tuelz> jhass: stil proof of concept...the idea being I have framework Pakyow that is modular, but by default it loads up a lot of dependencies....but maybe I would rather Pakyow not always load up it's Pakyow::Presenter which handles html views so instead of requiring Pakyow::Presenter inside of Pakyow (the gem) lib/pakyow.rb - I'd rather be able to generate a pakyow file that requires Pakyow::Presenter inside that
<tuelz> apps config file
<havenwood> riceandbeans: Typically, yes, `eql?` will be just `==` *but* it isn't always (it's point is implementing for Hash key equality not to just use).
<riceandbeans> I have a target version, major.minor, and an actual version installed, actual version installed can either be like 1.5, or it could be not installed yet and thus '' because setting it to nil breaks other things
<havenwood> its*
<riceandbeans> I just want to know if installed version is the same as target version and in certain cases avoid certain actions if installed version is ''
idefine has joined #ruby
barhum2013 has quit [Quit: barhum2013]
<tuelz> right now, Pakyow just has a lib/pakyow.rb which requires everything in - I'd like to move those requires to the generated application level so it feels more opt-in
<havenwood> riceandbeans: Are you overriding `eql?` because it needs to be different from `==` for Hash key equality? If not, it's wrong to use.
<jhass> tuelz: mh, okay, probably not worth it tbh but the answer is yes
Waheedi has quit [Client Quit]
<riceandbeans> overriding?
<tuelz> jhass: gotcha, I thought it would work, but I'm discussing it with some other people that made me question myself, so came here to confirm :)
<soahccc> Can someone tell me whether I'm stupid or telegram is too stupid to parse markdown? https://gist.github.com/2called-chaos/8f0a8a50376806b42907
barhum2013 has joined #ruby
<tuelz> jhass: thanks
<riceandbeans> this is with chef, I'm setting a node attribute that I'm basing it off of
mfb2 has quit [Remote host closed the connection]
crankharder has quit [Ping timeout: 250 seconds]
<havenwood> riceandbeans: eql? and === are for internal implementation, not to just use for no reason
<havenwood> riceandbeans: No!!!
<riceandbeans> internal implementation?
mfb2 has joined #ruby
<havenwood> riceandbeans: Let's say you're making a class... You want it to compare with Hash keys one way and case statements another, you can implement eql? and === for that.
pdoherty has joined #ruby
barhum2013 has quit [Client Quit]
visudo has joined #ruby
<havenwood> riceandbeans: We can go into detail, but the point is if you don't know why you're using them it's almost certainly wrong to.
<havenwood> riceandbeans: Use `==` unless you *actually* want to be comparing the object_ids...
<havenwood> riceandbeans: In which case use `equal?`.
<riceandbeans> ok, given that, why does everything crash when I use .equal? instead of == ?
<havenwood> riceandbeans: Because you mean `==`.
<havenwood> riceandbeans: Did you see my two `equal?` examples above?
<jhass> riceandbeans: read my link yet?
dudedudeman has quit [Quit: dudedudeman]
<riceandbeans> so I should tell the guy that said I have to use the methods to fuck off?
<jhass> riceandbeans: ask him why
idefine has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
<jhass> ask him for some real arguments beyond "style"
<jhass> and probably don't represent version numbers as float
<havenwood> riceandbeans: (The style argument is flat wrong.)
ss_much has joined #ruby
<Aviio> the style argument just sounds so dumb
Waheedi has joined #ruby
zeroDivisible has joined #ruby
barhum2013 has joined #ruby
<havenwood> riceandbeans: If I had to guess I'd say the person is worried about `1.0 == 1 #=> true` or something.
<havenwood> riceandbeans: (In that case the Hash key `eql?` operator would return `false` just like `equal?`.)
<jhass> in which case the problem is representing a version number as float, ^
<havenwood> ^
<riceandbeans> jhass: sorry I didn't notice it with all the highlighted references to me, just saw it, reading now
n00bdev has joined #ruby
Bloomer has quit [Remote host closed the connection]
<riceandbeans> wait a minute....
<riceandbeans> I think I know how to fix this
m27frogy has left #ruby ["Leaving"]
<riceandbeans> if I take the thing that's in a float format and do a .to_s I bet .equal? would actually work
<jhass> this is so wrong...
<Ox0dea> Unreal.
<riceandbeans> probably still stupid, but I'm betting it would work
baweaver has joined #ruby
cmckee has quit [Quit: cmckee]
<havenwood> riceandbeans: What is the return value?: "".equal?("")
<jhass> riceandbeans: it won't, read my link
<havenwood> riceandbeans: `true` or `false`?
bithon has joined #ruby
idefine has joined #ruby
<riceandbeans> wait wait wait
Waheedi has quit [Ping timeout: 250 seconds]
nanoz has quit [Read error: Connection reset by peer]
<riceandbeans> .equal? is not same object type but same object itself?
<havenwood> riceandbeans: object_id
DoubleMalt has joined #ruby
<jhass> yes
<riceandbeans> ok, I get it now
<Ox0dea> riceandbeans: So "".equal?("") is...?
<riceandbeans> why didn't you just say that from the start jhass that would've made more sense lol
<jhass> no
<riceandbeans> so "".equal?("") should be false
mdw has quit [Quit: Sleeping Zzzzz]
<Ox0dea> riceandbeans: And how about 1.equal?(1)...?
<jhass> you're probably still confusing .equal? and .eql?
<lagweezle> >> "".equal?("")
<ruby[bot]> lagweezle: # => false (https://eval.in/509901)
<havenwood> riceandbeans: [10:58:27] havenwood:riceandbeans: Use equal? if you're actually wanting to check object id equality. Typically use ==.
<riceandbeans> no no, I think I get it
Waheedi has joined #ruby
<riceandbeans> = sets the value, == compares the value, .equal? checks if it's the same object itself, .eql? checks if it's the same object type
atmosx has joined #ruby
<havenwood> riceandbeans: no
<havenwood> the last one is wrong
<riceandbeans> I mean,
william3 has joined #ruby
<riceandbeans> so does .eql? only apply to hashes/arrays then?
<havenwood> riceandbeans: eql? is typically the same as == but not necessarily (the point is if that Object is the key in a Hash, what are its equality rules).
<Ox0dea> It's strict equality, but not object equality.
<Ox0dea> #eql? is like JavaScript's ===, if that helps.
<Ox0dea> But Ruby's === is nothing like JS's.
sandstrom has quit [Quit: My computer has gone to sleep.]
<riceandbeans> is JS === like PHP === ?
<Ox0dea> Yeah.
<riceandbeans> ok
<havenwood> riceandbeans: JavaScript `==` is a joke and `===` is a semblance of a reasonable comparison operator.
<riceandbeans> we need a new operator that has more = signs
<havenwood> equality*
<havenwood> riceandbeans: Use `==` unless you have a reason to do otherwise!
<riceandbeans> ok
<riceandbeans> ruby is kinda confusing sometimes
<jhass> riceandbeans: and to stress it, don't use floats for version numbers, not at any point
<havenwood> riceandbeans: Try clicking from `==` to `===` here to see the madness of `==` in JS: https://dorey.github.io/JavaScript-Equality-Table/
<riceandbeans> it reads nicely, but it has about as many exceptions to rules as the english language
sandstrom has joined #ruby
Ebok has joined #ruby
AlexRussia has quit [Remote host closed the connection]
<riceandbeans> jhass: I'll .to_s the version
cmckee has joined #ruby
<jhass> riceandbeans: no
<riceandbeans> jhass: then what?
<jhass> don't use a float in the first place
AlexRussia has joined #ruby
<riceandbeans> what do you suggest instead?
idefine has quit [Remote host closed the connection]
<Ox0dea> shevy: Are you wanting literal_parser to just match very basic Range tokens?
tomchapin has joined #ruby
<jhass> Gem::Version or a plain string
idefine has joined #ruby
duckpuppy has joined #ruby
<jhass> depends on the context
ziyadb has quit [Quit: Connection closed for inactivity]
<nofxx> riceandbeans, you just confused your self... out of curiosity, what's your mother tongue?
<riceandbeans> I had many problems with gem::version, so how would I ensure it's a string other than just doing .to_s ?
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
<nofxx> because english is one of the langs with less exceptions to rules that I know. You should see some latin based ones =D
fsapo has quit [Remote host closed the connection]
<jhass> don't use a float initially
<riceandbeans> foo = string.New(value) ?
<Zarthus> riceandbeans: writing it as a string to begin with?
Jodiv has joined #ruby
<jhass> riceandbeans: I'm saying don't convert it, make it come in as a string in the first place
<havenwood> riceandbeans: Where are you getting that Float? Is it from your code?
<riceandbeans> nofxx: english
<riceandbeans> havenwood: it's from a parsed yaml file
<Zarthus> or to concatinate a series of integers (allowing for constants like _MAJOR, _MINOR)
<havenwood> riceandbeans: Can you change that YAML?
<riceandbeans> havenwood: I can, but I don't want to
<riceandbeans> an application costing millions depends on it existing in a certain way
<riceandbeans> I'd prefer to not write to it and risk something
<Zarthus> they messed up initially making it a float then
<jhass> yeah, I guess I know now why it's that expensive
* Zarthus would argue it may potentially cost more by leaving it there
atmosx has quit [Quit: WeeChat 1.0.1]
fmcgeough has joined #ruby
crankharder has joined #ruby
<Zarthus> it especially rings true for currency, I don't know how much a version number would impact.
dudedudeman has joined #ruby
<Jodiv> asimo tobot???
nerium has joined #ruby
<Jodiv> asimo robot???
codecop has joined #ruby
ton31337 has joined #ruby
kalopsian has joined #ruby
mary5030 has joined #ruby
<jhass> Jodiv: welcome to the Ruby programming language channel
geekbri has joined #ruby
<Jodiv> hummmmmmmmmmmmmmmmmmmm
<Jodiv> asimo robot no???
casadei has joined #ruby
<jhass> ?english Jodiv
<ruby[bot]> Jodiv: Please use english in this channel. If you need another language, you can find a list of alternative channels on http://ruby-community.com/pages/channels
frust has joined #ruby
arthropododo has quit [Remote host closed the connection]
<Jodiv> yes ASIMO ROBOT no programming ????
yqt has joined #ruby
<jhass> I don't know what you're asking, try a full sentence
frust has quit []
<ton31337> guys I don't know how to write this, but is it possible to make this work? https://gist.github.com/ton31337/0544072f0106d6868951 I want to check if IP from array is ipv6 and transform it, else leave as it is.
mjuszczak has joined #ruby
newdan has joined #ruby
<jhass> &ri Array#map @ton31337
baweaver has quit [Remote host closed the connection]
<ton31337> let's see
bklane has quit []
<Jodiv> someone you know programming asimo robot???
whippythellama has joined #ruby
joonty has joined #ruby
ton31337 has left #ruby [#ruby]
gambl0re has quit []
<Zarthus> Jodiv: is this related to ruby at all?
<Jodiv> ok
<riceandbeans> win
YankNYC has quit [Quit: Connection closed for inactivity]
<Jodiv> to ruby???
<riceandbeans> I told him changing == to equal and eql broke stuff, he said ok change it back
<Jodiv> yes type?!!!!!
<Zarthus> Jodiv: I think there's a language barrier here, you might wish to use a translator or find a channel in your native language.
sandstrom has quit [Quit: My computer has gone to sleep.]
<Jodiv> yes asimo robot programming win ?????!!!!!
sandstrom has joined #ruby
mjuszczak has quit []
joonty has quit [Ping timeout: 256 seconds]
kies^ has quit [Ping timeout: 276 seconds]
mjuszczak has joined #ruby
ponyofdeath has joined #ruby
<havenwood> !kick Jodiv Please come back when you have a Ruby question.
Jodiv was kicked from #ruby by ruby[bot] [Please come back when you have a Ruby question.]
<Ox0dea> That said, yes, ASIMO == robot (programming) == win: http://i.imgur.com/DhntyzU.gif
IrishGringo has joined #ruby
baweaver has joined #ruby
<ponyofdeath> hi, trying to install a gem locally i downloaded. i am getting this "gem whle executing gem EINVAL invalid argument connect 0.0.0.0:53" any ideas?
musicnode has quit [Quit: musicnode]
Sucks has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
RegulationD has quit []
TomyLobo has joined #ruby
<shevy> ponyofdeath hmm perhaps the gem tries to connect to ... is that localhost?
<shevy> ponyofdeath (1) what is the name of the gem and (2) the syntax you use
baweaver has quit [Ping timeout: 250 seconds]
idefine has quit [Ping timeout: 256 seconds]
<ponyofdeath> shevy: i used -l
<ponyofdeath> and it worked
tomchapin has quit [Quit: Textual IRC Client: www.textualapp.com]
musicnode has joined #ruby
Xeago has joined #ruby
puria_ has quit [Quit: Leaving]
ur5us has quit [Remote host closed the connection]
zacstewart has joined #ruby
musicnode has quit [Client Quit]
tomchapin has joined #ruby
ur5us has joined #ruby
yoongkang has joined #ruby
nerium has quit [Quit: nerium]
kies^ has joined #ruby
nerium has joined #ruby
treehug88 has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
colli5ion has quit []
william3 has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
Azulinho has joined #ruby
yoongkang has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
FernandoBasso has joined #ruby
gbgdev has quit [Remote host closed the connection]
gbgdev has joined #ruby
william3 has joined #ruby
skcin7 has joined #ruby
arlek has joined #ruby
blackmes1 has joined #ruby
gbgdev has quit [Ping timeout: 240 seconds]
gbgdev has joined #ruby
william3 has quit [Ping timeout: 240 seconds]
doublemalt_ has joined #ruby
piotrj has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MissionCritical has quit [Ping timeout: 260 seconds]
Kruppe has quit [Ping timeout: 256 seconds]
IrishGringo has quit [Ping timeout: 250 seconds]
DoubleMalt has quit [Ping timeout: 265 seconds]
elifoster has joined #ruby
Terens has quit []
kalopsian has quit [Ping timeout: 276 seconds]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n00bdev has quit []
wolffles has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
dlitvak has joined #ruby
Aviio has quit [Ping timeout: 256 seconds]
Aviio has joined #ruby
sandstrom has joined #ruby
Aviio_ has joined #ruby
ldnunes has quit [Quit: Leaving]
x77686d has joined #ruby
centrx has joined #ruby
MissionCritical has joined #ruby
Aviio has quit [Ping timeout: 245 seconds]
beneills has joined #ruby
skade has joined #ruby
Guest38 has joined #ruby
piotrj has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 260 seconds]
PedramT has quit []
futilegames has joined #ruby
<shevy> \o/ you go you scary pony!
rodfersou has quit [Quit: leaving]
futilegames has quit [Client Quit]
william3 has joined #ruby
arthropododo has joined #ruby
sneakerhax has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
wolffles has quit [Quit: wolffles]
baweaver has joined #ruby
newbie22 has joined #ruby
cmckee has quit [Quit: cmckee]
IrishGringo has joined #ruby
joonty has joined #ruby
sandstrom has joined #ruby
Aviio has joined #ruby
baweaver has quit [Remote host closed the connection]
<lucasb> is there some way to steal some methods from a class and insert in another?
baweaver has joined #ruby
Aviio_ has quit [Ping timeout: 276 seconds]
<lucasb> stdlib 'scanf' inserts some methods in IO, but I want to use an StringIO to play with it
Aviio has quit [Read error: Connection reset by peer]
Aviio has joined #ruby
<lucasb> if 'scanf' defined some module, it would be easy to insert into StringIO, but it declares directly under class IO
skcin7 has joined #ruby
Aviio has quit [Client Quit]
<Papierkorb> >> require 'scanf'; puts IO.method(:scanf).inspect
<ruby[bot]> Papierkorb: # => #<Method: Class(Kernel)#scanf> ...check link for more (https://eval.in/509950)
joonty has quit [Ping timeout: 256 seconds]
<Papierkorb> lucasb: There is a way, rspec does it too, but I'm not sure atm how to ..
gbgdev has quit [Remote host closed the connection]
lemur has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
<lucasb> so, I just grab the methods with IO.method(:scanf), and insert into strio.define_singleton_method(:scanf, the_method) ?
skade has quit [Quit: Computer has gone to sleep.]
elifoster has quit [Ping timeout: 245 seconds]
<lucasb> I'll try that...
atomical has quit [Quit: Textual IRC Client: www.textualapp.com]
<Papierkorb> lucasb: No I was mistaken, the Kernel one uses $stdin
barhum2013 has quit [Quit: barhum2013]
IrishGringo has quit [Ping timeout: 240 seconds]
x77686d has quit [Quit: x77686d]
Waheedi has quit [Quit: Waheedi]
<lucasb> yeah, strange. I don't why it said Kernel there. scanf declares both IO#scanf and Kernel#scanf
<Papierkorb> It really monkey-patches IO directly >_>
<shevy> I patch monkeys!
RobertBirnie has quit [Ping timeout: 272 seconds]
Anderson69s has joined #ruby
<lucasb> I think it's easier if I just write a file. It's just that the generic problem of moving methods around got me interested in how to solve it.
lemur has quit [Ping timeout: 250 seconds]
<Papierkorb> It's still insane :)
RobertBirnie has joined #ruby
Xeago has joined #ruby
dlitvak has joined #ruby
<lucasb> Papierkorb: interesting. I'm taking a look. thank you.
baweaver has quit [Remote host closed the connection]
Xeago has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
kies^ has quit [Ping timeout: 240 seconds]
IrishGringo has joined #ruby
baweaver has joined #ruby
Xeago has joined #ruby
devbug has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lucasb> btw, I was trying to understand this: https://bugs.ruby-lang.org/issues/12035
<lucasb> to see if the scanf handling of whitespace was different between strings and files. but I guess it's not.
<Papierkorb> lucasb: there's also String#scanf
<lucasb> yes, I was testing the difference between String#scanf and IO#scanf
<Papierkorb> lucasb: doh didn't read your message after the link one
sandstrom has joined #ruby
AlexJakeGreen has joined #ruby
guacamole is now known as guacaholy
cmckee has joined #ruby
hayden_ has quit [Quit: Connection closed for inactivity]
symm- has joined #ruby
beneills has quit [Ping timeout: 276 seconds]
Jackneill has quit [Quit: Leaving]
tomphp has joined #ruby
skade has joined #ruby
beneills has joined #ruby
JDiPierro has joined #ruby
guacamole has joined #ruby
geekbri has quit [Remote host closed the connection]
freerobby has joined #ruby
JDiPierro has quit [Remote host closed the connection]
hobodave has quit [Quit: Computer has gone to sleep.]
cmckee has quit [Quit: cmckee]
beneills has quit [Read error: Connection reset by peer]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skcin7_ has joined #ruby
hobodave has joined #ruby
william3 has quit [Remote host closed the connection]
syk has joined #ruby
IrishGringo has quit [Ping timeout: 240 seconds]
symbol_ has quit [Quit: WeeChat 1.1]
elifoster has joined #ruby
skcin7 has quit [Ping timeout: 245 seconds]
william3 has joined #ruby
william3 has quit [Remote host closed the connection]
futilegames has joined #ruby
william3 has joined #ruby
devbug has quit [Remote host closed the connection]
devbug has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moei has joined #ruby
srenatus has quit [Quit: Connection closed for inactivity]
zambini has quit [Quit: Leaving.]
Xeago has quit [Remote host closed the connection]
lxsameer has joined #ruby
Xeago has joined #ruby
<slash_nick> lucasb: did you file an issue yet?
<slash_nick> s/yet//
Xeago has quit [Remote host closed the connection]
* slash_nick wants to monitor what happens with it if so
papercode has quit [Ping timeout: 260 seconds]
anekos has quit [Ping timeout: 260 seconds]
papercode has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
yoongkang has joined #ruby
anekos has joined #ruby
<lucasb> slash_nick: about the enumerator rewind? nope. I thought *you* was filing it ;)
nerium has quit [Quit: nerium]
skade has quit [Quit: Computer has gone to sleep.]
futilegames has quit [Quit: futilegames]
<slash_nick> > lucasb: are you writing it up? i don't think i can word that
<lucasb> sorry, I still don't have much experience in ruby, so I would prefer if somebody else filed it.
sandstrom has joined #ruby
* slash_nick nods
newdan has quit [Remote host closed the connection]
cdg has joined #ruby
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
yoongkang has quit [Ping timeout: 256 seconds]
Darmani has joined #ruby
<Darmani> Hey kids<3
blackgoat has joined #ruby
tvw has joined #ruby
casadei has quit [Remote host closed the connection]
dlitvak has quit [Remote host closed the connection]
Cohedrin has joined #ruby
casadei has joined #ruby
Swappticon has joined #ruby
<slash_nick> hola papi
chouhoulis has joined #ruby
AlexJakeGreen has quit [Quit: Leaving]
namxam has joined #ruby
<Darmani> slash_nick - mi amor<3
tenderlove has quit [Read error: Connection reset by peer]
<Darmani> Ox0dea - Your name is back to normal!
zacstewart has quit [Ping timeout: 264 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
tenderlove has joined #ruby
<shevy> down with nick incrementation!
freerobby has joined #ruby
kalopsian has joined #ruby
william3 has quit [Remote host closed the connection]
hlegius has joined #ruby
<lucasb> Darmani++
poguez_ has quit [Quit: Connection closed for inactivity]
<Darmani> shevy - lol war
<Darmani> wat*
kies^ has joined #ruby
<shevy> warrrr!
<shevy> what is it good for!
<Darmani> I always do that. It's so annoying lol
<slash_nick> Ox0dea: **=2
zacstewart has joined #ruby
william3 has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
andchar has joined #ruby
Spami has joined #ruby
<andchar> Hi!
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
namxam_ has joined #ruby
jimmtt has joined #ruby
wolffles has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<jimmtt> what's the most commonly recommended development environment for ruby currently
<Darmani> andchar: hey
nerium has joined #ruby
<jhass> jimmtt: not windows
VeryBewitching has quit [Quit: Konversation terminated!]
<Darmani> Windows all the way.
<jimmtt> I'm talking about the ide
<jimmtt> or editor
<jhass> whatever you feel most comfortable with
lxsameer has quit [Quit: Leaving]
darkf has quit [Quit: Leaving]
<jimmtt> I don't think it should really matter what os you run the code from
<jhass> the only real IDE is RubyMine, but I wouldn't say it's used by the majority of the ruby developers
braincrash has quit [Ping timeout: 250 seconds]
braincrash has joined #ruby
sandstrom has joined #ruby
<andchar> Who knows why 'cyrrilic string'.capitalize don't work?
<tjohnson> jimmtt: (serious answer:) just your text editor of choice :)
<jhass> andchar: because it's not supported, only ASCII
namxam has quit [Ping timeout: 272 seconds]
<andchar> ):
blackmes1 has quit [Ping timeout: 265 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
<Darmani> pretty sure capitalize only works on one word.
<Darmani> andchar.
jgpawletko has quit [Quit: jgpawletko]
<jhass> Darmani: that wasn't the question
<Darmani> jhass - Haha I guess you're right, my bad >.<
yfeldblum has joined #ruby
<andchar> Darmani: one word don't work to
<slash_nick> lucasb: I bet you would've worded it better https://bugs.ruby-lang.org/issues/12036
chussenot has quit [Quit: chussenot]
<Darmani> Who wants to teach me how to write a web scraper? xP
SCHAAP137 has joined #ruby
<Darmani> Please, don't all come at me at once.
Mon_Ouie has quit [Quit: WeeChat 1.3]
<slash_nick> Darmani: here you go http://www.nokogiri.org/
nerium has quit [Quit: nerium]
<Darmani> slash_nick - tanks bruh.
<Darmani> means a lot.
<shevy> Darmani did you use open-uri yet?
<slash_nick> bruh[ther]'s and [sis]stuh's?
<Darmani> shevy - naaa. I still need to read the docs.
tomphp has joined #ruby
<lucasb> slash_nick: awesome. thank you for reporting!
<Darmani> slash_nick - exac[tly]
newbie22 has quit [Quit: Leaving]
<shevy> Darmani ok have a look http://ruby-doc.org/stdlib-2.2.3/libdoc/open-uri/rdoc/OpenURI.html - that will always be useful if you want to use www resources
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
syk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TDJACR has quit [Ping timeout: 260 seconds]
<Darmani> shevy - I'm curious. How often do you do web scraping and what tools do you use?
<shevy> I don't scrape! I only use open uri a lot for fetching remote files
joonty has joined #ruby
<shevy> but web scraping has fetching remote files right?
<Darmani> You're asking me? The guy who doesn't know anything? Lol
<shevy> well you want to do web scraping or write a web scraper, not me!!!
agit0 has joined #ruby
casadei has quit []
<shevy> I am writing a download-fetcher for fasta files right now... so that I can grab weird ass entries like http://www.ncbi.nlm.nih.gov/nuccore/189458859?report=fasta
Guest38 has quit [Read error: Connection reset by peer]
elifoster has quit [Ping timeout: 240 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Darmani> shevy - lmao that looks like fun
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Darmani> jhass - Is that gem pretty easy to use?
<tjohnson> slash_nick++ # for the issue report
<tjohnson> i'll be interested to see how the discussion goes
joonty has quit [Ping timeout: 250 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
x77686d has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
mdw has joined #ruby
<slash_nick> Yeah! tjohnson it'd be cool to be the one responsible for making something new possible in ruby! :)
TDJACR has joined #ruby
<jhass> Darmani: from what I've heard, it certainly is the most used one for the purpose (after plain net/http or open-uri and nokogiri)
sandstrom has joined #ruby
<Darmani> jhass - thanks man (=
maletor has joined #ruby
arup_r has quit []
duckpuppy has quit [Ping timeout: 272 seconds]
musicnode has joined #ruby
dopamean_ has quit [Ping timeout: 276 seconds]
Ebok has joined #ruby
synthroid has quit []
duderon__ has quit [Quit: Textual IRC Client: www.textualapp.com]
FooMunki has quit [Quit: FooMunki]
chipotle has joined #ruby
FooMunki has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
mjuszczak has quit []
Scriptonaut has quit [Remote host closed the connection]
cmckee has joined #ruby
yfeldblum has quit [Remote host closed the connection]
petersaints has quit [Ping timeout: 276 seconds]
ur5us has joined #ruby
devbug has quit [Ping timeout: 272 seconds]
wolffles has quit [Quit: wolffles]
yfeldblum has joined #ruby
tomchapin has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
mjuszczak has joined #ruby
dudedudeman has quit [Ping timeout: 240 seconds]
dudedudeman has joined #ruby
TomyLobo has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nerium has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
musicnode has quit [Quit: musicnode]
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
ledestin has joined #ruby
wolffles has joined #ruby
sandstrom has joined #ruby
uri_ has joined #ruby
_ht has quit [Quit: Konversation terminated!]
dlitvak has joined #ruby
musicnode has joined #ruby
solars has quit [Ping timeout: 250 seconds]
chipotle has quit [Quit: cheerio]
Scriptonaut has joined #ruby
ramfjord_ has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
FooMunki has quit [Quit: FooMunki]
hobodave has joined #ruby
FooMunki has joined #ruby
codecop has quit [Remote host closed the connection]
dopamean_ has joined #ruby
lucasb has quit [Quit: leaving]
Xeago has joined #ruby
baweaver has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 276 seconds]
codecop has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
wilbert has quit [Ping timeout: 256 seconds]
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
agit0 has quit [Ping timeout: 240 seconds]
codecop has quit [Remote host closed the connection]
yoongkang has joined #ruby
djcp has quit [Ping timeout: 260 seconds]
zambini has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
sandstrom has quit [Quit: My computer has gone to sleep.]
kies^ has quit [Ping timeout: 240 seconds]
<grill> yo. anyone in here familiar with popen3? it looks like popen3 allows for the stdout buffer to fill up under certain circumstances
k13nox has joined #ruby
sandstrom has joined #ruby
<grill> this seems to lead to a situation in which a command will hanf indefinitely
s00pcan has quit [Ping timeout: 240 seconds]
Xeago has quit [Ping timeout: 272 seconds]
solars has joined #ruby
Coldblackice has joined #ruby
jottr_ has joined #ruby
solars has quit [Client Quit]
nfk has joined #ruby
solars has joined #ruby
s00pcan has joined #ruby
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
toretore has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
<grill> how would one go about flushing stdout when it gets too full
duncan_ has joined #ruby
musicnode has quit [Ping timeout: 260 seconds]
duncan_ has quit [Max SendQ exceeded]
duncannz has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 256 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duncan_ has joined #ruby
blackmes1 has joined #ruby
duncan_ has quit [Max SendQ exceeded]
emilford has joined #ruby
chussenot has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Waheedi has joined #ruby
visudo has quit [Quit: visudo]
dexter_ has quit [Ping timeout: 240 seconds]
<slash_nick> $stdout.flush ?
mary5030 has joined #ruby
kaleido has joined #ruby
goodroot has quit [Ping timeout: 245 seconds]
polishdub has quit [Quit: Leaving]
blandflakes has joined #ruby
Scriptonaut has quit [Quit: leaving]
uri_ has quit [Quit: --]
volty has joined #ruby
uri_ has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
blandflakes has quit [Client Quit]
jgt1 has joined #ruby
wolffles has quit [Quit: wolffles]
joonty has joined #ruby
<volty> hi, I have to pass as a param the string "#{@x}, #{@y}", but I want to prevent interpolation till I need it (later, with instance_eval). How can this be done?
Xeago has joined #ruby
jgt has quit [Ping timeout: 245 seconds]
yfeldblu_ has joined #ruby
piotrj has joined #ruby
dexter_ has joined #ruby
s00pcan has quit [Ping timeout: 276 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest38 has joined #ruby
ElFerna_ has quit [Ping timeout: 240 seconds]
joonty has quit [Ping timeout: 245 seconds]
zenlot1 has joined #ruby
s00pcan has joined #ruby
ElFerna_ has joined #ruby
_seanc_ has joined #ruby
<volty> with Proc?
<kaleido> anyone use bcrypt?
<kaleido> im a noob and struggling with how to check if a password is correct
havenwoo_ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
zenlot has quit [Ping timeout: 260 seconds]
devbug has joined #ruby
z4ph0d has quit [Quit: eof]
Xeago has quit [Remote host closed the connection]
pedahzur has joined #ruby
Xeago has joined #ruby
pietr0 has quit [Quit: pietr0]
blandflakes has joined #ruby
oetjenj has joined #ruby
k13nox_ has joined #ruby
Musashi007 has joined #ruby
ElFerna_ has quit [Ping timeout: 245 seconds]
duderonomy has joined #ruby
havenwoo_ has quit [Ping timeout: 260 seconds]
k13nox has quit [Ping timeout: 250 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vvalien has quit [Quit: vvalien]
Xeago has quit [Remote host closed the connection]
devbug has quit [Ping timeout: 256 seconds]
ledestin has joined #ruby
7GHAB6A6A has joined #ruby
cmckee has quit [Quit: cmckee]
Ebok has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
zacstewart has quit [Ping timeout: 276 seconds]
duncannz has joined #ruby
Guest48087 has quit [Remote host closed the connection]
zacstewart has joined #ruby
ledestin has quit [Client Quit]
atmosx has joined #ruby
mjuszczak has quit []
7GHAB6A6A is now known as LoneHermit
ledestin has joined #ruby
Ebok has quit [Ping timeout: 264 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwoo_ has joined #ruby
william3 has quit [Remote host closed the connection]
ferr has quit [Ping timeout: 240 seconds]
devbug has joined #ruby
mostlybadfly has joined #ruby
asccigcc has quit [Read error: Connection reset by peer]
<Ox0dea> volty: As long as you're sure you don't need something a little heavier (a templating engine), yeah, using a Proc to delay the render isn't a bad approach: https://eval.in/510024
dhollinger has quit [Quit: WeeChat 1.4]
asccigcc has joined #ruby
baweaver has joined #ruby
havenwoo_ has quit [Remote host closed the connection]
duckpuppy has joined #ruby
Xeago has joined #ruby
mary5030_ has joined #ruby
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
uri___ has joined #ruby
uri_ has quit [Ping timeout: 245 seconds]
emilford has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 250 seconds]
visudo has joined #ruby
Swappticon has quit [Quit: Textual IRC Client: www.textualapp.com]
cdg has quit [Ping timeout: 264 seconds]
Xeago has quit [Remote host closed the connection]
maikowblue has quit [Quit: .]
<Ox0dea> Er, not even sure what I was thinking there.
skade has joined #ruby
<Ox0dea> You won't be able to just #instance_eval with the string as the body of the block, though; you'll either have to call a method or a Proc.
<volty> right, right, I was doing it
<Ox0dea> In short, interpolation happens immediately as the string is "encountered" during evaluation.
<Ox0dea> Holy hard tabs, Batman.
<volty> wait, I have them :)
cmckee has joined #ruby
<Ox0dea> `block` as the first parameter is weird.
idefine has joined #ruby
<volty> not at all (weird) in my context
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
tomchapin has joined #ruby
<volty> it's an essential parameters that comes in place of (default) string param for Qt::Label
hobodave has quit [Quit: Computer has gone to sleep.]
<Ox0dea> It's definitionally misleading; a method can only receive an actual block as its last "argument".
Xeago has joined #ruby
<dudedudeman> i’ve got a script given me the link of a particular file that i want to download. how can i have ruby visit that link(that is stored in a variabel) and download it for me?
<Ox0dea> Proc != block, to clarify.
<volty> Ox0dea: I do not need a block. I can't even have a block there. It's Qt initializers that deal with blocks. Believe me that the right approach, in qt's context, is this one.
<Ox0dea> Ah, fair enough, I guess.
Darmani has quit [Ping timeout: 252 seconds]
<Ox0dea> dudedudeman: File.write 'foo', Net::HTTP.new('example.com').get('/foo').body
krobzaur has quit [Ping timeout: 276 seconds]
LoneHermit has quit [Remote host closed the connection]
tomchapin has quit [Client Quit]
LoneHermit has joined #ruby
<Ox0dea> Or just `curl -O example.com/foo`. :P
<dudedudeman> ha, curl is how i have it implemented right now…. but…….. lol
<dudedudeman> i know i’m better than that ha
tomchapin has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
LoneHermit has quit [Remote host closed the connection]
futilegames has joined #ruby
tomchapin has quit [Client Quit]
futilegames has quit [Client Quit]
skade has quit [Quit: Computer has gone to sleep.]
sandstrom has joined #ruby
uri___ has quit [Quit: --]
uri_ has joined #ruby
<Ox0dea> "Reinvent the wheel only that you would improve it."
LoneHerm_ has joined #ruby
<Ox0dea> Alternatively, "it's never too late to reinvent the bicycle".
zerowaitstate has quit [Quit: leaving]
_p0p0pr37 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
[Butch] has quit [Quit: I'm out . . .]
bithon has quit [Ping timeout: 256 seconds]
arlek has quit [Ping timeout: 250 seconds]
jottr_ is now known as jottr
k13nox_ has quit [Read error: Connection reset by peer]
goodroot has joined #ruby
uri_ has quit [Quit: --]
<shevy> oh bicycle - these guys tried to reinvent it: http://tnx.nl/php.jpg
<dudedudeman> Ox0dea: very true
<dudedudeman> I had this
<dudedudeman> download = open("#{@uri}")
<dudedudeman> IO.copy_stream(download, '~/test.apk')
idefine has quit [Remote host closed the connection]
<dudedudeman> but i realized that my download is behind an authentication wall :/
Musashi007 has quit [Quit: Musashi007]
k13nox has joined #ruby
k13nox has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
symm- has quit [Read error: Connection reset by peer]
symm- has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
pandaant has joined #ruby
<shevy> the dudedudeman is trying to break through the chinese wall!
<dudedudeman> sadly, no. it’s behind the wall of one of our own damn servers lol
goodroot has quit [Ping timeout: 272 seconds]
arescorpio has joined #ruby
robbyoconnor has joined #ruby
joonty has joined #ruby
duncannz has quit [Quit: Leaving]
sandstrom has quit [Quit: My computer has gone to sleep.]
kirun has quit [Quit: Client exiting]
duckpuppy has quit [Ping timeout: 260 seconds]
sandstrom has joined #ruby
atmosx has quit [Quit: Lost in trance]
joonty has quit [Ping timeout: 272 seconds]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
_seanc_ has quit [Quit: _seanc_]
stannard has quit [Remote host closed the connection]
joneshf-laptop has quit [Ping timeout: 265 seconds]
Xeago has quit [Remote host closed the connection]
visudo has quit [Quit: visudo]
arlek has joined #ruby
pawnbox has quit [Remote host closed the connection]
solars has quit [Ping timeout: 272 seconds]
pawnbox has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
_seanc_ has joined #ruby
namxam_ has quit [Remote host closed the connection]
jhack has joined #ruby
_p0p0pr37 has joined #ruby
jhack is now known as kcahj
renderfu_ has quit [Read error: Connection reset by peer]
akkmaxon has joined #ruby
akkmaxon has quit [Read error: Connection reset by peer]
renderfu_ has joined #ruby
mjuszczak has joined #ruby
doublemalt_ has quit [Remote host closed the connection]
Brklyn has quit [Ping timeout: 250 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Remote host closed the connection]
holman has joined #ruby
ur5us has joined #ruby
elifoster has joined #ruby
dopamean1 has joined #ruby
robbyoconnor has joined #ruby
PaulCape_ has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
htmldrum_ has joined #ruby
CoderPuppy has joined #ruby
flughafen_ has joined #ruby
it_tard has joined #ruby
nerium_ has joined #ruby
blackgoat_ has joined #ruby
lagweezl1 has joined #ruby
nfk has quit [Disconnected by services]
it_tard is now known as nfk
cpup has quit [Ping timeout: 240 seconds]
htmldrum has quit [Ping timeout: 240 seconds]
flughafen has quit [Ping timeout: 240 seconds]
dopamean_ has quit [Ping timeout: 240 seconds]
blackgoat has quit [Ping timeout: 240 seconds]
lagweezle has quit [Ping timeout: 240 seconds]
v0n has quit [Ping timeout: 240 seconds]
PaulCapestany has quit [Ping timeout: 240 seconds]
El3ktra has quit [Ping timeout: 240 seconds]
lagweezl1 is now known as lagweezle
lianj has quit [Ping timeout: 240 seconds]
sandstrom has joined #ruby