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"})
<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
<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]
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 ...
<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?
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
<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]
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]
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]
<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
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!
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
<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". :(
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?
<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>
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]
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)
<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]
<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: 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 :)
<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?
<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
<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.
<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
<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]
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]
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.