za1b1tsu_ has quit [Remote host closed the connection]
za1b1tsu has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Exuma has joined #ruby
solocshaw has joined #ruby
solocshaw has quit [Client Quit]
cnsvc has joined #ruby
aupadhye has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
dellavg_ has joined #ruby
cschneid has joined #ruby
clemens3 has quit [Ping timeout: 246 seconds]
cnsvc has joined #ruby
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elphe has joined #ruby
<marz_d`ghostman>
I'm using a gem that has this line: output = `#{cmd} 2>&1` . But in my script I have redirected $stderr to a logger instance and I'm getting a uninitialized stream error. How do I fix this one so the 2>&1 will also get redirected to the logger?
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid has quit [Ping timeout: 272 seconds]
cnsvc has quit [Ping timeout: 256 seconds]
hutch has quit [Ping timeout: 246 seconds]
marz_d`ghostman has quit [Quit: Page closed]
elphe has quit [Ping timeout: 250 seconds]
Exuma has joined #ruby
Exuma has quit [Client Quit]
kapil____ has quit [Quit: Connection closed for inactivity]
cnsvc has joined #ruby
conta has joined #ruby
themsay has quit [Ping timeout: 246 seconds]
conta has quit [Quit: conta]
Pisuke has joined #ruby
MyMind has quit [Ping timeout: 268 seconds]
neuraload has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
elphe has joined #ruby
kapil____ has joined #ruby
za1b1tsu has quit [Ping timeout: 252 seconds]
conta has joined #ruby
_whitelogger has joined #ruby
paranoicsan has joined #ruby
cnsvc has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
rivalomega has joined #ruby
Guest49234 has joined #ruby
rivalomega has quit [Client Quit]
dhollin3 has joined #ruby
cschneid has joined #ruby
conta has quit [Quit: conta]
dhollinger has quit [Ping timeout: 250 seconds]
cruzo66342 has joined #ruby
elphe has quit [Ping timeout: 250 seconds]
rubydoc has quit [Ping timeout: 272 seconds]
rubydoc has joined #ruby
cruzo66342 has quit [Remote host closed the connection]
cruzo66342 has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
cruzo66342 has quit [Remote host closed the connection]
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away has quit [Quit: paranoicsan[Away]
<isene>
Thanks for the TLS debug, guys :-)
paranoicsan has joined #ruby
cschneid has quit [Ping timeout: 250 seconds]
prestorium has joined #ruby
za1b1tsu has joined #ruby
clemens3 has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away has quit [Quit: paranoicsan[Away]
agent_white has quit [Quit: leaving]
mikecmpbll has joined #ruby
paranoicsan has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
cschneid has joined #ruby
masterasia has joined #ruby
reber has joined #ruby
za1b1tsu has quit [Ping timeout: 252 seconds]
tdy has joined #ruby
za1b1tsu has joined #ruby
neuraload has quit [Quit: This computer has gone to sleep]
tdy has quit [Ping timeout: 246 seconds]
conta has joined #ruby
cschneid has quit [Ping timeout: 268 seconds]
elphe has joined #ruby
AJA4350 has joined #ruby
venmx has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
<phaul>
Merry Christmas everybody
kapil____ has joined #ruby
cruzo66342 has joined #ruby
sticaz has quit [Ping timeout: 245 seconds]
cruzo66342 has quit [Ping timeout: 240 seconds]
sticaz has joined #ruby
conta has quit [Quit: conta]
cnsvc has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
paranoicsan has quit [Quit: paranoicsan]
gigetoo has quit [Read error: No route to host]
gigetoo has joined #ruby
cschneid has joined #ruby
dellavg_ has quit [Ping timeout: 250 seconds]
paranoicsan has joined #ruby
neuraload has joined #ruby
za1b1tsu has quit [Ping timeout: 252 seconds]
saltsa has joined #ruby
mostlybadfly has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
<isene>
│11:32:25 isene │ Thanks for the TLS debug, guys :-) │ bastilian │·············
donofrio has quit [Read error: Connection reset by peer]
exchgr has joined #ruby
donofrio has joined #ruby
aupadhye has quit [Quit: Leaving]
_whitelogger has joined #ruby
donofrio has quit [Ping timeout: 246 seconds]
nchambers has joined #ruby
cschneid has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
donofrio has joined #ruby
Nobun has joined #ruby
<Nobun>
hi. I am not very confident with ruby (I almost not use ruby). However I am writing a script which MUST use ruby so I need some help
<bougyman>
That's not an interesting problem.
<Nobun>
1) the script will be a kramdown builder (kramdown app is pretty limited on complex documentation with multiple files)
<Nobun>
first problem is a very stupid one. I am trying to write a recursive file search and write it down to a list. When using Find.find nil values will found and I can't skip them. I will paste the part of code involving the problem
<Nobun>
the last comment is the error returned by ruby interpreter
<Nobun>
xext_in is a string containing the extension
<bougyman>
are you looking for all files?
reber has quit [Remote host closed the connection]
<bougyman>
Nobun: Dir.glob('**/*').select { |f| File.file? f }
<bougyman>
try that instead.
<bougyman>
see if it's what you want.
<bougyman>
and then just use the select block for your comparison.
<bougyman>
f =~ /#{xext_in}$/ instead of File.file? f
<bougyman>
Or even just Dir.glob("**/*.#{xext_in}") probably
<Nobun>
thank bougyman... I will try soon. However I found another issue not related to the lines I posted, but that could break also that function
nchambers has quit [Quit: WeeChat 2.2]
houhoulis has joined #ruby
<Nobun>
yeah... I did also a bad mistake... I used OptionParser but I didn't provide a way to have a default value so all values ended to have nil instead of default. This way ext_in was nil -.-
<Nobun>
now also the function works. However I am trying to understand your suggestion... what is "**/*" exactly?
dhollin3 is now known as dhollinger
<Nobun>
I understand that #{xext_in} is a variable replacer for regexp, but i can't get what is **/* exactly
houhoulis has quit [Ping timeout: 250 seconds]
Xiti has quit [Ping timeout: 246 seconds]
cschneid has quit [Ping timeout: 250 seconds]
nowhere_man has joined #ruby
paranoicsan has joined #ruby
cruzo66342 has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
catbusters has joined #ruby
nchambers has joined #ruby
sagax has quit [Ping timeout: 268 seconds]
segy has quit [Ping timeout: 246 seconds]
cschneid has joined #ruby
segy has joined #ruby
Xiti has joined #ruby
venmx has quit [Ping timeout: 250 seconds]
sagax has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
Nobun has quit [Quit: WeeChat 2.1-dev]
donofrio has quit [Ping timeout: 268 seconds]
nchambers has quit [Ping timeout: 244 seconds]
KeyJoo has joined #ruby
cruzo66342 has quit [Remote host closed the connection]
sticaz has quit [Quit: sticaz]
hutch has joined #ruby
hutch has quit [Ping timeout: 250 seconds]
nchambers has joined #ruby
hutch has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
cruzo66342 has joined #ruby
cruzo66342 has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 240 seconds]
cnsvc has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
Xiti has quit [Quit: Xiti]
cthulchu has joined #ruby
hutch has quit [Ping timeout: 250 seconds]
crankharder has joined #ruby
marvin2 has quit [Ping timeout: 250 seconds]
Xiti has joined #ruby
prestori_ has joined #ruby
hutch has joined #ruby
prestorium has quit [Ping timeout: 240 seconds]
elphe has quit [Ping timeout: 268 seconds]
lxsameer has joined #ruby
\void has joined #ruby
Guest49234 has quit [Ping timeout: 250 seconds]
TomyLobo has joined #ruby
<TomyLobo>
rubygems.com is now a phishing site
<TomyLobo>
redirecting to a domain registered yesterday evening
<TomyLobo>
i could have sworn it once used to be a legit redirect to rubygems.org
<Swyper>
Failure/Error: expect(titleize("the bridge over the river kwai")).to eq("The Bridge over the River Kwai") expected: "The Bridge over the River Kwai" got: "thebridgeovertheriverkwai" (compared using ==)
<Swyper>
any ideas where I am going wrong? it seems the if statements do not ever get executed
<Swyper>
I added the "jj" and "kk" to see if the if statements were even executing and they are not
<havenwood>
Swyper: That gist doesn't seem to correspond with your test.
<havenwood>
Swyper: It's a nice convention to use a plural for a collection and the corresponding singular for the block value when iterating over the collection.
<havenwood>
Swyper: words.split.each do |word|
<Swyper>
havenwood: can you expand on what you mean
<Swyper>
oh
<Swyper>
havenwood: what I posted was just the method thats failing and what tests are failing
<havenwood>
Swyper: You're not joining this version, so it doesn't seem to match the test one.
<Swyper>
havenwood: if you refresh the gist I added comments with the tests that are failing
<Swyper>
oh right, I had a join in there before but was still getting the same output, so I tried to remove it to just see what string I have.. my main issue is the if else is not getting executed
<havenwood>
Swyper: This is a great place to use #map instead of #each. I find I use #map far more than #each anyways.
<elomatreb>
Your ifs are executed, the result is just discarded immediately because you're assigning the result of a call to #each
<elomatreb>
#each always returns the collection it was called on, not what you do with that in the iterations
<Swyper>
so your saying I'm assigning to a local variable within the if statement ?
<elomatreb>
No, you are assigning to the "correct" variable, but when all the words are done, the assignment in line 2 overrides what you changed
<havenwood>
Rudolph: Yeah, Medhi's are great too. +1
<havenwood>
Rudolph: baweaver and I are coworkers :)
<Rudolph>
definitely, i've learned a lot of the finer details from syntax i just normally glaze over
<Rudolph>
ah cool, you work at square too?
<havenwood>
yerp!
<Rudolph>
nice, i didn't realize how ruby heavy they were
marvin2 has joined #ruby
<havenwood>
tons of Ruby! \o/
donofrio has joined #ruby
dellavg_ has joined #ruby
hutch has joined #ruby
Exuma has joined #ruby
armyriad has joined #ruby
donofrio has quit [Ping timeout: 250 seconds]
cschneid has quit [Ping timeout: 250 seconds]
dellavg_ has quit [Ping timeout: 250 seconds]
elphe has joined #ruby
elphe has quit [Ping timeout: 250 seconds]
mspo has joined #ruby
CrazyEddy has quit [Ping timeout: 250 seconds]
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Exuma has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<mspo>
is there a way to call a method without arguments explicitly? like foo = P.new( foo.empty? : nil ? foo ) ; the P.new(nil) is not the same as P.new()
<Rudolph>
i normally do something like: args = []; ...; P.new *args
<Rudolph>
not sure if there is a better way
<mspo>
oops got my ?: mixed up there, but you get it
Exuma has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
venmx has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
donofrio has joined #ruby
<Rudolph>
do the rubysec maintainers happen to idle in here?
donofrio has quit [Ping timeout: 250 seconds]
nowhere_man has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
cthulchu has quit [Ping timeout: 272 seconds]
Exuma has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nowhere_man has quit [Ping timeout: 252 seconds]
Exuma has joined #ruby
libertyprime has joined #ruby
akaiiro has quit [Remote host closed the connection]
donofrio has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]