maloik has quit [Remote host closed the connection]
sarcas has quit [Ping timeout: 240 seconds]
maloik has joined #ruby
heftig has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
heftig has joined #ruby
whathappens has joined #ruby
A124 has quit [Remote host closed the connection]
ifctj has quit [Ping timeout: 240 seconds]
gigetoo has quit [Read error: Connection reset by peer]
maddmaxx has quit [Quit: Going offline, see ya! (www.adiirc.com)]
gigetoo has joined #ruby
lel has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
<havenwood>
Speaking of Bundler, if you'd like to silence the newly introduced begging in the post-install message: bundle config ignore_messages.bundler true
whathappens has quit [Remote host closed the connection]
bruce_lee has quit [Read error: Connection reset by peer]
BackEndCoder_ has quit [Excess Flood]
kht has joined #ruby
BackEndCoder has joined #ruby
toretore has quit [Ping timeout: 260 seconds]
_sfiguser has quit [Ping timeout: 252 seconds]
Derperperd has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
milardovich has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
mikecmpbll has quit [Quit: inabit. zz.]
gigetoo has joined #ruby
r3bbit has quit [Remote host closed the connection]
alexar has quit [Remote host closed the connection]
alexar has joined #ruby
StoneCypher has joined #ruby
milardovich has quit [Ping timeout: 255 seconds]
marr has quit [Ping timeout: 276 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
BB has joined #ruby
alexar has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
_djbkd has quit [Quit: My people need me...]
enterprisey has joined #ruby
djbkd has joined #ruby
bmurt has joined #ruby
djbkd has quit [Client Quit]
ocbtec has quit [Quit: leaving]
_sfiguser has joined #ruby
wrkrcoop has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
gigetoo has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
<aesthetikxx>
is there any way to simplify ``` whatever.map { |thing| yield thing } ```?
djbkd has joined #ruby
<wrkrcoop>
why does this documentation says import like this: import elastic "gopkg.in/olivere/elastic.v5”, i thught it was import "gopkg.in/olivere/elastic.v5”
Vile` has joined #ruby
alxs has joined #ruby
milardovich has quit [Ping timeout: 256 seconds]
<Radar>
wrkrcoop: Shouldn't that be a question for #go-nuts?
<wrkrcoop>
oops sorry wrong channel :X
<Radar>
aesthetikxx: not that I can think of
<adam12>
aesthetikxx: can you just return `whatever.map`?
alxs has quit [Ping timeout: 256 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
mikecmpbll has joined #ruby
username_ has quit [Ping timeout: 255 seconds]
Derperperd has joined #ruby
DenSchub has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
DenSchub has joined #ruby
Vile` has quit [Ping timeout: 258 seconds]
Derperperd has quit [Ping timeout: 256 seconds]
benlieb has joined #ruby
gigetoo has joined #ruby
zipace has quit [Disconnected by services]
ziprar has joined #ruby
slappy16 has quit [Quit: Leaving.]
__Yiota has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
milardovich has joined #ruby
`tim` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tyang has quit [Read error: Connection reset by peer]
Vile` has joined #ruby
Bounga has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
gigetoo has joined #ruby
splud has quit [Quit: splud]
Bounga has quit [Ping timeout: 252 seconds]
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
DenSchub has quit [Ping timeout: 255 seconds]
StoneCypher has quit [Ping timeout: 252 seconds]
Guest88021 is now known as ged
ged is now known as Guest33152
kht has quit [Ping timeout: 276 seconds]
nankyokusei has joined #ruby
DenSchub has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
Channel6 has joined #ruby
gigetoo has joined #ruby
araujo has quit [Ping timeout: 252 seconds]
DevilTiger has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
malconis_ has quit [Read error: Connection reset by peer]
malconis has joined #ruby
CloCkWeRX has joined #ruby
jameser has joined #ruby
duckpupp1 has joined #ruby
hahuang61 has joined #ruby
raul782_ has joined #ruby
duckpupp1 has quit [Ping timeout: 255 seconds]
raul782 has quit [Ping timeout: 264 seconds]
gigetoo has quit [Ping timeout: 252 seconds]
duderonomy has quit [Ping timeout: 255 seconds]
gigetoo has joined #ruby
raul782_ has quit [Ping timeout: 255 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has quit [Quit: WeeChat 1.6]
benlieb has quit [Quit: benlieb]
milardovich has joined #ruby
zacts has quit [Ping timeout: 240 seconds]
eizua has joined #ruby
mwlang has quit [Quit: mwlang]
jschoolcraft has quit [Quit: peace]
jameser has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 245 seconds]
pugc has joined #ruby
zeroDi has quit [Quit: WeeChat 1.6]
jenrzzz has quit [Ping timeout: 264 seconds]
arescorpio has joined #ruby
gigetoo has joined #ruby
hahuang61 has quit [Ping timeout: 245 seconds]
brent__ has joined #ruby
raul782 has joined #ruby
ReK2GnULinuX has joined #ruby
ReK2GnULinuX has joined #ruby
ReK2GnULinuX has quit [Changing host]
ReK2 has quit [Read error: Connection reset by peer]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brent___ has joined #ruby
brent____ has joined #ruby
maxirater has joined #ruby
Derperperd has joined #ruby
brent__ has quit [Ping timeout: 252 seconds]
danielpclark has joined #ruby
brent___ has quit [Ping timeout: 258 seconds]
gigetoo has quit [Ping timeout: 260 seconds]
gigetoo has joined #ruby
duckpupp1 has joined #ruby
Derperperd has quit [Ping timeout: 258 seconds]
montanonic has joined #ruby
brent__ has joined #ruby
LoneHermit has joined #ruby
jameser has quit [Ping timeout: 260 seconds]
dkings has quit [Read error: Connection reset by peer]
brent__ has quit [Remote host closed the connection]
dkings has joined #ruby
brent____ has quit [Ping timeout: 258 seconds]
hanmac has quit [Ping timeout: 276 seconds]
marcdel has joined #ruby
LoneHermit has quit [Ping timeout: 240 seconds]
wrkrcoop has quit [Quit: wrkrcoop]
blackmesa has joined #ruby
d^sh has quit [Ping timeout: 258 seconds]
gloscombe has quit [Quit: gloscombe]
d^sh has joined #ruby
chouhoulis has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
pugc has quit [Read error: Connection reset by peer]
Flaredrop has joined #ruby
milardovich has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mark[oz] has joined #ruby
jameser has joined #ruby
_geoff has joined #ruby
milardovich has quit [Ping timeout: 255 seconds]
TheWhip has joined #ruby
hanmac has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
BB has quit [Quit: Leaving...]
gigetoo has joined #ruby
Flaredrop has left #ruby ["Leaving"]
__Yiota has joined #ruby
duckpupp1 has quit [Ping timeout: 258 seconds]
duderonomy has joined #ruby
SenpaiSilver has joined #ruby
Guest33152 is now known as ged
ged is now known as Guest52610
SenpaiSilver has quit [Client Quit]
SenpaiSilver has joined #ruby
govg has quit [Ping timeout: 260 seconds]
gigetoo has quit [Ping timeout: 255 seconds]
ziprar has quit [Quit: Leaving]
DevilTiger has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
zacts has joined #ruby
optiz0r has quit [Ping timeout: 258 seconds]
blackmesa has quit [Quit: WeeChat 1.6]
whathappens has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
ecuanaso has joined #ruby
<ecuanaso>
i'm trying to install bootstrap in one of my sass ruby projects but I keep getting 'File to import not found or unreadable: bootstrap_sprockets'
jameser has quit [Read error: Connection reset by peer]
maxirater has quit [Quit: Leaving]
jameser has joined #ruby
maxirater has joined #ruby
milardovich has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
harfangk has joined #ruby
maxirater has quit [Client Quit]
gigetoo has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
rkazak has quit [Quit: Sleep.....ing....]
danielpclark has quit [Ping timeout: 252 seconds]
Channel6 has quit [Quit: Leaving]
aidalgol has joined #ruby
walterheck has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
SenpaiSilver has quit [Quit: Leaving]
milardovich has joined #ruby
Derperperd has joined #ruby
enterprisey_ has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has joined #ruby
davezd has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
Derperperd has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
nankyokusei has joined #ruby
danielpclark has joined #ruby
alxs has joined #ruby
whathappens has quit [Remote host closed the connection]
milardovich has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
alxs has quit [Ping timeout: 256 seconds]
douglascorrea has quit []
gigetoo has quit [Ping timeout: 260 seconds]
milardovich has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
enterprisey_ has quit [Ping timeout: 255 seconds]
jameser has quit [Ping timeout: 248 seconds]
JoshS has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Ping timeout: 240 seconds]
kht has joined #ruby
maddmaxx has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sneakerhax has quit [Read error: Connection reset by peer]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
alexar has joined #ruby
_geoff has quit [Ping timeout: 264 seconds]
govg has joined #ruby
arescorpio has quit [Quit: Leaving.]
benlieb has joined #ruby
dkings has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
alexar has quit [Ping timeout: 252 seconds]
woodruffw has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
djbkd has quit [Quit: Leaving...]
chouhoulis has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 252 seconds]
gigetoo has joined #ruby
Guest52610 is now known as ged
woodruffw has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
ged is now known as Guest4820
milardovich has joined #ruby
gix has quit [Ping timeout: 258 seconds]
l4v2 has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gix has joined #ruby
lele has quit [Ping timeout: 252 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
Channel6 has joined #ruby
gigetoo has joined #ruby
LoneHermit has joined #ruby
lele has joined #ruby
AKPWD has quit [Quit: じゃね。]
AKPWD has joined #ruby
LoneHermit has quit [Ping timeout: 256 seconds]
benlieb has quit [Quit: benlieb]
<triangles2>
Quick question. If I assign a database connection to a class instance variable (eg by writing @db = Connection.new inside the class body but outside of a method definition), that means that all instances of that class will share the same connection, right?
<triangles2>
They won't all establish their own connection upon instantiation, like they would if I made it a regular instance variable inside the initialize method?
StoneCypher has joined #ruby
Derperperd has joined #ruby
charliesome has joined #ruby
duckpupp1 has joined #ruby
gigetoo has quit [Ping timeout: 256 seconds]
gigetoo has joined #ruby
StoneCypher has quit [Ping timeout: 258 seconds]
A124 has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
eizua has quit [Remote host closed the connection]
djbkd has joined #ruby
optiz0r has joined #ruby
csk has quit [Quit: ZZZzzz…]
mark[oz] has quit []
duckpupp1 has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
gigetoo has joined #ruby
jameser has joined #ruby
danielpclark has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 276 seconds]
benlieb has joined #ruby
chouhoulis has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 248 seconds]
kht has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
gigetoo has joined #ruby
xall has joined #ruby
benlieb has quit [Quit: benlieb]
govg has quit [Ping timeout: 240 seconds]
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
milardovich has quit [Ping timeout: 255 seconds]
danielpclark has joined #ruby
TomyLobo has quit [Ping timeout: 255 seconds]
queequeg1 has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
Coldblackice_ has joined #ruby
Vile` has quit [Ping timeout: 240 seconds]
govg has joined #ruby
gigetoo has joined #ruby
Coldblackice has quit [Ping timeout: 264 seconds]
matrix9180 has joined #ruby
l4v2 has quit [Quit: l4v2]
fedruantine has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 240 seconds]
Cohedrin_ has joined #ruby
bocaneri has joined #ruby
gix has joined #ruby
nankyokusei has joined #ruby
skweek has quit [Ping timeout: 252 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
Guest4820 is now known as ged
nankyokusei has quit [Ping timeout: 248 seconds]
ged is now known as Guest41623
TheTFEF is now known as Nightmare
djbkd has quit [Quit: Leaving...]
milardovich has joined #ruby
CloCkWeRX has quit [Ping timeout: 248 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
Derperperd has joined #ruby
gigetoo has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
Derperperd has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 248 seconds]
matrix9180 is now known as matrix9180[away]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
djbkd has joined #ruby
CloCkWeRX has joined #ruby
amclain has quit [Quit: Leaving]
xall has quit [Ping timeout: 240 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 240 seconds]
xall has joined #ruby
gigetoo has joined #ruby
_whitelogger has joined #ruby
shinnya has joined #ruby
milardovich has joined #ruby
hutch34_ has quit [Ping timeout: 258 seconds]
xall has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
gdct has joined #ruby
x00r__ has joined #ruby
alexar has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
milardovich has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
alexar has quit [Ping timeout: 240 seconds]
matrix9180[away] is now known as matrix9180
matrix9180 is now known as matrix9180[away]
LoneHerm_ has joined #ruby
tmtwd has joined #ruby
jameser has joined #ruby
LoneHerm_ has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 252 seconds]
meadmoon has joined #ruby
meadmoon has quit [Client Quit]
gigetoo has joined #ruby
_geoff has joined #ruby
_geoff has quit [Ping timeout: 264 seconds]
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
maddmaxx_ has joined #ruby
Guest41623 is now known as ged
ged is now known as Guest17737
Derperperd has joined #ruby
jameser has quit [Ping timeout: 256 seconds]
maddmaxx has quit [Ping timeout: 264 seconds]
maddmaxx_ is now known as maddmaxx
peteykun has joined #ruby
matp has quit [Remote host closed the connection]
eelster has joined #ruby
eelster has quit [Client Quit]
Derperperd has quit [Ping timeout: 258 seconds]
matp has joined #ruby
duckpupp1 has joined #ruby
gigetoo has quit [Ping timeout: 258 seconds]
matrix9180[away] is now known as matrix9180
matrix9180 is now known as matrix9180[away]
gigetoo has joined #ruby
jameser has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
xall has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
kang00 has joined #ruby
gdct has quit [Ping timeout: 240 seconds]
<kang00>
Who is live
tmtwd has quit [Quit: Leaving]
StoneCypher has joined #ruby
xall has quit [Ping timeout: 240 seconds]
montanonic has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
brent__ has joined #ruby
gigetoo has quit [Ping timeout: 264 seconds]
malconis has joined #ruby
chouhoulis has joined #ruby
StoneCypher has quit [Ping timeout: 276 seconds]
gigetoo has joined #ruby
malconis has quit [Client Quit]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
malconis has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
malconis has quit [Client Quit]
CloCkWeRX has quit [Quit: Leaving.]
nankyokusei has joined #ruby
chouhoulis has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
AndBobsYourUncle has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
Derperperd has joined #ruby
Technodrome has joined #ruby
Derperperd has quit [Max SendQ exceeded]
Derperperd has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
gigetoo has joined #ruby
enterprisey has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 255 seconds]
triangles2 has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
triangles2 has joined #ruby
xall has joined #ruby
duckpupp1 has joined #ruby
brent__ has quit [Remote host closed the connection]
elementaru has joined #ruby
matrix9180[away] has quit [Read error: Connection reset by peer]
raul782 has quit [Remote host closed the connection]
ifctj has joined #ruby
xall has quit [Ping timeout: 248 seconds]
gigetoo has quit [Ping timeout: 255 seconds]
marcdel has quit [Ping timeout: 240 seconds]
duckpupp1 has quit [Ping timeout: 245 seconds]
gigetoo has joined #ruby
<zenspider>
triangles2: can't answer that w/o knowing wtf you're using. but a class instance variable isn't available to instances w/o an accessor method of some sort. they can't just access `@db` because that isn't theirs to use. That is what class variables are for @@db.
pilne has quit [Quit: Quitting!]
montanonic has joined #ruby
vali_ has joined #ruby
freekiwi has joined #ruby
freekiwi has left #ruby [#ruby]
gigetoo has quit [Ping timeout: 276 seconds]
duckpupp1 has joined #ruby
gigetoo has joined #ruby
vali_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
__Yiota has joined #ruby
gigetoo has quit [Ping timeout: 252 seconds]
milardovich has quit [Client Quit]
gigetoo has joined #ruby
alxs has joined #ruby
ifctj has quit [Quit: Konversation terminated!]
ifctj has joined #ruby
Guest17737 is now known as ged
montanonic has quit [Ping timeout: 240 seconds]
ged is now known as Guest73705
duckpupp1 has quit [Ping timeout: 240 seconds]
alxs has quit [Ping timeout: 248 seconds]
bjmllr has quit [Ping timeout: 240 seconds]
swills has quit [Read error: Connection reset by peer]
swills has joined #ruby
bjmllr has joined #ruby
renchan has joined #ruby
Bounga has joined #ruby
lacour has quit [Quit: Leaving]
jameser has quit [Ping timeout: 276 seconds]
gigetoo has quit [Ping timeout: 252 seconds]
gigetoo has joined #ruby
Bounga has quit [Ping timeout: 252 seconds]
marcdel has joined #ruby
chussenot has joined #ruby
xall has joined #ruby
Channel6 has quit [Quit: Leaving]
vali_ has joined #ruby
zeroDi has joined #ruby
xall has quit [Ping timeout: 245 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ifctj has quit [Quit: Konversation terminated!]
xall has joined #ruby
nowhere_man has joined #ruby
ifctj has joined #ruby
nanoz has joined #ruby
marcdel has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
hutch34_ has joined #ruby
jameser has joined #ruby
LoneHermit has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
LoneHermit has quit [Ping timeout: 248 seconds]
ifctj has quit [Quit: Konversation terminated!]
ifctj has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
sebastia_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
sebastiansier has joined #ruby
gigetoo has joined #ruby
kang00 has left #ruby ["Quit"]
vali_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
govg has joined #ruby
AnoHito has joined #ruby
fonedir has quit [Quit: Connection closed for inactivity]
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 240 seconds]
elementaru has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
elementaru has joined #ruby
rajat has joined #ruby
jameser has quit [Ping timeout: 255 seconds]
ifctj has quit [Ping timeout: 248 seconds]
xall has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
duri has quit [Quit: leaving]
rajat has quit [Quit: Leaving]
Bounga has joined #ruby
rajat has joined #ruby
nankyokusei has joined #ruby
gigetoo has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
hotpancakes has joined #ruby
Kaze_FX has quit [Quit: WeeChat 1.0.1]
nankyokusei has quit [Ping timeout: 245 seconds]
elena_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elena_ has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Remote host closed the connection]
fonedir has joined #ruby
fonedir has quit [Client Quit]
nadir has joined #ruby
gigetoo has quit [Ping timeout: 256 seconds]
gigetoo has joined #ruby
StoneCypher has joined #ruby
Guest73705 is now known as ged
ged is now known as Guest45736
StoneCypher has quit [Ping timeout: 256 seconds]
diegok has quit [Ping timeout: 256 seconds]
Tempesta has quit [Quit: AdiIRC is updating to v2.7 Beta Build (2017/01/21) 64 Bit]
Tempesta has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
jameser has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_sfiguser has quit [Ping timeout: 240 seconds]
arquebus has joined #ruby
hotpancakes has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 255 seconds]
hotpancakes has joined #ruby
xall has joined #ruby
gigetoo has joined #ruby
rajat has quit [Remote host closed the connection]
Cohedrin_ has joined #ruby
rajat has joined #ruby
Cohedrin_ has quit [Client Quit]
gloscombe has joined #ruby
_sfiguser has joined #ruby
hotpancakes has quit [Ping timeout: 240 seconds]
Jackneill has joined #ruby
arquebus has quit [Quit: Leaving]
govg has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
govg has joined #ruby
djbkd has quit [Quit: Leaving...]
gigetoo has quit [Ping timeout: 256 seconds]
nanoz has quit [Read error: Connection reset by peer]
aurelien has joined #ruby
gigetoo has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
xall has quit [Ping timeout: 276 seconds]
Fernando-Basso has joined #ruby
aurelien has quit [Changing host]
aurelien has joined #ruby
hutch34_ has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
vali_ has joined #ruby
vali_ has quit [Client Quit]
gigetoo has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ifctj has joined #ruby
xen0fon has joined #ruby
djbkd has joined #ruby
Cohedrin_ has joined #ruby
ddffg has joined #ruby
duckpupp1 has joined #ruby
hightower3 has quit [Read error: Connection reset by peer]
gigetoo has quit [Read error: Connection reset by peer]
hightower3 has joined #ruby
gigetoo has joined #ruby
TomyLobo has joined #ruby
djbkd has quit [Quit: Leaving...]
duckpupp1 has quit [Ping timeout: 260 seconds]
chussenot has quit [Quit: chussenot]
hotpancakes has joined #ruby
LoneHermit has joined #ruby
chussenot has joined #ruby
vali_ has joined #ruby
jameser has quit [Read error: Connection reset by peer]
jameser has joined #ruby
teclator_ has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
faraco has joined #ruby
hotpanca_ has joined #ruby
<faraco>
howdy
hotpancakes has quit [Ping timeout: 252 seconds]
LoneHermit has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 264 seconds]
faraco has quit [Client Quit]
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gigetoo has joined #ruby
hotpanca_ has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
djbkd has quit [Client Quit]
marr has joined #ruby
gloscombe has quit [Quit: gloscombe]
Guest45736 is now known as ged
djbkd has joined #ruby
AndBobsYourUncle has joined #ruby
ged is now known as Guest7446
alexar has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
alexar has quit [Ping timeout: 240 seconds]
rajat has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
aidalgol has quit [Quit: zZzZzzz]
gigetoo has quit [Ping timeout: 256 seconds]
gigetoo has joined #ruby
chussenot has quit [Quit: chussenot]
jameser has quit [Ping timeout: 258 seconds]
hutch34_ has joined #ruby
vali_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
BTRE has quit [Read error: Connection reset by peer]
patarr has joined #ruby
BTRE has joined #ruby
gigetoo has quit [Ping timeout: 264 seconds]
minimalism has quit [Quit: minimalism]
hutch34_ has quit [Ping timeout: 245 seconds]
gigetoo has joined #ruby
patarr has quit [Ping timeout: 255 seconds]
faraco has joined #ruby
<faraco>
Hi
ledestin has joined #ruby
govg has joined #ruby
TheWhip has quit [Ping timeout: 240 seconds]
swistak35 has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
gloscombe has joined #ruby
gigetoo has joined #ruby
blackmesa has joined #ruby
hotpancakes has joined #ruby
StoneCypher has joined #ruby
hotpancakes has quit [Ping timeout: 255 seconds]
Bounga has quit [Remote host closed the connection]
Bounga has joined #ruby
<faraco>
Hi, what is the best book to learn Ruby?
hotpancakes has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
StoneCypher has quit [Ping timeout: 255 seconds]
gigetoo has joined #ruby
Bounga has quit [Remote host closed the connection]
Bounga has joined #ruby
hotpancakes has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
thebookquestion has joined #ruby
<thebookquestion>
i'm here to ask the book question
<thebookquestion>
what's the best ruby book with regards to internals/advanced concepts?
toretore has joined #ruby
thebookquestion has quit [Quit: Page closed]
gigetoo has quit [Ping timeout: 240 seconds]
ruby742 has joined #ruby
CloCkWeRX has joined #ruby
<faraco>
I'm actually asking for the same too, but here been here for half an hour (maybe) waiting for someone to reply.
gigetoo has joined #ruby
<ruby742>
inb4 "use google"
<ruby742>
lol
byte512 has joined #ruby
<atmosx>
faraco: the pickaxe is fairly good
<faraco>
for ruby 2.2+, is it relevant, the pickaxe book?
<faraco>
still*
<elomatreb>
Most of the concepts are still applicable, yes
<faraco>
nice. Thanks.
jameser has joined #ruby
Bounga has quit [Remote host closed the connection]
Bounga has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
<ruby742>
is the official documentation as good as any book? i have nothing against just reading that
<elomatreb>
Two different things
<elomatreb>
A book can explain the more abstract concepts like metaprogramming patterns better than what is usually done in e.g. the library docs
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dkings has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dkings has joined #ruby
tomphp has joined #ruby
sepp2k has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
danieldocki has joined #ruby
JeanCarloMachado has joined #ruby
Bounga has quit [Remote host closed the connection]
Bounga has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
alxs has joined #ruby
gigetoo has joined #ruby
govg has quit [Ping timeout: 264 seconds]
duckpupp1 has joined #ruby
last_staff has joined #ruby
Kug3lis_off is now known as Kug3lis
nankyokusei has joined #ruby
alxs has quit [Ping timeout: 264 seconds]
duckpupp1 has quit [Ping timeout: 240 seconds]
vali_ has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
gigetoo has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
Bounga has quit [Remote host closed the connection]
Bounga has joined #ruby
ruby742 has quit [Quit: Page closed]
xen0fon has quit [Quit: xen0fon]
koldbrutality has quit [Ping timeout: 248 seconds]
hotpancakes has quit [Read error: Connection reset by peer]
Xentil has joined #ruby
faraco has quit [Quit: Leaving]
danieldocki has quit [Quit: Leaving...]
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
Alina-malina has quit [Ping timeout: 258 seconds]
Pisuke has quit [Quit: WeeChat 1.6-dev]
Bounga has quit [Ping timeout: 252 seconds]
matp has quit [Remote host closed the connection]
Alina-malina has joined #ruby
vali_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
matp has joined #ruby
xen0fon has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
ddffg has quit [Ping timeout: 255 seconds]
ecuanaso has joined #ruby
ifctj has quit [Ping timeout: 240 seconds]
Alina-malina has quit [Ping timeout: 255 seconds]
Guest62078 is now known as ged
gigetoo has quit [Ping timeout: 245 seconds]
ged is now known as Guest31204
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gloscombe has quit [Quit: gloscombe]
gigetoo has joined #ruby
Alina-malina has joined #ruby
hutch34_ has joined #ruby
ddffg has joined #ruby
blackmesa has joined #ruby
hutch34_ has quit [Ping timeout: 248 seconds]
seanh has joined #ruby
gigetoo has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
gigetoo has joined #ruby
saneax-_-|AFK is now known as saneax
tomphp has joined #ruby
<seanh>
Hi, I'm writing my first Ruby program and getting a little confused trying to figure out which is the "default" or "standard" testing framework for Ruby. I'm not interested in finding the "best" third-party testing framework yet, just the standard one. It looks like this used to be Test::Unit but that has been removed from the stdlib since 2.2, I can still
<seanh>
use it as a Gem but the http://test-unit.github.io/ sites says "The test framework in ruby is going to radically change very soon". Is there a new standard testing framework, or not yet?
<elomatreb>
seanh: Popular choices are MiniTest and RSpec
<seanh>
So it seems like all three, test-unit, minitest and rspec, are third party libs? I don't see any test framework in the 2.3.1 or 2.4 standard library
ddffg has quit [Ping timeout: 255 seconds]
<elomatreb>
Yes, they're gems. Bundling them proved to be too much trouble since they actually release new versions quite often
<elomatreb>
Same goes for utilities like Rake, which was bundled too
<seanh>
I see, I was just trying to figure out which (if any) of them had official blessing as the "standard" testing framework
<seanh>
Looks like minitest is sort of a complete toolkit, including stuff for BDD, mocking, benchmarking etc. And RSpec is BDD. I think what I want right now is just really simple and familiar, so I'll probably go with test-unit
<elomatreb>
IIRC test-unit is just a compatability layer on top of minitest
<seanh>
(All I need to do is write a few simple unit tests that hopefully won't even require any mocks.)
<seanh>
Oh really? Huh
blackmesa has quit [Ping timeout: 256 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elomatreb>
MiniTest is like the "convential" syntax, you don't need to use the extensions
gigetoo has quit [Ping timeout: 255 seconds]
<seanh>
From the website http://test-unit.github.io/ it looks like test-unit is its own thing, Googling I think a read something about when test-unit was first removed from the standard lib it was temporarily replaced with a minitest wrapper (but I'm not sure exactly what happened)
hotpancakes has joined #ruby
<seanh>
I see, well maybe I should consider minitest instead then
<elomatreb>
It's certainly the more popular choice, I don't really know about that test-unit you linked
<seanh>
Both minitest and test-unit appear to be under active development still (recent commits on github)
Fernando-Basso has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
<elomatreb>
Although RSpec is nice too, if you want some personal opinions
<seanh>
I believe test-unit.github.io is the website of the Test::Unit that used to be in the stdlib
CloCkWeRX has left #ruby [#ruby]
warrshrike has joined #ruby
<warrshrike>
hey
<warrshrike>
ruby-gons
<warrshrike>
whats the best way to
<warrshrike>
write a crawler
<warrshrike>
which
<elomatreb>
I'm pretty sure Minitest used to be stdlib too though
<warrshrike>
can go to a website
<warrshrike>
and search for an app
<warrshrike>
download it
<warrshrike>
basically download 7000 apps
<elomatreb>
warrshrike: You have 1024 (I think) characters in a message, don't spam new lines like that pls
<apeiros>
I think
<apeiros>
the
<apeiros>
best way
<apeiros>
to
StoneCypher has joined #ruby
<apeiros>
ask
<apeiros>
such a
<warrshrike>
okay
<apeiros>
question
<warrshrike>
wont
<warrshrike>
do it
<apeiros>
is
<warrshrike>
again
<apeiros>
to write
<apeiros>
every
<apeiros>
word
<apeiros>
on a
<apeiros>
new
<apeiros>
line
<warrshrike>
like i said
<warrshrike>
sorry
<warrshrike>
wont
<warrshrike>
happen
<warrshrike>
again
<warrshrike>
:/
<apeiros>
?best
<ruby[bot]>
"better" and "best" depend entirely on your context. Try to describe what quality would make one thing better than the other.
hotpancakes has quit [Ping timeout: 258 seconds]
<apeiros>
curl & wget both can crawl and download whole websites. maybe you don't even need to write a crawler yourself.
<seanh>
elomatreb: Ok, thanks, I'm gonna go with MiniTest. The docs seem better at first glance too
<warrshrike>
well
JeanCarloMachado has quit [Ping timeout: 255 seconds]
UnknownSoldier has joined #ruby
<warrshrike>
apeiros: heres the exact usecase: I need to download 7000 apk files from anzhi.com. its a chinese app store. I'm not sure on the best way to do this
JeanCarloMachado has joined #ruby
<apeiros>
as said, take a look at wget/curl
<warrshrike>
but il need to search for apps and then press download button. so i feel that perhaps something like selenium would be best
<warrshrike>
wget wouldn't work. not downloading the entire site
<warrshrike>
and I don't know the perma links for each of those 7000 apps
StoneCypher has quit [Ping timeout: 264 seconds]
<apeiros>
and how'd your ruby spider know?
Bounga has joined #ruby
ddffg has joined #ruby
conta has joined #ruby
<warrshrike>
my what?
UnknownSoldier is now known as tau
<apeiros>
the crawler you want to write
<warrshrike>
the spider would click on the search field -> enter app name -> choose top result
<warrshrike>
or compare the results with search term using those regexes you told about earlier
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
<apeiros>
ok, that might indeed be out of the scope of wget/curl (even though they are very flexible in limiting what to download)
csk has joined #ruby
<elomatreb>
Is there something like an index page? Hitting the search like that sounds like a good way to get your IP blocked by them
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<apeiros>
if the page makes use of JS for all the elements you need to work with on it, then I'd probably use capybara+phantomjs
<apeiros>
if there's no js needed, I'd probably just use mechanize
Bounga has quit [Ping timeout: 252 seconds]
Rodya_ has joined #ruby
jameser has joined #ruby
Fernando-Basso has joined #ruby
<warrshrike>
capybara is that testing framwork?
xen0fon has quit [Quit: xen0fon]
<warrshrike>
headless browser thing. how can i use it with phantomjs
<warrshrike>
elomatreb: there is. how will it help me?
<elomatreb>
As in a page that lists all apps?
<warrshrike>
elomatreb: nope there isn't. also since its a piracy site im pretty sure theres no crawling detection etc
Rodya_ has quit [Ping timeout: 255 seconds]
tk__ has joined #ruby
<apeiros>
it's used for testing yes. because it's awfully convenient to programmatically control a fast (because headless) browser for testing
gigetoo has quit [Ping timeout: 240 seconds]
<warrshrike>
apeiros: sounds ideal for this usecase
<warrshrike>
would this better than selenium
gigetoo has joined #ruby
<apeiros>
I believe so, but I don't know.
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
ecuanaso has joined #ruby
marr has quit [Remote host closed the connection]
<warrshrike>
oh alright thanks :)
tau has quit [Remote host closed the connection]
blackmesa has joined #ruby
cdg has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
tk__ has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
nankyokusei has joined #ruby
tk__ has joined #ruby
chouhoulis has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 255 seconds]
gigetoo has joined #ruby
vali_ has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
LoneHermit has joined #ruby
dkings has quit [Remote host closed the connection]
vali_ has quit [Client Quit]
warrshrike has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
LoneHermit has quit [Ping timeout: 248 seconds]
vali_ has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Guest31204 is now known as ged
leitz has joined #ruby
ifctj has joined #ruby
ged is now known as Guest22930
c355e3b has joined #ruby
gigetoo has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
ddffg has quit [Ping timeout: 255 seconds]
vali_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 252 seconds]
fedruantine has joined #ruby
JeanCarloMachado has joined #ruby
duckpupp1 has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
saneax is now known as saneax-_-|AFK
vali_ has joined #ruby
Guest40_ has joined #ruby
chouhoulis has joined #ruby
gigetoo has joined #ruby
xen0fon has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
StoneCypher has joined #ruby
vali_ has quit [Client Quit]
ddffg has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jackneill_ has joined #ruby
StoneCypher has quit [Ping timeout: 240 seconds]
dagda1 has joined #ruby
nadir has joined #ruby
xen0fon has quit [Quit: xen0fon]
elena_ has quit [Ping timeout: 245 seconds]
alibby has quit [Read error: No route to host]
alibby has joined #ruby
gigetoo has quit [Ping timeout: 256 seconds]
Jackneill has quit [Ping timeout: 245 seconds]
gigetoo has joined #ruby
dagda1 has quit [Client Quit]
JeanCarloMachado has quit [Ping timeout: 255 seconds]
hanmac has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
AndBobsYourUncle has joined #ruby
gigetoo has quit [Ping timeout: 248 seconds]
vali_ has joined #ruby
sepp2k1 has joined #ruby
gigetoo has joined #ruby
Rodya_ has quit [Ping timeout: 255 seconds]
sepp2k has quit [Ping timeout: 264 seconds]
spyder55 has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
hightower2 has joined #ruby
hightower3 has quit [Ping timeout: 276 seconds]
Emmanuel_Chanel has quit [Ping timeout: 260 seconds]
dkings has joined #ruby
hanmac has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
<leitz>
I think I'm spacing...the other night I built Ruby 2.4.0 and ran my game character generator. The first and last names seemed to come out as array items, like ["Fred"] ["Smith"] Instead of just strings Fred and Smith.
<leitz>
Now, it seems to have fixed itself. Or I wasn't as awake as I thought I was...
jenrzzz has quit [Ping timeout: 245 seconds]
gigetoo has joined #ruby
milardovich has joined #ruby
dkings has quit [Ping timeout: 264 seconds]
<apeiros>
oh wow. was going to say that Array#to_s implementation changed. but that happened in 1.9 already. time flies :-|
milardovich has quit [Ping timeout: 258 seconds]
<apeiros>
leitz: maybe you've got an edge-case which triggered yesterday but doesn't today - you can gist the code if you want and I'll have a look (if it's not too complex/long)
jenrzzz has joined #ruby
milardov_ has joined #ruby
hutch34_ has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vali_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
gigetoo has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
milardovich has joined #ruby
milardov_ has quit [Ping timeout: 256 seconds]
vali_ has joined #ruby
hutch34_ has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
Emmanuel_Chanel has joined #ruby
milardovich has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
elena_ has joined #ruby
gigetoo has joined #ruby
Guest22930 is now known as ged
ged is now known as Guest91426
<leitz>
apeiros, I'm trackign through the code now. It's complex to me, which isn't saying a lot. Still trying to simplify things.
spyder55 has quit []
Sembei has joined #ruby
machinewar has joined #ruby
<machinewar>
would it be bad practice to update a module's CONSTANT with a class that mixes it in
<leitz>
machinewar, from a newbie perspective, the less surprise the better. If something is referred to as a constant then leaving it that way would help someone dig through the code later.
Guest40_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 264 seconds]
<machinewar>
leitz: great point. am hoping giving it a public interface to update it might help with that, but definitely agree could be bit more confusing expecting a constant to not change
gigetoo has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
chussenot has joined #ruby
<leitz>
machinewar: "Always code as if the person who ends up maintaining your code is a violent psychopath who knows where you live."
chussenot has quit [Client Quit]
<leitz>
Not my quote, but I like it.
<machinewar>
lol definitely stealing that
<machinewar>
thats great
Bounga has joined #ruby
chussenot has joined #ruby
govg has quit [Ping timeout: 240 seconds]
<machinewar>
on another note anyone know how to test with rspec how one header was sent in request? I can do expect(a_request().with(headers {})) but I just want to test one header was included
<machinewar>
ahh I can just pass one
<machinewar>
okay that works
xfbs has joined #ruby
Guest40_ has joined #ruby
pwnd_nsfw has joined #ruby
Bounga has quit [Ping timeout: 252 seconds]
danielpclark_ has joined #ruby
danielpclark has quit [Quit: Leaving]
gigetoo has quit [Ping timeout: 245 seconds]
Guest40_ has quit [Client Quit]
danielpclark_ has quit [Client Quit]
renchan has quit [Remote host closed the connection]
Bounga has joined #ruby
gigetoo has joined #ruby
Rodya_ has joined #ruby
Takumo has joined #ruby
Takumo has joined #ruby
Takumo has quit [Changing host]
__Yiota has joined #ruby
<machinewar>
anyone know a standard library method to get {k: :v} to tuple of [:k, :v]. Array({k: :v}) gives me [[:k, :v]], and know I could do Array({k: :v}).flatten
<apeiros>
leitz: hm, I don't see anything obvious.
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
dkings has quit [Ping timeout: 260 seconds]
ta__ has quit [Remote host closed the connection]
dkings has joined #ruby
<apeiros>
machinewar: I think it's weird that an instance method modifies global state in a statical way. why is that header not added statically in the module itself?
<apeiros>
or at least in a statical way in the Client class, if the headers are specific to that class
<machinewar>
apeiros: the header needs to be added at runtime from a client configuration
<machinewar>
I think that's what you're asking but could be wrong
ifctj has quit [Ping timeout: 245 seconds]
<machinewar>
I have default headers in that Request module, but then when the client is initialized it can specify additional headers to be added to every request
<machinewar>
perhaps Request should be a class at this point, was keeping it a module since it was just methods, but if it needs sort of state then might need to make it an instance
vnzvg has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 255 seconds]
TheWhip has quit [Remote host closed the connection]
gigetoo has joined #ruby
xfbs has quit []
hotpancakes has joined #ruby
marcdel has joined #ruby
kirun has joined #ruby
hotpancakes has quit [Ping timeout: 258 seconds]
sepp2k1 has quit [Quit: Leaving.]
gigetoo has quit [Ping timeout: 245 seconds]
ta has joined #ruby
JeanCarloMachado has joined #ruby
gigetoo has joined #ruby
vali_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<apeiros>
machinewar: so it's only static in your example?
<machinewar>
the reason i made it static was just so it was more obvious you're adding things to things to the module as opposed to just using an instance method in the class including it to do it
LiquidInsect has quit [Read error: Connection reset by peer]
elena_ has quit [Ping timeout: 252 seconds]
binaryplease has joined #ruby
LiquidInsect has joined #ruby
pilne has joined #ruby
milardovich has joined #ruby
milardovich has quit [Client Quit]
duckpupp1 has joined #ruby
xall has joined #ruby
blackwind_123 has quit [Ping timeout: 255 seconds]
jrafanie has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
blackwind_123 has joined #ruby
ecuanaso has joined #ruby
gigetoo has joined #ruby
elena_ has joined #ruby
duckpupp1 has quit [Ping timeout: 260 seconds]
jrafanie has quit [Client Quit]
Ishido has quit [Remote host closed the connection]
hotpancakes has joined #ruby
Guest91426 is now known as ged
ged is now known as Guest60548
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
govg has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
petrichorx_ has joined #ruby
gigetoo has joined #ruby
nowz has joined #ruby
valeth2 has joined #ruby
ecuanaso has joined #ruby
Rodya_ has joined #ruby
whathappens has joined #ruby
valeth1 has quit [Ping timeout: 258 seconds]
xall has quit [Ping timeout: 248 seconds]
kentnl is now known as kent\n
AndBobsYourUncle has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
binaryplease has quit [Quit: binaryplease]
Rodya_ has quit [Ping timeout: 255 seconds]
machinewar has quit []
gigetoo has quit [Ping timeout: 255 seconds]
gigetoo has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
zapata has quit [Ping timeout: 252 seconds]
elena_ has quit [Ping timeout: 258 seconds]
bmurt has quit [Client Quit]
nankyokusei has joined #ruby
hotpancakes has quit [Remote host closed the connection]
benlieb has joined #ruby
elena_ has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
tk__ has quit [Quit: ばいばい]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 255 seconds]
elena has quit [Ping timeout: 255 seconds]
JeanCarloMachado has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
elena has joined #ruby
kof has quit [Ping timeout: 258 seconds]
meshsmith has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
kof` has left #ruby [#ruby]
_sfiguser has joined #ruby
hutch34_ has quit [Quit: WeeChat 1.5]
<blackbombay>
toogley: remove the sudo and try again.
<blackbombay>
toogley: rvm installs ruby local to a user, and you try to install as root.
<toogley>
blackbombay: ah, okay
<blackbombay>
consider using bundler too :)
<toogley>
blackbombay: what is the advantage of that?
unreal has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<blackbombay>
it is how most ruby projects manage their dependencies.
<SeepingN>
learn it early
<SeepingN>
even if it's overkill
JeanCarloMachado has quit [Ping timeout: 248 seconds]
chussenot has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
elena has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
JeanCarloMachado has joined #ruby
govg has quit [Ping timeout: 276 seconds]
Vile` has joined #ruby
Derperperd has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
milardovich has joined #ruby
govg has joined #ruby
juanda has joined #ruby
juanda has quit [Client Quit]
elena has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
Bounga has joined #ruby
supergeek has joined #ruby
conta has quit [Ping timeout: 256 seconds]
gigetoo has joined #ruby
milardovich has quit []
vali_ has joined #ruby
vali_ has quit [Client Quit]
raul782 has joined #ruby
xen0fon has joined #ruby
vali_ has joined #ruby
xen0fon has quit [Client Quit]
jshjsh has joined #ruby
nankyokusei has joined #ruby
__Yiota has joined #ruby
elena has quit [Ping timeout: 260 seconds]
conta has joined #ruby
govg has quit [Ping timeout: 255 seconds]
JoshS has quit [Ping timeout: 276 seconds]
raul782 has quit [Ping timeout: 260 seconds]
whathappens has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 245 seconds]
whathappens has joined #ruby
rkazak has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
elena_ has joined #ruby
gigetoo has joined #ruby
koldbrutality has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
minimalism has joined #ruby
vali_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
whathappens has quit [Ping timeout: 240 seconds]
supergeek has quit [Quit: Goodbye cruel world...]
vali_ has joined #ruby
last_staff has quit [Ping timeout: 245 seconds]
last_staff1 has joined #ruby
JeanCarloMachado has quit [Ping timeout: 256 seconds]
last_staff1 is now known as last_staff
brandon_ has quit [Ping timeout: 255 seconds]
JeanCarloMachado has joined #ruby
DLSteve has joined #ruby
gigetoo has quit [Ping timeout: 252 seconds]
Kug3lis has joined #ruby
gigetoo has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
Derperperd has joined #ruby
`tim` has joined #ruby
Bounga has quit [Ping timeout: 252 seconds]
rkazak has quit [Quit: Sleep.....ing....]
mikecmpbll has joined #ruby
cdg has joined #ruby
JeanCarloMachado has quit [Ping timeout: 245 seconds]
duckpupp1 has joined #ruby
Guest19724 is now known as ged
cdg_ has joined #ruby
JeanCarloMachado has joined #ruby
ged is now known as Guest76787
cdg_ has quit [Read error: Connection reset by peer]
cdg_ has joined #ruby
conta has quit [Ping timeout: 255 seconds]
nowz has quit [Remote host closed the connection]
benlieb has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 276 seconds]
gigetoo has joined #ruby
duckpupp1 has quit [Ping timeout: 248 seconds]
LoneHerm_ has joined #ruby
meshsmith has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
montanonic has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
valeth2 is now known as valeth
sonOfRa has quit [Quit: Bye!]
blackmesa has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 256 seconds]
JeanCarloMachado has joined #ruby
gigetoo has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
sonOfRa has joined #ruby
govg has joined #ruby
petrichorx_ has quit [Quit: Connection closed for inactivity]
AndBobsYourUncle has joined #ruby
benlieb has joined #ruby
gigetoo has quit [Ping timeout: 276 seconds]
gigetoo has joined #ruby
LuckyABA has joined #ruby
ur5us has joined #ruby
conta has joined #ruby
__Yiota has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
tolerablyjake has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
xen0fon has joined #ruby
xen0fon has quit [Client Quit]
gigetoo has quit [Ping timeout: 245 seconds]
JeanCarloMachado has joined #ruby
gigetoo has joined #ruby
MyMind has joined #ruby
Sembei has quit [Ping timeout: 240 seconds]
Derperperd has quit [Ping timeout: 240 seconds]
al2o3-cr has quit [Quit: WeeChat 1.6]
mjuszczak has joined #ruby
tpendragon has quit [Ping timeout: 240 seconds]
<mjuszczak>
I'm trying to use .match() with a regex. I'm trying to match "A VS B" but NOT "A VS B VS C". Since A/B can be anything alphanumeric, is there a way to say "only one VS, not more than one"... so if someone did something like A VS VS B it would fail.
mjuszczak has quit [Client Quit]
<elomatreb>
How about: /\A\\w VS \w\z/ ?
<elomatreb>
Welp
BTRE has quit [Quit: Leaving]
al2o3-cr has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
gigetoo has joined #ruby
conta has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
byte512 has quit [Ping timeout: 256 seconds]
Rodya_ has quit [Ping timeout: 255 seconds]
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
JeanCarloMachado has quit [Ping timeout: 252 seconds]
nankyokusei has joined #ruby
duckpupp1 has joined #ruby
JeanCarloMachado has joined #ruby
skweek has joined #ruby
BTRE has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
duckpupp1 has quit [Ping timeout: 258 seconds]
lxsameer has quit [Quit: WeeChat 1.6]
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
matrix9180 has joined #ruby
Guest76787 is now known as ged
JeanCarloMachado has quit [Ping timeout: 255 seconds]
ged is now known as Guest95806
benlieb has quit [Quit: benlieb]
JeanCarloMachado has joined #ruby
gloscombe has joined #ruby
chussenot has quit [Quit: chussenot]
maxirater has joined #ruby
<zacts>
hi rubyists
mjuszczak has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
JeanCarloMachado has quit [Ping timeout: 264 seconds]
JeanCarloMachado has joined #ruby
ecuanaso has joined #ruby
Ishido has joined #ruby
<adam12>
zacts: o/
<zacts>
I'm about 1/2 way through The Well Grounded Rubyist
<zacts>
it's a pretty good book
<zacts>
I think next is to just write a bunch of Ruby apps
<adam12>
Write all the Ruby.
conta has joined #ruby
maxirater has quit [Quit: Leaving]
vali_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
cdg_ has quit [Remote host closed the connection]
conta has quit [Ping timeout: 256 seconds]
gigetoo has quit [Ping timeout: 245 seconds]
AnoHito has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
AnoHito has joined #ruby
gigetoo has joined #ruby
dkings has quit [Remote host closed the connection]
aidalgol has joined #ruby
Derperperd has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
JoshS has joined #ruby
last_staff has quit [Quit: last_staff]
jshjsh has quit [Ping timeout: 258 seconds]
gajus has joined #ruby
Derperperd has quit [Ping timeout: 264 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
JoshS has quit [Client Quit]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
ecuanaso has joined #ruby
kht has joined #ruby
Bounga has joined #ruby
matrix9180 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mjuszczak has quit []
aryaching has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
statelesscode has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
marr has joined #ruby
Bounga has quit [Ping timeout: 252 seconds]
kht has quit [Ping timeout: 255 seconds]
aeze_ has quit [Ping timeout: 248 seconds]
Fernando-Basso has joined #ruby
JeanCarloMachado has quit [Ping timeout: 258 seconds]
sebastia_ has joined #ruby
JeanCarloMachado has joined #ruby
sebastiansier has quit [Read error: Connection reset by peer]
sepp2k has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
Cohedrin_ has joined #ruby
gigetoo has joined #ruby
Coldblackice_ has quit [Ping timeout: 240 seconds]
Coldblackice has joined #ruby
r3bbit has joined #ruby
milardovich has joined #ruby
<r3bbit>
Does any one use arcadia on fedora by chance?
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
predatorian has joined #ruby
predatorian has quit [Remote host closed the connection]
Guest95806 is now known as ged
gigetoo has quit [Ping timeout: 276 seconds]
ged is now known as Guest86747
haylon has joined #ruby
gigetoo has joined #ruby
xen0fon has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
tristanp has quit [Remote host closed the connection]
cdg has joined #ruby
statelesscode has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
nankyokusei has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
l4v2 has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
`tim` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
matrix9180 has joined #ruby
matrix9180 has quit [Client Quit]
JeanCarloMachado has quit [Remote host closed the connection]
gigetoo has quit [Read error: Connection reset by peer]
ifctj has joined #ruby
JeanCarloMachado has joined #ruby
SteenJobs has joined #ruby
gigetoo has joined #ruby
Channel6 has joined #ruby
HETOPMO3 has joined #ruby
LoneHerm_ has joined #ruby
__Yiota has joined #ruby
matrix9180 has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
SteenJobs has joined #ruby
milardovich has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
renchan has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
gigetoo has joined #ruby
matrix9180 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Client Quit]
ecuanaso has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
JeanCarloMachado has quit [Ping timeout: 264 seconds]
matrix9180 has joined #ruby
xen0fon has quit [Quit: xen0fon]
Bounga has joined #ruby
HETOPMO3 has quit [Quit: Leaving]
gigetoo has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
elena has joined #ruby
TheWhip has joined #ruby
Bounga has quit [Ping timeout: 252 seconds]
gigetoo has joined #ruby
LoneHerm_ has joined #ruby
elena_ has quit [Ping timeout: 260 seconds]
LoneHerm_ has quit [Remote host closed the connection]
duckpupp1 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
matrix9180 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
matrix9180 has joined #ruby
vali_ has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
dagda1 has joined #ruby
xen0fon has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
xen0fon has quit [Client Quit]
gigetoo has joined #ruby
blackbombay has quit [Ping timeout: 258 seconds]
sdothum has joined #ruby
elementaru has quit [Remote host closed the connection]
Jackneill_ has quit [Read error: Connection reset by peer]
pwnd_nsfw has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
JeanCarloMachado has joined #ruby
x00r__ has quit [Read error: Connection reset by peer]
dkings has joined #ruby
Ishido has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 260 seconds]
matrix9180 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ifctj has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 248 seconds]
gigetoo has joined #ruby
gix has joined #ruby
blackbombay has joined #ruby
vali_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
JeanCarloMachado has quit [Ping timeout: 264 seconds]
benlieb has joined #ruby
JeanCarloMachado has joined #ruby
Guest86747 is now known as ged
ged is now known as Guest14309
Derperperd has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
xen0fon has joined #ruby
xen0fon has quit [Client Quit]
cdg has joined #ruby
mark[oz] has joined #ruby
matrix9180 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tristanp has joined #ruby
mrwn has quit [Ping timeout: 276 seconds]
Hobbyboy has joined #ruby
Derperperd has joined #ruby
gigetoo has quit [Ping timeout: 276 seconds]
elena has quit [Quit: WeeChat 1.7]
gigetoo has joined #ruby
elena has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
Rodya_ has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
mark[oz] has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
chussenot has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
fredolinhares has joined #ruby
gigetoo has joined #ruby
Guest14309 is now known as ged
ged is now known as Guest82467
sdothum has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
mrwn has joined #ruby
alexar has joined #ruby
JeanCarloMachado has joined #ruby
alexar has quit [Remote host closed the connection]
mrwn has quit [Read error: Connection reset by peer]
awer has joined #ruby
JeanCarloMachado has quit [Ping timeout: 255 seconds]
<awer>
Hi, im trying to run an nmap scan getting the IP address from the user input - http://pastebin.com/wwrTby7X When doing so the script isnt picking up the ip. anyone able to have a quick look please?
<ruby[bot]>
awer: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
JeanCarloMachado has joined #ruby
<awer>
Hi, im trying to run an nmap scan getting the IP address from the user input - https://paste.ee/p/gYkS2 - When doing so the script isnt picking up the ip. anyone able to have a quick look please?
<blackbombay>
awer: use double quotes on L2.
<blackbombay>
awer: #{} works inside double quoted strings.
<awer>
blackbombay: L?
<blackbombay>
line 2
<blackbombay>
sorry
<blackbombay>
line 3
<ytti_>
you should never use that
<blackbombay>
use what?
<ytti_>
you should use like popen or equivalent, where you can pass the proram and arguments separately
<Mon_Ouie>
system("nmap", nmap_ip, "-p", "22")
<ytti_>
so that safety of input is of noconcern
<awer>
ah thanks that was it :-)
<ytti_>
it's annoying programming languages still offer the 'shell expansion' as default case
<awer>
im brand new to ruby so im just trying to get it to work...
<ytti_>
instead of making it the awkard case, and the correct method the default case
<ytti_>
this is language agnostic issue
<blackbombay>
i would go with Mon_Ouie's solution unless you're doing something complicated, like writing to stdin from your script (popen is handy then)
<ytti_>
it's same in perl, php, python
<awer>
also does it matter about what shell im using ?
<blackbombay>
system uses sh
<awer>
so if i run it as sh,bash or from zsh?
<ytti_>
system does not return STDIN
<awer>
i run from zsh you see..
gigetoo has quit [Ping timeout: 255 seconds]
<blackbombay>
system is implemented to use sh().
alexar has joined #ruby
cdg_ has joined #ruby
Bounga has joined #ruby
<awer>
blackbombay: ok thanks
JeanCarloMachado has quit [Ping timeout: 248 seconds]
swills has quit [Quit: Leaving]
alexar has quit [Remote host closed the connection]
gigetoo has joined #ruby
cdg has quit [Read error: Connection reset by peer]
kht has joined #ruby
<ytti_>
popen is only solution for this problem
<ytti_>
a) pass arguments AND b) capture STDOUT
JeanCarloMachado has joined #ruby
<ytti_>
unfortunately
<blackbombay>
no
<blackbombay>
backticks do that
<blackbombay>
you dont need popen
<ytti_>
as it is obviously more awkward than system/%x() and ```
<ytti_>
blackbombay, backticks allow you to pass arguments?
<ytti_>
how?
DTZUZU has joined #ruby
<blackbombay>
with #{}
<ytti_>
that's not passing
csk has joined #ruby
<ytti_>
that's just shell interpolation
<blackbombay>
string interpolation.
<blackbombay>
and it works fine, what's the problem?
<ytti_>
you need to trust input
<ytti_>
it's dangerous
<ytti_>
and unnecessary
<ytti_>
consider argument is ;rm -rf /
<blackbombay>
popen is unneccesary, and if you care about user input just quote it, or use Shellwords to escape it if you must.
<ytti_>
pfft
<Mon_Ouie>
It does not work fine if e.g. the strig contains special characters that will be interpreted by the shell, or just characters that cause the input to be split into multiple arguments
<blackbombay>
Mon_Ouie: use Shellwords then.
Bounga has quit [Ping timeout: 252 seconds]
<ytti_>
if you pass arguments separately, you don't need to care about any of the security of them
<ytti_>
it's the obvious correct way to solve the problem
<blackbombay>
`` + Shellwords still seems more simple to me.
<ytti_>
allowing shell to expand your string is just asking for trouble
<Mon_Ouie>
IO.popen(["nmap", nmap_id, ...], "r", &:read) seems pretty simple to me
<ytti_>
and you're trusting Shellwords to do something sensible
<Mon_Ouie>
I just feel like it's silly to build a valid command and then have the shell parse it before invoking the command when you can just invoke the command with the right arguments immediately
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ytti_>
Mon_Ouie, exactly
<ytti_>
unfortunately language designers don't seem to understand it
duckpupp1 has quit [Ping timeout: 258 seconds]
<ytti_>
there should be some awkward way to do shell interpolation
<ytti_>
through library
<ytti_>
and default ocmmands all should just pass cmd + args separately
<ytti_>
so that people would code safely, because it's easier
mrwn has quit [Ping timeout: 276 seconds]
<ytti_>
instead of coding unsafely, which, unfortunatley, now is easier in all major languages
koldbrutality has quit [Remote host closed the connection]
Derperperd has quit [Ping timeout: 248 seconds]
<blackbombay>
Mon_Ouie: because popen() is a lot more complicated to learn and use, so if you are new, backticks and "".shellescape will be imo easier to understand and use, as well as being just as secure. ytti_ argument about "it could be insecure" is moot, because so could all the other ruby APIs, including popen
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ytti_>
i already explained why you are wrong
Derperperd has joined #ruby
Derperperd has quit [Changing host]
Derperperd has joined #ruby
<blackbombay>
explain again, because i didn't get it
<Mon_Ouie>
Yes, but shellescape is harder to implement properly. Could you think of all the characters you need to escape, and how to, off the top of your head?
<ytti_>
shell does what poen does, later
<ytti_>
so popen is inherently more secure
<ytti_>
by doing less
<ytti_>
after shell is done interpolating the command, it does exactly what popen is doing
<blackbombay>
Mon_Ouie: no, i just assume shellwords has been implemented properly, and targets a single shell (presumably /bin/sh).
<ytti_>
who knows, tomorrow bash v42 comes
<ytti_>
which uses magic UTF8 charaacter to separate command
<ytti_>
boom, security issue
JeanCarloMachado has quit [Ping timeout: 276 seconds]
nankyokusei has joined #ruby
JeanCarloMachado has joined #ruby
<blackbombay>
ytti_: the shell doesn't interpolate the command, it is interpolated into a string, before being passed to the shell
<ytti_>
yes ruby interpolates the string, then gives the string to shell
<ytti_>
then shell interpolates it
<ytti_>
and tries to do something sensible with it
<ytti_>
instead of _just running it_ like popen does
<blackbombay>
true, fair point
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
alexar has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
alexar has quit [Remote host closed the connection]
ddffg has quit [Ping timeout: 258 seconds]
<Mon_Ouie>
Speaking of security, allowing things like IO.read("|echo 'Hello World!'") to work seems like it could easily lead to writing exploitable code
<Mon_Ouie>
I guess user input should not be used as direct filenames in the first place, but that only makes doing so more dangerous
alexar has joined #ruby
brent__ has joined #ruby
alexar has quit [Remote host closed the connection]
kirun has quit [Quit: Konversation terminated!]
<blackbombay>
i think it is expected to sanitize input if you are doing something dangerous like that.
<ytti_>
honeslty if matz/guido/wall/lerdorf et.al. had been sensible system() and friends would just go through popen/exec, and if developer actually wants to have shell expansion, they'd need to import library and call something more complicated
<ytti_>
would increase security tremendously without hurting programmers
<ytti_>
as almost never people actually want the shell to expand anything
<blackbombay>
sounds better to me, yeah
<ytti_>
it's ridiculous how awkawrd it is to run shell system _and_ capture output :(
bmurt has joined #ruby
<blackbombay>
dunno
<blackbombay>
dynamic languages feel best at it
<manveru>
require 'open3'; output, status = Open3.capture2e('whatever', 'command', 'you', 'want')
<manveru>
not sure how that's so hard :)
<manveru>
or capture[23], depending on your usecase
gigetoo has quit [Ping timeout: 256 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
<ytti_>
manveru, complare to %x(), pretty hard :(
<blackbombay>
manveru: because if you're new i bet you wont find that API
<ytti_>
people find the easiest solution
<ytti_>
which is the wrong solution
moei has joined #ruby
<manveru>
well, shit happens
<manveru>
you don't know what you don't know
gigetoo has joined #ruby
<blackbombay>
which is why Go's approach makes sense
<ytti_>
quite, but with good design choices in the language itself, this security disaster could have been mitigated easily
<ytti_>
with no harm to productivity
<manveru>
well, ruby copied it from perl
enterprisey has joined #ruby
<manveru>
while i think Go has a sane approach, it's a ton of boilerplate :(
JeanCarloMachado has quit [Ping timeout: 248 seconds]
<manveru>
i loathe every time i have to use an external command in Go
<manveru>
which is probably not a bad thing... it's easier to install stuff with less dependencies :P
JeanCarloMachado has joined #ruby
tomphp has joined #ruby
<ytti_>
manveru, exec.Command(cmd,*args).Output()
<ytti_>
seems somewhat low overhead
<ytti_>
and that's the first thing people will find
<ytti_>
i'm sure it's possible to do it wrong in golang, but i don't know how
<manveru>
yeah, that works, until you want to know the errors
<ytti_>
(i mena wrong mahy be _Sometimes_ needed)
<ytti_>
i don't argue you _never_ want shell to expand