havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.0, 2.3.3 & 2.2.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby
jackjackdripper1 has quit [Quit: Leaving.]
nowhereman has joined #ruby
millerti has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
gigetoo has joined #ruby
tolerablyjake has quit [Read error: Connection reset by peer]
simmib has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
Derperperd has joined #ruby
<leitz> Seems there's no --debug option for gem build, so the gem failed on install, too. Interesting reading.
gigetoo has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
<danielpclark> leitz, what are you reading?
marxarelli is now known as marxarelli|afk
JeanCarloMachado has joined #ruby
leitz has quit [Quit: Nappy time]
hardest has quit [Ping timeout: 240 seconds]
simmib has quit [Ping timeout: 256 seconds]
nankyokusei has joined #ruby
cagomez has joined #ruby
Ariadeno has quit [Ping timeout: 252 seconds]
youch has joined #ruby
Ariadeno has joined #ruby
dopamean_ has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
Immune_ has joined #ruby
marxarelli has joined #ruby
Immune has quit [Ping timeout: 255 seconds]
youch has quit [Ping timeout: 255 seconds]
kirun has quit [Quit: Konversation terminated!]
gigetoo has joined #ruby
<ramfjord> RE. the redhat ruby package comment above - RH derived linux users may also be able to use the rh-ruby22 SCL package to install more recent versions: https://www.softwarecollections.org/en/scls/rhscl/rh-ruby22/
<ramfjord> short of using something like RVM on productions hosts
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
BackEndCoder has quit [Excess Flood]
alveric has joined #ruby
zeroDi has quit [Ping timeout: 264 seconds]
BackEndCoder has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
<UnknownSoldier> i'm wondering about style of attr accessors in ruby.
<UnknownSoldier> should i use stuff like get_x
<UnknownSoldier> or just define a method accessor like x
<UnknownSoldier> and set_x or just def x= ?
dviola has quit [Ping timeout: 260 seconds]
lord_alveric has quit [Ping timeout: 255 seconds]
whathappens has quit [Quit: Leaving...]
hutch34 has quit [Ping timeout: 255 seconds]
DarthGandalf has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 240 seconds]
DarthGandalf has joined #ruby
gigetoo has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
kent\n has quit [Quit: powerdown time]
zeroDi has joined #ruby
OMSQ has quit [Quit: Textual IRC Client: www.textualapp.com]
JeanCarloMachado has quit [Ping timeout: 276 seconds]
millerti has joined #ruby
JeanCarloMachado has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
gigetoo has joined #ruby
gloscombe_ has quit [Quit: gloscombe_]
gloscombe_ has joined #ruby
dviola has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
marxarelli is now known as marxarelli|afk
hahuang65 has joined #ruby
gigetoo has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
mholmes has joined #ruby
ivanskie has quit [Quit: Going offline, see ya! (www.adiirc.com)]
markholmes has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
mholmes has quit [Ping timeout: 258 seconds]
ecuanaso has joined #ruby
kht has quit [Ping timeout: 240 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
Kug3lis has joined #ruby
brendan- has quit [Read error: No route to host]
gigetoo has joined #ruby
Kug3lis is now known as Kug3lis_off
JeanCarloMachado has quit [Ping timeout: 240 seconds]
dogweather has quit [Remote host closed the connection]
enterprisey has quit [Quit: Leaving]
JeanCarloMachado has joined #ruby
lianj has joined #ruby
lianj has joined #ruby
lianj has quit [Changing host]
pawnbox has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
youch has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
pawnbox has quit [Ping timeout: 245 seconds]
username_ has quit [Ping timeout: 256 seconds]
Xentil has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Xentil has joined #ruby
marr has quit [Read error: Connection reset by peer]
bruce_lee has quit [Remote host closed the connection]
youch has quit [Ping timeout: 248 seconds]
alex`` has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
cosmodanger has joined #ruby
cibs has quit [Ping timeout: 255 seconds]
harai_ has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
cibs has joined #ruby
hahuang62 has joined #ruby
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Client Quit]
tmtwd has joined #ruby
hahuang65 has quit [Ping timeout: 276 seconds]
gigetoo has joined #ruby
blackmesa has quit [Quit: WeeChat 1.6]
djbkd has quit [Ping timeout: 255 seconds]
Channel6 has joined #ruby
hahuang61 has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 255 seconds]
davezd has joined #ruby
nobitanobi has joined #ruby
bf4 has joined #ruby
bf4 has quit [Client Quit]
gloscombe_ has quit [Quit: gloscombe_]
gigetoo has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
cosmodanger has quit [Quit: leaving]
chouhoulis has joined #ruby
pawnbox has joined #ruby
gigetoo has quit [Ping timeout: 276 seconds]
dogweather has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
tmtwd has quit [Ping timeout: 264 seconds]
harai_ has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
gigetoo has joined #ruby
bkxd has joined #ruby
zeroDi has quit [Quit: WeeChat 1.7]
blackbombay has quit [Ping timeout: 255 seconds]
dviola has quit [Quit: WeeChat 1.7]
gigetoo has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
cagomez has quit []
znz_jp has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
Immune_ is now known as Immune
Renich has joined #ruby
AustinIncognito has quit [Ping timeout: 240 seconds]
znz_jp has joined #ruby
gigetoo has joined #ruby
AustinMatherne has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
d^sh has quit [Ping timeout: 252 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
govg has quit [Ping timeout: 240 seconds]
harai_ has quit [Ping timeout: 252 seconds]
aupadhye has joined #ruby
gigetoo has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
nankyokusei has joined #ruby
MyMind has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
Xentil has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackwind_123 has quit [Ping timeout: 264 seconds]
simmib_ has joined #ruby
nanoz has joined #ruby
nanoz has joined #ruby
youch has joined #ruby
blackwind_123 has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
huddy has joined #ruby
simmib_ has quit [Remote host closed the connection]
tmtwd has joined #ruby
gigetoo has joined #ruby
griffindy has joined #ruby
chouhoulis has joined #ruby
youch has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
harai_ has joined #ruby
maleghast has joined #ruby
devon21 has quit [Quit: devon21]
Definity has joined #ruby
hutch34 has joined #ruby
jamdaman has quit [Quit: Ex-Chat]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
gigetoo has joined #ruby
lianj has quit [Quit: leaving]
lianj has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
ecuanaso has joined #ruby
harai_ has quit [Ping timeout: 264 seconds]
gigetoo has quit [Ping timeout: 255 seconds]
JeanCarloMachado has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
joneshf-laptop has joined #ruby
ginetom_ has quit [Ping timeout: 258 seconds]
pawnbox has joined #ruby
JeanCarloMachado has joined #ruby
kies has joined #ruby
lanc has joined #ruby
tmtwd has quit [Ping timeout: 256 seconds]
jud^ is now known as jud
jud has quit [Changing host]
jud has joined #ruby
gigetoo has joined #ruby
matp has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 258 seconds]
matp has joined #ruby
lanc has quit [Quit: zzZZZZzzZZZZzzZZzzZZZZzzzzzzzzz]
gigetoo has quit [Ping timeout: 245 seconds]
jeyraof has joined #ruby
AustinMatherne has quit [Remote host closed the connection]
AustinMatherne has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has joined #ruby
gigetoo has joined #ruby
bkxd has joined #ruby
blackbombay has joined #ruby
raul782 has quit []
gigetoo has quit [Ping timeout: 240 seconds]
lightstalker has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
optiz0r has quit [Ping timeout: 258 seconds]
kht has joined #ruby
simmib_ has joined #ruby
joker5bb has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has joined #ruby
gigetoo has joined #ruby
simmib_ has quit [Ping timeout: 245 seconds]
AndBobsYourUncle has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
tmtwd has joined #ruby
pawnbox has joined #ruby
duderono_ has quit [Ping timeout: 255 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
gigetoo has joined #ruby
astrobunny has joined #ruby
skweek has quit [Ping timeout: 255 seconds]
kht has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
devon21 has joined #ruby
youch has joined #ruby
devon21 has quit [Client Quit]
ryan_notabot has quit [Ping timeout: 245 seconds]
<havenwood> UnknownSoldier: Are you familiar with Ruby's attr_reader and attr_accessor?
hutch34 has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has joined #ruby
youch has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
nahra has quit [Ping timeout: 276 seconds]
blackwind_123 has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 260 seconds]
blackwind_123 has joined #ruby
kent\n has joined #ruby
ramfjord has joined #ruby
amagawdd has quit [Remote host closed the connection]
amagawdd has joined #ruby
JeanCarloMachado has quit [Ping timeout: 264 seconds]
JeanCarloMachado has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
blackwind_123 has quit [Ping timeout: 248 seconds]
amagawdd has quit [Ping timeout: 256 seconds]
blackwind_123 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
[dmp] has quit [Ping timeout: 255 seconds]
jameser has joined #ruby
Phenix has quit [Quit: Connection closed for inactivity]
[dmp] has joined #ruby
cibs has quit [Ping timeout: 256 seconds]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<UnknownSoldier> havenwood i'm not. i'll read that.
<UnknownSoldier> thank you.
duderonomy has joined #ruby
cibs has joined #ruby
hutch34 has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 276 seconds]
Derperperd has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has joined #ruby
jordanm has joined #ruby
bkxd has joined #ruby
JeanCarloMachado has quit [Ping timeout: 276 seconds]
tmtwd has quit [Ping timeout: 256 seconds]
dogweather has quit []
JeanCarloMachado has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
MyMind has joined #ruby
skweek has joined #ruby
brent__ has joined #ruby
cibs has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
cibs has joined #ruby
Derperperd has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
gigetoo has quit [Ping timeout: 256 seconds]
gusrub has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tmtwd has joined #ruby
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
nobitanobi has joined #ruby
brent__ has joined #ruby
cdg_ has joined #ruby
GarouDan has quit [Quit: Konversation terminated!]
cdg has quit [Ping timeout: 255 seconds]
pawnbox has joined #ruby
gusrub has quit [Ping timeout: 252 seconds]
ICantCook has quit [Quit: bye]
d^sh has joined #ruby
brent__ has quit [Remote host closed the connection]
redhedded1 has joined #ruby
Fin1te has joined #ruby
brent__ has joined #ruby
govg has joined #ruby
gigetoo has joined #ruby
nankyokusei has joined #ruby
nobitanobi has quit [Ping timeout: 255 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
harai_ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 264 seconds]
brent__ has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
UnknownSoldier is now known as Mumm-Ra
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
youch has joined #ruby
PaulCape_ has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
cdg_ has quit [Ping timeout: 240 seconds]
PaulCapestany has quit [Ping timeout: 255 seconds]
youch has quit [Ping timeout: 260 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
skweek has quit [Ping timeout: 255 seconds]
harai_ has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
harai_ has joined #ruby
EckT has joined #ruby
gusrub has joined #ruby
gigetoo has joined #ruby
JeanCarloMachado has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
maleghast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maleghast has joined #ruby
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
gigetoo has quit [Ping timeout: 264 seconds]
pilne has quit [Quit: Quitting!]
harfangk has joined #ruby
jenrzzz has joined #ruby
UserOO7 has joined #ruby
gigetoo has joined #ruby
gix has quit [Ping timeout: 256 seconds]
gusrub has quit [Remote host closed the connection]
Ariadeno has quit [Ping timeout: 240 seconds]
Ariadeno has joined #ruby
gusrub has joined #ruby
UserOO7 has quit [Ping timeout: 248 seconds]
gix has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
harai_ has quit [Ping timeout: 252 seconds]
harai has joined #ruby
reverberations has joined #ruby
johnzorn has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
johnzorn has joined #ruby
gigetoo has joined #ruby
Anonymoose2 has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
pawnbox has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 276 seconds]
hardest has joined #ruby
kegster has quit [Ping timeout: 252 seconds]
gigetoo has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
jeyraof has quit [Read error: Connection reset by peer]
jeyraof_ has joined #ruby
xall has joined #ruby
username_ has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
gigetoo has joined #ruby
bocaneri has joined #ruby
bocaneri has quit [Max SendQ exceeded]
JeanCarloMachado has quit [Ping timeout: 245 seconds]
gigetoo has quit [Ping timeout: 264 seconds]
JeanCarloMachado has joined #ruby
redhedded1 has quit [Quit: Textual IRC Client: www.textualapp.com]
Channel6 has quit [Quit: Leaving]
youch has joined #ruby
gigetoo has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
Chagel has joined #ruby
youch has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
pawnbox has quit [Ping timeout: 256 seconds]
simmib_ has joined #ruby
gigetoo has joined #ruby
howdoi has joined #ruby
FrankD has quit [Ping timeout: 240 seconds]
Mumm-Ra has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 256 seconds]
jeyraof__ has joined #ruby
bocaneri has joined #ruby
JeanCarl1Machado has joined #ruby
jeyraof_ has quit [Read error: Connection reset by peer]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 258 seconds]
hutch34 has joined #ruby
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
renchan has joined #ruby
pawnbox has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
iMadper has joined #ruby
iMadper has joined #ruby
iMadper has quit [Changing host]
pawnbox has quit [Remote host closed the connection]
bkxd has joined #ruby
gigetoo has joined #ruby
squ has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
Kug3lis_off is now known as Kug3lis
Cohedrin_ has joined #ruby
naprimer_3 has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 264 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
shortdudey123 has quit [Ping timeout: 255 seconds]
shortdudey123 has joined #ruby
CloCkWeRX has left #ruby [#ruby]
gigetoo has joined #ruby
hays has quit [Read error: Connection reset by peer]
jeyraof__ has quit [Quit: Leaving]
jeyraof has joined #ruby
ifctj has joined #ruby
nobitanobi has joined #ruby
brent__ has joined #ruby
Kug3lis is now known as Kug3lis_off
JeanCarl1Machado has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
naprimer_3 has joined #ruby
nobitanobi has quit [Ping timeout: 248 seconds]
username_ has quit [Ping timeout: 252 seconds]
JeanCarloMachado has joined #ruby
saneax-_-|AFK is now known as saneax
gigetoo has quit [Read error: Connection reset by peer]
nankyokusei has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
tlahtoani has quit [Quit: Connection closed for inactivity]
hays has joined #ruby
chouhoulis has quit [Remote host closed the connection]
brent__ has quit [Remote host closed the connection]
anisha_ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 256 seconds]
Fin1te has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 256 seconds]
JeanCarloMachado has joined #ruby
gigetoo has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
harai_ has joined #ruby
Immune_ has joined #ruby
harai has quit [Ping timeout: 256 seconds]
tildes has joined #ruby
Immune has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tildes has quit [Ping timeout: 240 seconds]
xall has joined #ruby
hcgatewood has joined #ruby
hcgatewood has left #ruby [#ruby]
tildes has joined #ruby
JeanCarloMachado has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
patarr has joined #ruby
gusrub has quit []
AnoHito_ has quit [Read error: Connection reset by peer]
AnoHito_ has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
patarr has quit [Ping timeout: 245 seconds]
EckT has quit [Ping timeout: 245 seconds]
Derperperd has quit [Ping timeout: 240 seconds]
agit0 has quit [Quit: zzzZZZ….]
ifctj has quit [Ping timeout: 256 seconds]
tildes has quit [Ping timeout: 256 seconds]
shortCircuit___ has joined #ruby
<shortCircuit___> hi
<shortCircuit___> need some help with Net::HTTP
youch has joined #ruby
<shortCircuit___> "{\"resource_owner_id\":1,\"resource_owner_type\":\"customer\",\"country_code\":\"+91\",\"phone_number\":\"019836870428\",\"retry\":null}" this my params.to_json. the 1 is fixnum not string, http = Net::HTTP.new(uri.host, uri.port); http.post(uri.path, params.to_json, headers) it throws an error saying cannot apply strip on fixnum
<shortCircuit___> how to solve this, I could change the 1 to 1.to_s in the original params, but that is not possible bcoz the other service expects it to be int not string
tmtwd has quit [Ping timeout: 240 seconds]
youch has quit [Ping timeout: 276 seconds]
jshjsh has joined #ruby
andikr has joined #ruby
aufi has joined #ruby
aufi has quit [Remote host closed the connection]
aufi has joined #ruby
graft has quit [Ping timeout: 256 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
ifctj has joined #ruby
toretore has joined #ruby
blaxter has joined #ruby
dionysus69 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
conta has joined #ruby
hutch34 has joined #ruby
JoshS has joined #ruby
jovial_ has quit [Remote host closed the connection]
SesMan has joined #ruby
jshjsh has quit [Ping timeout: 245 seconds]
hutch34 has quit [Ping timeout: 258 seconds]
kassav_ has joined #ruby
troulouliou_div2 has joined #ruby
ifctj has quit [Ping timeout: 240 seconds]
madhatter has quit [Remote host closed the connection]
gigetoo has joined #ruby
bkxd has joined #ruby
TomyWork has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeyraof has quit [Quit: This computer has gone to sleep]
bkxd has quit [Ping timeout: 240 seconds]
MadWasp has left #ruby [#ruby]
jeyraof has joined #ruby
astrobunny has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 264 seconds]
EckT has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
gigetoo has joined #ruby
mark_66 has joined #ruby
skarlso has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
csk157_ has joined #ruby
scootaloo has joined #ruby
vondruch has joined #ruby
clauswitt has joined #ruby
naftilos76 has joined #ruby
pawnbox has quit [Ping timeout: 256 seconds]
gigetoo has quit [Ping timeout: 255 seconds]
nankyokusei has joined #ruby
gigetoo has joined #ruby
scootaloo has quit [Ping timeout: 240 seconds]
polysics has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
scootaloo has joined #ruby
vikas027 has joined #ruby
<vikas027> Hello Everyone, Why do I have to use @vms_list as an instance variable. I am not using it any other method. https://dpaste.de/vHxT#L3
<scootaloo> Well what happens if you don't use an instance variable?
JoshS has quit [Ping timeout: 256 seconds]
youch has joined #ruby
grh has joined #ruby
madhatter has joined #ruby
Airforce has quit [Read error: Connection reset by peer]
sarbs has quit [Ping timeout: 240 seconds]
jeyraof has quit [Quit: Leaving]
<vikas027> nothing, script exits without printing anything
JoshS has joined #ruby
<herwin> the anser is in line 8
<herwin> answer
Snickers has joined #ruby
<vikas027> @herwin: was that for me /
<vikas027> ?
<herwin> vikas027: yes
aganov has joined #ruby
<vikas027> @herwin: hmm.. can you please explain a bit ?
simmib___ has joined #ruby
gigetoo has quit [Ping timeout: 256 seconds]
sarbs has joined #ruby
youch has quit [Ping timeout: 245 seconds]
gigetoo has joined #ruby
<vikas027> ah, I guess the method is calling itself ... is that the reason ?
<herwin> yes, and that will create a new variable
jeyraof has joined #ruby
aupadhye has quit [Quit: Leaving]
<vikas027> sorry, relatively new to ruby and trying to learn stuff.
<herwin> this is not really specific to ruby ;)
<vikas027> cool, that explains. Thanks a ton herwin
<vikas027> yeah, I know. I guess I overlooked it and thought it to be ruby specific. My bad
simmib_ has quit [Ping timeout: 248 seconds]
minn has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
clauswit_ has joined #ruby
nahra has joined #ruby
optiz0r has joined #ruby
clauswitt has quit [Ping timeout: 264 seconds]
scootaloo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<herwin> vikas027: the code is still pretty scary, because it might reset the @vms_list variable
<herwin> a more reliable way would be to do "def vms(folder, vms_list = [])"
pkgnei has joined #ruby
<herwin> then you can just use vms_list instead of @vms_list
jenrzzz has joined #ruby
<herwin> and change line 8 to "vms(x, vms_list)"
<herwin> or initialize the instance variable in find_vms_to_delete
gigetoo has quit [Ping timeout: 255 seconds]
nobitanobi has joined #ruby
gigetoo has joined #ruby
mikecmpbll has joined #ruby
<vikas027> ah... let me try that
optiz0r has quit [Ping timeout: 240 seconds]
scootaloo has joined #ruby
optiz0r has joined #ruby
mikecmpbll has quit [Client Quit]
pawnbox has joined #ruby
antgel has joined #ruby
Joost has joined #ruby
<Joost> is there a difference between hash.key?[:foo] and hash[:foo].present?
<vikas027> herwin: Thank you, worked like a charm :)
clauswitt has joined #ruby
gigetoo has quit [Ping timeout: 258 seconds]
<vikas027> One more question. Is there a neat way to print everything in one line but break line with puts/print/etc ? https://dpaste.de/uF0a rubocop complains of long lines. If I break this into multiple lines, it breaks in the output as well, which I do not want. Is there an alternative ?
gigetoo has joined #ruby
clauswit_ has quit [Read error: Connection reset by peer]
teclator has joined #ruby
<fumk> ba ouai
<fumk> sorry, wrong chan
<toretore> vikas027: use print instead of puts
<herwin> vikas027: you can do things like "puts 'foo' +\n'bar'"
<vikas027> @herwin: Perfect. You are a life saver :)
biberu has joined #ruby
<vikas027> toretore: I did tried using print in vain. It too broke the output in multiple lins
<toretore> no it didn't
ledestin has joined #ruby
blackwind_123 has quit [Ping timeout: 248 seconds]
scootaloo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
armyriad has quit [Ping timeout: 256 seconds]
kshitij has joined #ruby
optiz0r has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
patarr has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
blackwind_123 has joined #ruby
gigetoo has joined #ruby
<vikas027> toretore: https://dpaste.de/hGqa Pls see this
bkxd has quit [Ping timeout: 245 seconds]
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patarr has quit [Ping timeout: 264 seconds]
SesMan has joined #ruby
ocbtec has joined #ruby
Derperperd has joined #ruby
madhatter has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 252 seconds]
Silthias has joined #ruby
AnoHito_ has quit [Read error: Connection reset by peer]
jud has quit [Read error: Connection reset by peer]
AnoHito_ has joined #ruby
jud has joined #ruby
jud has joined #ruby
jud has quit [Changing host]
mikecmpbll has joined #ruby
gigetoo has joined #ruby
Silthias1 has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Client Quit]
tvw has joined #ruby
mikecmpbll has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
scootaloo has joined #ruby
<scootaloo> Joost: yes. For `{foo: nil}`, .key? will return true, [].present? will return false.
staticfox has quit [Quit: ZNC - http://znc.in]
<Joost> ah
<Joost> thanks
jeyraof has quit [Quit: This computer has gone to sleep]
gigetoo has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
Silthias has left #ruby [#ruby]
Silthias has joined #ruby
jeyraof has joined #ruby
bkxd has joined #ruby
marr has joined #ruby
staticfox has joined #ruby
youch has joined #ruby
lrns has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
Shashikant86 has joined #ruby
Definity has quit [Quit: Nettalk6 - www.ntalk.de]
lenwood has joined #ruby
gigetoo has joined #ruby
youch has quit [Ping timeout: 240 seconds]
cibs has quit [Ping timeout: 240 seconds]
amagawdd has joined #ruby
cibs has joined #ruby
mikecmpb_ has joined #ruby
maleghast has quit [Quit: Textual IRC Client: www.textualapp.com]
doanguyen has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
<doanguyen> anyone know why we have @ beginning of variable?
gigetoo has quit [Ping timeout: 255 seconds]
<tobiasvl> doanguyen: to denote that it's an instance variable
amagawdd has quit [Ping timeout: 256 seconds]
nofxx has joined #ruby
last_staff has joined #ruby
gigetoo has joined #ruby
<doanguyen> thank tobiasvl, what is different between variable and instance variable?
<tobiasvl> the scope
<dminuoso> doanguyen: Note that @ is actually part of the instance variable name, it's not really extra syntax.
<doanguyen> thank you guys :D
<dminuoso> >> class Foo; def initialize; @foo = 42; end; end; obj = Foo.new; puts obj.instance_variable_get(:@foo)
<ruby[bot]> dminuoso: # => 42 ...check link for more (https://eval.in/729552)
<dminuoso> doanguyen: And the reason for this is to allow Ruby to easily implement internal instance variables (the ones without @) which are completely inaccessible to the Ruby world.
optiz0r has joined #ruby
pawnbox has quit [Remote host closed the connection]
hutch34 has joined #ruby
doanguyen has quit [Quit: Page closed]
Silthias has left #ruby [#ruby]
Silthias has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
Silthias has left #ruby [#ruby]
gigetoo has joined #ruby
teclator has quit [Remote host closed the connection]
Silthias has joined #ruby
Silthias has left #ruby [#ruby]
hutch34 has quit [Ping timeout: 276 seconds]
xall has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
Snickers has quit [Ping timeout: 252 seconds]
<vikas027> toretore, herwin : This looks best to me (see the last line)
gregf_ has joined #ruby
Beams has joined #ruby
Silthias1 has joined #ruby
optiz0r has quit [Ping timeout: 240 seconds]
Silthias has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
gigetoo has joined #ruby
xen0fon has quit [Quit: xen0fon]
shortCircuit___ has quit [Quit: Page closed]
agit0 has joined #ruby
hutch34 has joined #ruby
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
Shashikant86 has joined #ruby
CloCkWeRX has joined #ruby
sarbs has quit [Ping timeout: 252 seconds]
<toretore> vikas027: you are explicitly putting \n in your string..
xall has joined #ruby
<toretore> vikas027: \n = newliine = line break
<vikas027> toretore: No I am not see the last puts statement. It breaks the line (similar to bash) in code but still prints the text in one line
<toretore> i don't see any puts
<vikas027> toretore: See this https://dpaste.de/v7gf
<vikas027> toretore: I found this better than using '+' ...actually rubocop did this for me
ltem has joined #ruby
teclator has joined #ruby
sarbs has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
gigetoo has joined #ruby
nankyokusei has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agit0 has quit [Quit: zzzZZZ….]
agit0 has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
UnknownSoldier has joined #ruby
youch has joined #ruby
JeanCarloMachado has joined #ruby
gigetoo has quit [Ping timeout: 276 seconds]
gigetoo has joined #ruby
ldnunes has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
r__rios has quit [Read error: Connection reset by peer]
r__rios has joined #ruby
ta has quit [Read error: Connection reset by peer]
jameser has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
youch has quit [Ping timeout: 264 seconds]
minn has quit [Ping timeout: 240 seconds]
ta has joined #ruby
xall has quit [Ping timeout: 248 seconds]
Silthias1 has quit [Ping timeout: 252 seconds]
ferr1 has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 252 seconds]
jeyraof has quit [Quit: This computer has gone to sleep]
gigetoo has quit [Ping timeout: 248 seconds]
gigetoo has joined #ruby
Burgestrand has joined #ruby
jshjsh has joined #ruby
nofxx has quit [Ping timeout: 255 seconds]
JoshS has quit [Ping timeout: 258 seconds]
triangles has joined #ruby
troulouliou_div2 has quit [Ping timeout: 240 seconds]
mikecmpb_ has quit [Quit: inabit. zz.]
gigetoo has quit [Ping timeout: 248 seconds]
mikecmpbll has joined #ruby
gigetoo has joined #ruby
UserJosh has joined #ruby
tvw has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
jshjsh has quit [Ping timeout: 240 seconds]
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has joined #ruby
harai_ has quit [Ping timeout: 256 seconds]
masterasia has quit [Read error: Connection reset by peer]
gigetoo has quit [Ping timeout: 255 seconds]
Shashikant86 has joined #ruby
patarr has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
pandaant has joined #ruby
Derperperd has joined #ruby
valkyrka has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
scootaloo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Derperperd has quit [Ping timeout: 248 seconds]
Silthias has joined #ruby
Burgestrand has quit [Quit: Closing time!]
rob-b has joined #ruby
Silthias1 has quit [Ping timeout: 240 seconds]
rob-b has left #ruby [#ruby]
Silthias1 has joined #ruby
inra has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Silthias has quit [Ping timeout: 255 seconds]
<valkyrka> hey guys, I have a question for you
<valkyrka> I know it’s Chef but I am just trying to figure out if this is the correct way of doing stuff in Ruby
scootaloo has joined #ruby
<valkyrka> I have that recipe iterating through the node and for some reason, evne if I don’t set the :locked attribute, it still creates the username with no SSH keys
<valkyrka> it does work if I use if user[:locked] == ‘true’ but I am wondering if this is the correct way in Ruby?
<dminuoso> valkyrka: What exactly is your question?
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<valkyrka> sorry, it’s basically
<elomatreb> What is the value of user[:locked] if it's not "true"?
Burgestrand has joined #ruby
Shashikant86 has joined #ruby
<valkyrka> false
bkxd has quit [Ping timeout: 276 seconds]
<dminuoso> false or "false" ?
<toretore> false and "false are two different things
<valkyrka> oh
<valkyrka> sorry, I didn’t realize
<elomatreb> So yes, your solution with == "true" is probably good
banisterfiend has joined #ruby
<dminuoso> valkyrka: There's only one thing I would change in your gist.
jshjsh has joined #ruby
<dminuoso> valkyrka: I would move the opening array [ in line 20 to the end of line 19.
inra has quit [Quit: Leaving]
<valkyrka> sweet, I will do that, thank you
<dminuoso> Beyond that it looks idiomatic
<elomatreb> If we're picking about style, you should use symbol: "value" in that hash :P
<valkyrka> what should I look for to clarify what’s the difference between false and “false”?
Tristan-Speccy has joined #ruby
<dminuoso> valkyrka: One is just a string
<dminuoso> The other is a boolean value
Tristan-Speccy is now known as Guest31531
<valkyrka> got it, thanks!
<elomatreb> In Ruby, if considers everything that is not either boolean false or nil (equivalent of null) to be truthy
<dminuoso> ^- even an empty string.
<dminuoso> >> puts !!""
<ruby[bot]> dminuoso: # => /tmp/execpad-e57ae304f660/source-e57ae304f660:2: warning: string literal in condition ...check link for more (https://eval.in/729603)
* dminuoso kicks ruby[bot]
UserJosh has quit [Ping timeout: 240 seconds]
Chagel has quit [Ping timeout: 258 seconds]
Silthias has joined #ruby
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
<dminuoso> Ruby has no un-expected implicit type casting, making this rule very easy to remember and apply.
<valkyrka> I got it, thanks a million guys
Silthias1 has quit [Ping timeout: 252 seconds]
youch has joined #ruby
Silthias1 has joined #ruby
charliesome has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Quit: Closing time!]
brent__ has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
elomatreb has quit [Quit: mep mep]
elomatreb has joined #ruby
JoshS has joined #ruby
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
youch has quit [Ping timeout: 240 seconds]
last_staff has quit [Quit: later]
Burgestrand has joined #ruby
jshjsh has quit [Ping timeout: 256 seconds]
nobitanobi has quit [Remote host closed the connection]
brent__ has quit [Ping timeout: 260 seconds]
grh has quit [Remote host closed the connection]
inra has joined #ruby
Burgestrand has quit [Client Quit]
Burgestrand has joined #ruby
jameser has joined #ruby
byte512 has joined #ruby
grh has joined #ruby
gigetoo has joined #ruby
<valkyrka> actually, it seems that that didn’t work
<valkyrka> if I put :lock => true as an attribute, it still executes the else block
<valkyrka> why is it doing that?
scootaloo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<toretore> valkyrka: provide more information
<toretore> where is :lock being set?
<valkyrka> I mean, if I add :lock => true, it still executes the code in the else block
agit0 has joined #ruby
psychicist__ has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
minimalism has quit [Quit: minimalism]
<toretore> valkyrka: be precise when you're describing things. put it in the gist exactly as it exists in your file
<valkyrka> sorry
<toretore> where's the other part?
<toretore> add it to the same gist
patarr has joined #ruby
<valkyrka> so since I have a lot of different attributes.rb files, I thought my code will actually do this
<toretore> valkyrka: did you understand the difference between true and 'true'?
<toretore> 'true' and "true" are the same thing
<toretore> 'true' and true are not
lenwood has quit [Ping timeout: 240 seconds]
<valkyrka> oh!
<valkyrka> so it should be if user[:lock] == true
<toretore> you should do this: 1) in attributes, `:lock => true` 2) in the other file, `if user[:lock]`
jenrzzz has joined #ruby
<toretore> if you set the user attributes in more than one location, make sure it's consistent
patarr has quit [Ping timeout: 248 seconds]
<valkyrka> but that won’t work because if I don’t set any :lock attribute in the attribute.rb file, it will wipe out the public keys for the users
<valkyrka> and I have hundreds of those files that would need modifying
agit0 has quit [Quit: I'm off]
<toretore> what do they look like now?
hutch34 has joined #ruby
Lyubo1 has joined #ruby
<toretore> your defininition of "won't work" is "i don't want to update all these files"?
Shashikant86 has joined #ruby
squ_ has joined #ruby
<toretore> valkyrka: start from the beginning. you have a bunch of these files, and none of them have :lock in them?
<valkyrka> yes, that is correct
<toretore> so there is no `:lock => 'true'` or `:lock => 'false'` or anything involving :lock?
jenrzzz has quit [Ping timeout: 240 seconds]
<toretore> this is a new attribute that you are adding now?
<valkyrka> exactly
<toretore> ok, then you should follow my advice
djbkd has quit [Ping timeout: 276 seconds]
<toretore> set `:lock => true` where it's needed, then check for `if user[:lock]`
<valkyrka> let me try that right now
jaruga_____ has joined #ruby
<toretore> if :lock is not set, `if user[:lock]` is false
squ has quit [Ping timeout: 245 seconds]
ryan_notabot has joined #ruby
ttilley has joined #ruby
hutch34 has quit [Ping timeout: 248 seconds]
sjefford has joined #ruby
ttilley has quit [Changing host]
ttilley has joined #ruby
<valkyrka> cool, trying now
sjefford has quit [Client Quit]
CloCkWeRX has quit [Ping timeout: 248 seconds]
<valkyrka> unfortunately, that didn’t have the expected result
<valkyrka> even if just one user had :lock => true, it did actually wipe the ssh_keys for all the users
jshjsh has joined #ruby
c355e3b has joined #ruby
<toretore> gist exactly the code you tested with
<valkyrka> sure
JoshS has quit [Ping timeout: 256 seconds]
<valkyrka> it wiped the keys for user2 as well
ginetom_ has joined #ruby
<toretore> it's not because of the logic we're discussing, something else is causing it
DTZUZU has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
polysics has quit [Remote host closed the connection]
vikas027 has left #ruby ["Textual IRC Client: www.textualapp.com"]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
scootaloo has joined #ruby
<valkyrka> oh
nankyokusei has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
ocbtec has quit [Quit: leaving]
cdg has joined #ruby
<valkyrka> node.default['sshusers']['users'].each do |user| - it’s the default!
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<valkyrka> it works exactly as I intend it w/ node['sshusers']['users'].each do |user|
<valkyrka> thank you very much toretore for your help and patience
dionysus69 has joined #ruby
paradisaeidae has quit [Remote host closed the connection]
paradisaeidae_ has quit [Remote host closed the connection]
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
charliesome has joined #ruby
scootaloo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scootaloo has joined #ruby
charliesome has quit [Client Quit]
swills__ has quit [Quit: Leaving]
swills has joined #ruby
paradisaeidae has quit [Client Quit]
paradisaeidae_ has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
charliesome has joined #ruby
scootaloo has quit [Client Quit]
karapetyan has joined #ruby
kobain has joined #ruby
nobitanobi has joined #ruby
scootaloo has joined #ruby
nahra has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
govg has quit [Ping timeout: 245 seconds]
nahra has joined #ruby
jayrmotta has joined #ruby
tvw has joined #ruby
jaruga_____ has quit [Remote host closed the connection]
jaruga_____ has joined #ruby
karapetyan has quit [Remote host closed the connection]
troulouliou_div2 has joined #ruby
csk157 has joined #ruby
jenrzzz has joined #ruby
polysics has joined #ruby
herbmillerjr has quit [Remote host closed the connection]
herbmillerjr has joined #ruby
teclator has quit [Remote host closed the connection]
csk157_ has quit [Ping timeout: 248 seconds]
icey has quit [Remote host closed the connection]
icey has joined #ruby
icey has joined #ruby
icey has quit [Changing host]
JeanCarloMachado has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
synthroid has joined #ruby
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Derperperd has joined #ruby
icey has quit [Remote host closed the connection]
icey has joined #ruby
icey has joined #ruby
icey has quit [Changing host]
icey has quit [Remote host closed the connection]
milardovich has joined #ruby
icey has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brendan- has joined #ruby
tlahtoani has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
ttilley has quit [Quit: Linkinus - http://linkinus.com]
brendan- has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
brendan- has joined #ruby
kobain has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
JeanCarloMachado has joined #ruby
tyang has joined #ruby
vondruch has quit [Quit: vondruch]
cibs has quit [Ping timeout: 248 seconds]
vondruch has joined #ruby
csk157 has quit [Ping timeout: 240 seconds]
tyang_ has joined #ruby
rippa has joined #ruby
cibs has joined #ruby
Burgestrand has quit [Quit: Closing time!]
bkxd has quit [Ping timeout: 248 seconds]
millerti has joined #ruby
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
Burgestrand has joined #ruby
tyang has quit [Ping timeout: 255 seconds]
JoshS has joined #ruby
simmib___ has quit [Remote host closed the connection]
inra has quit [Quit: Leaving]
lenwood has joined #ruby
testuser2 has joined #ruby
<testuser2> hi
jshjsh has quit [Ping timeout: 240 seconds]
<testuser2> when i Cgi.parse params where parmas = "k1=v1&k2=v2...." it gives me {"k1"=>["v1"]}
<testuser2> is that correct? why it gives me array of value?
<testuser2> why not just "v1"?
ddv has joined #ruby
vondruch has quit [Quit: vondruch]
<herwin> because ?k1=v1&k1=v2 is also valid
icey has quit [Remote host closed the connection]
icey has joined #ruby
icey has joined #ruby
icey has quit [Changing host]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
JeanCarloMachado has joined #ruby
jshjsh has joined #ruby
Burgestrand has quit [Quit: Closing time!]
JoshS has quit [Ping timeout: 256 seconds]
<testuser2> yeah. but it should be array in that case only herwin
<testuser2> not in this case!
malconis has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<herwin> so either you need to do Array(args['k1']), or you need to check if the value is an array or a string
<herwin> which would be pretty annoying
<herwin> and error-prone
Yxhuvud has quit [Remote host closed the connection]
malconis_ has joined #ruby
Yxhuvud has joined #ruby
<testuser2> ok
Shashikant86 has joined #ruby
malconis has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xen0fon has joined #ruby
brent__ has joined #ruby
BackEndCoder has quit [Excess Flood]
BackEndCoder has joined #ruby
cibs has quit [Ping timeout: 248 seconds]
cibs has joined #ruby
bungoman has joined #ruby
brent__ has quit [Ping timeout: 252 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
squ_ has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
bungoman_ has quit [Ping timeout: 256 seconds]
statelesscode has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
djuber` has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
pawnbox has joined #ruby
pandaant has quit [Remote host closed the connection]
vondruch has joined #ruby
graft has joined #ruby
msmith has joined #ruby
psychicist__ has quit [Ping timeout: 276 seconds]
pawnbox has quit [Ping timeout: 248 seconds]
arup_r has joined #ruby
CloCkWeRX has quit [Ping timeout: 245 seconds]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
govg has joined #ruby
Burgestrand has joined #ruby
testuser2 has quit [Quit: leaving]
pawnbox has joined #ruby
djuber` has quit [Ping timeout: 264 seconds]
polysics has quit [Remote host closed the connection]
kobain has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
ecuanaso has joined #ruby
jaruga_____ has quit [Quit: jaruga_____]
jaruga_____ has joined #ruby
hutch34 has joined #ruby
<arup_r> ok that is another buggy code. nvm
<arup_r> I will think it other way
hutch34 has quit [Ping timeout: 245 seconds]
nadir has joined #ruby
pawnbox has quit [Remote host closed the connection]
ramortegui has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhereman has quit [Ping timeout: 260 seconds]
csk157 has joined #ruby
bkxd has joined #ruby
ecuanaso has joined #ruby
nankyokusei has joined #ruby
bmurt has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
nankyokusei has quit [Ping timeout: 276 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
dopamean_ has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
jhack has joined #ruby
Silthias2 has joined #ruby
statelesscode has joined #ruby
jhack has quit [Client Quit]
Silthias1 has quit [Ping timeout: 240 seconds]
dc4 has joined #ruby
jhack has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
saslam has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
loveablelobster has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
loveablelobster has quit [Client Quit]
millerti has joined #ruby
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
arup_r has quit []
Derperperd has joined #ruby
DLSteve has joined #ruby
fuzzyhorns has joined #ruby
__Yiota has joined #ruby
optiz0r has joined #ruby
saslam has quit [Ping timeout: 248 seconds]
inra has joined #ruby
Fernando-Basso has joined #ruby
Derperperd has quit [Ping timeout: 255 seconds]
arooni has quit [Quit: ZNC - http://znc.in]
inra has quit [Remote host closed the connection]
mostlybadfly has joined #ruby
<ljarvis> that's quite some code
polishdub has joined #ruby
__Yiota has quit [Ping timeout: 255 seconds]
ecuanaso has joined #ruby
griffindy has joined #ruby
ddv has left #ruby ["Leaving"]
arooni has joined #ruby
kegster has joined #ruby
griffindy has quit [Client Quit]
cdg_ has joined #ruby
griffindy has joined #ruby
grh has quit [Ping timeout: 255 seconds]
Derperperd has joined #ruby
inra has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
jaruga_____ has quit [Quit: jaruga_____]
jaruga_____ has joined #ruby
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
ryan_notabot has quit [Ping timeout: 255 seconds]
brendan- has quit [Read error: Connection reset by peer]
griffindy has quit [Read error: Connection reset by peer]
griffindy has joined #ruby
Derperperd has quit [Ping timeout: 248 seconds]
brendan- has joined #ruby
xen0fon has quit [Quit: xen0fon]
youch has joined #ruby
brendan- has quit [Read error: Connection reset by peer]
brendan- has joined #ruby
aryaching has joined #ruby
Burgestrand has quit [Ping timeout: 255 seconds]
blaxter has quit [Quit: foo]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has joined #ruby
jrafanie has joined #ruby
brendan- has quit [Read error: Connection reset by peer]
csk157 has quit [Ping timeout: 240 seconds]
clauswit_ has joined #ruby
cdg_ has quit [Remote host closed the connection]
brendan- has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
clauswitt has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
polysics has joined #ruby
scootaloo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Shashikant86 has quit [Quit: Textual IRC Client: www.textualapp.com]
Shashikant86 has joined #ruby
Azure has quit [Read error: Connection reset by peer]
swills has quit [Remote host closed the connection]
cdg has joined #ruby
bkxd has joined #ruby
swills has joined #ruby
polysics has quit [Ping timeout: 252 seconds]
JoshS has joined #ruby
saneax is now known as saneax-_-|AFK
davezd has quit [Quit: Leaving]
nhhc has joined #ruby
polysics has joined #ruby
dopamean_ has joined #ruby
polysics has quit [Client Quit]
cdg has quit [Ping timeout: 255 seconds]
jshjsh has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
dopamean_ has quit [Client Quit]
karapetyan has joined #ruby
__Yiota has joined #ruby
ferr1 has quit [Quit: WeeChat 1.6]
UnknownSoldier is now known as Mumm-ra
Sammichmaker has joined #ruby
jackjackdripper has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
clauswitt has joined #ruby
shinnya has joined #ruby
ecuanaso has joined #ruby
kies has quit [Ping timeout: 240 seconds]
clauswitt has quit [Client Quit]
clauswit_ has quit [Ping timeout: 264 seconds]
kies has joined #ruby
brendan- has quit [Read error: Connection reset by peer]
brendan- has joined #ruby
amagawdd has joined #ruby
renchan has quit [Quit: Leaving...]
Bounga has joined #ruby
agent_white has joined #ruby
aganov has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
kassav_ has quit [Read error: No route to host]
DrCode has joined #ruby
cdg has joined #ruby
kassav_ has joined #ruby
amagawdd has quit [Ping timeout: 255 seconds]
jhack has quit [Quit: jhack]
<agent_white> Mornin' folks
jhack has joined #ruby
gregf_ has quit [Quit: Page closed]
pawnbox has joined #ruby
kurufu_ has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
patarr has joined #ruby
karapetyan has joined #ruby
nahra has quit [Quit: ERC (IRC client for Emacs 25.1.1)]
Hobbyboy has quit [Ping timeout: 252 seconds]
DTZUZU has joined #ruby
tmtwd has joined #ruby
grh has joined #ruby
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
karapetyan has quit [Remote host closed the connection]
lanc has joined #ruby
simmib has joined #ruby
andikr has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 256 seconds]
dionysus69 has quit [Ping timeout: 255 seconds]
lanc has quit [Ping timeout: 240 seconds]
lanc_ has joined #ruby
OTORelic has joined #ruby
Hobbyboy has joined #ruby
nullsign has joined #ruby
<nullsign> can someone answer a noob ruby question
<nullsign> i have a method which returns output of many words, i want to assign the output of each word to an array, what is the best way to do this?
<nullsign> it's likely easy, tho ive forgotten like, all my ruby
danguita has joined #ruby
karapetyan has joined #ruby
<go|dfish> nullsign: what does the output of words look like? perhaps you want .split
Derperperd has joined #ruby
scootaloo has joined #ruby
jenrzzz has joined #ruby
aufi has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
kassav_ has quit [Quit: kassav_]
<nullsign> it's gonna be a list space separated.
danielpclark has quit [Remote host closed the connection]
<nullsign> i'm doing methodName to produce the output
<nullsign> so would i do... methodName.split = @Array ?
<nullsign> not sure on the array assignment part.
<nullsign> or.. Array[]
Silthias has joined #ruby
<go|dfish> words = methodName.split
jenrzzz has quit [Ping timeout: 255 seconds]
Silthias1 has joined #ruby
Silthias2 has quit [Ping timeout: 276 seconds]
kobain has quit [Read error: Connection reset by peer]
<ljarvis> also: method_name
<ljarvis> >> words = "foo bar baz".split
<ljarvis> >> words = "foo bar baz".split
<ruby[bot]> ljarvis: # => ["foo", "bar", "baz"] (https://eval.in/729933)
Silthias2 has joined #ruby
grh has quit [Ping timeout: 256 seconds]
Silthias has quit [Ping timeout: 258 seconds]
whathappwns has joined #ruby
synthroid has quit [Remote host closed the connection]
Silthias1 has quit [Ping timeout: 276 seconds]
amagawdd has joined #ruby
lrns has quit [Ping timeout: 260 seconds]
cajone has joined #ruby
danguita has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
scootaloo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
TvL2386 has quit [Remote host closed the connection]
scootaloo has joined #ruby
{Dolphin} has joined #ruby
ginetom_ has quit [Quit: ginetom_]
brent__ has joined #ruby
inra has quit [Quit: Leaving]
Derperperd has quit [Ping timeout: 276 seconds]
valkyrka has quit [Quit: valkyrka]
bkxd has quit [Ping timeout: 255 seconds]
kobain has joined #ruby
AndBobsYourUncle has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
conta has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
Shashikant86 has joined #ruby
ddrmanxbxfr has joined #ruby
Guest31531 is now known as Tristan-Speccy
kobain has quit [Ping timeout: 252 seconds]
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
cajone has quit [Ping timeout: 255 seconds]
nhhc has quit [Quit: Leaving]
howdoi has quit [Quit: Connection closed for inactivity]
synthroid has joined #ruby
youch has quit [Ping timeout: 240 seconds]
lanc_ has quit [Ping timeout: 240 seconds]
cajone has joined #ruby
simmib has quit [Remote host closed the connection]
zazen has joined #ruby
lenwood has quit [Ping timeout: 240 seconds]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
username_ has joined #ruby
EckT has quit [Quit: -a- IRC for Android 2.1.32]
lpaste_ has joined #ruby
simmib_ has joined #ruby
Anonymoose2 has joined #ruby
jhack has quit [Quit: jhack]
reverberations has quit [Ping timeout: 240 seconds]
tubbo has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
amclain has joined #ruby
jayrmotta has quit [Quit: Connection closed for inactivity]
username1 has joined #ruby
eindoofus has joined #ruby
skarlso has quit [Remote host closed the connection]
skarlso has joined #ruby
blackmesa has joined #ruby
harai_ has joined #ruby
jhack has joined #ruby
cschneid_ has joined #ruby
shinnya has quit [Ping timeout: 276 seconds]
mark_66 has quit [Remote host closed the connection]
skarlso has quit [Ping timeout: 264 seconds]
matp has quit [Remote host closed the connection]
harai_ has quit [Ping timeout: 240 seconds]
matp has joined #ruby
enterprisey has joined #ruby
simmib_ has quit [Remote host closed the connection]
lpaste_ is now known as lpaste
<eindoofus> hi, strange question, just out of curiosity is anyone in here a bad reader? for example, had trouble with reading comprehension growing up, or is dyslexic, or has problems maintaining focus while reading?
scootaloo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lpaste has quit [Changing host]
lpaste has joined #ruby
lenwood has joined #ruby
cdg_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
conta has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
harai_ has joined #ruby
tlahtoani has quit [Quit: Connection closed for inactivity]
Kug3lis_off is now known as Kug3lis
Kug3lis has quit [Quit: Textual IRC Client: www.textualapp.com]
<Mumm-ra> eindoofus a psychiatrist can diagnose that.
duderonomy has quit [Ping timeout: 240 seconds]
<Mumm-ra> eindoofus by the way, i think you're just hypocondriac though.
scootaloo has joined #ruby
scootaloo has quit [Client Quit]
GarouDan has joined #ruby
nobitanobi has quit [Remote host closed the connection]
markholmes has joined #ruby
mholmes has joined #ruby
mholmes has quit [Remote host closed the connection]
choke has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
markholmes has quit [Remote host closed the connection]
<GarouDan> Is there in ruby a way to handle all exceptions? The motivation for this is handle the exception, maybe looging to a specific files some kind of exceptions or send and e-mail to the system administrator
<GarouDan> Is there a way to do this?
fuzzyhorns has quit [Quit: Leaving.]
<GarouDan> In Java we have: Thread.setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler ex)
<GarouDan> In NodeJS we have: process.on('uncaughtException', function(err) {/*code*/})
<GarouDan> How can we do this in ruby?
conta has quit [Quit: conta]
Derperperd has joined #ruby
hutch34 has quit [Quit: WeeChat 1.5]
nobitanobi has joined #ruby
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
bkxd has joined #ruby
Shashikant86 has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
skweek has joined #ruby
saslam has joined #ruby
nobitanobi has quit [Remote host closed the connection]
TomyWork has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
hutch34 has joined #ruby
djbkd has joined #ruby
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
djellemah has quit [Ping timeout: 256 seconds]
jshjsh has joined #ruby
armyriad has joined #ruby
jaruga_____ has quit [Quit: jaruga_____]
jaruga_____ has joined #ruby
JoshS has quit [Ping timeout: 256 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
antoniobeyah has joined #ruby
<antoniobeyah> i have a set of files in a directory that I want to templatize and be able to create instances of those templates in another directory- is there a gem that handles that for me?
gusrub has joined #ruby
Burgestrand has quit [Quit: Closing time!]
<antoniobeyah> something like https://github.com/audreyr/cookiecutter
dc4 has quit [Ping timeout: 245 seconds]
lenwood has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
youch has joined #ruby
pkgnei has quit [Remote host closed the connection]
[Butch] has joined #ruby
ruby774 has joined #ruby
<ruby774> Hello
<ruby774> I need Help
jhack has quit [Quit: jhack]
tlahtoani has joined #ruby
Beams has quit [Quit: .]
<ruby774> Can you help me with this button-Overwrite Button? : https://gist.github.com/Hard-system/d804c475568f8dc9e1f5818d6bbc1d6b
<antoniobeyah> ruby774: i'm not sure what the problem is but I would use POST (for new) and PUT to overwrite
<antoniobeyah> no need for a seperate uri
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
nankyokusei has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
theta8 has joined #ruby
jshjsh has quit [Read error: Connection reset by peer]
jshjsh has joined #ruby
<antoniobeyah> if you can say more about what you are seeing, what error you are getting, and what you expect to happen it may help in answering your question
<nullsign> strange.. 'undefined method `split` ...
mostlybadfly has joined #ruby
<nullsign> i did require split..
<theta8> What is the best way to capture repeating groups of matches from a file and build a 2d array of said matches?
<ruby774> wait a second
skweek has quit [Ping timeout: 248 seconds]
<antoniobeyah> nullsign: split is a method on an object, usually a string. there is normally nothing to require
<antoniobeyah> >> "hello world".split
<antoniobeyah> > "hello world".split
<antoniobeyah> ruby[bot]
<nullsign> ah gotcha
lenwood has joined #ruby
phantummm has quit [*.net *.split]
kloeri has quit [*.net *.split]
ec\ has quit [*.net *.split]
mc_fail has quit [*.net *.split]
p1k has quit [*.net *.split]
bmn has quit [*.net *.split]
TheMainFrame has quit [*.net *.split]
angseus has quit [*.net *.split]
c-c has quit [*.net *.split]
Radar has quit [*.net *.split]
Jamo_ has quit [*.net *.split]
MMZF has quit [*.net *.split]
Talltree has quit [*.net *.split]
davic has quit [*.net *.split]
_br__ has quit [*.net *.split]
kke has quit [*.net *.split]
artmann_ has quit [*.net *.split]
soud has quit [*.net *.split]
SebastianThorn has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
knight_ has quit [*.net *.split]
<antoniobeyah> baweaver: why didn't the ruby bot respond to me?
ged has quit [*.net *.split]
varesa has quit [*.net *.split]
Paradox has quit [*.net *.split]
ejnahc has quit [*.net *.split]
badeball has quit [*.net *.split]
tjvc has quit [*.net *.split]
marens has quit [*.net *.split]
abort has quit [*.net *.split]
WebDawg has quit [*.net *.split]
Brak__________ has quit [*.net *.split]
tommylommykins has joined #ruby
Jamo has joined #ruby
wopi has quit [*.net *.split]
angseus has joined #ruby
SebastianThorn has joined #ruby
c-c has joined #ruby
mc_fail has joined #ruby
davic has joined #ruby
ec\ has joined #ruby
abort has joined #ruby
wopi has joined #ruby
badeball has joined #ruby
TheMainFrame has joined #ruby
dyyylan has quit [*.net *.split]
mmasaki has quit [*.net *.split]
fold4 has quit [*.net *.split]
LyndsySimon has quit [*.net *.split]
mattp has quit [*.net *.split]
wnd has quit [*.net *.split]
galeido has quit [*.net *.split]
Keltia has quit [*.net *.split]
DefV has quit [*.net *.split]
CrazyEddy has quit [*.net *.split]
funnel has quit [*.net *.split]
sjums has quit [*.net *.split]
ljarvis has quit [*.net *.split]
hplar has quit [*.net *.split]
pelegreno has quit [*.net *.split]
adam12 has quit [*.net *.split]
linduxed has quit [*.net *.split]
papercod1 has quit [*.net *.split]
dminuoso has quit [*.net *.split]
jpinnix has quit [*.net *.split]
headius has quit [*.net *.split]
xsdg has quit [*.net *.split]
watersoul_ has quit [*.net *.split]
phantummm has joined #ruby
marens has joined #ruby
marens has joined #ruby
Radar has joined #ruby
varesa has joined #ruby
varesa has quit [Max SendQ exceeded]
dyyylan has joined #ruby
DefV has joined #ruby
ljarvis has joined #ruby
adam has joined #ruby
galeido has joined #ruby
p1k has joined #ruby
xsdg has joined #ruby
ejnahc has joined #ruby
sjums has joined #ruby
Synthead has quit [*.net *.split]
chamunks has quit [*.net *.split]
vifino has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
tystr has quit [*.net *.split]
raz has quit [*.net *.split]
craysiii has quit [*.net *.split]
justinmcp has quit [*.net *.split]
yasu has quit [*.net *.split]
ReinH_ has quit [*.net *.split]
majuscule has quit [*.net *.split]
atom3 has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
hxegon has quit [*.net *.split]
shadeslayer has quit [*.net *.split]
Scient has quit [*.net *.split]
dminuoso has joined #ruby
Keltia has joined #ruby
mmasaki has joined #ruby
Radar is now known as Guest71019
c-c is now known as Guest83899
hxegon has joined #ruby
wnd has joined #ruby
raz has joined #ruby
raz has joined #ruby
mattp has joined #ruby
kke has joined #ruby
papercod1 has joined #ruby
headius has joined #ruby
shadeslayer has joined #ruby
ged has joined #ruby
_br__ has joined #ruby
pelegreno has joined #ruby
vifino has joined #ruby
adam is now known as Guest95086
yasu has joined #ruby
tystr has joined #ruby
funnel has joined #ruby
WebDawg has joined #ruby
chamunks has joined #ruby
Sp4rKy has joined #ruby
ReinH_ has joined #ruby
knight_ has joined #ruby
artmann has joined #ruby
ponga has quit []
hplar has joined #ruby
Talltree has joined #ruby
soud has joined #ruby
gusrub has quit [Remote host closed the connection]
linduxed has joined #ruby
CrazyEddy has joined #ruby
varesa has joined #ruby
varesa has quit [Max SendQ exceeded]
bmn has joined #ruby
SirCmpwn has joined #ruby
justinmcp has joined #ruby
Paradox has joined #ruby
agent_white has quit [Quit: brb]
fold4 has joined #ruby
gusrub has joined #ruby
<ruby774> That means it will read txt from wiki.txt and write it in wiki2txt file So whatever was in wiki2.txt will be replaced with the text from wiki.txt
tjvc has joined #ruby
tjvc has quit [Changing host]
enterprisey has joined #ruby
tjvc has joined #ruby
Scient has joined #ruby
<ruby774> antoniobeyah
pizzaops has quit [Ping timeout: 240 seconds]
kireevco has quit [Ping timeout: 240 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Brak__________ has joined #ruby
Silthias has joined #ruby
davidmichaelkarr has quit [Ping timeout: 245 seconds]
ec has quit [Ping timeout: 240 seconds]
craysiii has joined #ruby
weez17 has quit [Ping timeout: 276 seconds]
Silthias2 has quit [Ping timeout: 260 seconds]
Derperperd has quit [Ping timeout: 240 seconds]
ggherdov has quit [Ping timeout: 264 seconds]
theta8 has quit [Quit: leaving]
<ruby774> Hello
MMZF has joined #ruby
MMZF has joined #ruby
MMZF has quit [Changing host]
<ruby774> I need help please for my project
fuzzyhorns has joined #ruby
jpinnix has joined #ruby
JoshS has joined #ruby
skweek has joined #ruby
kireevco has joined #ruby
weez17 has joined #ruby
<antoniobeyah> ruby774: i don't know what you are trying to do, what problem you are having, and I don't have time to piece it all together. is there a specific error you are getting?
<ruby774> https://gist.github.com/Hard-system/d804c475568f8dc9e1f5818d6bbc1d6b The idea is the OVERWRITE button has to read txt from wiki.txt and write it in wiki2txt file So whatever was in wiki2.txt will be replaced with the text from wiki.txt
<ruby774> No
varesa has joined #ruby
varesa has quit [Max SendQ exceeded]
majuscule has joined #ruby
atom3 has joined #ruby
watersoul has joined #ruby
<ruby774> I do not have speficit error just it says that the page does not exist and I have to call the administrator
<ruby774> because the button does not work
gusrub has quit [Ping timeout: 255 seconds]
LyndsySimon has joined #ruby
ec has joined #ruby
<antoniobeyah> is this a sinatra app?
ggherdov has joined #ruby
Derperperd has joined #ruby
<ruby774> yeah
cdg_ has quit [Remote host closed the connection]
cdg has joined #ruby
<antoniobeyah> your form method in the html is post but in your sinatra code you only have mappings for put
jshjsh has quit [Ping timeout: 256 seconds]
<antoniobeyah> given the limited information I have thats all I can see
hahuang65 has joined #ruby
ec has quit [Excess Flood]
varesa has joined #ruby
varesa has quit [Max SendQ exceeded]
TomyLobo has joined #ruby
<ruby774> What kind of method should it be PUT or POST?
ggherdov has quit [Excess Flood]
<ruby774> because I change it with POST in both html and sinatra it does not work
<ruby774> I think my code in Sinatra is wrong
ec has joined #ruby
duderonomy has joined #ruby
jenrzzz has joined #ruby
ginetom_ has joined #ruby
varesa has joined #ruby
varesa has quit [Max SendQ exceeded]
ggherdov has joined #ruby
pizzaops has joined #ruby
davidmichaelkarr has joined #ruby
Bounga has quit [Ping timeout: 252 seconds]
cdg_ has joined #ruby
whathappens has joined #ruby
varesa has joined #ruby
varesa has quit [Max SendQ exceeded]
jenrzzz has quit [Ping timeout: 252 seconds]
msmith has quit [Remote host closed the connection]
<ruby774> https://gist.github.com/Hard-system/d804c475568f8dc9e1f5818d6bbc1d6b The idea is the OVERWRITE button has to read txt from wiki.txt and write it in wiki2txt file So whatever was in wiki2.txt will be replaced with the text from wiki.txt
msmith has joined #ruby
inra has joined #ruby
Rutix`away is now known as Rutix
ecuanaso has joined #ruby
ginetom_ has quit [Quit: ginetom_]
cdg has quit [Ping timeout: 256 seconds]
cdg_ has quit [Remote host closed the connection]
varesa has joined #ruby
varesa has quit [Max SendQ exceeded]
nahra has joined #ruby
tildes has joined #ruby
msmith has quit [Ping timeout: 255 seconds]
Rutix has quit []
whathappwns has quit [Quit: Connection closed for inactivity]
gnufied has quit [Quit: Leaving]
gnufied has joined #ruby
brainslug has quit [*.net *.split]
bkxd has joined #ruby
youch has quit [Ping timeout: 252 seconds]
duderonomy has quit [Ping timeout: 259 seconds]
kies has quit [Ping timeout: 256 seconds]
brainslug has joined #ruby
lenwood has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 252 seconds]
msmith has joined #ruby
Mumm-ra has quit [Remote host closed the connection]
lenwood has joined #ruby
GBrawl has joined #ruby
jhack has joined #ruby
markholmes has joined #ruby
Rutix has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
jhack_ has joined #ruby
JoshS has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
anisha_ has joined #ruby
ltem has quit [Ping timeout: 256 seconds]
karapetyan has quit [Remote host closed the connection]
jhack has quit [Ping timeout: 264 seconds]
jhack_ is now known as jhack
karapetyan has joined #ruby
jhack has quit [Quit: jhack]
jhack has joined #ruby
<ruby774> https://gist.github.com/Hard-system/d804c475568f8dc9e1f5818d6bbc1d6b The idea is the OVERWRITE button has to read txt from wiki.txt and write it in wiki2txt file So whatever was in wiki2.txt will be replaced with the text from wiki.txt
<ruby774> Help
jhack has quit [Quit: jhack]
gusrub has joined #ruby
jhack has joined #ruby
enterprisey has quit [Remote host closed the connection]
lenwood has quit [Ping timeout: 255 seconds]
kies has joined #ruby
varesa has joined #ruby
varesa has quit [Max SendQ exceeded]
jhack has quit [Client Quit]
varesa has joined #ruby
varesa has quit [Max SendQ exceeded]
psychicist__ has joined #ruby
karapetyan has quit [Remote host closed the connection]
gusrub has quit [Ping timeout: 255 seconds]
<nullsign> is there a easy way in ruby - with grep or via a gem to remove any line that isn't a valid IPv4 address?
<nullsign> ah.. ipaddress gem..
sanguisdex has joined #ruby
jhack has joined #ruby
<sanguisdex> so I have been looking around and I cant find any way to use a rake task to export an environmental variable. Is this true or am I missing somthing.
lenwood has joined #ruby
karapetyan has joined #ruby
pudovka has joined #ruby
pudovka has left #ruby [#ruby]
duderonomy has joined #ruby
<havenwood> sanguisdex: Keep in mind you can only export environment variable for yourself or your children, never your parent process.
Derperperd has quit [Ping timeout: 264 seconds]
brendan- has quit [Read error: Connection reset by peer]
youch has joined #ruby
psychicist__ has quit [Quit: Lost terminal]
brendan- has joined #ruby
sepp2k has joined #ruby
Cohedrin_ has joined #ruby
Cohedrin_ has quit [Client Quit]
Cohedrin_ has joined #ruby
nankyokusei has quit [Remote host closed the connection]
bocaneri has quit [Remote host closed the connection]
nankyokusei has joined #ruby
bocaneri has joined #ruby
enterprisey has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
inra has quit [Quit: Leaving]
lenwood has quit [Ping timeout: 258 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
nankyoku_ has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
simmib has joined #ruby
ur5us has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
Jayson_Virissimo has joined #ruby
simmib has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
<nullsign> someone mind telling me where i've gone off the rails at the bottom with the true or false part?
<nullsign> im using ipaddress to test to test if a ip is true or false, that works fine, i just need a working if/else based on if it is true or false.
gnufied has quit [Ping timeout: 255 seconds]
nobitanobi has joined #ruby
ramfjord has joined #ruby
<sanguisdex> havenwood: so should I use a multitask or create a method that gets extended for each task (sorry operations person here)
[Butch]_ has joined #ruby
CloCkWeRX has joined #ruby
<Jayson_Virissimo> nullsign: if true will always execute.
gusrub has joined #ruby
<nullsign> where am i going wrong then?
<nullsign> do i even need that def line?
<nullsign> should i remove it and go with if value="true" ?
bkxd has quit [Ping timeout: 255 seconds]
<Jayson_Virissimo> if i.is_ip? then puts "TRUE" else puts "FALSE" end
[Butch] has quit [Ping timeout: 255 seconds]
[Butch]_ is now known as [Butch]
<nullsign> oh
<nullsign> ... that works
<nullsign> thank you
gloscombe_ has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
<Jayson_Virissimo> No need for that method declaration at all.
<Jayson_Virissimo> Just do that inside the for loop.
nankyoku_ has quit [Remote host closed the connection]
nankyokusei has joined #ruby
<nullsign> ruby seems to natively work with true/false then
<Jayson_Virissimo> The for loop and that one-line if-then-else aren't idiomatic Ruby though, just FYI.
<nullsign> thats pretty cool
<nullsign> nowhere in that am i defining that i'm sending it true/false
<nullsign> yet it interprets it correctly
<nullsign> neat.
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nullsign> ive spent too long in bash
milardovich has quit [Remote host closed the connection]
<Jayson_Virissimo> If you are impressed by that, you are really gonna love Ruby.
gusrub has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 276 seconds]
<Jayson_Virissimo> That is just the tip of the iceberg.
<sanguisdex> how do I reuse a Rake task as a prerequisite for other rake tasks?
rikai has joined #ruby
brendan- has quit [Read error: Connection reset by peer]
gusrub has joined #ruby
gusrub has quit [Remote host closed the connection]
<Jayson_Virissimo> sanguisdex: you mean how do you call a rake task from within a rake task?
gusrub has joined #ruby
wilbert has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.5]
<ytti_> puts puts i.is_ip? ? "TRUE" : "FALSE"
lenwood has joined #ruby
<nullsign> neat.. this can combined down to "IPADDR = CSV.read(file, :headers=>true)['IP Address']"
<Jayson_Virissimo> ytti_: puts i.is_ip?.to_s.upcase
<nullsign> CSV method.. so good
InsaneSplash has joined #ruby
Jackneill has joined #ruby
Qommand0r has joined #ruby
<Jayson_Virissimo> sanguisdex: You can do something like Rake::Task['other:task'].execute from within a rake task.
Qommand0r has quit [Client Quit]
UnknownSoldier has joined #ruby
Burgestrand has joined #ruby
<baweaver> antoniobeyah: you have to be auth'd to nickserv
kobain has joined #ruby
__Yiota has joined #ruby
gnufied has joined #ruby
SCHAAP137 has quit [Read error: Connection reset by peer]
Burgestrand has quit [Client Quit]
<sanguisdex> Jayson_Virissimo: I have a series of Rake tasks that interact with EC2. each task with need to start with pinging the aws api to get security group and subnet id's. How do I create a method in my Rakefile that is reused at the beginning of every ec2 Rake task?
SCHAAP137 has joined #ruby
Qommand0r has joined #ruby
gnufied__ has joined #ruby
<sanguisdex> is this crazy talk?
<elomatreb> A Rakefile is jjust regular Ruby code, you can just define the method and call it?
harai_ has quit [Ping timeout: 255 seconds]
<ruby774> https://gist.github.com/Hard-system/d804c475568f8dc9e1f5818d6bbc1d6b The idea is the OVERWRITE button has to read txt from wiki.txt and write it in wiki2txt file So whatever was in wiki2.txt will be replaced with the text from wiki
<ruby774> Can you help me with Overwrite button
ur5us has quit [Remote host closed the connection]
<TomyLobo> i want to install the pcaprub on cygwin as a dependency for another gem, packetfu. it's a hard dependency, but it's (i think) not required for what i want to do with packetfu
<TomyLobo> the problem is, cygwin has no libpcap, so the native parts of pcaprub fail to build. is there a way to skip the native extension build?
ifctj has joined #ruby
synthroid has quit [Remote host closed the connection]
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
grh has joined #ruby
cdg has joined #ruby
Renich has quit [Quit: leaving]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest95086 is now known as adam12
synthroid has joined #ruby
theta8 has joined #ruby
Derperperd has joined #ruby
ruby774 has quit [Ping timeout: 260 seconds]
<nullsign> hrm.. suggestion? IPADDR = CSV.read(FILE, :headers=>true)['IP Address'] <- this works great
<nullsign> tho i'd like to add in some safety by dying if the csv fails to have a column named that.
Burgestrand has joined #ruby
<theta8> I'm building an array of regex matches from a multiline string, each value is taken from the string via array = [string[/key: (.*)/,1], etc. ] however the resulting array of values is not being constructed properly - not sure why
kht has joined #ruby
JeanCarloMachado has quit [Ping timeout: 245 seconds]
markholmes has quit [Ping timeout: 256 seconds]
vuoto has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
<theta8> I'm getting only some of the matches, even though each item is there and they are out of order
jhack has quit [Quit: jhack]
wilbert has quit [Ping timeout: 240 seconds]
markholmes has joined #ruby
Bounga has joined #ruby
vuoto has quit [Remote host closed the connection]
byte512 has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
inra has joined #ruby
dn` has joined #ruby
Bounga has quit [Ping timeout: 252 seconds]
Burgestrand has quit [Quit: Good bye and have a nice day!]
jenrzzz has quit [Ping timeout: 255 seconds]
InsaneSplash2 has joined #ruby
GBrawl has quit [Quit: (null)]
nankyokusei has quit [Remote host closed the connection]
dopamean_ has joined #ruby
InsaneSplash has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
Fernando-Basso has joined #ruby
InsaneSplash2 is now known as InsaneSplash
dopamean_ has quit [Client Quit]
nankyokusei has joined #ruby
millerti has joined #ruby
nobitanobi has joined #ruby
wilbert has joined #ruby
kht has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
millerti has quit [Client Quit]
jenrzzz has joined #ruby
nowhereman has joined #ruby
ldnunes has quit [Quit: Leaving]
millerti has joined #ruby
millerti has quit [Client Quit]
brendan- has joined #ruby
cdg has joined #ruby
bkxd has joined #ruby
bjh13 has quit [Remote host closed the connection]
theta8 has quit [Quit: leaving]
jhack has joined #ruby
brendan- has quit [Read error: Connection reset by peer]
mrVandermare has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
nankyoku_ has joined #ruby
OTORelic has quit [Ping timeout: 260 seconds]
harai_ has joined #ruby
nankyoku_ has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
nankyoku_ has joined #ruby
cdg has joined #ruby
quick has joined #ruby
cdg_ has joined #ruby
brendan- has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
cdg has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Quit: Leaving.]
bkxd has joined #ruby
Jayson_Virissimo has quit []
cdg has joined #ruby
aef has quit [Remote host closed the connection]
jetpack_joe has joined #ruby
sanguisdex has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
pawnbox_ has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
wilbert has quit [Ping timeout: 245 seconds]
cdg_ has quit [Ping timeout: 260 seconds]
nankyoku_ has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 248 seconds]
youch has quit [Ping timeout: 248 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nobitanobi has quit [Remote host closed the connection]
cdg_ has joined #ruby
brendan- has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
nobitanobi has joined #ruby
sanguisdex has joined #ruby
youch has joined #ruby
Burgestrand has joined #ruby
sanguisdex has quit [Client Quit]
brendan- has joined #ruby
ltem has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
nobitanobi has quit [Remote host closed the connection]
jaruga_____ has quit [Quit: jaruga_____]
clauswitt has joined #ruby
lenwood has quit [Ping timeout: 260 seconds]
blackbombay has quit [Ping timeout: 255 seconds]
xzhao has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
nobitanobi has joined #ruby
nobitanobi has quit [Remote host closed the connection]
unreal_ has joined #ruby
blackbombay has joined #ruby
InsaneSplash has quit []
LiquidInsect has quit [Read error: Connection reset by peer]
unreal has quit [Ping timeout: 256 seconds]
inra has quit [Quit: Leaving]
quick has quit [Ping timeout: 248 seconds]
kies has quit [Ping timeout: 248 seconds]
nofxx has joined #ruby
karapetyan has quit [Remote host closed the connection]
m4rCsi_ has quit [Quit: No Ping reply in 180 seconds.]
ianmethyst has joined #ruby
m4rCsi has joined #ruby
karapetyan has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Bounga has joined #ruby
yqt has joined #ruby
unreal_ is now known as unreal
Bounga has quit [Ping timeout: 252 seconds]
_aeris_ has quit [Remote host closed the connection]
szulak has joined #ruby
tildes has quit [Ping timeout: 255 seconds]
enterprisey has joined #ruby
<patarr> Why dont any of the online Ruby IDE's let me require things? Are there any out there that allow me to?
_aeris_ has joined #ruby
cpt_yossarian has quit [Quit: And then he took off.]
UnknownSoldier has quit [Remote host closed the connection]
woodruffw has joined #ruby
sanguisdex has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tomphp has joined #ruby
sanguisdex has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
kies has joined #ruby
zeroDi has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
OTORelic has joined #ruby
Jovial has joined #ruby
Jovial has left #ruby [#ruby]
jenrzzz has joined #ruby
nofxx has quit [Ping timeout: 245 seconds]
varesa has joined #ruby
varesa has quit [Max SendQ exceeded]
jenrzzz has quit [Ping timeout: 240 seconds]
synthroid has quit []
grh has quit [Ping timeout: 260 seconds]
tomphp has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
guacamole has quit [Quit: leaving]
ramortegui has quit [Read error: Connection reset by peer]
Burgestrand has joined #ruby
ramortegui has joined #ruby
coredump has joined #ruby
<coredump> So, I started getting this weird warnings
<coredump> W, [2017-02-03T16:36:23.428802 #11557] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
<coredump> Any idea what causes this, or if there's way to silence them (they are not on stderr)
rikai has quit [Remote host closed the connection]
wilbert has joined #ruby
xen0fon has joined #ruby
tvw has joined #ruby
blackmesa has joined #ruby
guacamole has joined #ruby
hobodave has joined #ruby
msmith has quit []
jenrzzz has joined #ruby
tyang_ has quit [Read error: Connection reset by peer]
tomphp has quit [Ping timeout: 241 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
Phenix has joined #ruby
varesa has joined #ruby
Norm has quit [Quit: Norm]
clauswitt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
timmytodd has joined #ruby
jackjackdripper has joined #ruby
jhack has quit [Quit: jhack]
jhack has joined #ruby
<timmytodd> Hey, I'm a ruby beginner and have what is probably a really simple question. I'm trying to rescue an error in a begin/rescue structure but it isn't being rescued. Whenever I try to search for this it's about errors that don't inherit from StandardError but that is not my problem. I'm specifying the exact error type and it's still not being caught.
_djbkd has quit [Quit: My people need me...]
<SeepingN> some cut'n'paste is in order
Jackneill has quit [Remote host closed the connection]
gnufied has quit [Quit: Leaving]
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<timmytodd> begin
<timmytodd> other_object.create_stripe_subscription(customer, plan)
<timmytodd> rescue Stripe::StripeError => e
<timmytodd> Rails.logger.debug "Caught the error"
<timmytodd> end
<timmytodd> the error thrown is a Stripe::CardError which inherits from Stripe::Error
<timmytodd> but "Caught the error" is never logged and the rails controller catches the error and returns a 500 status code
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
<timmytodd> I'm not sure if it's some rails magic or if there are cases where the error won't bubble up to the top context
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
eindoofus has quit [Quit: This computer has gone to sleep]
kies has quit [Ping timeout: 255 seconds]
ianmethyst has quit [Quit: WeeChat 1.7]
Burgestrand has quit [Quit: Closing time!]
<patarr> How does ruby evaluate the following boolean expression: "unless a || b" does it do "(unless a) || b" or "unless (a || b)"?
simmib has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
markholmes has quit [Ping timeout: 248 seconds]
<Papierkorb> patarr: unless x == if !(x)
arvindsaik has quit [Ping timeout: 256 seconds]
<Papierkorb> patarr: && and || bind stronger than `unless` (or `if`), so if combined, `unless a || b` equals `unless (a || b)`
joneshf-laptop has quit [Remote host closed the connection]
arvindsaik has joined #ruby
fuzzyhorns has quit [Quit: Leaving.]
millerti has joined #ruby
<patarr> Thanks!
simmib has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
kurufu_ has quit [Quit: Page closed]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir is now known as SuperSabre
SuperSabre is now known as nadir
polishdub has quit [Quit: Leaving]
Burgestrand has joined #ruby
Derperperd has quit [Max SendQ exceeded]
Derperperd has joined #ruby
kies has joined #ruby
johnzorn has quit [Ping timeout: 255 seconds]
[Butch] has quit [Quit: I'm out . . .]
last_staff has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
johnzorn has joined #ruby
{Dolphin} has quit [Quit: Page closed]
toretore has quit [Ping timeout: 252 seconds]
karapetyan has quit [Ping timeout: 256 seconds]
xen0fon has quit [Remote host closed the connection]
Fernando-Basso has quit [Quit: WeeChat 1.7]
UnknownSoldier has joined #ruby
chouhoulis has quit []
ltem has quit [Quit: Leaving]
tercenya has quit [Remote host closed the connection]
djbkd has joined #ruby
cdg has joined #ruby
tercenya has joined #ruby
markholmes has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
cdg_ has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
cahoots has joined #ruby
szulak has joined #ruby
<cahoots> hi, i'm trying to write out a gzipped string to a file. currently, i'm doing `File.open('asdf.gz', 'w') {|f| gz = Zlib::GzipWriter.new(f, 9) ; gz.write 'jugemu jugemu gokou no surikire...' ; gz.close }`, but i find that the end result has the same text as what i entered. any ideas?
yqt has quit [Ping timeout: 260 seconds]
nobitanobi has quit [Ping timeout: 258 seconds]
last_staff has quit [Quit: last_staff]
cdg_ has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
<matthewd> cahoots: I just copy & pasted the above into irb and it wrote a rather compressed-looking file
brent__ has quit [Ping timeout: 240 seconds]
<cahoots> matthewd, hrm that's odd
<cahoots> but i fixed it anyways by just using command-line gzip. thanks though!
Yxhuvud has quit [Remote host closed the connection]
Technaton has quit [Ping timeout: 256 seconds]
Yxhuvud has joined #ruby
pawnbox has joined #ruby
Guest71019 is now known as Radar
Radar has quit [Changing host]
Radar has joined #ruby
tomphp has joined #ruby
youch has quit [Quit: WeeChat 1.7]
Technaton has joined #ruby
hobodave has quit [Ping timeout: 260 seconds]
alamar has quit [Ping timeout: 252 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
markholmes has quit [Read error: Connection reset by peer]
chouhoulis has quit []
timmytodd has quit [Quit: Leaving]
alamar has joined #ruby
jhack has quit [Quit: jhack]
alamar is now known as Guest79130
chouhoulis has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
jhack has joined #ruby
wilbert has quit [Ping timeout: 258 seconds]
cdg has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
rikai has joined #ruby
jaegerca has joined #ruby
<jaegerca> Can anyone convince me that implementing a singleton class is better than just using a module?
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
cdg_ has quit [Ping timeout: 260 seconds]
<jaegerca> The only reason I can see using a singleton class is because you wouldn't want to extend or include it in another class/module.
madsa has quit [Read error: Connection reset by peer]
cdg_ has joined #ruby
<jaegerca> But that argument doesn't apply at all to modules creating a namespace - so it's not really an argument so far as I can tell.
<havenwood> jaegerca: It's also often the case that if you have state to instantiate but only one instance of that state then you're also likely to want to be able to serialize that state.
balazs has quit [Ping timeout: 260 seconds]
<jaegerca> havenwood: I am not sure what you mean by serialize in this context.
<havenwood> jaegerca: Singleton also provides Marshal dump and load helpers.
<havenwood> jaegerca: If you have nothing to instantiate, a module. If you have only one instance, a Singleton Class. If you have many instances, a Class.
cdg has quit [Ping timeout: 264 seconds]
<jaegerca> havenwood: I understand - I can get on board with that, thank you.
_sfiguser has joined #ruby
<havenwood> jaegerca: No prob. But yeah, you can do one or many instances with a module yourself, but it's nice to use the singleton class or class as provided.
<havenwood> jaegerca: It signals to the reader what exactly you have. It keeps you from having to write your own instance-handling methods.
Burgestrand has quit [Quit: Closing time!]
<jaegerca> havenwood: That makes perfect sense.
chouhoul_ has joined #ruby
harai_ has quit [Ping timeout: 255 seconds]
saneax-_-|AFK is now known as saneax
pawnbox has joined #ruby
saslam has quit [Ping timeout: 248 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoul_ has quit [Ping timeout: 248 seconds]
<chrisseaton> How do I find out if a class is a subclass of some other class, possibly transitively via other subclasses in between?
<chrisseaton> I can't find a method but maybe I'm not searching with a sensible name
<havenwood> chrisseaton: Like?: Fixnum < Numeric
<chrisseaton> Yeah, I want to do Fixnum.subclass_of?(Numeric)
pawnbox has quit [Ping timeout: 252 seconds]
<manveru> >> Fixnum.ancestors.include?(Numeric)
<ruby[bot]> manveru: # => true (https://eval.in/730092)
<Papierkorb> chrisseaton: TheClass.ancestors.include?(..) or an_instance.is_a?(Superclass)
<chrisseaton> ancestors! that's it, thanks
<chrisseaton> Didn't think to search for that name
BackEndCoder has quit [Excess Flood]
<Papierkorb> chrisseaton: fyi, ancestors also includes included modules
<havenwood> Rails has #descendants as well for the inverse, but not Ruby.
<matthewd> >> Fixnum <= Numeric
<ruby[bot]> matthewd: # => true (https://eval.in/730093)
BackEndCoder has joined #ruby
lenwood has joined #ruby
<havenwood> >> [Fixnum < Fixnum, Fixnum <= Fixnum]
<ruby[bot]> havenwood: # => [false, true] (https://eval.in/730094)
kht has joined #ruby
<chrisseaton> I was looking in Class as well, rather than in Module
jackjackdripper has joined #ruby
cibs has quit [Ping timeout: 256 seconds]
cschneid_ has quit [Remote host closed the connection]
cibs has joined #ruby
harai_ has joined #ruby
Burgestrand has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
sanguisdex has joined #ruby