havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.3; 2.2.6; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
symm- has joined #ruby
nankyokusei has joined #ruby
<tdump> Hello. I'm having an issue with my code and I'm not sure why. I actually had it working earlier but it had some nested if/else and I thought it looked bad so I redid it, and now it's failing. Here's a gist https://git.io/v1zbK
jhack has joined #ruby
tectonic has joined #ruby
rakm has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
bougyman has quit [Ping timeout: 248 seconds]
bturker has quit [Ping timeout: 256 seconds]
<tdump> oh i got it
<tdump> it was line 15
<tdump> thanks!
tdump has quit [Quit: Leaving...]
charliesome has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
tectonic has quit []
hutch34 has quit [Ping timeout: 246 seconds]
chrisja has quit [Quit: leaving]
s1kx has joined #ruby
benlieb has quit [Quit: benlieb]
Yacker_ has joined #ruby
Yacker has quit [Ping timeout: 260 seconds]
NeverTired has joined #ruby
OTORelic has joined #ruby
smlocal has joined #ruby
Snickers has quit [Quit: Snickers]
h1fuelcell has joined #ruby
allcentury has joined #ruby
DarthGandalf has quit [Ping timeout: 245 seconds]
borei has quit [Ping timeout: 260 seconds]
kareelee has quit [Ping timeout: 265 seconds]
zeroDi has joined #ruby
skalfyfan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skalfyfan has joined #ruby
jackjackdripper1 has joined #ruby
skalfyfan has quit [Read error: Connection reset by peer]
AndBobsYourUncle has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Ping timeout: 250 seconds]
cpruitt has quit [Quit: cpruitt]
kareelee has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.6]
AndBobsYourUncle has quit [Ping timeout: 258 seconds]
JeanCarloMachado has quit [Ping timeout: 245 seconds]
rwb has joined #ruby
Yacker_ has quit [Quit: Textual IRC Client: www.textualapp.com]
kareelee has quit [Ping timeout: 250 seconds]
allcentury has quit [Ping timeout: 246 seconds]
kareelee has joined #ruby
reverberations has joined #ruby
reverberations has quit [Max SendQ exceeded]
marr has quit [Ping timeout: 250 seconds]
JeanCarloMachado has joined #ruby
tax has joined #ruby
kareelee has quit [Ping timeout: 248 seconds]
gnufied has quit [Quit: Leaving]
gusrub has quit [Remote host closed the connection]
vikaton has joined #ruby
Derderderd has quit [Ping timeout: 260 seconds]
sepp2k has quit [Quit: Leaving.]
gusrub has joined #ruby
dnicole has joined #ruby
AndBobsYourUncle has joined #ruby
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
AndBobsY_ has joined #ruby
alexar has quit [Remote host closed the connection]
frozengeek____ has quit [Quit: frozengeek____]
alexar has joined #ruby
Miron has quit [Ping timeout: 246 seconds]
cdg_ has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
AndBobsY_ has quit [Remote host closed the connection]
dnicole has quit [Ping timeout: 258 seconds]
AndBobsY_ has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 245 seconds]
AndBobsY_ has quit [Read error: Connection reset by peer]
AndBobsYourUncle has joined #ruby
tax has quit [Ping timeout: 256 seconds]
TheMainFrame has quit [Ping timeout: 244 seconds]
Derderderd has joined #ruby
alexar has quit [Ping timeout: 258 seconds]
multivac[m] has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 245 seconds]
sparch has joined #ruby
sparch has quit [Changing host]
sparch has joined #ruby
kareelee has joined #ruby
ascarter has joined #ruby
alexar has joined #ruby
kareelee has quit [Ping timeout: 244 seconds]
CloCkWeRX has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
icey has quit [Remote host closed the connection]
chouhoulis has joined #ruby
marxarelli is now known as marxarelli|afk
alexar has quit [Ping timeout: 256 seconds]
tdy has quit [Ping timeout: 265 seconds]
icey has joined #ruby
icey has quit [Changing host]
icey has joined #ruby
alexar has joined #ruby
Technaton has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
zeroDi has quit [Quit: WeeChat 1.6]
roshanavand has quit [Ping timeout: 245 seconds]
TheMainFrame has joined #ruby
nettoweb has quit [Ping timeout: 250 seconds]
alexar has quit [Ping timeout: 260 seconds]
kareelee has joined #ruby
hutch34 has joined #ruby
barspi has joined #ruby
barspi has left #ruby [#ruby]
millerti has joined #ruby
smlocal has quit [Remote host closed the connection]
Eiam has joined #ruby
kareelee has quit [Ping timeout: 260 seconds]
alexar has joined #ruby
unreal has joined #ruby
gusrub has joined #ruby
gusrub has quit [Remote host closed the connection]
benlieb has joined #ruby
benlieb has quit [Client Quit]
alexar has quit [Ping timeout: 250 seconds]
kareelee has joined #ruby
kareelee has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
kareelee has joined #ruby
alexar has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
adavia has joined #ruby
brendan- has joined #ruby
arescorpio has joined #ruby
AndBobsYourUncle has quit [Read error: Connection reset by peer]
AndBobsYourUncle has joined #ruby
jtdoncas_ has joined #ruby
alexar has quit [Ping timeout: 258 seconds]
emptyflask has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
jtdoncas_ has quit [Ping timeout: 244 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
AndBobsYourUncle has quit [Ping timeout: 245 seconds]
jhack has quit [Quit: jhack]
emptyflask has quit [Ping timeout: 248 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
AndBobsYourUncle has joined #ruby
alexar has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
SeepingN has quit [Ping timeout: 265 seconds]
dnicole has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 245 seconds]
Derderderd has quit [Ping timeout: 245 seconds]
Axy has joined #ruby
alexar has quit [Ping timeout: 256 seconds]
Axy has quit [Changing host]
Axy has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexar has joined #ruby
dnicole has quit [Ping timeout: 258 seconds]
Mia has quit [Ping timeout: 258 seconds]
sneakers has quit [Ping timeout: 268 seconds]
blackwind_123 has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
AndBobsYourUncle has joined #ruby
nankyokusei has joined #ruby
Axy has quit [Ping timeout: 265 seconds]
ramfjord_ has joined #ruby
alexar has quit [Ping timeout: 244 seconds]
bturker has joined #ruby
jenrzzz has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
kareelee has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
dcluna has quit [Quit: ZNC 1.7.x-git-705-2e6c8d9 - http://znc.in]
alexar has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
AndBobsYourUncle has quit [Ping timeout: 258 seconds]
AndBobsY_ has joined #ruby
benlieb has joined #ruby
ropeney has joined #ruby
railssmith has quit [Ping timeout: 245 seconds]
AndBobsYourUncle has joined #ruby
enterprisey has joined #ruby
fmcgeough has joined #ruby
alexar has quit [Ping timeout: 248 seconds]
AndBobsY_ has quit [Ping timeout: 258 seconds]
f4 has joined #ruby
dcluna has joined #ruby
ramfjord_ has quit [Ping timeout: 250 seconds]
beilabs_ has quit [Ping timeout: 260 seconds]
r3vDev has joined #ruby
beilabs has joined #ruby
alexar has joined #ruby
AndBobsY_ has joined #ruby
h1fuelcell has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 258 seconds]
tectonic has joined #ruby
alexar has quit [Ping timeout: 268 seconds]
AndBobsY_ has quit [Ping timeout: 250 seconds]
h1fuelcell has quit [Ping timeout: 260 seconds]
Derderderd has joined #ruby
AndBobsYourUncle has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
alexar has joined #ruby
h1fuelcell has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
Derderderd has quit [Ping timeout: 258 seconds]
amclain has quit [Quit: Leaving]
_sfiguser has quit [Quit: Leaving]
fmcgeough has quit [Quit: fmcgeough]
AndBobsYourUncle has joined #ruby
alexar has quit [Ping timeout: 268 seconds]
h1fuelcell has quit [Ping timeout: 260 seconds]
Derderderd has joined #ruby
iMadper has quit [Remote host closed the connection]
alexar has joined #ruby
Derderderd has quit [Ping timeout: 265 seconds]
tomlynn[m] has joined #ruby
antoniobeyah has joined #ruby
alexar has quit [Ping timeout: 260 seconds]
Definity2 has quit [Ping timeout: 248 seconds]
alexar has joined #ruby
mwlang has quit [Quit: mwlang]
jaguarmagenta has joined #ruby
x0f has quit [Ping timeout: 250 seconds]
x0f has joined #ruby
jeyraof has joined #ruby
tectonic has quit []
alexar has quit [Ping timeout: 260 seconds]
dnicole has joined #ruby
aryaching_ has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
helpiampanicking has joined #ruby
alexar has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
helpiampanicking is now known as new_to_ruby
dnicole has quit [Ping timeout: 245 seconds]
<new_to_ruby> hello
<new_to_ruby> I have a question about ruby code
emptyflask has joined #ruby
<new_to_ruby> I am trying to convert float to integer
<new_to_ruby> and at the same time multiply it by 100
<new_to_ruby> all in one statement
<new_to_ruby> but it is not working
pilne has quit [Quit: Quitting!]
optiz0r has quit [Ping timeout: 248 seconds]
jhack has joined #ruby
<new_to_ruby> any advice anyone?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhack has quit [Client Quit]
alexar has quit [Ping timeout: 260 seconds]
jhack has joined #ruby
JeanCarloMachado has quit [Ping timeout: 250 seconds]
dcluna has quit [Quit: ZNC 1.7.x-git-705-2e6c8d9 - http://znc.in]
libastral has quit [Ping timeout: 245 seconds]
<ineb> new_to_ruby: (5.0).to_i * 100
Wizznt has joined #ruby
<ineb> maybe you want rounding, then do (5.9).round to get the nearest int
<new_to_ruby> @ineb thanks
<new_to_ruby> @ineb no need for rounding, just conversion of price to cent and then to integer for stripe payment
libastral has joined #ruby
dcluna has joined #ruby
Rodya_ has joined #ruby
dcluna has quit [Client Quit]
<ineb> new_to_ruby: (price * 100).to_i then
dcluna has joined #ruby
kareelee has joined #ruby
Wizznt has quit [Client Quit]
<new_to_ruby> @ineb any advice for resource to learn the small details of ruby like this?
alexar has joined #ruby
skweek has joined #ruby
dcluna has quit [Client Quit]
dcluna has joined #ruby
dcluna has quit [Client Quit]
teotwaki has quit [Ping timeout: 245 seconds]
devster31 has quit [Ping timeout: 245 seconds]
dcluna has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
djbkd has joined #ruby
alexandernst has quit [Ping timeout: 245 seconds]
herbmillerjr has quit [Quit: Konversation terminated!]
devster31 has joined #ruby
saltsa has quit [Ping timeout: 260 seconds]
alexar has quit [Ping timeout: 260 seconds]
saltsa has joined #ruby
alexandernst has joined #ruby
alexandernst has joined #ruby
alexandernst has quit [Changing host]
teotwaki has joined #ruby
alexar has joined #ruby
Jameser has joined #ruby
chouhoul_ has joined #ruby
AndBobsYourUncle has quit []
railssmith has joined #ruby
beilabs has quit [Remote host closed the connection]
astrobunny has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
alexar has quit [Ping timeout: 260 seconds]
redpants has quit [Quit: Lost terminal]
skweek has quit [Ping timeout: 260 seconds]
jackjackdripper1 has quit [Quit: Leaving.]
chouhoulis has quit [Ping timeout: 260 seconds]
dviola has quit [Quit: WeeChat 1.6]
arescorpio has quit [Ping timeout: 256 seconds]
optiz0r has joined #ruby
jtdoncas has quit [Ping timeout: 268 seconds]
skweek has joined #ruby
davidt has quit []
alexar has joined #ruby
h1fuelcell has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
new_to_ruby has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gusrub has joined #ruby
enterprisey has quit [Remote host closed the connection]
x77686d has joined #ruby
x77686d has quit [Client Quit]
yeticry has quit [Ping timeout: 250 seconds]
beilabs has joined #ruby
s2013 has joined #ruby
alexar has quit [Ping timeout: 258 seconds]
riskish has joined #ruby
h1fuelcell has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
alexar has joined #ruby
eggshke has joined #ruby
enterprisey has joined #ruby
charliesome has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
cdg has joined #ruby
chouhoulis has joined #ruby
alexar has quit [Ping timeout: 244 seconds]
kareelee has quit [Ping timeout: 260 seconds]
harai has quit [Ping timeout: 250 seconds]
h1fuelcell has joined #ruby
GodFather has quit [Ping timeout: 268 seconds]
hanmac has quit [Ping timeout: 258 seconds]
dcluna has quit [Read error: No route to host]
alexar has joined #ruby
h1fuelcell has quit [Ping timeout: 260 seconds]
skweek has quit [Ping timeout: 260 seconds]
gusrub has quit [Remote host closed the connection]
Devalo has joined #ruby
jhack has quit [Quit: jhack]
alexar has quit [Ping timeout: 250 seconds]
Channel6 has joined #ruby
harai has joined #ruby
Devalo has quit [Ping timeout: 246 seconds]
kareelee has joined #ruby
alexar has joined #ruby
chouhoulis has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 250 seconds]
hanmac has joined #ruby
kareelee has quit [Ping timeout: 246 seconds]
yeticry has joined #ruby
alexar has quit [Ping timeout: 248 seconds]
jeffaustin81 has joined #ruby
nankyokusei has joined #ruby
Rodya_ has joined #ruby
bturker has joined #ruby
jtdoncas_ has joined #ruby
tercenya has quit [Read error: Connection reset by peer]
harai has quit [Ping timeout: 260 seconds]
tercenya has joined #ruby
jhack has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
gix has quit [Ping timeout: 246 seconds]
enterprisey has quit [Remote host closed the connection]
alexar has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
solocshaw has joined #ruby
gix has joined #ruby
jackjackdripper has joined #ruby
alexar has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
kareelee has joined #ruby
jhack has quit [Quit: jhack]
ropeney has quit [Ping timeout: 258 seconds]
solocshaw has quit [Ping timeout: 260 seconds]
montanonic has joined #ruby
alexar has joined #ruby
r3vDev has quit [Ping timeout: 248 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kareelee has quit [Ping timeout: 250 seconds]
rikai_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
rikai has joined #ruby
alexar has quit [Ping timeout: 250 seconds]
gusrub has joined #ruby
jeffaustin81 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
kareelee has joined #ruby
alexar has joined #ruby
kareelee has quit [Ping timeout: 244 seconds]
x77686d has joined #ruby
alexar has quit [Ping timeout: 260 seconds]
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
new_to_ruby has joined #ruby
TeaVirus has joined #ruby
<new_to_ruby> hello
jeffaustin81 has joined #ruby
<new_to_ruby> I am having trouble getting rails to run basic auth
<new_to_ruby> the following method fails: http_basic_authenticate_with name: "dhh", password: "secret", except: :index
<new_to_ruby> with undefined method `http_basic_authenticate_with' fo
<new_to_ruby> I am on rails 5
Derderderd has joined #ruby
<new_to_ruby> httpauth is included in rails 5
<new_to_ruby> nvm I fixed it
<new_to_ruby> it seems that the method cannot be called from within another protected method
aryaching has quit [Ping timeout: 250 seconds]
alexar has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
splud has quit [Quit: splud]
Derderderd has quit [Ping timeout: 256 seconds]
mim1k|work has quit [Ping timeout: 248 seconds]
kareelee has joined #ruby
<antoniobeyah> new_to_ruby: in regards to your previous questions about how to learn, checkout http://ruby-doc.com/docs/ProgrammingRuby/
<antoniobeyah> its a little dated but it has some good stuff in it
alexar has quit [Ping timeout: 248 seconds]
Channel6 has quit [Quit: Leaving]
<new_to_ruby> @antoniobeyah
ropeney has joined #ruby
x77686d has quit [Quit: x77686d]
mim1k|work has joined #ruby
new_to_ruby has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
alexar has joined #ruby
danst has quit [Ping timeout: 268 seconds]
redpants has joined #ruby
r3vDev has joined #ruby
alexar has quit [Ping timeout: 260 seconds]
XV8 has joined #ruby
jackjackdripper has joined #ruby
dnicole has joined #ruby
enterprisey has joined #ruby
dnicole has quit [Ping timeout: 245 seconds]
etehtsea has joined #ruby
giraffe has joined #ruby
giraffe has quit [Changing host]
giraffe has joined #ruby
OTORelic has quit [Ping timeout: 250 seconds]
alexar has joined #ruby
JoshS has joined #ruby
pawnbox has joined #ruby
weaksauce has quit [Ping timeout: 258 seconds]
jackjackdripper has quit [Quit: Leaving.]
jeffaustin81 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Puffball_ has joined #ruby
alexar has quit [Ping timeout: 246 seconds]
kareelee has quit [Remote host closed the connection]
kareelee has joined #ruby
Puffball_ has quit [Remote host closed the connection]
Puffball has quit [Remote host closed the connection]
jeffaustin81 has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
redpants has quit [Quit: leaving]
antoniobeyah has quit [Ping timeout: 250 seconds]
alexar has joined #ruby
aryaching has joined #ruby
adavia has quit [Ping timeout: 250 seconds]
antoniobeyah has joined #ruby
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
etehtsea has joined #ruby
alexar has quit [Ping timeout: 250 seconds]
Emmanuel_Chanel has joined #ruby
tdy has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
kareelee_ has joined #ruby
TeaVirus has quit [Remote host closed the connection]
alexar has joined #ruby
kareelee has quit [Ping timeout: 256 seconds]
tjbiddle has joined #ruby
Rodya_ has joined #ruby
threh has quit [Ping timeout: 248 seconds]
jackjackdripper has joined #ruby
Derderderd has joined #ruby
alexar has quit [Ping timeout: 260 seconds]
function has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
gusrub has quit [Remote host closed the connection]
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
lacour has quit [Ping timeout: 250 seconds]
alexar has joined #ruby
montanonic has quit [Ping timeout: 260 seconds]
alexar has quit [Ping timeout: 244 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
bronson has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
bronson has joined #ruby
alexar has joined #ruby
jtd has quit [Quit: No Ping reply in 180 seconds.]
jtd has joined #ruby
sdothum has quit [Client Quit]
alexar has quit [Ping timeout: 245 seconds]
jackjackdripper has quit [Quit: Leaving.]
dbruns has left #ruby [#ruby]
dnicole has joined #ruby
h1fuelcell has joined #ruby
alexar has joined #ruby
xall has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
tau has quit [Remote host closed the connection]
etehtsea has quit [Ping timeout: 268 seconds]
dnicole has quit [Ping timeout: 245 seconds]
antoniobeyah has joined #ruby
alexar has quit [Ping timeout: 258 seconds]
nankyokusei has joined #ruby
bturker has joined #ruby
etehtsea has joined #ruby
xberg_ has joined #ruby
grh has joined #ruby
r3vDev has quit [Quit: Leaving.]
nankyokusei has quit [Ping timeout: 256 seconds]
r3vDev has joined #ruby
FastJack has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
alexar has joined #ruby
bronson has quit [Read error: Connection reset by peer]
bronson has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 256 seconds]
alexar has quit [Ping timeout: 260 seconds]
Emmanuel_Chanel has joined #ruby
djbkd has quit [Quit: My people need me...]
alexar has joined #ruby
bronson has quit [Read error: Connection reset by peer]
bronson has joined #ruby
Jameser has quit [Ping timeout: 248 seconds]
alexar has quit [Ping timeout: 245 seconds]
enterprisey has quit [Ping timeout: 258 seconds]
Jameser has joined #ruby
djbkd has joined #ruby
Ademan has quit [Quit: leaving]
bocaneri has joined #ruby
eggshke has quit []
aryaching has quit [Ping timeout: 246 seconds]
eggshke has joined #ruby
Devalo has joined #ruby
Macaveli has joined #ruby
enterprisey has joined #ruby
alexar has joined #ruby
P_R_Deltoid has joined #ruby
xall has quit [Ping timeout: 245 seconds]
grh has quit [Ping timeout: 256 seconds]
Dimik has quit [Ping timeout: 260 seconds]
sarbs has quit [Ping timeout: 260 seconds]
alexar has quit [Ping timeout: 265 seconds]
antoniobeyah has quit [Quit: antoniobeyah]
<P_R_Deltoid> Is String interpolation allowed in Exception messages?
<P_R_Deltoid> Like "raise "#{variable}""
<P_R_Deltoid> Because I am trying to use rspec to test for an exception error message and it seems to be returning the literal string without interpolation
alexar has joined #ruby
sarbs has joined #ruby
howdoi has joined #ruby
djbkd has quit [Quit: My people need me...]
cibs has quit [Ping timeout: 268 seconds]
alexar has quit [Ping timeout: 256 seconds]
kareelee_ has quit [Ping timeout: 256 seconds]
cibs has joined #ruby
<tjbiddle> P_R_Deltoid: You’re using double quotes, as well as ensuring that the variable is intantiated and spelled correctly?
tomlynn[m] has left #ruby ["User left"]
<tjbiddle> I’m unsure if variable scope is lost, so check that as well - or if it was instantiated before the exception was raised
<P_R_Deltoid> yeah, I think I don't really understand how raising exceptions works
<P_R_Deltoid> at least with rspec
<P_R_Deltoid> I can raise an exception without using the begin and rescue keywords, right?
Devalo has quit [Remote host closed the connection]
h1fuelcell has quit [Remote host closed the connection]
Devalo has joined #ruby
<al2o3-cr> P_R_Deltoid: yep
radic has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
alexar has joined #ruby
xrlk has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
Devalo has quit [Ping timeout: 256 seconds]
<P_R_Deltoid> Aww, I think this is just an rspec issue
antoniobeyah has joined #ruby
boombox_ has joined #ruby
alexar has quit [Ping timeout: 244 seconds]
astrobunny has quit [Remote host closed the connection]
<dminuoso> P_R_Deltoid: Raising has nothing to do with begin/rescue. All that the keyword rescue (it does not always require a "begin") does is set up a catch handler.
last_staff has joined #ruby
<P_R_Deltoid> Yeah, I was grasping at straws trying to figure it out
<dminuoso> P_R_Deltoid: For rspec that means that you have to use the block form of expect, i.e. expect { code_that_throws }.to raise_error - rspec will wrap the execution of the blocks inside a begin/rescue for you.
emptyflask has quit [Remote host closed the connection]
gusrub has joined #ruby
<P_R_Deltoid> oh!
h1fuelcell has joined #ruby
<P_R_Deltoid> That worked perfectly!
<dminuoso> P_R_Deltoid: :)
alexar has joined #ruby
danst has joined #ruby
<P_R_Deltoid> So am I correct in assuming that, because it was throwing an error in the code, and I wasn't using that form, it literally was just exiting the code with that error before Rspec could inspect it?
alfy has joined #ruby
<P_R_Deltoid> or, catch it
<dminuoso> P_R_Deltoid: Correct. :)
c355e3b has quit [Quit: Connection closed for inactivity]
<P_R_Deltoid> perfect, thank you so much
aryaching has joined #ruby
<alfy> wassup
boombox_ has quit [Remote host closed the connection]
<dminuoso> P_R_Deltoid: Note that expect { code_that_raises }.not_to raise_error is sometimes considered an antipattern, because whether rspec will catch it inside the expect block, or whether the test just fails with an exception is the same.
astrobunny has joined #ruby
<dminuoso> One just looks slighty better, but you expect any code you write inside an example block to not raise an error implicitly anyway.
alexar has quit [Ping timeout: 248 seconds]
h1fuelcell has quit [Remote host closed the connection]
JoshS has quit [Quit: Leaving]
<P_R_Deltoid> So you are saying don't use that pattern? Just test for certain errors if I need to, but otherwise assume that if a test succeeds, that it didn't throw an error?
<P_R_Deltoid> In other words, testing for the lack of an error is a fruitless exercise?
h1fuelcell has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
JoshS has joined #ruby
<dminuoso> P_R_Deltoid: Indeed.
<dminuoso> P_R_Deltoid: If some code raises an exception it will fail the rspec anyway, and rspec will still catch it - it will just present the error slightly differently.
alexar has joined #ruby
function has quit [Quit: /dev/null is full]
function has joined #ruby
function has quit [Client Quit]
troulouliou_div2 has joined #ruby
jgnagy has quit [Remote host closed the connection]
function has joined #ruby
function has quit [Client Quit]
jgnagy has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
constant has joined #ruby
constant has quit [Client Quit]
alexar has quit [Ping timeout: 268 seconds]
alexar has joined #ruby
emilkarl has joined #ruby
jgnagy has quit [Ping timeout: 268 seconds]
kareelee has joined #ruby
xall has joined #ruby
alexar_ has joined #ruby
alexar has quit [Read error: Connection reset by peer]
antoniobeyah has joined #ruby
gusrub has quit [Remote host closed the connection]
conta has joined #ruby
Salih has joined #ruby
Salih has quit [Changing host]
Salih has joined #ruby
djbkd has quit []
alexar_ has quit [Ping timeout: 260 seconds]
grh has joined #ruby
benlieb has quit [Quit: benlieb]
alexar has joined #ruby
benlieb has joined #ruby
xberg has joined #ruby
benlieb has quit [Client Quit]
benlieb has joined #ruby
benlieb has quit [Client Quit]
djbkd has joined #ruby
xberg_ has quit [Ping timeout: 258 seconds]
gusrub has joined #ruby
ekduhmanah is now known as ekem
alexar has quit [Ping timeout: 250 seconds]
djbkd has quit [Client Quit]
foooobear has joined #ruby
gusrub has quit [Ping timeout: 245 seconds]
pawnbox_ has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
h1fuelcell has quit [Remote host closed the connection]
alexar has joined #ruby
andikr has joined #ruby
aganov has joined #ruby
emilkarl has quit [Read error: Connection reset by peer]
emilkarl_ has joined #ruby
Jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
h1fuelcell has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
alexar has quit [Ping timeout: 256 seconds]
emilkarl_ has quit [Read error: Connection reset by peer]
emilkarl has joined #ruby
futilegames has joined #ruby
lxsameer has joined #ruby
alexar has joined #ruby
emilkarl has quit [Read error: Connection reset by peer]
MrBusiness2 has quit [Ping timeout: 258 seconds]
emilkarl has joined #ruby
MrBusiness2 has joined #ruby
Xiti has quit [Ping timeout: 265 seconds]
montanonic has joined #ruby
emilkarl has quit [Read error: Connection reset by peer]
alexar has quit [Ping timeout: 245 seconds]
futilegames has quit [Quit: futilegames]
jaguarmagenta has quit [Remote host closed the connection]
muelleme has quit [Ping timeout: 244 seconds]
emilkarl has joined #ruby
tjbiddle has joined #ruby
dionysus69 has joined #ruby
alexar has joined #ruby
TomyWork has joined #ruby
saneax-_-|AFK is now known as saneax
ta_ has joined #ruby
alexar has quit [Ping timeout: 245 seconds]
nankyokusei has joined #ruby
blaxter has joined #ruby
grh has quit [Ping timeout: 260 seconds]
bturker has joined #ruby
izaac_ has joined #ruby
alexar has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
r3vDev has quit [Ping timeout: 268 seconds]
tjbiddle has quit [Ping timeout: 245 seconds]
P_R_Deltoid has quit [Quit: Leaving]
nankyokusei has quit [Ping timeout: 268 seconds]
izaac has quit [Ping timeout: 268 seconds]
h1fuelcell has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
ta_ has quit [Remote host closed the connection]
biberu has joined #ruby
alfy has quit [Remote host closed the connection]
alexar has quit [Ping timeout: 256 seconds]
aeontech has quit [Quit: aeontech]
muelleme has joined #ruby
xall has quit [Read error: Connection reset by peer]
alexar has joined #ruby
A124 has quit [Quit: '']
pawnbox_ has quit [Remote host closed the connection]
grh has joined #ruby
aufi has joined #ruby
muelleme has quit [Ping timeout: 258 seconds]
A124 has joined #ruby
Suntzu has quit [Remote host closed the connection]
alexar has quit [Ping timeout: 260 seconds]
<jsaak> new_to_ruby: never store money amounts in floats, use integers instead (multiplied by 100)
SpiffTR has joined #ruby
xall has joined #ruby
maattdd has joined #ruby
claudiuinberlin has joined #ruby
Puffball has joined #ruby
<herwin> or create a money class that holds two fields: whole currency and cents
<herwin> that can also protect you from things like '5 money' * '2 money', which doesn't make sense
enterprisey has quit [Remote host closed the connection]
troulouliou_div2 has quit [Quit: Leaving]
alexar has joined #ruby
maattdd has quit [Ping timeout: 260 seconds]
symm- has quit [Ping timeout: 248 seconds]
alexar has quit [Ping timeout: 244 seconds]
h1fuelcell has quit [Remote host closed the connection]
pawnbox has joined #ruby
grh has quit [Ping timeout: 265 seconds]
matp_ has joined #ruby
Snickers has joined #ruby
matp has quit [Ping timeout: 250 seconds]
alexar has joined #ruby
r3vDev has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
etehtsea has quit [Ping timeout: 250 seconds]
jtdoncas_ has quit [Ping timeout: 244 seconds]
h1fuelcell has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Snickers has quit [Remote host closed the connection]
danst has quit [Ping timeout: 268 seconds]
cibs has joined #ruby
aurelien has joined #ruby
pawnbox has quit [Remote host closed the connection]
Burgestrand has joined #ruby
alexar has quit [Ping timeout: 265 seconds]
Humdai has joined #ruby
nofxxxx has joined #ruby
grh has joined #ruby
danst has joined #ruby
nofxxx has quit [Ping timeout: 265 seconds]
alexar has joined #ruby
mark_66 has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
aidalgol has joined #ruby
alexar has quit [Ping timeout: 268 seconds]
SpiffTR has quit [Quit: Leaving.]
jenrzzz has quit [Ping timeout: 245 seconds]
dnicole has joined #ruby
alexar has joined #ruby
r3vDev has quit [Remote host closed the connection]
stoffus has joined #ruby
pawnbox has joined #ruby
salut has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 256 seconds]
TomyWork has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
TomyWork has joined #ruby
xall has quit [Read error: Connection reset by peer]
dnicole has quit [Ping timeout: 258 seconds]
xall has joined #ruby
alexar has quit [Ping timeout: 248 seconds]
h1fuelcell has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
TomyWork has quit [Remote host closed the connection]
Silthias has joined #ruby
TomyWork has joined #ruby
<linduxed> back in the previous company i worked we created a Money class that had a bunch of stringent rules
<linduxed> money always represented as BigInt, never as anything else
grh has quit [Ping timeout: 244 seconds]
<linduxed> it always had a currency
william3 has joined #ruby
SpiffTR has joined #ruby
<linduxed> you couldn't perform arithmetic operations with money from two different currencies
madhatter has quit [Remote host closed the connection]
<linduxed> along with a bunch of other things
alexar has joined #ruby
<linduxed> i wonder if there's a gem for this...
<linduxed> i know we didn't open source our class
blaxter has quit [Quit: foo]
TomyWork has quit [Remote host closed the connection]
kp666 has joined #ruby
TomyWork has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
AlexRussia has quit [Ping timeout: 248 seconds]
Silthias1 has joined #ruby
jgnagy has joined #ruby
alexar has quit [Ping timeout: 250 seconds]
Silthias has quit [Ping timeout: 260 seconds]
maattdd has joined #ruby
connor_goodwolf has quit [Ping timeout: 268 seconds]
<nofxxxx> linduxed, yup, money gem
dnicole has joined #ruby
Derderderd has quit [Ping timeout: 265 seconds]
<nofxxxx> it can even perform arithmetic between currencies, if you provide exchange rates
jgnagy has quit [Ping timeout: 244 seconds]
alexar has joined #ruby
ta_ has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
manjaro-kde5-- has joined #ruby
eggshke has quit []
alexar has quit [Ping timeout: 250 seconds]
AlexRussia has joined #ruby
nofxxxx has quit [Ping timeout: 258 seconds]
tomphp has joined #ruby
claudiuinberlin has quit [Ping timeout: 250 seconds]
jeffaustin81 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grh has joined #ruby
Bish has joined #ruby
jtdoncas has joined #ruby
frozengeek____ has joined #ruby
alexar has joined #ruby
marr has joined #ruby
stan has joined #ruby
jtdoncas has quit [Ping timeout: 250 seconds]
xall has quit [Ping timeout: 258 seconds]
byte512 has joined #ruby
alexar has quit [Ping timeout: 250 seconds]
aryaching_ has joined #ruby
Emmanuel_Chanel has joined #ruby
<linduxed> oh, good to know
jtdoncas_ has joined #ruby
aryaching has quit [Ping timeout: 258 seconds]
TomyWork has quit [Remote host closed the connection]
william3 has quit []
fenre has joined #ruby
TomyWork has joined #ruby
maloik29 has quit [Remote host closed the connection]
maloik has joined #ruby
jtdoncas_ has quit [Ping timeout: 265 seconds]
alexar has joined #ruby
jgt has joined #ruby
kp666 has quit [Ping timeout: 244 seconds]
Chair has joined #ruby
toretore has joined #ruby
flying has joined #ruby
alexar has quit [Ping timeout: 250 seconds]
bayed has joined #ruby
alexar has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Salih has quit [Quit: Leaving]
charliesome has joined #ruby
alexar has quit [Ping timeout: 265 seconds]
aryaching_ has quit [Ping timeout: 245 seconds]
bauruine has quit [Quit: ZNC - http://znc.in]
bauruine has joined #ruby
TomyWork has quit [Remote host closed the connection]
cibs has quit [Ping timeout: 268 seconds]
TomyWork has joined #ruby
cibs has joined #ruby
alexar has joined #ruby
heftig has quit [Read error: Connection reset by peer]
heftig has joined #ruby
JeanCarloMachado has joined #ruby
SpiffTR has quit [Quit: Leaving.]
psychicist__ has joined #ruby
jeyraof has quit [Quit: This computer has gone to sleep]
yeticry has quit [Ping timeout: 265 seconds]
heftig has quit [Read error: Connection reset by peer]
_sfiguser has joined #ruby
alexar has quit [Ping timeout: 260 seconds]
yeticry has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
dionysus70 has joined #ruby
psychicist__ has quit [Remote host closed the connection]
cibs has joined #ruby
ropeney has joined #ruby
heftig has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus70 is now known as dionysus69
nankyokusei has joined #ruby
ropeney has quit [Client Quit]
bturker has joined #ruby
ishe_ua has joined #ruby
alexar has joined #ruby
saneax is now known as saneax-_-|AFK
nankyokusei has quit [Ping timeout: 250 seconds]
ta_ has quit [Quit: Leaving...]
bauruine has quit [Quit: ZNC - http://znc.in]
Fernando-Basso has joined #ruby
saneax-_-|AFK is now known as saneax
stoffus has quit [Ping timeout: 258 seconds]
Beams has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
bauruine has joined #ruby
psychicist__ has joined #ruby
ta_ has joined #ruby
alexar has quit [Ping timeout: 245 seconds]
astrobunny has quit [Remote host closed the connection]
aidalgol has quit [Quit: home]
submitnine has joined #ruby
emilkarl has quit [Read error: Connection reset by peer]
emilkarl has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 244 seconds]
aryaching has joined #ruby
psychicist__ has quit [Ping timeout: 265 seconds]
psychicist__ has joined #ruby
alexar has joined #ruby
nettoweb has joined #ruby
Emmanuel_Chanel has joined #ruby
omphe has joined #ruby
cippacio1 has joined #ruby
psychicist__ has quit [Ping timeout: 256 seconds]
alexar has quit [Ping timeout: 245 seconds]
psychicist__ has joined #ruby
cippaciong has quit [Ping timeout: 248 seconds]
blackbombay has quit [Ping timeout: 265 seconds]
alexar has joined #ruby
rodfersou has joined #ruby
atmosx has quit [Quit: WeeChat 1.4]
atmosx has joined #ruby
Hyuk has joined #ruby
alexar has quit [Ping timeout: 250 seconds]
TomyWork has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 245 seconds]
e1z0 has joined #ruby
TomyWork has joined #ruby
JeanCarloMachado has joined #ruby
AlexRussia has quit [Ping timeout: 248 seconds]
alexar has joined #ruby
XV8 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has quit [Quit: Leaving...]
koooge has quit [Quit: Leaving...]
alexar has quit [Ping timeout: 260 seconds]
yeticry has quit [Ping timeout: 245 seconds]
JeanCarloMachado has quit [Ping timeout: 258 seconds]
yeticry has joined #ruby
JeanCarloMachado has joined #ruby
ta_ has joined #ruby
alexar has joined #ruby
emilkarl has quit [Read error: Connection reset by peer]
xall has joined #ruby
matled has quit [Remote host closed the connection]
psychicist__ has quit [Ping timeout: 260 seconds]
emilkarl has joined #ruby
psychicist__ has joined #ruby
AlexRussia has joined #ruby
alexar has quit [Ping timeout: 256 seconds]
e1z0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maattdd has quit [Ping timeout: 258 seconds]
alexar has joined #ruby
jgt has quit [Quit: WeeChat 1.4]
binaryplease has joined #ruby
xall has quit [Ping timeout: 250 seconds]
matled has joined #ruby
tsunamie has joined #ruby
alexar has quit [Ping timeout: 265 seconds]
maattdd has joined #ruby
ltd has quit [Quit: leaving]
ltd has joined #ruby
ltd has quit [Client Quit]
alexar has joined #ruby
zapata has quit [Ping timeout: 258 seconds]
ltd has joined #ruby
alexar has quit [Ping timeout: 244 seconds]
ferr1 has joined #ruby
jsrn_ has joined #ruby
ltd has quit [Client Quit]
ltd has joined #ruby
ltd has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
montanonic has quit [Ping timeout: 256 seconds]
ta_ has quit [Quit: Leaving...]
aryaching_ has joined #ruby
SesMan has joined #ruby
brendan- has joined #ruby
ltd has joined #ruby
yoongkang has joined #ruby
claudiuinberlin has joined #ruby
aryaching has quit [Ping timeout: 250 seconds]
yoongkang has left #ruby [#ruby]
allcentury has joined #ruby
zapata has joined #ruby
claudiuinberlin has quit [Ping timeout: 268 seconds]
bturker has joined #ruby
emilkarl has quit [Read error: Connection reset by peer]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
alexar has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grh has quit [Ping timeout: 246 seconds]
maattdd has quit [Ping timeout: 250 seconds]
xall has joined #ruby
alexar has quit [Ping timeout: 244 seconds]
emilkarl has joined #ruby
Burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
shintaro has joined #ruby
SpiffTR has joined #ruby
sylario has joined #ruby
Burgestrand has joined #ruby
pandaant has joined #ruby
GodFather has joined #ruby
freedw has joined #ruby
shintaro has quit [Client Quit]
Gasher has joined #ruby
alexar has joined #ruby
freedw has left #ruby [#ruby]
<Gasher> hello, how can I get current user's home folder path?
arquebus has joined #ruby
arquebus has quit [Client Quit]
<apeiros> File.expand_path('~')
<apeiros> or via ENV
<apeiros> Etc might also have something
tvw has joined #ruby
aryaching has joined #ruby
aryaching_ has quit [Ping timeout: 258 seconds]
<Gasher> thanks a lot!
<Gasher> unforunately, commands like open don't accept ~/
<apeiros> (via ENV it's be ENV['HOME'])
lenwood has joined #ruby
<apeiros> and I think expand_path relies on ENV
<apeiros> not sure how portable that is btw. (re windows)
<Gasher> well, I'm writing a package manager for Ubuntu, so that isn't an issue ;)
charliesome has joined #ruby
Derderderd has joined #ruby
alexar has quit [Ping timeout: 248 seconds]
grh has joined #ruby
manjaro-kde5-- has quit [Remote host closed the connection]
<apeiros> heh, how will you call it? YAAPM? (yet again another package manager)
<Gasher> it's just for my own use really
<Gasher> since I pulled my hair out with one issue
<Gasher> it's very useful for me
LoneHerm_ has quit [Read error: Connection reset by peer]
LoneHermit has joined #ruby
tercenya_ has joined #ruby
nettoweb has quit [Read error: Connection reset by peer]
alexar has joined #ruby
Derderderd has quit [Ping timeout: 260 seconds]
<Gasher> the funny thing is, that I wrote it with Ruby, for my problem with Node :D
tdy1 has joined #ruby
nettoweb has joined #ruby
sarbs has quit [Ping timeout: 244 seconds]
optiz0r has quit [Remote host closed the connection]
minimalism has joined #ruby
lenwood has quit [Ping timeout: 246 seconds]
tercenya has quit [Ping timeout: 260 seconds]
tdy has quit [Ping timeout: 260 seconds]
emilkarl has quit [Read error: Connection reset by peer]
sarbs has joined #ruby
optiz0r has joined #ruby
alexar has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emilkarl has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
SesMan has joined #ruby
alexar has joined #ruby
SesMan has quit [Client Quit]
psychicist__ has quit [Read error: Connection reset by peer]
alexar has quit [Ping timeout: 246 seconds]
xall has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
sparch has quit [Ping timeout: 246 seconds]
alexar has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
alexar has quit [Ping timeout: 256 seconds]
emilkarl has quit [Read error: Connection reset by peer]
Gasher has quit [Quit: Page closed]
claudiuinberlin has quit [Ping timeout: 265 seconds]
claudiuinberlin has joined #ruby
<manveru> apeiros: expand_path uses ENV, and it works fine on windows too :)
<dminuoso> It works on what?
<dminuoso> Ruby runs on Windows?
* dminuoso smiles
alexar has joined #ruby
lenwood has joined #ruby
tvw has quit []
synbit has joined #ruby
hutch34 has joined #ruby
alexar has quit [Ping timeout: 245 seconds]
SpiffTR has quit [Quit: Leaving.]
hutch34 has quit [Ping timeout: 245 seconds]
alexar has joined #ruby
Salih has joined #ruby
Salih has quit [Changing host]
Salih has joined #ruby
psychicist__ has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
alexar has quit [Ping timeout: 250 seconds]
claudiuinberlin has quit [Ping timeout: 268 seconds]
aryaching has joined #ruby
aryaching has quit [Client Quit]
aryaching has joined #ruby
grh has quit [Ping timeout: 256 seconds]
foooobear has quit [Quit: (null)]
Burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtdoncas_ has joined #ruby
eggshke has joined #ruby
sparch has joined #ruby
sparch has joined #ruby
sparch has quit [Changing host]
andrzejku has joined #ruby
alexar has joined #ruby
jshjsh has joined #ruby
beilabs has quit [Remote host closed the connection]
emilkarl has joined #ruby
JoshS has quit [Ping timeout: 268 seconds]
maattdd has joined #ruby
jtdoncas_ has quit [Ping timeout: 244 seconds]
tectonic has joined #ruby
Burgestrand has joined #ruby
alexar has quit [Ping timeout: 250 seconds]
rwb has quit [Ping timeout: 260 seconds]
deadnull has joined #ruby
claudiuinberlin has joined #ruby
allcentury has quit [Ping timeout: 245 seconds]
binaryplease has quit [Quit: binaryplease]
psychicist__ has quit [Ping timeout: 260 seconds]
tectonic has quit []
SteenJobs has joined #ruby
alexar has joined #ruby
b0nn has quit [Ping timeout: 268 seconds]
Ishido has joined #ruby
jaguarmagenta has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
grh has joined #ruby
jaguarmagenta has joined #ruby
alexar has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit [Remote host closed the connection]
Seich has quit [Ping timeout: 245 seconds]
tobiasvl has quit [Read error: No route to host]
alexar has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
minimalism has joined #ruby
jaguarmagenta has joined #ruby
johnmilton has joined #ruby
alexar has quit [Ping timeout: 244 seconds]
terens has joined #ruby
iMadper has joined #ruby
Derderderd has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
deadnull is now known as _deadnull
emilkarl has quit [Read error: Connection reset by peer]
gheegh has joined #ruby
_deadnull has quit [Quit: AFK]
dcluna has joined #ruby
grh has quit [Ping timeout: 265 seconds]
nadir has joined #ruby
synthroid has joined #ruby
Derderderd has quit [Ping timeout: 260 seconds]
alexar has joined #ruby
aryaching has quit [Ping timeout: 268 seconds]
UserJosh has joined #ruby
emilkarl has joined #ruby
andikr has quit [Remote host closed the connection]
AndyWojo has quit [Ping timeout: 265 seconds]
AndyWojo has joined #ruby
jshjsh has quit [Ping timeout: 258 seconds]
Olipro has quit [Ping timeout: 260 seconds]
alexar has quit [Ping timeout: 248 seconds]
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
deadnull has joined #ruby
grh has joined #ruby
kuSuSE has joined #ruby
alexar has joined #ruby
Olipro has joined #ruby
b0nn has joined #ruby
SpiffTR has joined #ruby
<apeiros> manveru: thanks for the refresh :)
kuSuSE has quit [Quit: Konversation terminated!]
Rodya_ has joined #ruby
Silthias1 has quit [Read error: Connection reset by peer]
Seich has joined #ruby
alexar has quit [Ping timeout: 250 seconds]
dnicole_ has joined #ruby
nettoweb has quit [Ping timeout: 250 seconds]
nettoweb has joined #ruby
Silthias has joined #ruby
psychicist__ has joined #ruby
<zenspider> manveru: works fine on windows IF you have the right ENV set.
gnufied has joined #ruby
nettoweb1 has joined #ruby
dnicole has quit [Ping timeout: 245 seconds]
TvL2386 has joined #ruby
nettoweb has quit [Ping timeout: 248 seconds]
<manveru> yeah, in that case you get a nice exception
tvw has joined #ruby
alexar has joined #ruby
toretore has quit [Ping timeout: 245 seconds]
tvw has quit [Client Quit]
montanonic has joined #ruby
toretore has joined #ruby
SpiffTR has quit [Quit: Leaving.]
aryaching has joined #ruby
shinnya has joined #ruby
alexar has quit [Ping timeout: 245 seconds]
bturker has quit [Ping timeout: 256 seconds]
bturker has joined #ruby
tyang has joined #ruby
eggshke has quit []
claudiuinberlin has joined #ruby
pawnbox has quit [Remote host closed the connection]
dcluna_ has joined #ruby
dcluna has quit [Quit: ZNC 1.7.x-git-705-2e6c8d9 - http://znc.in]
dcluna_ has quit [Client Quit]
tvl has joined #ruby
dcluna has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvl is now known as tobiasvl
fmcgeough has joined #ruby
xall has joined #ruby
alexar has joined #ruby
bturker_ has joined #ruby
Miron has joined #ruby
alexar has quit [Ping timeout: 244 seconds]
xall has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
Rodya__ has joined #ruby
Devalo has joined #ruby
byte512 has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
Devalo has quit [Ping timeout: 260 seconds]
alexar has joined #ruby
brendan- has joined #ruby
antoniobeyah has quit [Ping timeout: 260 seconds]
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
npgm has quit [Quit: Connection closed for inactivity]
alexar has quit [Ping timeout: 260 seconds]
sdothum has joined #ruby
jaruga___ has joined #ruby
x77686d has joined #ruby
alexar has joined #ruby
Rodya__ has quit [Remote host closed the connection]
kuSuSE has joined #ruby
dcluna has quit [Quit: ZNC - http://znc.in]
frozengeek____ is now known as frozengeek
alexar has quit [Ping timeout: 260 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rwb has joined #ruby
juco has joined #ruby
<juco> Hiya, given a nest hash such as: multi_hash = { first: { bmw: 'change', audi: 'change' }, second: { tesla: 'change', skoda: 'change' } }
bmurt has joined #ruby
<juco> How can I best go about maping over it and updating the value of 'change' without changing the value of multi_hash
juco_ has joined #ruby
nickjj_ has joined #ruby
juco has quit [Client Quit]
nankyokusei has joined #ruby
hightower2 has quit [Ping timeout: 244 seconds]
hightower2 has joined #ruby
alexar has joined #ruby
Derderderd has joined #ruby
nickjj has quit [Ping timeout: 248 seconds]
<dminuoso> juco_: You will have to supply your own recursive solution for it.
<dminuoso> juco_: That is an example of how it can be done.
deadnull is now known as _deadnull
_deadnull has quit [Quit: AFK]
handicraftsman has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
deadnull has joined #ruby
OTORelic has joined #ruby
alexar has quit [Ping timeout: 246 seconds]
nopolitica has quit [Quit: leaving]
Derderderd has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Ping timeout: 246 seconds]
<jokke> hey
<jokke> i need a container which is solely used for checking if elements are in it or not
ramortegui has joined #ruby
<jokke> i don't need to iterate over it or nothing
<jokke> should i use Set for this?
alexar has joined #ruby
<jokke> would it be faster than Array?
<herwin> depends on the number of elements
<jokke> i see
<jokke> number of elements is something between 10 and 50 probably
<jokke> i assume include? on array uses binary search
<herwin> no, it doesn't
<herwin> there is a bsearch-method
<herwin> because binary search only works if the array is sorted
<jokke> oh you're right of course
<herwin> set uses a hash-based lookup
SesMan has joined #ruby
<jokke> yeah
GodFather has quit [Ping timeout: 246 seconds]
<herwin> inserting can be a bit more expensive, searching is faster
jaguarmagenta has quit [Remote host closed the connection]
hutch34 has joined #ruby
<jokke> i don't insert. i initialize it once with values
SteenJobs has quit [Quit: SteenJobs]
<jokke> or do a .to_set on an array
<herwin> s/insert/initializing/
<jokke> mmh
<jokke> that's okay
alexar has quit [Ping timeout: 260 seconds]
<jokke> i reuse it alot
<herwin> if you really want to know it: benchmark it
Definity2 has joined #ruby
byte512 has joined #ruby
jhack has joined #ruby
<jokke> yeah
brendan- has joined #ruby
rodfersou is now known as rodfersou|lunch
montanonic has quit [Ping timeout: 250 seconds]
jrafanie has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
nowz has joined #ruby
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
<herwin> most likely this isn't the critical factor in performance and we're just bike-shedding here
<nowz> Hellow im looking for the function with nokogiri that can help me to get the first <a> after the first <p> after the first <div class="content">
<nowz> Could someone help me?!
jhack has quit [Client Quit]
juco_ has quit [Quit: leaving]
dcluna has joined #ruby
jaguarmagenta has joined #ruby
jhack has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
dcluna has quit [Read error: No route to host]
alexar has joined #ruby
dcluna has joined #ruby
handicraftsman has left #ruby ["Leaving"]
adavia has joined #ruby
millerti has joined #ruby
fenre has quit [Remote host closed the connection]
blackbombay has joined #ruby
antoniobeyah has joined #ruby
alexar has quit [Ping timeout: 256 seconds]
saslam has joined #ruby
<Papierkorb> nowz: #at_css
dionysus69 has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Papierkorb> nowz: Or traverse the tree yourself, however, a CSS or XPath selector will be easier to understand I guess later on
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DLSteve has joined #ruby
jgnagy has joined #ruby
blackbombay has quit [Ping timeout: 260 seconds]
alexar has joined #ruby
ruby-lang342 has joined #ruby
<antoniobeyah> nowz: use xpath. something like (//div[@class=“content”]/p/a)[1]
<antoniobeyah> dont trust the xpath u will have to google for it thats my rough guess
<antoniobeyah> i havent done xpath in a couple years
<Papierkorb> The CSS selector should be `div.content > p > a`
<Papierkorb> Which is imho much easier to read than any xpath
dcluna_ has joined #ruby
<Papierkorb> Or maybe without the `>`, whatever you really need
<nowz> thank you, im going to look after it
_chazu has quit [Quit: ZNC 1.6.1+deb1~ubuntu14.04.0 - http://znc.in]
sepp2k has joined #ruby
alexar has quit [Ping timeout: 260 seconds]
chazu has joined #ruby
SpiffTR has joined #ruby
dcluna has quit [Read error: Connection reset by peer]
zeroDi has joined #ruby
SpiffTR has quit [Client Quit]
ruby-lang342 has quit [Ping timeout: 260 seconds]
nickjj_ is now known as nickjj
modin has quit [Ping timeout: 246 seconds]
emilkarl has quit [Quit: emilkarl]
sphex has quit [Read error: Connection reset by peer]
modin has joined #ruby
alexar has joined #ruby
xrlk has joined #ruby
submitnine has quit [Remote host closed the connection]
s2013 has joined #ruby
Minko has joined #ruby
<Minko> hello, why did IronRuby die and isn't revived?
<Minko> JRuby looks fine
sphex has joined #ruby
gregor3005 has joined #ruby
alexar has quit [Ping timeout: 258 seconds]
jaguarmagenta has joined #ruby
Illusioneer has joined #ruby
<gregor3005> hi, can anybody point to to a gem which can read, edit and write xls files (version 97-2003)? there are lot of gem's out there but, some have bugs, others can't write and so on. it's frustrating finding one which work
terens has quit [Remote host closed the connection]
centrx has joined #ruby
psychicist__ has quit [Ping timeout: 250 seconds]
<Minko> gregor3005: you could try converting in and out of xls
alexar has joined #ruby
polishdub has joined #ruby
hutch34 has joined #ruby
roshanavand has joined #ruby
<gregor3005> Minko: by parsing the binary xls?
Derderderd has joined #ruby
<Minko> you could just use something to convert it to another format, whichever you want, that's better supported
roshanavand has quit [Client Quit]
<Minko> I didn't work with excel much, perhaps even something like csv would do the job
roshanavand has joined #ruby
blackwind_123 has joined #ruby
alexar has quit [Ping timeout: 260 seconds]
<mikecmpbll> gregor3005 : i use the 'spreadsheet' gem but i don't do anything complicated.
<gregor3005> Minko: ok, suppose there is a gem which converts from xls to csv and one which converts from csv to xls. which would you suggest?
minimalism has quit [Ping timeout: 245 seconds]
jhack has quit [Quit: jhack]
<gregor3005> mikecmpbll: i only have to add values without any formatting style
<Minko> gregor3005: I don't know any, it's just a suggestion. you could even use an outside converter for that
Derderderd has quit [Ping timeout: 244 seconds]
<gregor3005> mikecmpbll: the main goal is to write a tool which reads contacts from an carddav server and produce a xls for a crappy telephone system
<gregor3005> mikecmpbll: by "spreadsheet" you mean this? https://github.com/zdavatz/spreadsheet
saslam has quit [Read error: Connection reset by peer]
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
AgentVenom has joined #ruby
d0nn1e has quit [Ping timeout: 250 seconds]
alexar has joined #ruby
<darix> gregor3005: in doubt use csv.
<darix> that module is builtin
jamiejackson has joined #ruby
<darix> and excel/libreoffice can read it
<gregor3005> darix: (16:03:22) gregor3005: mikecmpbll: the main goal is to write a tool which reads contacts from an carddav server and produce a xls for a crappy telephone system
x77686d has quit [Quit: x77686d]
<darix> gregor3005: i know
<mikecmpbll> gregor3005 : i mean https://rubygems.org/gems/spreadsheet ; whether or not that's the github repo for that gem i'll leave you to work out
<mikecmpbll> but yeah, that'll do the job for you.
Burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d0nn1e has joined #ruby
<gregor3005> mikecmpbll: please calm down, it was only a question. leave this channel if you like to diss people
brendan- has joined #ruby
x77686d has joined #ruby
<mikecmpbll> gregor3005 : pardon? i'm perfectly calm, i'm not sure how you got the impression otherwise.
<gregor3005> ok
blackbombay has joined #ruby
jhack has joined #ruby
alexar has quit [Ping timeout: 250 seconds]
Humdai has quit [Quit: Leaving]
<antoniobeyah> Papierkorb: agreed, the css is seems easier. didn’t know you could do that
antoniobeyah has quit [Quit: antoniobeyah]
ResidentBiscuit has joined #ruby
shinnya has quit [Ping timeout: 250 seconds]
blackbombay has quit [Ping timeout: 248 seconds]
Humdai has joined #ruby
alexar has joined #ruby
SesMan has joined #ruby
kareelee has quit [Remote host closed the connection]
xberg has quit [Remote host closed the connection]
foooobear has joined #ruby
jhack has quit [Ping timeout: 258 seconds]
Rodya_ has joined #ruby
grh has quit [Ping timeout: 260 seconds]
alexar has quit [Ping timeout: 246 seconds]
c355e3b has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Dimik has joined #ruby
nettoweb has joined #ruby
Guest88798 is now known as c-c
Humdai has quit [Quit: Leaving]
alexar has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mr_rich102 has quit [Ping timeout: 252 seconds]
jhack has joined #ruby
Definity2 has quit [Ping timeout: 260 seconds]
Humdai has joined #ruby
kobain has joined #ruby
Rodya_ has joined #ruby
alexar has quit [Ping timeout: 244 seconds]
jhack has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Remote host closed the connection]
zeroDi has quit [Quit: WeeChat 1.6]
teclator has quit [Ping timeout: 260 seconds]
teclator has joined #ruby
Toledo_ is now known as croberts
tomphp_ has joined #ruby
tomphp has quit [Ping timeout: 244 seconds]
Fernando-Basso has quit [Quit: WeeChat 1.6]
alexar has joined #ruby
Rodya_ has joined #ruby
jhack has joined #ruby
blackbombay has joined #ruby
allcentury has joined #ruby
saneax is now known as saneax-_-|AFK
Minko has quit [Quit: Page closed]
alexar has quit [Ping timeout: 268 seconds]
rkoller has joined #ruby
antoniobeyah has joined #ruby
manjaro-kde5_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
lenwood has quit [Remote host closed the connection]
mr_rich101 has joined #ruby
alexar has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Definity2 has joined #ruby
blackbombay has quit [Ping timeout: 248 seconds]
ferr1 has quit [Quit: WeeChat 1.6]
Derderderd has joined #ruby
SteenJobs has joined #ruby
alexar has quit [Ping timeout: 250 seconds]
SteenJobs has quit [Client Quit]
tau has joined #ruby
Rodya_ has quit [Remote host closed the connection]
blackbombay has joined #ruby
Hyuk has joined #ruby
Derderderd has quit [Ping timeout: 265 seconds]
vuoto has joined #ruby
alexar has joined #ruby
x77686d has quit [Quit: x77686d]
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
alexar has quit [Ping timeout: 256 seconds]
jamiejackson has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jamiejackson has joined #ruby
emptyflask has joined #ruby
rodfersou|lunch is now known as rodfersou
ascarter has joined #ruby
alexar has joined #ruby
nankyokusei has joined #ruby
conta has quit [Ping timeout: 244 seconds]
kobain has quit [Ping timeout: 260 seconds]
prestorium has joined #ruby
AckZ has quit []
railssmith has quit [Ping timeout: 244 seconds]
synthroid has quit [Remote host closed the connection]
alexar has quit [Ping timeout: 265 seconds]
nankyokusei has quit [Ping timeout: 268 seconds]
x77686d has joined #ruby
byte512 has quit [Ping timeout: 248 seconds]
h1fuelcell has joined #ruby
Definity2 has quit [Ping timeout: 268 seconds]
x77686d has quit [Client Quit]
iMadper is now known as Madper|AFK
alexar has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
h1fuelcell has quit [Ping timeout: 246 seconds]
xall has joined #ruby
Asher has quit [Quit: Leaving.]
alexar has quit [Ping timeout: 250 seconds]
xall has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
cdg has joined #ruby
sparch has quit [Ping timeout: 260 seconds]
DenSchub has quit [Ping timeout: 245 seconds]
cdg_ has joined #ruby
kobain has joined #ruby
cdg has quit [Read error: Connection reset by peer]
emptyflask has quit [Remote host closed the connection]
alexar has joined #ruby
ResidentBiscuit has quit [Quit: Critical Miss]
OTORelic1 has joined #ruby
OTORelic has quit [Ping timeout: 256 seconds]
alexar has quit [Ping timeout: 248 seconds]
flying has quit []
centrx has quit [Changing host]
centrx has joined #ruby
heftig has quit [Ping timeout: 260 seconds]
alexar has joined #ruby
jtdoncas_ has joined #ruby
function has joined #ruby
rippa has joined #ruby
function has quit [Client Quit]
alexar has quit [Ping timeout: 265 seconds]
jtdoncas_ has quit [Ping timeout: 250 seconds]
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<oddmunds> is there any function that will turn [[1,2,3],[5,6,7]] into [[1,5],[2,6],[3,7]] ?
aufi has quit [Ping timeout: 245 seconds]
<centrx> oddmunds: #zip
tercenya_ has quit [Remote host closed the connection]
<oddmunds> (without doing it like this a[0].zip(a[1])
tercenya has joined #ruby
Rutix has quit []
<baweaver> yep
<baweaver> >> [[1,2,3],[5,6,7]].transpose
<ruby[bot]> baweaver: # => [[1, 5], [2, 6], [3, 7]] (https://eval.in/693334)
<centrx> ooo
<oddmunds> yessss
<baweaver> &ri Enumerable#transpose
<`derpy> No results
<baweaver> &ri Array#transpose
<baweaver> aha
omphe has joined #ruby
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
beilabs has joined #ruby
<oddmunds> ah, that is why i didnt find it
alexar has joined #ruby
<baweaver> Yeah, Enumerable is a great read but sometimes things are only present on Array
<baweaver> read through both
ishe_ua has quit [Remote host closed the connection]
jaxxstorm has joined #ruby
willardg has joined #ruby
jamiejackson has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
allcentury has quit [Quit: WeeChat 1.2]
jhack has quit [Ping timeout: 248 seconds]
alexar has quit [Ping timeout: 260 seconds]
deadnull is now known as _deadnull
_deadnull has quit [Quit: AFK]
sparch has joined #ruby
sparch has joined #ruby
sparch has quit [Changing host]
chouhoulis has joined #ruby
emptyflask has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexar has joined #ruby
benlieb has joined #ruby
vuoto has quit [Quit: Lost terminal]
jhack has joined #ruby
mark_66 has quit [Remote host closed the connection]
alexar has quit [Ping timeout: 250 seconds]
bruce_lee has quit [Ping timeout: 244 seconds]
synthroid has joined #ruby
amclain has joined #ruby
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
synthroi_ has joined #ruby
nowz has quit [Remote host closed the connection]
jhack has quit [Ping timeout: 268 seconds]
b0nn has quit [Ping timeout: 265 seconds]
b0nn has joined #ruby
jsrn_ has quit [Quit: Leaving]
synthroid has quit [Ping timeout: 258 seconds]
alexar has joined #ruby
kareelee has joined #ruby
Chair has quit [Ping timeout: 258 seconds]
x77686d has joined #ruby
mustmodify has joined #ruby
<mustmodify> is there an enumerable that stops on first result, like detect, but returns the result, like map?
<mustmodify> like map-detect? :)
manjaro-kde5_ has quit [Ping timeout: 260 seconds]
<baweaver> You can make one
alexar has quit [Ping timeout: 260 seconds]
<baweaver> either that or use lazy
<mustmodify> I will. Just thought I'd make sure I wasn't reinventing the wheel. :)
Derderderd has joined #ruby
<baweaver> &ri Enumerable#lazy
<baweaver> >> (1..10).lazy.select(&:even?).map { |n| n * 2 }.first(1)
<ruby[bot]> baweaver: # => [4] (https://eval.in/693349)
cippacio1 has quit [Quit: WeeChat 1.5]
[Butch] has joined #ruby
<baweaver> >> (1..10).reduce(nil) { |a,v| if v.even? then break(v) else a end }
<ruby[bot]> baweaver: # => 2 (https://eval.in/693350)
<baweaver> >> (1..10).reduce(nil) { |a,v| if v > 10 then break(v) else a end }
<ruby[bot]> baweaver: # => nil (https://eval.in/693351)
<baweaver> mustmodify ^
benlieb has quit [Quit: benlieb]
x77686d has quit [Quit: x77686d]
<mustmodify> Ah...
<mustmodify> break. Good thought.
Derderderd has quit [Ping timeout: 260 seconds]
<mustmodify> why reduce rather than map?
* baweaver starts mumbling kit kat song
<baweaver> either works
<baweaver> I just think in reduce
<mustmodify> k, just wondering.
benlieb has joined #ruby
<baweaver> ah, nil case
<mustmodify> Oh yeah? Reduce always confused me. I probably need to spend more time getting to know her.
x77686d has joined #ruby
<baweaver> that was why
alexar has joined #ruby
<baweaver> what happens if it's not found? It returns an array full of stuff
<mustmodify> Ah, true.
<baweaver> Reduce is effectively tail recursion
loincloth has quit []
<baweaver> Notice running total in the first answer. Doesn't that look suspiciously like the memo/accumulator?
<baweaver> The other way is to think of it as foldLeft from another more functional language like Haskell.
<baweaver> mustmodify: If you _really_ want to learn it, reimplement every function in Enumerable using reduce as a base.
smlocal has joined #ruby
<mustmodify> I don't want it that badly. :)
alexar_ has joined #ruby
alexar has quit [Ping timeout: 244 seconds]
<baweaver> but it's fun :D
AckZ has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<baweaver> Also this book is a great read: https://leanpub.com/combinators
b0nn has quit [Ping timeout: 268 seconds]
pandaant has quit [Remote host closed the connection]
b0nn has joined #ruby
DLSteve has joined #ruby
Salih has quit [Quit: Leaving]
konsolebox has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cajone has quit [Quit: Leaving.]
Derderderd has joined #ruby
smlocal has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
p0p0pr37_ has joined #ruby
unreal_ has joined #ruby
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli has joined #ruby
agent_white has joined #ruby
smlocal has joined #ruby
<agent_white> Mornin' folks
p0p0pr37 has quit [Ping timeout: 265 seconds]
p0p0pr37_ is now known as p0p0pr37
unreal has quit [Ping timeout: 245 seconds]
<elomatreb> hi, although it isn't exactly morning here :)
Eiam has joined #ruby
deadnull has joined #ruby
<apeiros> ?ugt electrostat
<ruby[bot]> electrostat: it's morning, see http://www.total-knowledge.com/~ilya/mips/ugt.html
<apeiros> damn
<apeiros> ?ugt elomatreb
<ruby[bot]> elomatreb: it's morning, see http://www.total-knowledge.com/~ilya/mips/ugt.html
<apeiros> sorry electrostat :)
<elomatreb> :<
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
DLSteve has joined #ruby
hutch34 has quit [Quit: WeeChat 1.5]
synbit has quit [Quit: Ex-Chat]
rakm has joined #ruby
DLSteve has quit [Client Quit]
Gasher has joined #ruby
rakm has quit [Client Quit]
<Gasher> hello, I have a problem. when I made a shortcut/link to my Ruby program, the __dir__ variable broke, pointing to the shortcut, and not the original file. how can I fix it?
xberg has joined #ruby
GooseYArd has joined #ruby
DLSteve has joined #ruby
jtdoncas_ has joined #ruby
tomphp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> either don't rely on __dir__ or resolve it to the real path
Devalo has joined #ruby
smlocal has quit [Remote host closed the connection]
smlocal has joined #ruby
<Gasher> what else can I rely on?
rakm has joined #ruby
<apeiros> I don't know what problem you solve with __dir__.
<Gasher> just getting the program's folder's path
gregf_ has quit [Quit: Page closed]
<apeiros> that's not the problem you solve.
smlocal has quit [Remote host closed the connection]
<Gasher> hm?
<apeiros> what do you need the program's folder?
<apeiros> *why
<Gasher> because it consists of many other files
<Gasher> that are needed for the program
Devalo has quit [Ping timeout: 246 seconds]
<apeiros> ruby code?
<apeiros> data?
<apeiros> other?
<Gasher> data - config files, different kind of storage
<apeiros> is your program a gem?
<Gasher> nope
<apeiros> why not?
<Gasher> and some "other"
Rodya_ has joined #ruby
<Gasher> it's not designed to be one
<Gasher> and I've never made a gem
roshanavand has quit [Ping timeout: 260 seconds]
Silthias has quit [Quit: Leaving.]
<apeiros> proper way IMO:
<apeiros> make it a gem
<apeiros> use gem's datadir
<apeiros> have an initial config there, copy it per user
<apeiros> have and keep your immutable datafiles there
<Gasher> won't work here
<apeiros> mutable datafiles again, copy per user
<apeiros> well, too bad then.
<Gasher> so no nice solution to that?
<apeiros> to "doesn't work". no.
<apeiros> I have no solutions for that kind of problem.
UserJosh is now known as JoshS
jhack has joined #ruby
<Gasher> what do you mean?
<apeiros> precisely what I said. I have no solution to "doesn't work".
<Gasher> I didn't say "doesn't work", I said "points to the shortcut instead of the original file"
x77686d has quit [Quit: x77686d]
<apeiros> no. you said "won't work here".
<Gasher> it's not that kind of software that would be a gem
<mustmodify> apeiros: I do! I do! Smash it with a hammer!
<apeiros> Gasher: I have no idea why you think that and I currently lack the desire to ask or even argue about it.
Derderderd has quit [Ping timeout: 248 seconds]
fmcgeough has quit [Quit: fmcgeough]
rodfersou is now known as rodfersou|afk
x77686d has joined #ruby
_ZerGabriel_ has joined #ruby
maattdd has quit [Ping timeout: 245 seconds]
jaxxstorm has quit [Ping timeout: 256 seconds]
[Butch] has quit [Quit: I'm out . . .]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xberg has quit [Remote host closed the connection]
Humdai has quit [Quit: Leaving]
[Butch] has joined #ruby
djbkd has joined #ruby
splud has joined #ruby
aryaching has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mustmodify has left #ruby [#ruby]
Beams has quit [Quit: .]
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has quit []
Derderderd has joined #ruby
TomyWork has quit [Remote host closed the connection]
nankyokusei has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
kies has quit [Ping timeout: 256 seconds]
<SebastianThorn> if you have a script that generates code that your lib usese, any special way i might wanna commit that code to git, or does it just not matter? 64k lines
tercenya has quit [Remote host closed the connection]
<baweaver> Gasher: Consider a gem just to be a project structure / packaging system.
nankyokusei has quit [Ping timeout: 248 seconds]
tercenya has joined #ruby
<baweaver> There's no real reason you can't use it for even projects you never intend to "publish" to the world
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> Gasher: If it's not an app it's a gem.
<baweaver> havenwood: Apps can be gems too.
frozengeek has quit [Quit: frozengeek]
Derderderd has quit [Ping timeout: 268 seconds]
<baweaver> in fact it makes it way easier to deploy / publish later, especially if you have an internal gemserver to use.
<havenwood> baweaver: My logical syllogism didn't exclude that. :-P
<baweaver> fine fine
x77686d has quit [Quit: x77686d]
<apeiros> logical syllogism - it gets to greeky in here. I'll go ^^
deadnull has quit [Quit: Bye]
borei has joined #ruby
x77686d has joined #ruby
<baweaver> SebastianThorn is it necessary for the application to run?
<baweaver> or is it just generated at whim for whatever usecase?
<baweaver> In the first, yes, commit
<baweaver> In the second, .gitignore
<SebastianThorn> baweaver: yes, it is needed for the application, thanks
sp4rrow has joined #ruby
beilabs_ has joined #ruby
rodfersou|afk is now known as rodfersou
DenSchub has joined #ruby
beilabs has quit [Ping timeout: 246 seconds]
DenSchub has quit [Client Quit]
DenSchub has joined #ruby
gusrub has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
heftig has joined #ruby
bougyman has joined #ruby
x77686d has quit [Quit: x77686d]
bougyman is now known as Guest52468
gusrub has quit []
heftig has quit [Read error: Connection reset by peer]
x77686d has joined #ruby
heftig has joined #ruby
x77686d has quit [Client Quit]
sneakers has joined #ruby
kies has joined #ruby
omphe has joined #ruby
gusrub has joined #ruby
Eiam has joined #ruby
zeroDi has joined #ruby
jaruga___ has quit [Quit: jaruga___]
banisterfiend has joined #ruby
sniffer has joined #ruby
chouhoul_ has joined #ruby
Guest52468 has quit [Changing host]
Guest52468 has joined #ruby
chouhou__ has joined #ruby
chouhoulis has quit [Ping timeout: 258 seconds]
fmcgeough has joined #ruby
chouhoul_ has quit [Ping timeout: 245 seconds]
centrx has quit [Remote host closed the connection]
chouhoulis has joined #ruby
townes11 has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhou__ has quit [Ping timeout: 265 seconds]
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adavia has quit [Ping timeout: 250 seconds]
enterprisey has joined #ruby
chouhoul_ has joined #ruby
<townes11> I'm a bit new to the OOP way of doing things. I'm working through a tutorial...we change a user file so that it displays a first and last name, not just one 'name'. https://gist.github.com/anonymous/eeabfd5b2d7161e15b066944f96f46c1 <---- this code fails, and I see that the 'full_name' method isn't being seen inside other methods, I guess.
<townes11> I'm a bit new to the OOP way of doing things. I'm working through a tutorial...we change a user file so that it displays a first and last name, not just one 'name'. https://gist.github.com/anonymous/eeabfd5b2d7161e15b066944f96f46c1 <---- this code fails, and I see that the 'full_name' method isn't being seen inside other methods, I guess.
<townes11> Honestly, I'm not entirely sure. This is new to me and I'm unsure of a right way to accomplish this, and I have an idea of why it's failing but I don't totally understand it
xberg has joined #ruby
<toretore> townes11: how does it fail?
chouhoulis has quit [Ping timeout: 256 seconds]
_ZerGabriel_ has quit [Ping timeout: 250 seconds]
pilne has joined #ruby
Rodya_ has quit [Quit: Leaving...]
claudiuinberlin has joined #ruby
Illusioneer1 has joined #ruby
<townes11> toretore: it's actually through rails console. Okay, so I require this file ("./example_user") I'm able to add a user with these attributes
Illusioneer has quit [Ping timeout: 248 seconds]
symm-_ has joined #ruby
<miah> townes11: https://eval.in/693384
<townes11> But a final part of this section is to see if full_name.split and alphabetical_name.split(',').reverse give the same output
<townes11> Sorry a little slow on the keyboard today heh
xberg has quit [Remote host closed the connection]
jhack has quit [Ping timeout: 245 seconds]
davidt has joined #ruby
johnmilton has quit [Ping timeout: 250 seconds]
<toretore> townes11: go back to the part where you implement full_name and alphabetical_name: if the test you gave is supposed to pass then you have implemented them wrong
Derderderd has joined #ruby
<miah> ya, that code works fine so test must be broken
<townes11> Hmmm
<toretore> it won't pass because there's no comma in full_name
<toretore> when facing something like this, work backwards: inspect the output manually to see if it is actually the same
<townes11> Oh wow. I've been so focused on just verifying it (I get nameerror undefined local var etc) That I didn't even look to see if it would actually verify if it worked
<toretore> oh wait
smlocal has joined #ruby
<toretore> full_name.split without arg; well it still won't be the same because the other one is ',' and not ', '
Eiam has joined #ruby
AgentVenom has joined #ruby
iooner has joined #ruby
<townes11> Okay thanks everyone. I'll work backwards and focus on this part after. I dunno, I really felt like I messed up the class somehow
<toretore> townes11: are you confused about `user.full_name` vs just `full_name` or `full_name(user)` ?
alexar has joined #ruby
<townes11> Haha actually I tried all, honestly, because I wasn't sure the way to call it (I assumed: user.full_name)
<toretore> yes
<toretore> you have defined a class, with instance methods
Gasher has quit [Quit: Page closed]
centrx has joined #ruby
centrx has quit [Changing host]
centrx has joined #ruby
<toretore> to run any of those methods, you must first create an instance of the class
Illusioneer1 has quit [Read error: Connection reset by peer]
<townes11> Yeah. user = User.new(....)
<toretore> every method call in ruby has an explicit or implicit receiver, which is `self` inside its own scope
bturker_ has quit [Ping timeout: 256 seconds]
<toretore> between `def something` and `end` you are in instance scope
Illusioneer has joined #ruby
<toretore> outside that, it's something else
smlocal has quit [Remote host closed the connection]
hutch34 has joined #ruby
Illusioneer has quit [Max SendQ exceeded]
<toretore> anyway, all of this is something you should learn following a basic ruby tutorial
alexar_ has quit [Ping timeout: 245 seconds]
Illusioneer has joined #ruby
Illusioneer has quit [Max SendQ exceeded]
<townes11> It's my fault, I'm like half comprehending when you start talking about explicit/implicit receiver
alexar has quit [Ping timeout: 244 seconds]
<townes11> The concepts are a little foggy to me. I need to work on that
<toretore> that's something you are going to have to learn at some point
<toretore> otherwise you won't get very far
jenrzzz has joined #ruby
alexar has joined #ruby
jhack has joined #ruby
<townes11> Yeah. It's been a real problem so far. Alright look thanks for your help, I'm gonna run and try to work through this
smlocal has joined #ruby
Illusioneer has joined #ruby
<toretore> np you'll get it eventually
Illusioneer has quit [Max SendQ exceeded]
<miah> http://poodr.com/ really straightened out my oop/ruby knowledge
<townes11> I hope so. Thanks. Take care toretore
Xiti has joined #ruby
Illusioneer has joined #ruby
<townes11> miah: bookmarked, I'll check it out tonight. This is a serious problem I've been having and I'll try anything lol
Illusioneer has quit [Max SendQ exceeded]
<townes11> Later :)
townes11 has quit []
Macaveli has joined #ruby
Illusioneer has joined #ruby
Illusioneer has quit [Client Quit]
konsolebox has quit [Ping timeout: 260 seconds]
alexar has quit [Ping timeout: 246 seconds]
smlocal has quit [Remote host closed the connection]
SteenJobs has joined #ruby
andrzeju_ has joined #ruby
SteenJobs has quit [Client Quit]
sparch has quit [Quit: Leaving]
andrzejku has quit [Ping timeout: 260 seconds]
alexar has joined #ruby
alexar has quit [Remote host closed the connection]
alexar has joined #ruby
nofxx has joined #ruby
aryaching_ has joined #ruby
aswen has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
bocaneri has quit [Read error: Connection reset by peer]
marxarelli is now known as marxarelli|afk
emilkarl has joined #ruby
jtdoncas_ has quit [Ping timeout: 246 seconds]
Amoeba has quit [Quit: Ex-Chat]
SpiffTR has joined #ruby
emilkarl has quit [Read error: Connection reset by peer]
emilkarl has joined #ruby
nankyokusei has joined #ruby
paralitix has quit []
Rutix has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
adavia has joined #ruby
harai has joined #ruby
h1fuelcell has joined #ruby
smlocal has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
smlocal has quit [Client Quit]
tvw has joined #ruby
jtdoncas has joined #ruby
ixti has joined #ruby
h1fuelcell has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Remote host closed the connection]
ahuman has quit [Ping timeout: 245 seconds]
Definity2 has joined #ruby
foooobear has quit [Quit: (null)]
Illusioneer has joined #ruby
emilkarl has quit [Read error: Connection reset by peer]
Illusioneer has quit [Max SendQ exceeded]
Illusioneer has joined #ruby
Illusioneer has quit [Max SendQ exceeded]
ahuman has joined #ruby
emilkarl has joined #ruby
borei has quit [Quit: Leaving.]
brent__ has joined #ruby
Illusioneer has joined #ruby
Illusioneer has quit [Max SendQ exceeded]
marxarelli|afk is now known as marxarelli
enterprisey has quit [Remote host closed the connection]
Illusioneer has joined #ruby
Illusioneer has quit [Max SendQ exceeded]
ramfjord has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
centrx has quit [Remote host closed the connection]
emilkarl has quit [Client Quit]
boombox_ has joined #ruby
gregor3005 has quit [Quit: Leaving.]
zacts has quit [Quit: WeeChat 1.6]
zacts has joined #ruby
SteenJobs has joined #ruby
Madplatypus has joined #ruby
kuSuSE has quit [Quit: Konversation terminated!]
SteenJobs has quit [Client Quit]
synthroid has joined #ruby
bigtawm has joined #ruby
f4 has quit [Remote host closed the connection]
jtdoncas has quit [Ping timeout: 246 seconds]
<bigtawm> Hey is ruby good for learning data structures and algorithms? Im taking a datastructures class next semester, and we can use any language we want. I'm on the fence between Java and Ruby. Ive been using Java in school, but using Ruby outside of it.
jtdoncas has joined #ruby
synthroi_ has quit [Ping timeout: 256 seconds]
boombox_ has quit [Remote host closed the connection]
<miah> i've learned quite a bit from that
s2013 has joined #ruby
laudiacay has joined #ruby
<bigtawm> I have seen that site I was going to work through it over break. I think Ill go ruby, but I'm not sure if it will give me a crutch when doing the projects
<atmosx> bigtawm: doesn't the class enforce a language?
<atmosx> I've seen courses using java, c++, python and C but never ruby
konsolebox has joined #ruby
symm-_ has quit [Ping timeout: 246 seconds]
Rich_Morin has joined #ruby
<jidar> c++/java is typically what I see
alan_w has quit [Ping timeout: 265 seconds]
* jidar cries over all the null pointer errors he saw in C++
jenrzzz has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 265 seconds]
bigtawm has quit [Ping timeout: 260 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
f4 has joined #ruby
Xiti has quit [Quit: Xiti]
symm- has joined #ruby
bigtawm has joined #ruby
c0mrad3 has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<bigtawm> No he doesnt enforce a language, but he said most people continue to use Java. Would java give me a better understanding of data structures or is it all the same?
rodfersou has quit [Quit: leaving]
JeanCarloMachado has quit [Ping timeout: 250 seconds]
<jidar> imho, it's entirely what you make of it. the datastructures can be represented in any language. I'd personally pick the one you're most familiar with rather than something new
<Rich_Morin> I'm trying to set up log filtering on Sinatra, but it isn't working as expected. Help? - see http://pastie.org/10979589 for details.
<jidar> that way you won't be fighting the language and the class
<havenwood> bigtawm: <3 Ruby
<bigtawm> I probably have the same amount of familiarity with java as I do ruby
<havenwood> bigtawm: Give JRuby a look as well.
omphe has joined #ruby
<havenwood> It's a great Ruby implementation on the JVM.
<bigtawm> Ive heard of that is that were you can compile ruby using a jvm?
harai has quit [Ping timeout: 250 seconds]
<havenwood> bigtawm: There's a #jruby channel for JRuby specifically.
<bigtawm> Oh thats cool Ill look into that I heard of it, but have never tried it out
<bigtawm> So I wont be cheating myself if I choose ruby thats all that I care about since I want to get the most out of the class
<jidar> not any more than you would with java imho
lxsameer has joined #ruby
TTilus has quit [Ping timeout: 260 seconds]
<bigtawm> Okay sweet Im working up to doing web dev with rails, so I figure data structures in Ruby would be the best choice Ill do that then
<havenwood> bigtawm: I think Ruby is a great language to learn. It's multi-paradigm with some fun functional stuff and has an interesting object model.
x77686d has joined #ruby
lxsameer has quit [Client Quit]
TTilus has joined #ruby
<jidar> there's likely already a implementation of any data structure in any language you'd use rather than writing your own anyhow
harai has joined #ruby
<havenwood> "If you want a language for easy object-oriented programming, or you don't like the Perl ugliness, or you do like the concept of LISP, but don't like too many parentheses, Ruby might be your language of choice."
<jidar> so make sure you just understand the concepts in that class
<havenwood> ~ Ruby manpage
<bigtawm> Yeah I started learning Ruby while taking this OO design class and its much nicer to work with than java to learn haha
<bigtawm> Yeah its just to understand how the data structures work under the hood correct?
<jidar> yes. You should know when to use a linked list vs an array and all that
alan_w has joined #ruby
<havenwood> bigtawm: Ruby Under a Microscope is a good book to read.
Cyrus has joined #ruby
x77686d has quit [Client Quit]
<bigtawm> Im reading beginning ruby from novice to professional right now any opinions?
<bigtawm> Yeah this website (http://www.brpreiss.com/books/opus8/) seems to include all that so I can use it as a reference
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> bigtawm: Under a Microscope goes into a lot of detail but here's a little writeup for example on Ruby's Hash implementation: https://www.igvita.com/2009/02/04/ruby-19-internals-ordered-hash/
<jidar> I liked the 'well grounded rubyist'
Xiti has joined #ruby
ascarter has joined #ruby
foxxx0 has quit [Quit: WeeChat 1.6]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
chouhoul_ has quit [Remote host closed the connection]
bmurt has joined #ruby
<bigtawm> Does it show how ruby preforms all its abstractions? Looks like a good read
frozengeek has joined #ruby
<bigtawm> I have to check out those books for my next read thanks
<bigtawm> I'll
<jidar> not sure what you mean, like how it works with it's native types and all that? Might be better to follow up on what havenwood mentioned if that's your interest
connor_goodwolf has joined #ruby
foxxx0 has joined #ruby
<bigtawm> I just looked at well grounded rubyist on amazon would that be a good follow up to beginning ruby? haha sorry for all the questions
dionysus69 has quit [Ping timeout: 248 seconds]
<jidar> I think so
<havenwood> bigtawm: Just get the Second Edition of Well-Grounded Rubyist since it covers modern Ruby. It's a good book for covering the basics.
<jidar> it's broad
<bigtawm> When should I start thinking about learning rails?
millerti has quit [Quit: Textual IRC Client: www.textualapp.com]
<bigtawm> Im up in northern california going to school and trying to get my foot in the door for an internship so I feel like some rails work would help
<havenwood> bigtawm: I'd say after you have a working knowledge of Ruby and have made your own basic Rack app and tried a few of the simpler-than-Rails Rack adapters like Sinatra and Roda.
<bigtawm> Okay sounds good Ill look into that next then
<havenwood> bigtawm: Here are some Hello Worlds in various Rack adapters: https://github.com/luislavena/bench-micro/tree/master/apps
JeanCarloMachado has joined #ruby
johnmilton has joined #ruby
<havenwood> bigtawm: You can run any of these like `rackup sinatra.ru` or if you name the RackUp file config.ru just `rackup`.
synthroi_ has joined #ruby
<havenwood> Rack isn't too complicated and its worth understanding how it works.
<havenwood> it's*
zeroDi has quit [Quit: WeeChat 1.6]
Definity2 has quit [Ping timeout: 245 seconds]
symm- has quit [Quit: Leaving...]
<bigtawm> Okay I think im going to pull them down and look into them
synthroid has quit [Ping timeout: 244 seconds]
<bigtawm> I have to head out to class thank you all so much are you on here often?
<havenwood> bigtawm: There's always folk here!
symm- has joined #ruby
[Butch]_ has joined #ruby
blackbombay has quit [Ping timeout: 265 seconds]
gsingh93 has quit [Quit: ZNC - http://znc.in]
gsingh93 has joined #ruby
[Butch] has quit [Ping timeout: 244 seconds]
[Butch]_ is now known as [Butch]
blackbombay has joined #ruby
bigtawm has quit [Ping timeout: 260 seconds]
jeffaustin81 has joined #ruby
frmendes has joined #ruby
kareelee has quit [Remote host closed the connection]
marxarelli is now known as marxarelli|afk
[Butch]_ has joined #ruby
kareelee has joined #ruby
jtdoncas_ has joined #ruby
banisterfiend has joined #ruby
boombox_ has joined #ruby
alan_w has quit [Ping timeout: 260 seconds]
dnicole_ has quit [Remote host closed the connection]
[Butch] has quit [Ping timeout: 244 seconds]
[Butch]_ is now known as [Butch]
last_staff has quit [Quit: last_staff]
eb0t has quit [Quit: WeeChat 1.4]
kareelee has quit [Ping timeout: 265 seconds]
f4 has quit [Read error: Connection reset by peer]
boombox_ has quit [Remote host closed the connection]
jtdoncas_ has quit [Ping timeout: 260 seconds]
f4 has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marxarelli|afk is now known as marxarelli
eb0t has joined #ruby
marxarelli is now known as marxarelli|afk
marxarelli|afk is now known as marxarelli
tdy1 has quit [Ping timeout: 256 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eb0t has quit [Client Quit]
johnmilton has quit [Remote host closed the connection]
rwb has quit [Ping timeout: 258 seconds]
OTORelic1 has quit [Ping timeout: 250 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
emptyflask has quit [Remote host closed the connection]
Illusioneer has joined #ruby
Illusioneer has quit [Max SendQ exceeded]
synthroi_ has quit []
alan_w has joined #ruby
emptyflask has joined #ruby
chouhoulis has joined #ruby
Illusioneer has joined #ruby
Illusioneer has quit [Max SendQ exceeded]
kareelee has joined #ruby
kareelee has quit [Remote host closed the connection]
kareelee has joined #ruby
jhack has quit [Ping timeout: 265 seconds]
brendan- has joined #ruby
[Butch]_ has joined #ruby
[Butch] has quit [Ping timeout: 250 seconds]
[Butch]_ is now known as [Butch]
kareelee has quit [Ping timeout: 260 seconds]
tdy1 has joined #ruby
bmurt has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
eb0t has joined #ruby
muelleme has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
willardg has quit [Quit: Textual IRC Client: www.textualapp.com]
ramortegui has quit [Quit: Ex-Chat]
mikecmpbll has joined #ruby
symm- has quit [Quit: Leaving...]
kareelee has joined #ruby
firstdayonthejob has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
kareelee has quit [Remote host closed the connection]
kareelee has joined #ruby
XV8 has joined #ruby
Eiam has joined #ruby
GodFather has joined #ruby
SpiffTR has quit [Quit: Leaving.]
alexar has quit [Ping timeout: 256 seconds]
kareelee has quit [Ping timeout: 246 seconds]
jeffaustin81 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexar has joined #ruby
MarkFletcher has joined #ruby
jenrzzz has joined #ruby
tyang_ has joined #ruby
jeffaustin81 has joined #ruby
railssmith has joined #ruby
vondruch has quit [Ping timeout: 244 seconds]
symm- has joined #ruby
blackmesa has joined #ruby
tyang has quit [Ping timeout: 260 seconds]
dviola has joined #ruby
<Rich_Morin> Still trying to get custom logging to work in Sinatra - http://pastie.org/10979822
chouhoul_ has joined #ruby
tyang_ has quit [Ping timeout: 250 seconds]
emptyflask has quit [Remote host closed the connection]
<Rich_Morin> I'd also like to know how to capture the log message for filtering, etc.
nankyokusei has joined #ruby
chouhoulis has quit [Ping timeout: 258 seconds]
tdy1 has quit [Ping timeout: 250 seconds]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
<adam12> Does Sinatra use it's own logger?
<adam12> Oh wait, I see you calling disable now.
claudiuinberlin has quit []
<adam12> What about webrick? Is it possible that line in the logs is from webrick? Could you try swapping out for Thin/Puma
emptyflask has joined #ruby
tau has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Ping timeout: 248 seconds]
nankyokusei has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
sdwrage has joined #ruby
MarkFletcher has quit [Quit: Textual IRC Client: www.textualapp.com]
grh has joined #ruby
<Rich_Morin> adam12: I'm using whatever the default is; dunno how to swap things out. FWIW, here's my main routine: http://pastie.org/10979848
rwb has joined #ruby
<adam12> Rich_Morin: How are you starting this? Just running that script directly?
firstdayonthejob has joined #ruby
<adam12> or do you have a config.ru file you're using along side.
Guest52468 is now known as bougyman
kareelee has joined #ruby
SpiffTR has joined #ruby
Derderderd has quit [Ping timeout: 260 seconds]
emptyflask has quit [Remote host closed the connection]
kareelee has quit [Remote host closed the connection]
kareelee has joined #ruby
<Rich_Morin> I just invoke it directly, as main.
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz_ has joined #ruby
<toretore> ?code Rich_Morin
<ruby[bot]> Rich_Morin: We can't help you without your code, please post it to https://gist.github.com
jenrzzz has quit [Ping timeout: 246 seconds]
<toretore> also:
<toretore> ?gist Rich_Morin
<ruby[bot]> Rich_Morin: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
kareelee has quit [Ping timeout: 260 seconds]
<toretore> and:
<toretore> ?gist-usage
<Rich_Morin> I'll try to create a minimal example.
tdy1 has joined #ruby
<toretore> you are probably getting output from various libraries; i've used some that just have straight puts at various points in their code and you can't get rid of it
eb0t has quit [Quit: WeeChat 1.4]
<Rich_Morin> Well, this looks like a pretty vanilla HTTP request log message; I'd expect a random library to generate something else...
kareelee has joined #ruby
kareelee has quit [Remote host closed the connection]
kareelee has joined #ruby
frozengeek has quit [Remote host closed the connection]
bokayio has quit [Ping timeout: 252 seconds]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
sepp2k has quit [Quit: Leaving.]
<toretore> for puma you can sort of override it, but you have to implement a lot of bs: https://gist.github.com/toretore/41eb90a6d4ff2aa5f5d1da581bb9e504
bokayio has joined #ruby
<adam12> Rich_Morin: Maybe you could install the `thin` gem and then try again. I believe classic Sinatra will try thin before webrick.
<adam12> Just to eliminate webrick as maybe the source of the log entry.
maxirater has joined #ruby
<Rich_Morin> It may be that I should simply send the stuff I care about somewhere else and ignore the command's logging output.
<adam12> That would be another option, yes.
SpiffTR has quit [Quit: Leaving.]
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
maxirater has quit [Client Quit]
blackmes1 has joined #ruby
kareelee has quit [Ping timeout: 260 seconds]
maxirater has joined #ruby
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
blackmesa has quit [Ping timeout: 260 seconds]
jtdoncas has quit [Ping timeout: 248 seconds]
maxirater has quit [Client Quit]
SpiffTR has joined #ruby
x77686d has joined #ruby
SpiffTR has quit [Client Quit]
[Butch] has quit [Quit: I'm out . . .]
<Rich_Morin> Here's a pretty minimal example that demonstrates the issue - http://pastie.org/10979864
muelleme has quit [Ping timeout: 256 seconds]
JoshS has quit [Quit: Leaving]
Eiam has joined #ruby
railssmith has quit [Quit: Textual IRC Client: www.textualapp.com]
<adam12> Rich_Morin: Doesn't log for me with thin as web server. Must be webrick related.
frmendes has quit [Quit: Textual IRC Client: www.textualapp.com]
Joufflu has joined #ruby
JeanCarloMachado has joined #ruby
xall has joined #ruby
<Rich_Morin> Same here! I think that's the ticket; thanks!!!
antoniobeyah has quit [Quit: antoniobeyah]
kareelee has joined #ruby
xall has quit [Ping timeout: 245 seconds]
gusrub has quit [Remote host closed the connection]
blackbombay has quit [Ping timeout: 245 seconds]
polishdub has quit [Quit: Leaving]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<Rich_Morin> adam12: any idea how to capture the log message for filtering, etc?
symm-_ has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
jtdoncas_ has joined #ruby
firstdayonthejob has quit [Ping timeout: 260 seconds]
eb0t has joined #ruby
alexar has quit [Remote host closed the connection]
alexar has joined #ruby
jtdoncas_ has quit [Ping timeout: 265 seconds]
tau has joined #ruby
hutch34 has quit [Ping timeout: 265 seconds]
aswen has quit [Quit: WeeChat 1.5]
grh has quit [Ping timeout: 265 seconds]
alexar has quit [Ping timeout: 260 seconds]
tau has quit [Remote host closed the connection]
nunchuck has quit [Ping timeout: 250 seconds]
Derderderd has joined #ruby
alexar has joined #ruby
tau has joined #ruby
hutch34 has joined #ruby
nettoweb1 has joined #ruby
nettoweb has quit [Ping timeout: 260 seconds]
alexar has quit [Remote host closed the connection]
nettoweb1 has quit [Client Quit]
alexar has joined #ruby
Derderderd has quit [Ping timeout: 244 seconds]
gloscombe has joined #ruby
alexar has quit [Read error: Connection reset by peer]
alexar has joined #ruby
toretore has quit [Ping timeout: 250 seconds]
blackbombay has joined #ruby
Eiam has joined #ruby
jtdoncas has joined #ruby
davidt_ has joined #ruby
kareelee has quit [Remote host closed the connection]
kareelee has joined #ruby
davidt has quit [Ping timeout: 245 seconds]
firstdayonthejob has joined #ruby
kareelee has quit [Read error: Connection reset by peer]
kareelee has joined #ruby
OTORelic1 has joined #ruby
blackmesa has joined #ruby
biberu has quit []
blackmes1 has quit [Ping timeout: 246 seconds]
saneax-_-|AFK is now known as saneax
sepp2k has joined #ruby
f4 has quit [Read error: Connection reset by peer]
montanonic has joined #ruby
kareelee has quit [Remote host closed the connection]
kareelee has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
konsolebox has quit [Quit: Leaving]
sp4rrow has joined #ruby
benlieb has quit [Quit: benlieb]
sp4rrow_ has joined #ruby
dikaio has joined #ruby
kareelee has quit [Ping timeout: 268 seconds]
davidt has joined #ruby
devgiant has joined #ruby
devgiant has quit [Client Quit]
sp4rrow has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
davidt_ has quit [Ping timeout: 245 seconds]
c0mrad3 has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 248 seconds]
kareelee has joined #ruby
<adam12> Rich_Morin: Maybe the logger library is what you want?
<Rich_Morin> There are several - have a recommendation?
kareelee has quit [Ping timeout: 258 seconds]
nankyokusei has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
tyang has joined #ruby
sphex has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 256 seconds]
<Rich_Morin> I'll look into it.
gusrub has joined #ruby
omphe has joined #ruby
koooge has joined #ruby
sphex has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
brendan- has joined #ruby
kareelee has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
JeanCarloMachado has quit [Read error: No route to host]
gusrub has quit [Remote host closed the connection]
Derderderd has joined #ruby
herbmillerjr has joined #ruby
gusrub has joined #ruby
bturker has joined #ruby
kareelee has quit [Ping timeout: 246 seconds]