havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
Travis-42 has quit [Ping timeout: 240 seconds]
amitchellbullard has quit [Ping timeout: 240 seconds]
amitchellbullard has joined #ruby
Travis-42 has joined #ruby
railswebdev has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nertzy has quit [Ping timeout: 268 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has quit [Ping timeout: 246 seconds]
dnewkerk has left #ruby [#ruby]
jusa has joined #ruby
<eightlimbed> def wonky_coins(n)
<eightlimbed> return 1 if n == 0
<eightlimbed> wonky_coins(n/2) + wonky_coins(n/3) + wonky_coins(n/4)
<eightlimbed> end
SenpaiSilver has quit [Quit: Leaving]
nitric has quit [Ping timeout: 260 seconds]
<eightlimbed> how does wonky_coins(5) = 11? I can't get my mind around what is happening
dope_canoe has joined #ruby
rfoust has joined #ruby
lucz has joined #ruby
Yzguy has joined #ruby
dope_canoe has left #ruby [#ruby]
jusa has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
lucz has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
rakm has joined #ruby
marxarelli|afk is now known as marxarelli
ur5us has joined #ruby
<kspencer> for some reason nothing works when trying to verify github signatures, I have no clue whats wrong, and have followed all documentation to the best of my ability
Yzguy has quit [Quit: Zzz...]
<kspencer> signature = "sha1=#{OpenSSL::HMAC.hexdigest('sha1', token, request.body.read)}"
jenrzzz has joined #ruby
rkoller has joined #ruby
rkazak has joined #ruby
Cohedri__ has joined #ruby
<havenwood> eightlimbed: consider the following "puts-based" debugging: https://gist.github.com/havenwood/970823af50030f89aa74c789add058d2
<havenwood> eightlimbed: count the number of times it breaks with a 1 value
<havenwood> kspencer: can you gist the content of your ~/.gitconfig file?
polishdu1 has quit [Quit: leaving]
Cohedrin has quit [Ping timeout: 255 seconds]
rkoller has quit [Client Quit]
<havenwood> eightlimbed: consider if you called: wonky_coins 0
<havenwood> eightlimbed: it makes sense that'd return: 1
<havenwood> (since it hits the early return right away)
<kspencer> havenwood: I'm doing webhooks, I'm 99% sure I don't need to gist .gitconfig (granted I didn't say webhook before sorry)
<havenwood> eightlimbed: how about if you called? try to trace it's flow. what is the value? why?: wonky_coins 1
<havenwood> i meant: "called `wonky_coins 1`?"
<havenwood> kspencer: I assumed you meant you wanted to get gpgsign and signingkey setup for verified commits, nevermind
<havenwood> kspencer: Is this Ruby-related? You might try the Github support if it's Github-related.
im0nde has quit [Ping timeout: 240 seconds]
<havenwood> kspencer: https://github.com/contact
<kspencer> havenwood: Well I'm having to use ruby's openssl library to compare the sha1+hmac signatures
<kspencer> I've already sent them a message
<havenwood> kspencer: Maybe I missed the question. I restarted my bouncer a while back.
Cohedrin has joined #ruby
<havenwood> kspencer: Why are you comparing sha1+hmac signatures? What is it you're doing?/
Cohedri__ has quit [Ping timeout: 240 seconds]
<kspencer> :| GitHub's Webhook payloads to endpoints that have 'secrets' are hashed behind a hmac+sha1, otherwise I have to go by IP for github, and secret for gitlab
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jason^ has joined #ruby
bronson has quit [Remote host closed the connection]
<jason^> i have an array of search terms i want to run over a string, is there a good way to do this other than search_terms.each {|term| str.include?(term)} ?
<havenwood> jsaak: look at #grep
<havenwood> err, or say more about what you're doing
roamingdog has joined #ruby
<cam27> Not sure why my setter method does not change the health of my instance object? https://gist.github.com/cam271/a44eef440a6072cf41a24c556e9c7cad
<havenwood> i assumed you meant #select, but you said #each
<havenwood> >> ['cat', 'dog', 'space station'].grep /at/ # jason^
<ruby[bot]> havenwood: # => ["cat", "space station"] (https://eval.in/803863)
<jason^> oh cool yeah select would be better in this instance
<jason^> i forgot to look at the enumerable mixin :)
dlitvak has joined #ruby
<kspencer> havenwood: GitHub's Webhook payloads are sent with a header hashed behind a hmac+sha1 'X-Hub-Signature: sha1=dsd4f56sdf465dsf64sd', otherwise I have to go by IP for github, and secret for gitlab
marr has quit [Ping timeout: 246 seconds]
<eightlimbed> havenwood: looking at it now...
jackjackdripper has quit [Quit: Leaving.]
roamingdog has quit [Ping timeout: 272 seconds]
ecuanaso has joined #ruby
rfoust has quit [Remote host closed the connection]
planigan has quit [Quit: leaving]
rfoust has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
Rich_Morin has joined #ruby
gothicsouth has joined #ruby
apparition has joined #ruby
planigan has joined #ruby
AustinIncognito has quit [Quit: leaving]
<Rich_Morin> I've been geting irb nastygrams for a while, but given that I just updated my copy of Ruby and all the Gems, I was hoping that it would go away. Help? - https://gist.github.com/RichMorin/731f02684684df8cc47ee5db4a3ab40b
skixlix has joined #ruby
<skixlix> hey
<cam27> If I try to print out an instance method using self it will put this right? <Class:0x007fcb3f910fc0>
BSAlb has joined #ruby
francuz has quit [Quit: Going offline, see ya! (www.adiirc.com)]
oli______ has joined #ruby
BSaboia has quit [Ping timeout: 260 seconds]
moombah567 has joined #ruby
olivi____ has quit [Ping timeout: 255 seconds]
moombah5_ has joined #ruby
<havenwood> Rich_Morin: Try updating your RubyGems `gem update --system` then try a pristine all the things `gem pristine --all`.
<Rich_Morin> tnx
<havenwood> skixlix: hi
shinnya has quit [Ping timeout: 260 seconds]
moombah567 has quit [Ping timeout: 246 seconds]
gizmore|2 has joined #ruby
patarr has joined #ruby
<eightlimbed> havenwood: thank you for your help and writing that debugger! I'm starting to see it now... But It's not clear. Can you explain what you did on this line?
<eightlimbed> wonky_coins(n/2).tap { |v| puts "n/#{v}" } + wonky_coins(n/3).tap { |v| puts "n/#{v}" } + wonky_coins(n/4).tap { |v| puts "n/#{v}" }
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<cam27> baweaver: just saw your comment, never got an alert on Github, thank you
<eightlimbed> where is v coming from?
<baweaver> &ri Object#tap
<baweaver> v is the object you tapped
gizmore has quit [Ping timeout: 240 seconds]
skixlix has quit []
patarr has quit [Ping timeout: 240 seconds]
<Rich_Morin> havenwood: Sigh. Still getting the same nastygrams
jenrzzz has quit [Ping timeout: 240 seconds]
cam27 has quit [Quit: cam27]
lucz has joined #ruby
edwardly has quit [Ping timeout: 258 seconds]
patarr has joined #ruby
uZiel has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
lucz has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
jenrzzz has joined #ruby
edwardly has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
enterprisey has quit [Max SendQ exceeded]
enterprisey has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
mtkd has quit [Ping timeout: 245 seconds]
marxarelli is now known as marxarelli|afk
cfec0b8d has quit [Ping timeout: 260 seconds]
patr0clus has joined #ruby
uZiel has quit [Ping timeout: 272 seconds]
enterprisey has quit [Remote host closed the connection]
Cohedrin has joined #ruby
mtkd has joined #ruby
nofxxxx has quit [Ping timeout: 260 seconds]
lucz has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yehowyada has joined #ruby
bruce_lee has quit [Ping timeout: 260 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
nofxxxx has joined #ruby
<havenwood> Rich_Morin: What do you get for?: gem which sqlite3
<havenwood> Rich_Morin: And?: gem which libxml
<Rich_Morin> ERROR: Can't find ruby library file or shared library sqlite3
<Rich_Morin> ERROR: Can't find ruby library file or shared library libxml
patr0clus has quit [Quit: tempusfugit]
jenrzzz has quit [Ping timeout: 268 seconds]
<havenwood> Rich_Morin: What do you get for?: [[ "$(dirname $(which irb))" == "$(dirname $(which gem))" ]] && echo sane || echo insane
<havenwood> Rich_Morin: sane or insane?
<Rich_Morin> [[ "$(dirname $(which irb))" == "$(dirname $(which gem))" ]] && echo sane || echo insane
<Rich_Morin> sane
<havenwood> (from your shell)
<havenwood> kk, hrmmm
blackwind_123 has quit [Ping timeout: 240 seconds]
eightlimbs has joined #ruby
<havenwood> so we're dealing with irb and gem executables from the same ruby
<havenwood> yet it's complaining about extensions for gems that aren't installed...
<havenwood> Rich_Morin: do you mind trying uninstalling all non-default gems?
<havenwood> Rich_Morin: If that's fine by you: gem uninstall --all
oli______ has quit [Remote host closed the connection]
<havenwood> Rich_Morin: Though they're already not installed... at least not with this Ruby.
<Rich_Morin> erm, I just finished upgrading Ruby and all my gems - won't that make me do a bunch of that all over again?
<havenwood> yeah, you'd have to reinstall all the gems
<havenwood> maybe you don't want to do that
olivi____ has joined #ruby
<Rich_Morin> not much
<havenwood> hmm, at least find sqlite3 and libxml gem locations
<Rich_Morin> maybe I'll keep living with the ng...
<havenwood> Rich_Morin: which os/distro?
<havenwood> do you have locate or mdfind available?
<Rich_Morin> OSX 10.10.5
eightlimbed has quit [Ping timeout: 268 seconds]
LastWhisper____ has joined #ruby
ryzokuken has joined #ruby
<Rich_Morin> locate sqlite3 finds 4873 files
<havenwood> Rich_Morin: Try: mdfind -name sqlite3.rb
d^sh_ has joined #ruby
duderonomy has joined #ruby
Lee__ has joined #ruby
olivi____ has quit [Ping timeout: 255 seconds]
<havenwood> Rich_Morin: So it might be complaining about gems further back in your path.
<havenwood> It looks like it. That's the only thing that makes sense.
skweek has quit [Ping timeout: 258 seconds]
d^sh has quit [Ping timeout: 240 seconds]
<havenwood> Rich_Morin: What are you using to switch Ruby versions?
<Rich_Morin> AFAIK, the brew version should override the OS version.
<Rich_Morin> $ which irb
<havenwood> Rich_Morin: check?: which -a ruby
eightlimbs has quit [Ping timeout: 240 seconds]
t-recx has joined #ruby
<havenwood> Rich_Morin: You might even try `brew unlink ruby` then check `gem list sqlite3` etc. You can then `brew link ruby` to get your Homebrew Ruby and its executable s back.
<havenwood> But looking at your error, it's the 1.3.9 version of sqlite3 it's complaining about.
<havenwood> /Library/Ruby/Gems/2.0.0/gems/sqlite3-1.3.9/lib/sqlite3.rb
<havenwood> Which looks like the version on your system Ruby.
jameser has joined #ruby
<havenwood> Rich_Morin: You could try: sudo gem pristine sqlite3 libxml-ruby
<havenwood> (Which would drop env and be system Ruby.)
<Rich_Morin> Failed to find gems ["sqlite3", "libxml-ruby"] >= 0
<havenwood> Rich_Morin: Do you see them with?: sudo gem list
<Rich_Morin> I wonder if it's a search path problem.
Dreamer3 has joined #ruby
<Rich_Morin> no, they don't show up then
<havenwood> I am curious why they're coming up at all. Check your PATH and GEM_PATH for sanity. You don't need system Ruby in your paths.
houhoulis has joined #ruby
RedNifre has quit [Ping timeout: 240 seconds]
<havenwood> Rich_Morin: Err, so which Ruby is system Ruby?: sudo ruby -v
<havenwood> Rich_Morin: Or look at: sudo which -a ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Rich_Morin> sudo which -a ruby
<Rich_Morin> lists /usr/local/bin/ruby and /usr/bin/ruby
<havenwood> Rich_Morin: But yeah, multiple Rubies can get odd. Especially if PATH, GEM_PATH, etc aren't all set right.
<havenwood> Rich_Morin: Okay, so you have a Ruby in front of your system Ruby that has the sqlite3 gem in question.
<havenwood> The Homebrew Ruby.
<havenwood> Rich_Morin: gem unlink ruby
<havenwood> err
<Rich_Morin> GEM_PATH isn't set. PATH is /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/Users/rdm/bin:/Users/rdm/Dropbox/cfcl/bin:/usr/local/bin:/opt/local/bin:/opt/local/sbin:/sbin:/usr/sbin:/usr/bin:/bin:/etc:/usr/games:.:/Applications/Postgres.app/Contents/Versions/9.4/bin:/usr/X11R6/bin
<havenwood> Rich_Morin: brew unlink ruby
<Rich_Morin> and then?
<havenwood> Rich_Morin: then: sudo gem pristine ...
<havenwood> Rich_Morin: and: brew link ruby
<havenwood> (Go to system Ruby, pristine those funky gems, then go back to Homebrew Ruby.
<havenwood> )
<Rich_Morin> It seems to be trying...
<havenwood> good luck!
enterprisey has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Rich_Morin> that cleaned it up; Thanks!
<havenwood> Rich_Morin: you're welcome
<Rich_Morin> It also cleared up a problem I was having with ruby-path :-)
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
gmoney has quit [Quit: Connection closed for inactivity]
gnufied has quit [Ping timeout: 255 seconds]
rfoust has joined #ruby
<Rich_Morin> except now I get "-bash: /usr/local/bin/gem: No such file or directory"
tgragnato has quit [Ping timeout: 260 seconds]
jusa has joined #ruby
Lee__ has quit [Ping timeout: 240 seconds]
KeyJoo has quit [Ping timeout: 246 seconds]
tgragnato has joined #ruby
patarr has joined #ruby
<Rich_Morin> and ruby --version is back at 2.0.0p481
jusa has quit [Ping timeout: 240 seconds]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alibby has left #ruby [#ruby]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kspencer> havenwood: :| my problem was '\n' in part of it, so i had to .chomp
mmasaki_ has joined #ruby
<kspencer> per github support email
patarr has quit [Read error: Connection reset by peer]
hashrocket has quit [Quit: Connection closed for inactivity]
gnufied has joined #ruby
genpaku has quit [Remote host closed the connection]
bronson has joined #ruby
patarr has joined #ruby
genpaku has joined #ruby
<Bespoormsed> Rich_Morin: type: which gem
mmasaki_ has quit [Quit: bye]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rich_Morin has quit [Quit: Rich_Morin]
charliesome has joined #ruby
Rich_Morin has joined #ruby
mmasaki_ has joined #ruby
<Rich_Morin> sorry; had to kill and restart Colloquy
patarr has quit [Ping timeout: 260 seconds]
<Rich_Morin> which gem -> /usr/bin/gem
bronson has quit [Ping timeout: 272 seconds]
mmasaki_ has quit [Client Quit]
<Rich_Morin> I seem to have a PATH snafu
rkazak has quit [Quit: Sleep.....ing....]
<havenwood> Rich_Morin: brew link ruby
<Rich_Morin> still /usr/bin/ruby
<havenwood> Rich_Morin: restart your terminal?
<havenwood> Rich_Morin: linking brew should do the trick
lucz has quit [Remote host closed the connection]
<havenwood> Rich_Morin: if not, gist us: brew doctor
mim1k has joined #ruby
rkazak has joined #ruby
roamingdog has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
mmasaki has quit [Quit: bye]
sneakerhax has quit [Quit: Back later]
rkazak has quit [Read error: Connection timed out]
ineb has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
roamingdog has quit [Ping timeout: 240 seconds]
ineb has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
postmodern has quit [Quit: Leaving]
ecuanaso has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gnufied has quit [Ping timeout: 272 seconds]
<Rich_Morin> havenwood: Do I need to define GEM_PATH somewhere if I'm using the brew version of Ruby?
pb122 has joined #ruby
railswebdev has joined #ruby
postmodern has joined #ruby
<Rich_Morin> nm
charliesome has joined #ruby
akkad has quit [Excess Flood]
roamingdog has joined #ruby
t-recx has quit [Quit: t-recx]
mim1k has joined #ruby
akkad has joined #ruby
bronson has joined #ruby
jrafanie has joined #ruby
bronson has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 245 seconds]
bkxd has joined #ruby
bambanx has quit [Quit: Leaving]
moombah5_ has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hellfar has quit [Remote host closed the connection]
hkdsun has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gothicsouth has joined #ruby
cdg has quit [Ping timeout: 272 seconds]
HoierM_ has quit [Ping timeout: 246 seconds]
akkad has quit [Excess Flood]
mmasaki has joined #ruby
hndk has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
mmasaki has quit [Client Quit]
mmasaki has joined #ruby
mmasaki has quit [Client Quit]
mmasaki has joined #ruby
akkad has joined #ruby
Vile` has quit [Ping timeout: 240 seconds]
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mmasaki has quit [Client Quit]
mmasaki has joined #ruby
mmasaki has quit [Client Quit]
akkad has quit [Excess Flood]
akkad has joined #ruby
volty has quit [Ping timeout: 260 seconds]
hays has joined #ruby
cjhowe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nofxxx has joined #ruby
yehowyada has quit [Quit: Textual IRC Client: www.textualapp.com]
nofxxxx has quit [Ping timeout: 260 seconds]
ryzokuken has quit [Quit: Connection closed for inactivity]
hndk has quit [Quit: Leaving]
milardovich has quit [Ping timeout: 255 seconds]
moombah567 has joined #ruby
Lee__ has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
al2o3-cr has joined #ruby
moombah567 has quit [Ping timeout: 240 seconds]
DroidBurgundy has quit [Remote host closed the connection]
cjhowe has joined #ruby
skweek has joined #ruby
houhoulis has quit [Remote host closed the connection]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
skweek has quit [Remote host closed the connection]
skweek has joined #ruby
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
hanna has quit [Remote host closed the connection]
cfec0b8d has joined #ruby
__Yiota has joined #ruby
apparition has joined #ruby
renchan has joined #ruby
hanna has joined #ruby
Bilge has quit [Ping timeout: 240 seconds]
Bilge has joined #ruby
yolongboi has joined #ruby
_whitelogger has joined #ruby
konsolebox has joined #ruby
olivi____ has joined #ruby
mmasaki has joined #ruby
brent__ has joined #ruby
olivi____ has quit [Ping timeout: 240 seconds]
brent__ has quit [Ping timeout: 240 seconds]
kristofferR has joined #ruby
moei has joined #ruby
kristoff_ has quit [Ping timeout: 240 seconds]
DroidBurgundy has joined #ruby
uZiel has joined #ruby
patarr has joined #ruby
jenrzzz has joined #ruby
Bilge has quit [Ping timeout: 272 seconds]
<LastWhisper____> how do i persist a variable that is set during a loop?
DroidBurgundy has quit [Ping timeout: 260 seconds]
<LastWhisper____> im basically doing
jenrzzz has quit [Ping timeout: 255 seconds]
patarr has quit [Ping timeout: 246 seconds]
aupadhye has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
<LastWhisper____> result_array = []; [1,2,3].each do |x|; hash = { derp: x}; result_array << hash; end;
<LastWhisper____> once im outside of the loop though result_array is still []
<elomatreb> LastWhisper____: Maybe show your actual code? Because it's not: result_array = []; [1,2,3].each do |x|; hash = { derp: x}; result_array << hash; end;
<elomatreb> Uh, sorry. https://eval.in/803915#
kt2 has joined #ruby
<LastWhisper____> welp.. it's using a gem called parallel
<LastWhisper____> https://eval.in/803917
Bilge has joined #ruby
oliv_____ has joined #ruby
<LastWhisper____> maybe this explains
anisha has joined #ruby
mim1k has joined #ruby
oliv_____ has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
Bock has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
Xakotu has joined #ruby
jameser_ has joined #ruby
jameser has quit [Ping timeout: 240 seconds]
Xakotu has quit [Client Quit]
<zenspider> LastWhisper____: I'd avoid that
<LastWhisper____> you'd avoid what?
jameser_ has quit [Ping timeout: 240 seconds]
<zenspider> the parallel gem. needless complexity
wuyin has joined #ruby
Lee__ has quit [Ping timeout: 268 seconds]
vali has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cam27 has joined #ruby
<LastWhisper____> well, i'm currently trying to parallelize some headless browser spin ups using ruby and i wanted to fetch some of their data that i get back
pusewicz has joined #ruby
jameser has joined #ruby
<LastWhisper____> im thinking maybe i just pass that data back via redis instead of storing it in db
<zenspider> clearly that requires 1kloc and obviously confusing code that should Just Work
<LastWhisper____> or in a variable rather
<LastWhisper____> 1kloc?
<zenspider> that stupid gem is about a thousand lines of confusion
<LastWhisper____> oh...
<zenspider> LastWhisper____: so why not spawn some threads do the work and get the data back?
<LastWhisper____> i was told to not use threads as a requirement
<LastWhisper____> and to specifically use processes
jamesaxl has joined #ruby
<zenspider> threads can use processes and I don't see why that's a requirement in the first place
<LastWhisper____> i wanted to do this in elixir... would have been ezpz but there are no libs that do the browser work i want
<LastWhisper____> yeah i dont come up with the requirements unfortunately
<zenspider> anyone who tells you HOW to do something should be the one doing it... or shutting the fuck up
<LastWhisper____> haha trust me i would love to say that but that person is the highest ranking dev at work
<LastWhisper____> im not tryna get fired
<LastWhisper____> i am however going to test your proposed solution though
<zenspider> n.times.map { Thread.new { do the work and get the result } }.map(&:join)... or if it is bigger than that, put the work to be done in a Queue, spawn N threads to do the work and put the results in another queue.
jenrzzz has joined #ruby
ryzokuken has joined #ruby
<zenspider> good luck
<zenspider> I'm off
<LastWhisper____> thanks bud. I'll be sure to cherish the memory of the creator of minitest telling me to tell my boss to shut the fuck up xD
KeyJoo has joined #ruby
wuyin has quit [Quit: leaving]
Xakotu has joined #ruby
vali has quit [Ping timeout: 240 seconds]
JBbankss has quit [Ping timeout: 260 seconds]
Xakotu has quit [Remote host closed the connection]
Coldblackice has quit [Ping timeout: 260 seconds]
nofxxxx has joined #ruby
nofxxx has quit [Ping timeout: 246 seconds]
ur5us has quit [Remote host closed the connection]
moombah567 has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
moombah567 has quit [Ping timeout: 268 seconds]
ActuallyPlatypus has joined #ruby
MrBusiness has quit [Ping timeout: 255 seconds]
jameser_ has joined #ruby
jusa has joined #ruby
jameser has quit [Ping timeout: 246 seconds]
Mortomes|Work has joined #ruby
crankharder has joined #ruby
bronson has joined #ruby
Bespoormsed has quit [Quit: Leaving]
hays has quit [Ping timeout: 260 seconds]
DoubleMalt has joined #ruby
Cohedrin has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
oliv_____ has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
yolongboi has quit [Read error: Connection reset by peer]
Coldblackice has joined #ruby
cjhowe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cjhowe has joined #ruby
cjhowe has quit [Client Quit]
cjhowe has joined #ruby
cjhowe has quit [Client Quit]
cjhowe has joined #ruby
tvw has joined #ruby
cjhowe has quit [Client Quit]
cjhowe has joined #ruby
cjhowe has quit [Client Quit]
cjhowe has joined #ruby
cjhowe has quit [Client Quit]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cjhowe has joined #ruby
cjhowe has quit [Client Quit]
cjhowe has joined #ruby
cjhowe has quit [Client Quit]
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
biberu has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tgragnato has quit [Ping timeout: 260 seconds]
conta has joined #ruby
oliv_____ has quit [Ping timeout: 272 seconds]
dionysus69 has joined #ruby
aufi has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
pusewicz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pusewicz has joined #ruby
vali has joined #ruby
tomphp has joined #ruby
arquebus has joined #ruby
mdw has joined #ruby
AlexRussia_ has quit [Ping timeout: 268 seconds]
jusa has quit [Ping timeout: 240 seconds]
tomphp has quit [Ping timeout: 240 seconds]
jusa has joined #ruby
nobitanobi has joined #ruby
zenguy_pc has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
govg has quit [Ping timeout: 272 seconds]
roamingdog has joined #ruby
AnoHito_ has quit [Ping timeout: 240 seconds]
roamingdog has quit [Remote host closed the connection]
AnoHito has joined #ruby
roamingdog has joined #ruby
zenguy_pc has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
nobitano_ has joined #ruby
jgnagy has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
brent__ has joined #ruby
jgnagy has joined #ruby
patarr has joined #ruby
DroidBurgundy has joined #ruby
ActuallyPlatypus has quit [Quit: Leaving]
nobitanobi has quit [Ping timeout: 260 seconds]
andikr has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
DroidBurgundy has quit [Ping timeout: 246 seconds]
patarr has quit [Ping timeout: 240 seconds]
zenguy_pc has quit [Ping timeout: 240 seconds]
arquebus has quit [Quit: konversation disconnects]
zenguy_pc has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
oliv_____ has joined #ruby
statikowsky has joined #ruby
bronson has joined #ruby
oliv_____ has quit [Ping timeout: 245 seconds]
mim1k has joined #ruby
govg has joined #ruby
mark_66 has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
mim1k has quit [Ping timeout: 258 seconds]
DeeJayh_ has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
stoffus has joined #ruby
etehtsea has joined #ruby
oliv_____ has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
oliv_____ has quit [Ping timeout: 246 seconds]
Mia has quit [Ping timeout: 246 seconds]
pandaant has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
DeeJayh_ has joined #ruby
djbkd has quit []
govg has quit [Ping timeout: 245 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlexRussia_ has joined #ruby
mikecmpbll has joined #ruby
kt2 has quit [Quit: kt2]
kt2 has joined #ruby
etehtsea has quit [Ping timeout: 240 seconds]
moombah567 has joined #ruby
vali has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dionysus69> is there a cool way to create a shortcut to method call?
<dionysus69> i have method calls that are couple lines long and in order to disable it I have to comment out multiple lines which is just tedious, I wonder if theres a better way to switch those calls on off more concisely
etehtsea has joined #ruby
moombah567 has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
Burgestrand has joined #ruby
DoubleMalt has quit [Ping timeout: 258 seconds]
roamingdog has joined #ruby
akkad has quit [Excess Flood]
ltd has quit [Ping timeout: 240 seconds]
marr has joined #ruby
ltd has joined #ruby
nhhc has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
roamingdog has quit [Ping timeout: 272 seconds]
Beams has joined #ruby
oliv_____ has joined #ruby
<claw> good job #ruby
ineb has joined #ruby
<mikecmpbll> :D
ltd has quit [Remote host closed the connection]
<Yxhuvud> dionysus69: if you have lots of arguments that repeat themselves, then that is a typical sign that you should extract a class using the arguments as instance variables.
ltd has joined #ruby
DeeJayh_ has quit [Ping timeout: 255 seconds]
vali has joined #ruby
charliesome has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ltd has quit [Ping timeout: 268 seconds]
ltd has joined #ruby
vali has quit [Client Quit]
akkad has joined #ruby
oliv_____ has quit [Ping timeout: 258 seconds]
mdw has joined #ruby
Puffball has quit [Remote host closed the connection]
mim1k has joined #ruby
bkxd has joined #ruby
Puffball has joined #ruby
kassav_ has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
<kassav_> hello, any quick method to get the total memory of the host in ruby?
mim1k has quit [Read error: Connection reset by peer]
fxa90id has joined #ruby
fxa90id has joined #ruby
fxa90id has quit [Changing host]
<apeiros> kassav_: shell out to the proper command line utility (platform dependent)
<kassav_> i did like this
<kassav_> free -m | grep -oP '\d+' | head -n 1
<kassav_> it's working on the shell
<apeiros> total_memory = `free -m | grep -oP '\d+' | head -n 1`
<kassav_> in irb i got this
<kassav_> @memory = `free -m | grep -oP '\d+' | head -n 1`
<kassav_> "d\n"
<apeiros> just be aware that this will be a string
<apeiros> oh, sure
<kassav_> the result is wrong = "d\n"
<apeiros> you need to escape the \
<apeiros> total_memory = `free -m | grep -oP '\\d+' | head -n 1`
<kassav_> yes but still get 7850\n
<kassav_> where does the \n came from
<ljarvis> the output from your command includes a newline
<ljarvis> so you'll have to remove it yourself
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DeeJayh_ has joined #ruby
workmad3 has joined #ruby
govg has joined #ruby
mim1k has joined #ruby
<kassav_> it worked
<kassav_> total_memory = `free -m | grep -oP '\\d+' | head -n 1`.strip.to_i
<kassav_> thank you all
lxsameer has joined #ruby
cam27 has quit [Quit: cam27]
teclator has quit [Ping timeout: 272 seconds]
bronson has joined #ruby
tomphp has joined #ruby
teclator has joined #ruby
im0nde has joined #ruby
DoubleMalt has joined #ruby
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
roshanavand has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
roamingdog has joined #ruby
patarr has joined #ruby
DroidBurgundy has joined #ruby
mdw has quit [Ping timeout: 255 seconds]
roamingdog has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 246 seconds]
DroidBurgundy has quit [Ping timeout: 240 seconds]
latemus is now known as a-pen
a-pen is now known as latemus
tvw has quit [Ping timeout: 255 seconds]
tvw has joined #ruby
latemus is now known as a-pen
ledestin has joined #ruby
W4x has quit [Ping timeout: 272 seconds]
a-pen is now known as latumes
latumes is now known as latmus
qwasz has joined #ruby
latmus is now known as latemus
Puffball has quit [Remote host closed the connection]
arup_r has joined #ruby
latemus is now known as a-pen
a-pen is now known as latemus
brent__ has joined #ruby
<arup_r> Can anyone tell me what is wrong with my `assert_raise` ? My test is failing. https://gist.github.com/aruprakshit/989f0cdaeb5b41c15667362bded838f1
Puffball has joined #ruby
jackrandom has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
<ljarvis> arup_r: the exception is raised in initialize called on line 25, not in #import which is what your test asserts
latemus is now known as muhfuhkel
<arup_r> hm :)
muhfuhkel is now known as muhfuhker
<arup_r> ljarvis: thanks. how can I miss that details :(
muhfuhker is now known as latemus
<dminuoso> arup_r: By making blind assumptions.
<arup_r> dminuoso: nothing like that.. I am testing my own code.. somehow I overlooked it.
<dminuoso> arup_r: Your assumption was that the block was throwing the exception.
brent__ has quit [Ping timeout: 246 seconds]
workmad3_ has joined #ruby
<arup_r> No. I was thinking the exception comes when I call .import, although it is not. it from .new. I know how the syntax.. just lack of something. :)
<arup_r> anyway thanks.
<dminuoso> arup_r: Which is what I just said. You thought the block in 27 was throwing the exception not the line 25. :-P
<ljarvis> dminuoso is literally saying the same thing as you, you just said "thinking" and dminuoso said "assuming"
<arup_r> yeah
latemus has left #ruby [#ruby]
<dminuoso> Assumption is the mother of all fuck-ups. If a bug doesn't make sense, it's that one of your assumptions is wrong.
<arup_r> ljarvis: Are you also in #javascript IRC right? :)
<dminuoso> arup_r: No, the person you are referring to has a very similar nickname.
<ljarvis> no, i hate javascript
<arup_r> ahhh! :)
<dminuoso> arup_r: That person is ljharb
<arup_r> hmm.. I should sleep :)
workmad3 has quit [Ping timeout: 240 seconds]
<arup_r> dminuoso: u are right again.
<ljarvis> arup_r: btw, Tempfile.open doesn't return the last thing in the block, so you could need the explicit `f` lines
<ljarvis> s/could/don't/
AnoHito has quit [Ping timeout: 240 seconds]
DeeJayh_ has quit [Ping timeout: 240 seconds]
nofxxxx has quit [Ping timeout: 240 seconds]
nofxxxx has joined #ruby
AnoHito has joined #ruby
<arup_r> ok.. https://ruby-doc.org/stdlib-1.9.3/libdoc/tempfile/rdoc/Tempfile.html#method-c-open here I see *The call returns the value of the block.* What does it mean?
<ljarvis> oh
<ljarvis> i suck, ignore me
<ljarvis> weird
<dminuoso> arup_r: Are you using Ruby 1.9.3 ?
<arup_r> ok :) np..
<arup_r> dminuoso: 2.3.1
<dminuoso> arup_r: Then use the documentation for 2.3.1
<arup_r> hm
<dminuoso> Im not saying its gonna make a difference, but this kind of carelessness can waste time. ;-)
romank has joined #ruby
<arup_r> yeah ^ :D
<dminuoso> arup_r: Also 2.3.1 is outdated. Upgrade to 2.3.4 :-)
<ljarvis> and then 2.4.1
olivi____ has joined #ruby
<arup_r> ok :)
romank_ has joined #ruby
olivi____ has quit [Ping timeout: 240 seconds]
romank has quit [Ping timeout: 245 seconds]
ur5us has joined #ruby
olivi____ has joined #ruby
Puppet_ has joined #ruby
postmodern has quit [Remote host closed the connection]
postmodern has joined #ruby
zepy_aq_ has quit [Remote host closed the connection]
zepy_aq_ has joined #ruby
mim1k has joined #ruby
Puppet___ has quit [Ping timeout: 240 seconds]
mdw has joined #ruby
im0nde has quit [Ping timeout: 255 seconds]
govg has quit [Ping timeout: 240 seconds]
olivi____ has quit [Ping timeout: 260 seconds]
arup_r has quit [Remote host closed the connection]
fxa90id has quit [Quit: Leaving]
bkxd has quit [Ping timeout: 258 seconds]
vuoto has joined #ruby
arup_r has joined #ruby
govg has joined #ruby
vuoto has left #ruby [#ruby]
cschneid_ has joined #ruby
moombah567 has joined #ruby
vuoto has joined #ruby
patarr has joined #ruby
stoffus has quit [Quit: leaving]
bkxd has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
moombah567 has quit [Ping timeout: 246 seconds]
robouk has quit [Quit: Konversation terminated!]
patarr has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby
bkxd has joined #ruby
roamingdog has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
Puffball has quit [Remote host closed the connection]
olivi____ has joined #ruby
yqt has joined #ruby
aglorei has quit [Ping timeout: 248 seconds]
Puffball has joined #ruby
teclator has quit [Ping timeout: 255 seconds]
vuoto has quit [Quit: Lost terminal]
vuoto has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
olivi____ has quit [Ping timeout: 255 seconds]
jinie has joined #ruby
romank_ has quit [Ping timeout: 245 seconds]
kt has joined #ruby
rikai has quit [Ping timeout: 255 seconds]
vuoto has quit [Remote host closed the connection]
romank has joined #ruby
rikai has joined #ruby
tomphp has quit [Quit: Textual IRC Client: www.textualapp.com]
kt2 has quit [Quit: kt2]
aglorei has joined #ruby
jameser has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
sobersabre has joined #ruby
kt2 has joined #ruby
<sobersabre> hi. I'm a bit rusty with ruby (last time I touched ruby code was 5 years ago)
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
<sobersabre> I want to hack on a project, I expect rake test to run and fail in tests, but instead it prints me some migrations/depdency problems.
<sobersabre> I am in rvm with ruby: ~/.rvm/rubies/ruby-1.9.3-p551/bin/ruby
<sobersabre> I ran bundle, and it seems all required gems are installed.
<sobersabre> here's the curse rake it printing:
<ruby[bot]> sobersabre: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
yeticry_ has joined #ruby
<sobersabre> well, I probably didn't run something I should have.
tomphp has joined #ruby
<sobersabre> Also, I am in webstorm, and I pointed it properly to the right rvm ruby. I can see all the gems are there.
yeticry has quit [Ping timeout: 272 seconds]
bestie has quit [Quit: Connection closed for inactivity]
antgel has joined #ruby
<sobersabre> well, do not be shy. I promise to understand quickly.
FastJack_ has quit [Quit: leaving]
FastJack has joined #ruby
stamina has joined #ruby
kt2 has quit [Quit: kt2]
bronson has joined #ruby
jcputter has joined #ruby
gregf_ has quit [Ping timeout: 260 seconds]
AnoHito has quit [Ping timeout: 240 seconds]
AnoHito has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
nhhc has quit [Remote host closed the connection]
ddffg has joined #ruby
DroidBurgundy has joined #ruby
DroidBurgundy has quit [Ping timeout: 255 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
tomphp has quit [Client Quit]
d^sh_ has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
d^sh has joined #ruby
jenrzzz has joined #ruby
ur5us has quit [Remote host closed the connection]
robouk has joined #ruby
SenpaiSilver has joined #ruby
ldnunes has joined #ruby
Vingador has joined #ruby
govg has quit [Ping timeout: 272 seconds]
JoshS has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
kt has quit [Quit: Quit]
Rich_Morin has quit [Ping timeout: 272 seconds]
kt has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
statikowsky has quit [Remote host closed the connection]
bkxd has joined #ruby
statikowsky has joined #ruby
Rich_Morin has joined #ruby
swills has joined #ruby
roamingdog has joined #ruby
Fernando-Basso has joined #ruby
hkdsun has quit [Quit: hkdsun]
roshanavand has quit [Quit: Leaving.]
ryotarai has quit [Ping timeout: 240 seconds]
daemonwrangler has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
blackmesa has quit [Quit: WeeChat 1.6]
marens has quit [Remote host closed the connection]
teclator has quit [Quit: No Ping reply in 180 seconds.]
marens has joined #ruby
<uZiel> can I split a string into chunks of length n each?
VladGh_ has quit [Ping timeout: 240 seconds]
russt has quit [Ping timeout: 240 seconds]
cout has quit [Ping timeout: 240 seconds]
hxegon has quit [Ping timeout: 240 seconds]
majuscule has quit [Ping timeout: 240 seconds]
cout has joined #ruby
teclator has joined #ruby
yeticry_ has quit [Ping timeout: 240 seconds]
gimmic has quit [Ping timeout: 240 seconds]
roamingdog has quit [Ping timeout: 240 seconds]
<ljarvis> uZiel: see String#split and Enumerable#each_slice
majuscule has joined #ruby
VladGh has joined #ruby
russt has joined #ruby
daemonwrangler has joined #ruby
yeticry has joined #ruby
<ljarvis> or just use rgexp
hxegon has joined #ruby
gimmic has joined #ruby
<ljarvis> >> "foobar".scan(/.{3}/)
<ruby[bot]> ljarvis: # => ["foo", "bar"] (https://eval.in/804274)
ryotarai has joined #ruby
<canton7> >> "foobar".scan(/.{4}/)
<ruby[bot]> canton7: # => ["foob"] (https://eval.in/804275)
<ljarvis> there are of course caveats :)
jcputter has quit [Remote host closed the connection]
zzxc has quit [Ping timeout: 272 seconds]
<uZiel> I am not good with ruby regexp, any sources where I can learn from?
jcputter has joined #ruby
<uZiel> or are these just normal regexp and I just need to learn what 'scan' does?
<ljarvis> yeah, the latter
<ljarvis> &Enumerable#scan
<ljarvis> %Enumerable#scan
<ljarvis> meh
zzxc has joined #ruby
<ljarvis> &ri Enumerable#scan
<`derpy> No results
<ljarvis> &ri String#scan
<ljarvis> 4th time lucky
stamina has quit [Quit: WeeChat 1.8]
<uZiel> lol, practice makes perfect :)
<ljarvis> also, as per canton7's example, if you actually want ["foob", "ar"] then maybe you dont want regexp
<ljarvis> >> "foobar".chars.each_slice(4).map(&:join)
<ruby[bot]> ljarvis: # => ["foob", "ar"] (https://eval.in/804278)
<uZiel> and that &: function too, what is that?
govg has joined #ruby
tgragnato has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
konsolebox has quit [Quit: Leaving]
olivi____ has joined #ruby
bmurt has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
moombah567 has joined #ruby
tgragnato has left #ruby ["Sto andando via"]
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olivi____ has quit [Ping timeout: 272 seconds]
jcputter has quit [Remote host closed the connection]
keyjoo_ has joined #ruby
Vingador has quit [Remote host closed the connection]
Vingador has joined #ruby
Vingador has quit [Read error: Connection reset by peer]
Vingador has joined #ruby
moombah567 has quit [Ping timeout: 260 seconds]
KeyJoo has quit [Ping timeout: 246 seconds]
kt has quit [Ping timeout: 258 seconds]
jcputter has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
arup_r has quit [Remote host closed the connection]
gnufied has joined #ruby
kt has joined #ruby
im0nde has joined #ruby
nowhere_man has joined #ruby
postmodern has quit [Quit: Leaving]
gnufied has quit [Quit: Leaving]
hashrocket has joined #ruby
ineb has quit [Quit: WeeChat 1.7]
DeeJayh_ has joined #ruby
gnufied has joined #ruby
User458764 has joined #ruby
tgragnato has joined #ruby
zepy_aq_ has quit [Quit: Leaving]
rfoust has joined #ruby
t-recx has joined #ruby
herbmillerjr has joined #ruby
HoierM_ has joined #ruby
anisha_ has joined #ruby
anisha has quit [Ping timeout: 260 seconds]
VgpC has joined #ruby
benjen has joined #ruby
<dionysus69> how do I make crossplatform file creation tool script ? I want it to work on linux and windows
<dionysus69> for example I am going to create dir in linux home dir which is different from windows homedir path
Xiti has quit [Quit: Xiti]
charliesome has joined #ruby
<tobiasvl> dionysus69: I think ENV['HOME'] works on both linux and windows?
<tobiasvl> or Dir.home
Burgestrand has quit [Ping timeout: 272 seconds]
negatifze has quit [Quit: Textual IRC Client: www.textualapp.com]
jcputter has quit []
<tobiasvl> yes, Dir.home is best
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeffreylevesque has quit [Ping timeout: 260 seconds]
<dionysus69> dir home is only on linux i guess
<dionysus69> windows has env vars like USERPROFILE
<dionysus69> or HOMEPATH which is /USERS/USERNAME
houhoulis has joined #ruby
<dionysus69> so I will need conditional in any case
bmurt has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
<tobiasvl> dionysus69: Dir.home works for both windows and linux
roamingdog has joined #ruby
rfoust has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 240 seconds]
rfoust has joined #ruby
Xiti has joined #ruby
roamingdog has quit [Ping timeout: 246 seconds]
bpmedley has quit [Ping timeout: 245 seconds]
volty has joined #ruby
<dionysus69> oh nice, I ll keep that in mind when I setup windows compatibility
andikr has quit [Remote host closed the connection]
statikow_ has joined #ruby
teclator has quit [Remote host closed the connection]
bubkiss has joined #ruby
<bubkiss> yo guys
statikowsky has quit [Ping timeout: 240 seconds]
SuperLag has quit [Quit: reboot]
bubkiss has left #ruby [#ruby]
tgragnato has quit [Quit: Sto andando via]
SuperLag has joined #ruby
ferr has quit [Quit: WeeChat 1.7]
DeeJayh_ has quit [Ping timeout: 240 seconds]
romeoh has joined #ruby
cdg has joined #ruby
jeffreylevesque has joined #ruby
ramortegui has joined #ruby
mim1k has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
haylon has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
blackwind_123 has joined #ruby
jphase has joined #ruby
AlexRussia_ has quit [Ping timeout: 240 seconds]
DroidBurgundy has joined #ruby
anisha has joined #ruby
anisha_ has quit [Ping timeout: 240 seconds]
DroidBurgundy has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
DoubleMalt has joined #ruby
Burgestrand has joined #ruby
nyuszika7h has quit [Quit: Updating stuff]
nyuszika7h has joined #ruby
rfoust has quit [Ping timeout: 240 seconds]
gil_ has quit [Ping timeout: 255 seconds]
bkxd has quit [Ping timeout: 246 seconds]
DLSteve has joined #ruby
t-recx has quit [Quit: t-recx]
Burgestrand has quit [Ping timeout: 240 seconds]
minimalism has quit [Quit: minimalism]
pandaant has quit [Remote host closed the connection]
roshanavand has joined #ruby
hays has joined #ruby
hays has quit [Remote host closed the connection]
__Yiota has joined #ruby
haylon has quit [Remote host closed the connection]
tgragnato has joined #ruby
anisha has quit [Quit: Leaving]
Burgestrand has joined #ruby
DeeJayh_ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
haylon has joined #ruby
anisha has joined #ruby
blackwind_123 has quit [Ping timeout: 240 seconds]
blackwind_123 has joined #ruby
nowhere_man has quit [Ping timeout: 268 seconds]
oliv_____ has joined #ruby
griffindy has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oleo has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
yqt has quit [Ping timeout: 260 seconds]
DroidBurgundy has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
__Yiota has joined #ruby
bmurt has quit [Ping timeout: 260 seconds]
haylon has quit [Remote host closed the connection]
railswebdev has joined #ruby
DeeJayh_ has quit [Ping timeout: 240 seconds]
jrafanie has joined #ruby
cam27 has joined #ruby
moombah567 has joined #ruby
anisha_ has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
nobodyzxc has joined #ruby
nobodyzxc has quit [Client Quit]
DeeJayh_ has joined #ruby
moombah567 has quit [Ping timeout: 240 seconds]
qwasz has quit [Quit: Leaving]
blackwind_123 has quit [Ping timeout: 255 seconds]
konsolebox has joined #ruby
statikow_ has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
olivi____ has quit [Ping timeout: 240 seconds]
xall has joined #ruby
volty has quit [Ping timeout: 246 seconds]
statikowsky has joined #ruby
lucz has joined #ruby
quobo has joined #ruby
tristanp has quit []
shinnya has joined #ruby
Asher has joined #ruby
lucz has quit [Ping timeout: 255 seconds]
tristanp has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has joined #ruby
jrafanie_ has joined #ruby
jrafanie has quit [Ping timeout: 240 seconds]
coding_kai has joined #ruby
__Yiota has joined #ruby
lucz has joined #ruby
statikowsky has quit [Remote host closed the connection]
chouhoulis has joined #ruby
statikowsky has joined #ruby
rgr_ has quit [Quit: rgr_]
rc48 has joined #ruby
tgragnato has quit [Quit: Sto andando via]
cfec0b8d has quit [Remote host closed the connection]
romank has quit [Ping timeout: 272 seconds]
Lee__ has joined #ruby
romank has joined #ruby
DroidBurgundy has quit [Remote host closed the connection]
DroidBurgundy has joined #ruby
statikowsky has quit [Remote host closed the connection]
<rc48> Anyone know how efficient Enumerable#reduce is compared to each_with_object?
houhoulis has quit [Remote host closed the connection]
<centrx> rc48: You can test it, but historically each_with_object was significantly slower
<centrx> rc48: Test it with Benchmark.bmbm
roamingdog has joined #ruby
<rc48> I'll give it a shot
bronson has joined #ruby
rakm has joined #ruby
haylon has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
hkdsun has joined #ruby
rippa has joined #ruby
danguita has joined #ruby
cfec0b8d has joined #ruby
jgnagy has quit [Remote host closed the connection]
Dimik has joined #ruby
jgnagy has joined #ruby
nowhere_man has quit [Ping timeout: 255 seconds]
oliv_____ has joined #ruby
sepp2k has joined #ruby
gma has quit [Quit: Linkinus - http://linkinus.com]
ol_______ has joined #ruby
raspado has joined #ruby
Pumukel has joined #ruby
im0nde has quit [Ping timeout: 240 seconds]
cfec0b8d has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 240 seconds]
centrx has quit [Remote host closed the connection]
oliv_____ has quit [Ping timeout: 245 seconds]
im0nde has joined #ruby
mim1k has joined #ruby
tomphp has joined #ruby
SenpaiSilver_ has joined #ruby
conta has quit [Ping timeout: 260 seconds]
conta has joined #ruby
hellfar has joined #ruby
dn` has quit [Read error: Connection reset by peer]
SenpaiSilver has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
chouhoulis has quit [Remote host closed the connection]
dn` has joined #ruby
ascarter has quit [Client Quit]
conta has quit [Remote host closed the connection]
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ljarvis> it's not really significantly slower anymore, but it'll probably be slightly slower
DroidBurgundy has quit [Remote host closed the connection]
insane_tesla has joined #ruby
<insane_tesla> hi
ascarter has joined #ruby
<insane_tesla> How can I implement token authentication with ruby? what I want is to mimic curl .... -u USER/token:TOKEN, that -u in curl
bronson has quit [Remote host closed the connection]
DroidBurgundy has joined #ruby
JBbankss has joined #ruby
nowhere_man has joined #ruby
patarr has joined #ruby
jrafanie has joined #ruby
<JBbankss> meep
cam27 has quit [Quit: cam27]
yqt has joined #ruby
cschneid_ has joined #ruby
ryzokuken has quit [Quit: Connection closed for inactivity]
brent__ has joined #ruby
<dionysus69> I get undefined method `open_timeout_sec=' for #<Google::Apis::RequestOptions but I can check in irb that the method really exists. what can be wrong ?
haylon has quit [Remote host closed the connection]
<ljarvis> dionysus69: it's a getter only, there's no setter method
<ljarvis> e.g. `open_timeout_sec` works, but `open_timeout_sec = x` does not
<dionysus69> yes but there are both methods in suggested method list
<dionysus69> both open_timeout_sec and open_timeout_sec=
<ljarvis> for tab completion?
<dionysus69> ye
<ljarvis> yeah it happens :/
<dionysus69> there are over 4k suggestions tab completion suggestions for google api
<dionysus69> lol
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
haylon has joined #ruby
<ljarvis> dionysus69: what are you using the library for?
gizmore|2 is now known as gizmore
<dionysus69> for uploading videos on youtube
<dionysus69> downloading from drive and updating gdoc sheets too
<ljarvis> ah
newrubycoder has joined #ruby
<jgnagy> anybody on here know some things about Sinatra or rack apps in general?
<havenwood> jgnagy: yes
<havenwood> ?anyone jgnagy
<ruby[bot]> jgnagy: Just ask your question, if anyone has, is or can, they will respond.
<ljarvis> i is
sobersabre has quit [Ping timeout: 268 seconds]
<havenwood> env!
<jgnagy> just so you have all the deets
hkdsun has quit [Quit: hkdsun]
<jgnagy> trying to make my metrics "service" only available from localhost
<jgnagy> is it possible to mount a single app at a different port
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rutix has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
<jgnagy> for instance, make my /monitoring bind to something not :9292, or even better force it to bind to localhost and not 0.0.0.0
lacuna has joined #ruby
<jgnagy> wasn't sure if a subclass of Sinatra::Base will have some `set` configurable for port or something
[Butch] has joined #ruby
<jgnagy> all my Services (including Services::Monitoring) are subclasses of https://github.com/knuedge/authify-api/blob/master/lib/authify/api/service.rb
aufi has quit [Quit: Leaving]
<jgnagy> if there's something I can do in a `configure` block I'd do it, or if config.ru supports a way to map the URL _and_ port
<jgnagy> but I'm assuming I'm not crazy by wanting monitoring / metrics / analytics to not just be exposed, but if I can't figure it out from Sinatra / rack I'll just use nginx in front to restrict requests to /monitoring
mim1k has quit [Read error: Connection reset by peer]
<dionysus69> anyways my problem is that I get this error: syswrite': execution expired (Google::Apis::TransmissionError). There is a 2 minute timeout on file upload to youtube, but I failed to change timeout attributes in the class
<dionysus69> I tried something like this https://github.com/google/google-api-ruby-client/issues/357 my line goes like this though Google::Apis::YoutubeV3::YouTubeService.new
bronson has joined #ruby
<dionysus69> but it tells me the previous error I posted, setter nomethoderrors even though tabcompletion clearly shows they are there
<hxegon> jgnagy: There might be a way to do this in sinatra, but the best I can find with some cursory googlery is https://github.com/kickstarter/rack-attack
hxegon is now known as hxegon_afk
cam27 has joined #ruby
<jgnagy> I actually really like rack-attack, and I looked at it for implementing throttling on the API
tgragnato has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
roamingdog has joined #ruby
<jgnagy> just didn't think of using it for this purpose since what I need seems so simple
<jgnagy> but I might go with that option if there isn't a simpler way
<jgnagy> thanks hxegon
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 255 seconds]
glmglmglm has joined #ruby
<glmglmglm> hey guys, good morning
<glmglmglm> i have this regex, i believe its javascript regex, how can we convert it to ruby regex?
ol_______ has quit [Quit: Leaving...]
mim1k has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
glmglmglm has quit [Client Quit]
anisha_ has quit [Quit: Leaving]
abort has quit [Ping timeout: 240 seconds]
nadir has joined #ruby
kassav_ has quit [Quit: kassav_]
abort has joined #ruby
uZiel has quit [Ping timeout: 272 seconds]
<newrubycoder> hey guys I wonder if there's a simple way to ping between a server and client in ruby without fancy gems? i tried .puts and .gets between server and client while using Time.now, but compared to the windows CMD ping, it was off by around 80ms. trying to calculate the delay so i can synchronize applications between computers
benjen has quit [Ping timeout: 240 seconds]
benjen has joined #ruby
jrafanie has joined #ruby
pusewicz_ has joined #ruby
moombah567 has joined #ruby
pusewicz has quit [Ping timeout: 240 seconds]
bronson has quit [Remote host closed the connection]
<Papierkorb> newrubycoder: Call out to the `ping` utility
moombah567 has quit [Ping timeout: 246 seconds]
hobodave has joined #ruby
PainBreak has joined #ruby
<PainBreak> Morning
<newrubycoder> evening haha
<newrubycoder> papierkorb how? im fresh in networking
<Papierkorb> newrubycoder: You can use `foo bar` to run program "foo" with arguments "bar" in the background, and you'll get the programs output as string once it returned
<newrubycoder> ok so i can run windows CMD from ruby?
<Papierkorb> newrubycoder: So you'll want to look up how to make windows "ping" do e.g. 3 pings and return afterwards, then you'll have to dig out the average ping time (or whatever you're interested in) output
<Papierkorb> newrubycoder: Try it from irb
<newrubycoder> ty
u0_a190 has joined #ruby
Yzguy has joined #ruby
qsx has quit [Ping timeout: 260 seconds]
<Papierkorb> newrubycoder: Use the `` quotes, I actually meant them as I wrote them, you can't use "" instead :)
JBbankss has quit [Read error: Connection reset by peer]
<havenwood> newrubycoder: Take a look at netping if you'd like to see how you'd implement an icmp (or other type of) ping: https://github.com/chernesk/net-ping/blob/master/lib/net/ping/icmp.rb
<Papierkorb> Note that for that, your ruby program likely needs to run with administrator permissions.
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rc48> newrubycoder: I second havenwood - net-ping is super easy - though you do have to install a gem - it's not a "fancy" gem ;-)
<rc48> newrubycoder: Net::Ping::External.new('google.com').ping? # => true
<rc48> Can get a boolean in one line
<newrubycoder> i wanna develop a program using only standard gems, not sure if i'm allowed to add other people's gem inside my github projects
<newrubycoder> maybe if its GNU
<PainBreak> So... I'm running 2.3.3 in Windows, and DNS resolution is no longer functional. I tried a reinstall of 2.3.3 which did not resolve the issue. I also installed 2.4.1-RC1 and DNS lookups fail there as well. This began after a series of Windows update installs and uninstalls, as MS recently cranked out some reactionary patches that broke the crap out of the network stack.
<Papierkorb> newrubycoder: You reference them in your Gemfile, the user of your gem will then be able to download dependencies through bundler. No problem.
<newrubycoder> ah ok
<PainBreak> The question is... What does Ruby look for in Windows as far as how to perform a DNS lookup? Is there a registry entry that might have gotten borked up?
qsx has joined #ruby
jeffreybaks has joined #ruby
<PainBreak> DNS resolution works a-ok for everything else on the server. nslookup does its thing, I can browse the interwebs all day long, connect to IRC, all is well.
__Yiota has joined #ruby
haylon has quit [Remote host closed the connection]
mim1k has quit [Read error: Connection reset by peer]
rakm has joined #ruby
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
chouhoulis has joined #ruby
olivi____ has joined #ruby
<rc48> newrubycoder: You could shell out to ping on Windows: got_ping = !!`ping -c 1 google.com`.lines.grep(/\d+ bytes from/) #=> true. Make sure to use the correct flags for Windows' ping
armyriad has quit [Quit: Leaving]
<newrubycoder> what does !! do?
<ljarvis> newrubycoder: "not not", it's just a double negative
<ljarvis> it's often used to coerce to a boolean
mikecmpbll has quit [Quit: inabit. zz.]
jeffreybaks has quit [Quit: Leaving]
nitric has joined #ruby
<newrubycoder> nice that will be useful
armyriad has joined #ruby
<ljarvis> e.g. turn nil into false and anything else into true
<ljarvis> imo you should generally avoid it :)
BSAlb has quit [Read error: Connection reset by peer]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> let what is truthy be truthy and what is falsey be falsey...
<ljarvis> ^
<havenwood> so sayeth the Rubyists
mdw has quit [Quit: Sleeping Zzzzz]
<ljarvis> i use !! in one place in a medium size (~100k lines) app, and it's to convert objects into booleans for string representation (e.g. for reporting purposes)
<ljarvis> tbh i shouldn't even use it there :)
cbyrda has joined #ruby
<havenwood> I guess I should King James that: "But let your truthy be your truthy and your falsey be your falsey. For whatever is more than these is from the evil one."
<rc48> LOL
tgragnato has quit [Quit: Sto andando via]
u0_a190 has quit [Quit: leaving]
cjhowe has joined #ruby
<rc48> newrubycoder: here is a quick and dirty method that covers good pings and no pings better than my earlier code. It captures standard error using Open3 with is in Ruby standard library: def ping?(host); Open3.capture3("ping -c 1 #{host}")[0].lines.grep(/\d+ bytes from/).any?; end
<rc48> ping? 'google.com' #=> true
cjhowe has quit [Client Quit]
<rc48> ping? 'fake.fake.com' #=>false
<rc48> newrubycoder: Make sure to require 'open3' at the top of your file first.
<newrubycoder> nice!!!
<newrubycoder> doing it completely in ruby is nice cuz then i have ubuntu support too
<rc48> And again, make sure you research the correct ping flags you needs on Windows. My example is on Mac (BSD i think)
<ljarvis> system "ping -c 1 #{host} >/dev/null"
mark_66 has quit [Remote host closed the connection]
<havenwood> newrubycoder: that's ^ till shelling out
<MarkBilk> I had problems running an external program (wget) from Ruby in Windows 8.1. %x() works better than backquotes. I had to put a copy of wget in the current directory, and call it like this %x(.\\wget #{img_url}) . There are two backslashes between the period and the wget. I don't know how it will print out here.
<havenwood> and you'd need the right flag for Win
<havenwood> (it's not -c)
<ljarvis> stupid windows
<havenwood> newrubycoder: If you'd like pure Ruby, try this gem: https://github.com/chernesk/net-ping
<baweaver> havenwood: those are dangerous words
<baweaver> havenwood: don't let the Rails team catch you saying them :P
<havenwood> baweaver: haha, i've seen the threads!
<havenwood> epic
<baweaver> matthewd loves them :D
hellfar has quit [Ping timeout: 246 seconds]
<baweaver> classic
nfk has joined #ruby
Beams has quit [Quit: .]
JBbanks has joined #ruby
<havenwood> -n on Win
<rc48> newrubycoder: if you're running the same "ping?" method I gave earlier on different platforsm, youll have to put a conditional in it that check which platform. There are different inplemenation of ping (GNU/Linux, BSD/Mac, and Windows) with likly all different flags
commonerror has joined #ruby
<dionysus69> hey guys, I don't know whats wrong with this library. but I can't change timeout_sec in anyway I tried. www.rubydoc.info/github/google/google-api-ruby-client/Google/Apis/RequestOptions also notice all github links are down
<baweaver> Hehe, POSIX
JBbanks has quit [Client Quit]
<havenwood> The convention for appending an underscore to avoid naming conflict with a keyword in PEP 8 is somewhat appealing: http://pep8.org/#descriptive-naming-styles
<havenwood> class_ or klass, mmm
<MarkBilk> Even though I made sure that the directory with the original copy of wget was on the PATH, and I could run it from the command-line, I couldn't run it from Ruby until I made a copy in the current directory.
<havenwood> def_ or deph ;-P
marxarelli|afk is now known as marxarelli
jrafanie has joined #ruby
<ljarvis> havenwood: but i'd have to look it up every time
<ljarvis> better to just freestyle
<commonerror> I'm working on a Rack base app (using Roda) and I'm requiring all my gems with Bundler in the config.ru. The app boots just fine but my tests aren't loading dependencies for some reason. I'm initializing the app with `Rack::Builder.parse_file("config.ru").first` - shouldn't that require the gems that are in config.ru?
<newrubycoder> rc48 thanks i will try my best, maybe it's above my head right now but as i improve my program will too
<havenwood> there are only so many letters to try!
<ljarvis> commonerror: require your code inside config.ru and inside your tests separately
<havenwood> -v -V --version --srsly-no-version-flag?
<ljarvis> havenwood: -v #=> ["version", "verbose"].sample
<baweaver> havenwood: I'm making that a flag later
nfk has quit [Client Quit]
<commonerror> ljarvis: Why? When I used Bundler.require within the app.rb they both worked. It's just when I moved the requirement to config.ru that it broke.
<ljarvis> commonerror: because of this very issue, mostly
<rc48> newrubycode: You're welcome. I'm happy to pair with you if you need any more help. Let me know
<havenwood> i'm excited to see my convention of including a Snakefile in Ruby projects is catching on: https://github.com/epitron/epitools/blob/master/Snakefile
<ljarvis> havenwood: lol wtf?
<baweaver> havenwood: epitron doesn't count
<ljarvis> ^
<baweaver> you've already corrupted him and banisterfiend long ago
<havenwood> touche
<ljarvis> banister did not need corrupting
<commonerror> ljarvis: Heh, gotcha. I figured I was missing a setting or something.
<baweaver> ljarvis: I suspect banister did the corrupting
<baweaver> we've already lost cirwin to his madness
<ljarvis> he's corrupted us all
wuyin has joined #ruby
<ljarvis> you think pry is just an irb replacement?
<baweaver> Mother of god.....
ramortegui has left #ruby ["Ex-Chat"]
<baweaver> He's a fiend! A banisterfiend
hobodave has quit [Quit: Computer has gone to sleep.]
cjhowe has joined #ruby
roshanavand has quit [Quit: Leaving.]
roshanavand has joined #ruby
JBbanks has joined #ruby
jphase has quit [Remote host closed the connection]
renchan has quit [Quit: Leaving...]
nobitanobi has joined #ruby
nobitano_ has quit [Read error: No route to host]
hobodave has joined #ruby
rrr1000 has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
rrr1000 has left #ruby [#ruby]
ltem has joined #ruby
hkdsun has joined #ruby
hkdsun has quit [Client Quit]
milardovich has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Ping timeout: 240 seconds]
kafloopascope has joined #ruby
<kafloopascope> Hello! I asked in #rubyonrails but this may be simply a ruby question. Hello! I'm on an old 3.x project and am unfortunately not very familiar with the framework or even ruby, but need to debug a problem. A directory needs to be created, but can't with a permissions error. The app is served by nginx/passenger, and the passenger process are run as a particular user which _does_ have write permissions.
<kafloopascope> The directory is created with Dir.mkdir. Is there a way to be sure which (linux) user that operation is being run as?
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
damireh has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
uZiel has joined #ruby
<havenwood> kafloopascope: What's the exact error?
pusewicz_ has quit [Quit: Bye! http://www.layer22.com]
Guest66 has joined #ruby
mtkd has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
<kafloopascope> havenwood, Errno::EACCES (Permission denied @ dir_s_mkdir
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Guest66 has quit [Client Quit]
commonerror has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 260 seconds]
haylon has joined #ruby
<havenwood> kafloopascope: You could take a look at the Elvis gem: https://github.com/square/prodeng/tree/master/elvis
<havenwood> kafloopascope: Though you might want to set it up so things work properly with the user running the script.
<havenwood> Rather than changing the user mid-stream, which is hacky, nonportable and error prone.
<kafloopascope> havenwood, yes, I'd rather not hack it up. Was hoping there'd be a way to verify what Dir.mkdir is doing exactly
antgel has quit [Ping timeout: 260 seconds]
agent_white has quit [Ping timeout: 260 seconds]
ResidentBiscuit has quit [Ping timeout: 240 seconds]
cam27 has quit [Quit: cam27]
Burgestrand has quit [Quit: Closing time!]
mdw has joined #ruby
Cohedrin has joined #ruby
millerti has joined #ruby
mdw has quit [Client Quit]
jeffreylevesque has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nobitanobi has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
ledestin has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
skweek has joined #ruby
ascarter has joined #ruby
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
<rc48> Does anyone know if there's a Object method to do this without monkeypatching? (Basically like Object#tap, but returns the last value in the the block rather than self): class Object; def hijack; yield self; end; end; "this".hijack {|o| "is now #{o}!" } #=>"is now this!"
ResidentBiscuit has joined #ruby
im0nde has quit [Ping timeout: 246 seconds]
AndBobsYourUncle has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
damireh has quit [Quit: Textual IRC Client: www.textualapp.com]
gothicsouth has joined #ruby
olivi____ has quit [Remote host closed the connection]
AndBobsYourUncle has quit [Ping timeout: 240 seconds]
oliv_____ has joined #ruby
rc48 has quit [Read error: Connection reset by peer]
jeffreylevesque has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
Lee__ has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
AndBobsYourUncle has joined #ruby
eightlimbed has joined #ruby
rc48 has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
muelleme has joined #ruby
kent\n has quit [Quit: No Ping reply in 180 seconds.]
kent\n has joined #ruby
skweek has joined #ruby
uZiel has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
hxegon_afk has quit [Quit: leaving]
sp4rrow has joined #ruby
danguita has quit [Quit: danguita]
pb122 has quit [Ping timeout: 268 seconds]
chouhoulis has quit []
d10n-work has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 246 seconds]
Yzguy has quit [Quit: Bye]
milardovich has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<baweaver> rc48: havenwood would know
<baweaver> yield_self was the latest proposal iirc
jrafanie_ has joined #ruby
PatrikasZvaigzde has quit [Ping timeout: 260 seconds]
vircung has joined #ruby
tgragnato has joined #ruby
PatrikasZvaigzde has joined #ruby
jrafanie has quit [Ping timeout: 240 seconds]
<havenwood> rc48: Yup, #yield_self is in Ruby 2.5-dev, which comes out this Christmas.
hxegon has joined #ruby
<havenwood> rc48: "this".yield_self {|o| "is now #{o}!" } #=> "is now this!"
SeepingN has joined #ruby
uZiel has joined #ruby
oliv_____ has quit [Remote host closed the connection]
<havenwood> rc48: "this".yield_self.class #=> Enumerator
<havenwood> rc48: "this".yield_self.size #=> 1
oliv_____ has joined #ruby
moombah567 has joined #ruby
<rc48> havenwood: That's cool. Any link to the source? And how is it (e.g., a String) enumerable?
<havenwood> rc48: i happen to have written the current implementation ;-)
cjhowe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
electrostat has quit [Quit: uwotm8]
raatiniemi has joined #ruby
<rc48> havenwood: That's interesting. I'm interested to know what the motivation was for it? I know for me, I was trying to make a general "monadic" method for chaining - the lovechild of tap and reduce.
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oliv_____ has quit [Ping timeout: 246 seconds]
cjhowe has joined #ruby
<havenwood> rc48: It's long been requested for such reasons and the long-term holdup was the name.
<rc48> I submit: "hijack". LOL ;-)
moombah567 has quit [Ping timeout: 240 seconds]
electrostat has joined #ruby
<havenwood> rc48: I'm pretty sure that's one that's been proposed.
<havenwood> nobu implemented #yield_self as an enumerator after matz approved the name
<havenwood> nobu merged my patch to change it to sized enumerator and have a ruby object lazily know its size is 1
xall has quit [Quit: xall]
<havenwood> rc48: it's fun to look through past proposals that have been accepted or denied: https://bugs.ruby-lang.org/projects/ruby-trunk/issues
<rc48> havenwood: til the release of yield_self, is my monkeypatch implementation effectively the same?
<havenwood> rc48: I liked baweaver's suggestion for #pat to compliment #tap
<havenwood> so good
haylon has quit [Remote host closed the connection]
<rc48> havenwood: yeah, yield_self is long. A short name like #pat would be ideal IMO
<rc48> havenwood: but I'm not complaining - just glad it's getting into Ruby core
<coding_kai> #pat would be better for golfing :P
Antiarc has quit [Quit: No Ping reply in 180 seconds.]
insane_tesla has quit [Ping timeout: 268 seconds]
vircung has quit [Quit: Nothing to do here]
haylon has joined #ruby
Antiarc has joined #ruby
<havenwood> module Kernel; alias pat yield_self end
vircung has joined #ruby
romank has quit [Ping timeout: 258 seconds]
<havenwood> it's fair game to propose an alias as well
Bock has quit [Remote host closed the connection]
jrafanie has joined #ruby
romank has joined #ruby
cjhowe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Seich_ has quit [Remote host closed the connection]
romank has quit [Client Quit]
RedNifre has joined #ruby
RedNifre is now known as Guest44920
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
uZiel has quit [Read error: Connection reset by peer]
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cfec0b8d has joined #ruby
cdg has quit [Remote host closed the connection]
ltem has quit [Quit: Leaving]
gusrub has joined #ruby
gnufied has quit [Ping timeout: 272 seconds]
duderonomy has joined #ruby
postmodern has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has joined #ruby
jackjackdripper has joined #ruby
dionysus69 has joined #ruby
gnufied has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
jackrandom has quit [Remote host closed the connection]
tgragnato_ has joined #ruby
jackrandom has joined #ruby
tgragnato has quit [Ping timeout: 246 seconds]
MarkBilk has quit [Ping timeout: 258 seconds]
theunraveler has joined #ruby
agent_white has joined #ruby
eightlimbed has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
govg has quit [Ping timeout: 260 seconds]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
milardovich has quit [Ping timeout: 268 seconds]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
muelleme has quit [Ping timeout: 260 seconds]
tgragnato_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
rfoust has joined #ruby
tgragnato_ has joined #ruby
marxarelli is now known as marxarelli|afk
hanna has quit [Remote host closed the connection]
ericx2x has joined #ruby
ascarter has joined #ruby
pankaj_ has joined #ruby
eightlimbed has joined #ruby
<cek> >> dev m; yield; end; m(&proc{})
<ruby[bot]> cek: # => /tmp/execpad-ec089ccf1672/source-ec089ccf1672:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/804670)
<cek> >> def m; yield; end; m(&proc{})
<ruby[bot]> cek: # => nil (https://eval.in/804671)
<cek> >> def m; yield; end; m(&lambda{})
<ruby[bot]> cek: # => nil (https://eval.in/804672)
<cek> >> def m; yield; end; m(&->{})
<cek> it seems i got out of my mind
newrubycoder has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
t-recx has joined #ruby
charliebr73 has joined #ruby
eightlimbed has quit [Ping timeout: 240 seconds]
pankaj_ has quit [Ping timeout: 240 seconds]
<apeiros> cek: lambdas (-> are lambdas) are like methods in that they enforce their argument requirements
<apeiros> procs don't
<apeiros> >> (->() { 1 })(2)
<ruby[bot]> apeiros: # => /tmp/execpad-362c61a55bbc/source-362c61a55bbc:2: syntax error, unexpected '(', expecting keyword_end ...check link for more (https://eval.in/804675)
<apeiros> >> (->() { 1 }).(2)
<ruby[bot]> apeiros: # => wrong number of arguments (given 1, expected 0) (ArgumentError) ...check link for more (https://eval.in/804676)
<apeiros> >> (proc { 1 }).(2)
<ruby[bot]> apeiros: # => 1 (https://eval.in/804677)
<cek> nah, I thought it's mm that's throwing the error, not yielded lambda
<al2o3-cr> cek: try with proc and see the diff
<cek> i'm well aware of differences
<al2o3-cr> are you?
<cek> yea, the arity and the control statements
pankaj_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
PainBreak has quit [Quit: That's the news and I. Am. Outta here!]
muelleme has joined #ruby
Vingador has quit [Remote host closed the connection]
sp4rrow has joined #ruby
hanna has joined #ruby
<al2o3-cr> >> ->{:foo}.yield :bar
<ruby[bot]> al2o3-cr: # => wrong number of arguments (given 1, expected 0) (ArgumentError) ...check link for more (https://eval.in/804678)
pankaj_ has quit [Ping timeout: 260 seconds]
kafloopascope has quit [Quit: Leaving]
<al2o3-cr> wth, this connection is lagging :(
<cek> >> yield next
<ruby[bot]> cek: # => /tmp/execpad-5cfa308214ca/source-5cfa308214ca:2: void value expression (https://eval.in/804679)
<cek> >> yield &proc
<ruby[bot]> cek: # => /tmp/execpad-ed2bb93f4094/source-ed2bb93f4094:2: block argument should not be given (https://eval.in/804680)
<cek> funny, isn't it
Oclair has joined #ruby
cek has left #ruby [#ruby]
<al2o3-cr> well, no, next is a keyword
unreal has joined #ruby
postmodern has quit [Remote host closed the connection]
postmodern has joined #ruby
govg has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mtkd has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
VgpC has quit [Remote host closed the connection]
mtkd has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
hanna has quit [Remote host closed the connection]
hkdsun has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltem has joined #ruby
moombah567 has joined #ruby
jusa has quit [Ping timeout: 272 seconds]
CrazyEddy has joined #ruby
hkdsun has quit [Quit: hkdsun]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
<arup_r> Where is shevy? these days..
moombah567 has quit [Ping timeout: 240 seconds]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
<SeepingN> at the fjord
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Papierkorb> arup_r: Haven't seen them in some time. Sad to see people go, but also great to welcome new on board.
jeffreylevesque has quit [Read error: Connection reset by peer]
<arup_r> hmm
W4x has joined #ruby
postmodern has quit [Remote host closed the connection]
hkdsun has joined #ruby
postmodern has joined #ruby
<zenspider> yield &proc??
charliebr73 has quit []
<zenspider> what would you expect that to do?
W4x has quit [Read error: Connection reset by peer]
jrafanie has joined #ruby
gusrub has quit [Remote host closed the connection]
oliv_____ has joined #ruby
hkdsun has quit [Quit: hkdsun]
dnewkerk has joined #ruby
<Papierkorb> >> def foo; yield proc; end; foo{|x| p x}; foo{|x| x.call}
<ruby[bot]> Papierkorb: # => #<Proc:0x41aa18d8@/tmp/execpad-e4ad6c4533a4/source-e4ad6c4533a4:2> ...check link for more (https://eval.in/804685)
gusrub has joined #ruby
<Papierkorb> The second one throws a `NoMethodError` Oo
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
theunraveler has quit []
sp4rrow has quit [Ping timeout: 260 seconds]
hkdsun has joined #ruby
hkdsun has quit [Client Quit]
eightlimbed has joined #ruby
Oclair has quit [Quit: Bye Bye]
romank has joined #ruby
mustmodify___ has joined #ruby
<mustmodify___> does chruby work out-of-the-box with osx?
brent__ has quit [Remote host closed the connection]
<zenspider> chruby is problematic for my shell setup, but yeah, it should work
<zenspider> assuming out-of-the-box includes developer tools
shinnya has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yeticry has joined #ruby
ascarter has joined #ruby
ascarter has quit [Client Quit]
Fallen_Zen has joined #ruby
cjhowe has joined #ruby
<Fallen_Zen> Can anyone help me with building ruby from source on macOS and point it to openssl installed /usr/local/bin/openssl ?
<zenspider> Fallen_Zen: brew install ruby-build then use it
<zenspider> tho you probably shouldn't have openssl linked in /usr/local/
<zenspider> you can talk to me in here. DM isn't necessary
ascarter has joined #ruby
<Fallen_Zen> zenspider: would prefer from source instead of homebrew
volty has joined #ruby
<zenspider> ruby-build, as the name implies, BUILDS from source
<Fallen_Zen> zenspider: and what's wrong with /usr/local for openssl? It's the default location when you install it from source as well
tomphp has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
<zenspider> it conflicts with ssl code that ships in the system... so homebrew strongly recommends installing privately and using that, but not linking into /usr/local/*
gusrub has quit [Remote host closed the connection]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millerti has joined #ruby
<Fallen_Zen> zenspider: you can't use built-in openssl for building software as Apple no longer provides header files
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<zenspider> Fallen_Zen: follow my advice or not. it works.
Fernando-Basso has quit [Quit: WeeChat 1.8]
im0nde has joined #ruby
dru` has joined #ruby
jenrzzz has joined #ruby
brent__ has joined #ruby
<Fallen_Zen> zenspider: thx for the help
tvw has quit [Remote host closed the connection]
<havenwood> Fallen_Zen: You might consider using ruby-install instead of ruby-build.
<havenwood> Fallen_Zen: Since ruby-build ships its own openssl and doesn't build against system openssl while ruby-install uses the package manager version.
jenrzzz has quit [Ping timeout: 272 seconds]
<Fallen_Zen> havenwood: thx will have a look
gothicsouth has joined #ruby
<havenwood> Here's latest Ruby for example, and the openssl that's downloaded and used with it in ruby-build: https://github.com/rbenv/ruby-build/blob/master/share/ruby-build/2.4.1
<havenwood> It does mean that just updating your system Ruby and rebuilding with ruby-build doesn't use a new OpenSSL, which I've seen confuse several people.
<zenspider> havenwood: what?
JBbanks has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> zenspider: ruby-build, the install tool that rbenv uses automagically ships its own openssl for each Ruby and disregards your package manager Ruby
<havenwood> err, i mean package manager OpenSSL
<havenwood> anyhow, ruby-install installs nicely for rbenv
<havenwood> or whatever else
<zenspider> can you point to evidence of that?
jrafanie has joined #ruby
ascarter has joined #ruby
<zenspider> I'm looking at a function called use_homebrew_openssl
<zenspider> and it seems to work fine
hanna has joined #ruby
latemus has joined #ruby
jenrzzz has joined #ruby
skweek has joined #ruby
<havenwood> zenspider: it looks like that's only used if `has_broken_mac_openssl` is called in the definitino
lele has quit [Ping timeout: 246 seconds]
<dru`> this might be an odd question, but does anyone have any idea where one would start if they wanted to define an additional keyword block on methods (similar to how rescue functions in def..rescue..end)?
<havenwood> zenspider: they put that one check on the end of the first line: https://github.com/rbenv/ruby-build/blob/master/share/ruby-build/2.4.1#L1
<havenwood> zenspider: i guess i should say, other than OS X systems where the OpenSSL they install is broken, they use an OpenSSL they ship themselves and not your package manager
<zenspider> in basically every recipe where it applies
konsolebox has quit [Quit: Leaving]
<zenspider> "they ship themselves"... no. this is just FUD as far as I can tell
<dru`> for context, this is the syntax of what I'd like to ideally accomplish: https://gist.github.com/drusepth/1972c40fd030ce3ef06e4e4dc9b22eaa
<havenwood> where ruby-install will use the apt, or yum, or zypper, or brew or whatever openssl
<havenwood> zenspider: is it fud, when they do it? i've seen multiple people thinking they've updated openssl on say ubuntu to realize they didn't build against it with ruby-build
<havenwood> zenspider: it's actually something of an issue, from my perspective
lele has joined #ruby
<zenspider> dru`: you can't extend the syntax the way you want to... you could do some sort of preprocessor ... but I wouldn't recommend it
<havenwood> OpenSSL is not exactly the lib you want to be accidentally building against an old version of.
<SeepingN> ^^^^
<havenwood> Folk don't know they need to update ruby-build to get the new one.
<havenwood> If they update ruby-build, perfect, build openssl yourself, no prob.
<havenwood> I'd rather use a package, but pick your poison...
<zenspider> dru`: neat idea tho
dviola has quit [Quit: WeeChat 1.8]
ldnunes has quit [Quit: Leaving]
<dru`> zenspider: figured it'd be difficult; just looking into how much so. I could probably technically inject wrappers around each method and treat the tests keyword as a trigger to return (and just unindent it to pretend), but not sure about going down that path either
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dru`> this is coming from someone who monkeypatched method_missing to inject executable functions from stackoverflow so I'm definitely not looking for anything production-ready any time soon :P
ascarter has joined #ruby
<dru`> just trying to stretch the language in new ways
ascarter has quit [Client Quit]
gnufied has quit [Ping timeout: 272 seconds]
gusrub has joined #ruby
ascarter has joined #ruby
ur5us has joined #ruby
dcluna has quit [Ping timeout: 246 seconds]
nofxxxx has quit [Ping timeout: 245 seconds]
nofxxxx has joined #ruby
keyjoo_ is now known as keyjoo
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dcluna has joined #ruby
sp4rrow has joined #ruby
patr0clus has joined #ruby
sp4rrow has quit [Client Quit]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agent_white has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
ascarter has quit [Client Quit]
rc48 has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
millerti has joined #ruby
spheric has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
rc48 has joined #ruby
muelleme has quit [Ping timeout: 268 seconds]
mim1k has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
romank has quit [Read error: Connection reset by peer]
pupsicle has quit [Quit: pupsicle]
agent_white has joined #ruby
oliv_____ has quit [Remote host closed the connection]
workmad3_ has quit [Ping timeout: 258 seconds]
oliv_____ has joined #ruby
Fallen_Zen has quit [Quit: Lingo: www.lingoirc.com]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
rfoust has joined #ruby
ecuanaso has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
gnufied has joined #ruby
romank has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
<mustmodify___> I'm "helping" someone set up Rails on OSX.
lacuna has joined #ruby
<mustmodify___> Ruby 2.1.6
<mustmodify___> segfault from hpricot
<mustmodify___> has anyone seen this/
<havenwood> mustmodify___: If they must use 2.1 it'd be better to use 2.1.9.
haylon has quit [Remote host closed the connection]
nofxxx has joined #ruby
<dru`> is there an easy way to access the ruby interpreter's value stack directly (for grabbing/manipulating what values get implicitly returned from a method)?
ascarter has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nofxxxx has quit [Ping timeout: 255 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wuyin has quit [Quit: leaving]
statikowsky has joined #ruby
romank has quit [Read error: Connection reset by peer]
statikowsky has quit [Remote host closed the connection]
statikowsky has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
biberu has quit []
rc48 has quit [Read error: Connection reset by peer]
romank has joined #ruby
statikowsky has quit [Remote host closed the connection]
romank has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
jusa has joined #ruby
minimalism has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oli______ has joined #ruby
hobodave has quit [Ping timeout: 240 seconds]
jusa has quit [Ping timeout: 268 seconds]
marxarelli|afk is now known as marxarelli
dionysus69 has quit [Remote host closed the connection]
oliv_____ has quit [Ping timeout: 240 seconds]
rakm has joined #ruby
ecuanaso has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
JBbanks has joined #ruby
Ferdroid has joined #ruby
raspado has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 240 seconds]
raspado has joined #ruby
raspado has quit [Remote host closed the connection]
raspado has joined #ruby
patr0clus has quit [Quit: tempusfugit]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oli______ has quit [Ping timeout: 268 seconds]
raspado has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
latemus has quit [Ping timeout: 260 seconds]
enterprisey has quit [Quit: Leaving]
tgragnato_ has quit [Quit: Sto andando via]
latemus has joined #ruby
im0nde_ has joined #ruby
ResidentBiscuit has quit [Ping timeout: 255 seconds]
erlend has quit [Quit: Bye]
erlend has joined #ruby
ltem has quit [Quit: Leaving]
im0nde has quit [Ping timeout: 246 seconds]
im0nde_ is now known as im0nde
eightlimbed has quit [Ping timeout: 240 seconds]
[Butch] has quit [Quit: I'm out . . .]
<Radar> dru`: why
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<dru`> I'd like to store what value would be returned at a given point so I can inject some logic afterward and return the original value
__Yiota has joined #ruby
<zenspider> mustmodify___: hpricot is ancient and was crashy way back when... you should use nokogiri instead. it has very similar feel and is much more solid.
patarr has quit [Ping timeout: 246 seconds]
<zenspider> dru`: you can alias the origial method to the side, dynamically create a new method that calls the old and manipulates the result before it returns it
<zenspider> *original
<zenspider> again, I wouldn't recommend it
<zenspider> but... you know you're playing with dragons
bkxd has quit [Ping timeout: 255 seconds]
<dru`> oh, I suppose that's true
ineb has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
segmond has joined #ruby
Cohedrin has joined #ruby
Pumukel has quit [Remote host closed the connection]
ineb has quit [Excess Flood]
gusrub has quit [Remote host closed the connection]
ineb has joined #ruby
gusrub has joined #ruby
lacuna has joined #ruby
lucz has quit [Quit: Leaving...]
ineb has quit [Quit: WeeChat 1.8]
__Yiota has joined #ruby
__Yiota has quit [Client Quit]
SeepingN has joined #ruby
Guest44920 has quit [Quit: meh]
BSaboia has joined #ruby
<dru`> hrm, have gotten all of these syntaxes working (except the last one), not sure if any of them are actually beneficial enough to move tests to the function after all: https://gist.github.com/drusepth/081572f8c7123edd8cd49abf73597407
<dru`> will keep hackin'
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
rc48 has joined #ruby
sp4rrow has joined #ruby
rc48 has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
romeoh has quit [Remote host closed the connection]
__Yiota has joined #ruby
<zenspider> dru`: there's also some setups that put those assertions in rdoc blocks
t-recx has quit [Quit: t-recx]
bkxd has quit [Ping timeout: 246 seconds]
roamingdog has joined #ruby
<Authenticator> I'm using Typhoeus and I can't get client-cert authentication working. The same cert/key object work with Net::HTTP and other libs. I get :return_code=>:ssl_certproblem
hxegon has quit [Remote host closed the connection]
ineb has joined #ruby
bkxd has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has quit [Ping timeout: 240 seconds]
cfec0b8d has quit [Remote host closed the connection]
<SeepingN> maybe you have a certificate problem
<SeepingN> ;)
olivi____ has joined #ruby
jackjackdripper has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cschneid_ has quit [Remote host closed the connection]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
millerti has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
Cohedrin has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
milardovich has joined #ruby
dasher00 has quit [Ping timeout: 246 seconds]
ddffg has quit [Ping timeout: 245 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
Vile` has joined #ruby
mim1k has joined #ruby
dasher00 has joined #ruby
haylon has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
dmtd has joined #ruby
marxarelli is now known as marxarelli|afk
haylon has quit [Remote host closed the connection]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cohedrin has quit [Read error: Connection reset by peer]
haylon has joined #ruby
Cohedrin has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
skweek has quit [Ping timeout: 258 seconds]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
railswebdev has joined #ruby
cdg has quit [Remote host closed the connection]
olivi____ has quit [Remote host closed the connection]
Cohedrin has joined #ruby
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
sp4rrow has joined #ruby
hugo_dc has joined #ruby
gnufied has joined #ruby
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gothicsouth has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
bkxd has quit [Read error: Connection reset by peer]
MrSparkle has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
rc48 has joined #ruby
cschneid_ has joined #ruby
marr has quit [Ping timeout: 272 seconds]
rc48 has quit [Read error: Connection reset by peer]
hellfar has joined #ruby
Cohedrin has joined #ruby
hellfar has quit [Client Quit]
ascarter has joined #ruby