havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.2, 2.5.5, 2.4.5: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
themsay has quit [Remote host closed the connection]
<asat> we reached out to rubygems, they pulled it
<asat> laters
asat has quit [Quit: leaving]
livcd has quit [Ping timeout: 250 seconds]
nucc has quit [Quit: nucc]
livcd has joined #ruby
gix has quit [Ping timeout: 245 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Axy has quit [Ping timeout: 250 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
Cra2yZer0 has joined #ruby
Cra2yZer0 has quit [Client Quit]
<azta> Hello!
Cra2yZer0 has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Swyper_ has quit [Remote host closed the connection]
jinie has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 272 seconds]
Cra2yZer0 has quit [Client Quit]
Swyper has joined #ruby
Cra2yZer0 has joined #ruby
Cra2yZer0 has quit [Client Quit]
bambanx has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
AJA4351 has joined #ruby
gnufied has quit [Remote host closed the connection]
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
jinie has joined #ruby
bambanx has joined #ruby
zachk has quit [Quit: Leaving]
Swyper has quit [Remote host closed the connection]
tau has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
none_ has quit [Ping timeout: 268 seconds]
tdy1 has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
SeepingN has quit [Ping timeout: 250 seconds]
AJA4350 has quit [Remote host closed the connection]
D9 has joined #ruby
crankharder has quit [Ping timeout: 250 seconds]
wald0 has quit [Quit: Lost terminal]
Swyper has joined #ruby
orbyt_ has joined #ruby
azta has quit [Quit: leaving]
ellcs has quit [Ping timeout: 268 seconds]
Swyper has quit [Ping timeout: 244 seconds]
t0xik has joined #ruby
crankharder has joined #ruby
esrse has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
Swyper has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
mangold has joined #ruby
agent_white has quit [Quit: bbl]
Swyper has joined #ruby
orbyt_ has joined #ruby
s00pcan has joined #ruby
<s00pcan> ok, got a question related to rbenv. I installed a gem, yarn, found it out was a webserver, then uninstalled it. But rbenv keeps trying to create a ~/.rbenv/shims/yarn file to override my system executable. Why?
<s00pcan> Where is rbenv rehash getting its list of executables?
<havenwood> s00pcan: it looks at the bin/ dir for the rubies listed by rbenv-versions: https://github.com/rbenv/rbenv/blob/master/libexec/rbenv-rehash#L85-L87
<s00pcan> I just ran rbenv rehash with strace, checking the output now
<havenwood> s00pcan: you might want to sanity check `gem which yarn`, `which -a yarn` and `head -n1 "$(command -v yarn)"`
<s00pcan> ok, so it was checking the directories in ~/.rbenv/bundles, then looping over those and checking each directory's ./bin for executables
<havenwood> mm
<havenwood> s00pcan: time for chruby? :P
<s00pcan> two of my projects had the yarn packager executable there, which is not a ruby executable
<s00pcan> so this was dumb but at least I know what went wrong
<s00pcan> havenwood: chruby? Is that new hotness?
<s00pcan> hmm no updates since 2017
<havenwood> s00pcan: a new version might be out fairly soon. it *just works* so there's not a lot of need for updates.
<havenwood> s00pcan: the main functionality is this one file: https://github.com/postmodern/chruby/blob/master/share/chruby/chruby.sh
truenito has joined #ruby
<havenwood> s00pcan: then you can optionally add .ruby-version switching for zsh/bash: https://github.com/postmodern/chruby/blob/master/share/chruby/auto.sh
<s00pcan> my vuejs app has an obvious memory leak that wasn't there… this is what I get for mass updating node modules
<s00pcan> wasn't there last week I mean.
<adam12> havenwood: lol
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwnd_nsfw` has quit [Ping timeout: 246 seconds]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arekushi has joined #ruby
Arahael has joined #ruby
<Arahael> I've been rather confused, I thought if I specify an environment to IO.popen, it should use that environment? Eg: IO.popen(env, cmd)
<Arahael> However, I have the suspicion that it's still inheriting the parent environment, especially when I use env={}
<Arahael> How do I ensure that the environment truely is empty?
mangold has quit [Quit: This computer has gone to sleep]
yokel has quit [Ping timeout: 244 seconds]
<adam12> Arahael: You likely need to pass a bunch of `nil`'s with corresponding keys that exist in current ENV.
hahuang65 has quit [Quit: ZNC - https://znc.in]
<adam12> Arahael: passing an environment to IO.popen is the same as Process.spawn I believe, which is just a merge of environments and not a clean-room.
iMadper has joined #ruby
iMadper has quit [Changing host]
iMadper has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<adam12> Arahael: Actually, I'm not sure if IO.popen supports it, but Process.spawn supports `unsetenv_others: true` which will clean missing env variables. Maybe that's what you want.
octos has quit [Remote host closed the connection]
<Arahael> adam12: Hmm, thanks, that does help actually.
roger_rabbit has quit [Ping timeout: 250 seconds]
<Arahael> Helps explain that I'm not going crazy: "This command works differently in the script, but fails on the command line"! :)
* Arahael might still be crazy, none-the-less.
<adam12> Arahael: lol
yokel has joined #ruby
truenito has quit [Ping timeout: 250 seconds]
mangold has joined #ruby
bambanx has quit [Quit: Leaving]
hightower3 has joined #ruby
i1nfusion has quit [Remote host closed the connection]
daqing has joined #ruby
i1nfusion has joined #ruby
hightower2 has quit [Ping timeout: 255 seconds]
hahuang65 has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
daqing has quit [Client Quit]
ur5us has quit [Ping timeout: 246 seconds]
_whitelogger has joined #ruby
yield has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
hahuang6- has quit [Disconnected by services]
hahuang6- has joined #ruby
Swyper has quit [Ping timeout: 250 seconds]
mangold has quit [Quit: This computer has gone to sleep]
hahuang65 has quit [Quit: ZNC - https://znc.in]
hahuang65 has joined #ruby
soloxdead has joined #ruby
braincrash has quit [Quit: bye bye]
mangold has joined #ruby
<soloxdead> I am unfamiliar with ruby, however I am trying to open a program that I have always opened without a problem, but now receiving this error ''cannot load such file -- bundler/setup'
<soloxdead> I have went into the directory, and ran bundle install which went successfully, however same error.
<soloxdead> any ideas or tips that may help?
tau has quit [Remote host closed the connection]
hahuang65 has quit [Quit: ZNC - https://znc.in]
braincrash has joined #ruby
<havenwood> soloxdead: Is Bundler installed for your current Ruby? Sanity check `which bundle` and `gem which bundler`.
hahuang65 has joined #ruby
roger_rabbit has joined #ruby
<havenwood> soloxdead: If it's not installed on your current Ruby: gem install bundler
duderonomy has joined #ruby
hahuang6- has quit [Disconnected by services]
<soloxdead> havenwood: when running 'gem which bundler' i receive /usr/share/rubygems-integration/all/gems/bundler-1.17.3/lib/bundler.rb
hahuang6- has joined #ruby
<soloxdead> havenwood: which bundle returns /usr/local/bin/bundle
<havenwood> soloxdead: hrmm, it seems the `bundle` in front of your PATH isn't the same as the one installed with your current Ruby
<havenwood> soloxdead: i'm assuming your `gem env gemdir` is?: /usr/share/rubygems-integration/all/gems/bundler-1.17.3
<soloxdead> havenwood: it returns: /var/lib/gems/2.5.0
<havenwood> hrm
tdy1 has quit [Ping timeout: 255 seconds]
<havenwood> soloxdead: mind gisting your?: gem env
<soloxdead> havenwood: https://dpaste.de/Dp9x
Swyper has joined #ruby
<havenwood> soloxdead: okay, i'm wrong - it looks like you just have an executable path that doesn't happen to be inside your GEM_PATH
<soloxdead> ah
<havenwood> soloxdead: what's the command you're running that results in the error?
Xiti has quit [Ping timeout: 246 seconds]
<soloxdead> havenwood: msfconsole
Xiti has joined #ruby
<havenwood> soloxdead: does it work with?: bundle exec msfconsole
<soloxdead> complete error would be [*] Bundler failed to load and returned this error: 'cannot load such file -- bundler/setup' [*] You may need to uninstall or upgrade bundler
brool has quit [Ping timeout: 240 seconds]
<havenwood> soloxdead: And the same error if you prefix `bundle exec` to the command?
<soloxdead> havenwood: that did work!
<havenwood> soloxdead: 👍🏽
<soloxdead> havenwood: any reason why that would have changed?
<havenwood> soloxdead: When you run just `msfconsole` you're using the latest version of each gem that metasploit depends on. If one of those gems gets updated so it's no longer compatible with you app, your app might break. Prefixing `bundle exec` to the command "runs the app in the context of your bundle," meaning it uses the exact versions of gems specified in the Gemfile.lock.
<havenwood> soloxdead: TL;DR: A gem got updated. Prefixing `bundle exec` ensures the gem versions known to work are used.
<soloxdead> havenwood: ahh alright!
<soloxdead> havenwood: Thanks for the help and info!
<havenwood> soloxdead: you're welcome!
jcarl43 has joined #ruby
<havenwood> I've suggested Bundler change their logo to "Prefix `bundle exec` or it's not your bundle!" but I didn't actually open a PR. ¯\_(ツ)_/¯
<havenwood> Here's what that would look like: https://i.imgur.com/9P4SpWl.png
<havenwood> ooh, Bundler has a new logo! now my silliness is woefully dated
<soloxdead> lol haha
Xiti has quit [Ping timeout: 272 seconds]
Xiti has joined #ruby
tdy1 has joined #ruby
renich has joined #ruby
renich_ has quit [Ping timeout: 245 seconds]
renich_ has joined #ruby
renich has quit [Ping timeout: 245 seconds]
renich_ has quit [Ping timeout: 250 seconds]
sauvin has joined #ruby
hahuang65 has quit [Quit: ZNC - https://znc.in]
aupadhye has joined #ruby
contradictioned has joined #ruby
kapil____ has joined #ruby
SeepingN has joined #ruby
Swyper has quit [Remote host closed the connection]
hahuang65 has joined #ruby
aupadhye has quit [Ping timeout: 246 seconds]
renich_ has joined #ruby
mochiyoda has left #ruby ["Konversation terminated!"]
Inline has quit [Quit: Leaving]
renich_ has quit [Ping timeout: 268 seconds]
t0xik has quit [Quit: Connection closed for inactivity]
jcarl43 has quit [Quit: WeeChat 2.4]
v01d4lph4 has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
conta has joined #ruby
Swyper has quit [Remote host closed the connection]
zeroquake has joined #ruby
<zeroquake> If hash x is not initialized and is nil , how do i safely call/return nil when i do something like x[:something]
reber has joined #ruby
Swyper has joined #ruby
reber has quit [Remote host closed the connection]
yield has quit [Remote host closed the connection]
aqd has quit [Read error: Connection reset by peer]
Swyper has quit [Ping timeout: 245 seconds]
zeroquake has quit [Quit: The Lounge - https://thelounge.chat]
yield has joined #ruby
yield has quit [Remote host closed the connection]
yield has joined #ruby
SeepingN has quit [Ping timeout: 250 seconds]
mangold has quit [Quit: This computer has gone to sleep]
aqd has joined #ruby
_whitelogger has joined #ruby
<havenwood> zer, ah, too late
<havenwood> &>> nil&.[](:something)
<rubydoc> # => nil (https://carc.in/#/r/6lc4)
<havenwood> &>> nil&.dig(:something)
<rubydoc> # => nil (https://carc.in/#/r/6lc5)
aufi has joined #ruby
M0bPsycho has joined #ruby
ferr has joined #ruby
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 250 seconds]
M0bPsycho has quit [Ping timeout: 250 seconds]
olspookishmagus has joined #ruby
yield has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
andikr has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
dinfuehr has joined #ruby
clemens3 has joined #ruby
dinfuehr_ has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
none_ has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
jmcgnh has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 246 seconds]
pwnd_nsfw has joined #ruby
nowhere_man has quit [Ping timeout: 258 seconds]
clemens3 has quit [Ping timeout: 250 seconds]
none_ has quit [Ping timeout: 240 seconds]
Milos has quit [Ping timeout: 246 seconds]
someuser has joined #ruby
Milos has joined #ruby
TomyWork has joined #ruby
M0bPsycho has joined #ruby
Swyper has joined #ruby
Milos has quit [Ping timeout: 268 seconds]
clemens3 has joined #ruby
_joes_ has joined #ruby
lxsameer has joined #ruby
_joes_ has quit [Remote host closed the connection]
Swyper has quit [Ping timeout: 268 seconds]
Swyper has joined #ruby
schleppel has joined #ruby
_joes_ has joined #ruby
Swyper has quit [Ping timeout: 272 seconds]
za1b1tsu has joined #ruby
tdy1 has quit [Ping timeout: 255 seconds]
Milos has joined #ruby
M0bPsycho has quit [Quit: WeeChat 2.4]
_joes_ has quit [Ping timeout: 272 seconds]
dhollin3 has joined #ruby
dhollinger has quit [Ping timeout: 250 seconds]
_joes_ has joined #ruby
claudiuinberlin has joined #ruby
_joes_ has quit [Remote host closed the connection]
_joes_ has joined #ruby
aqd has quit [Remote host closed the connection]
aqd has joined #ruby
someuser has quit [Read error: Connection reset by peer]
claudiuinberlin has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby
esrse has quit [Ping timeout: 246 seconds]
mangold has joined #ruby
_joes_ has quit [Ping timeout: 268 seconds]
yield has joined #ruby
wsmoak has quit [Quit: Connection closed for inactivity]
yield has quit [Remote host closed the connection]
yield has joined #ruby
alem0lars has joined #ruby
ur5us has joined #ruby
<balo> does anyone running puma in clustered mode on ruby 2.6.2 and having shutdown issues with systemd?
alem0lars has quit [Ping timeout: 250 seconds]
ur5us has quit [Ping timeout: 272 seconds]
Swyper has joined #ruby
hightower3 has quit [Changing host]
hightower3 has joined #ruby
Swyper has quit [Ping timeout: 245 seconds]
_joes_ has joined #ruby
kyrylo has joined #ruby
alem0lars has joined #ruby
<dionysus69> why is there no to_sym! method :\
<dionysus69> var = var.to_sym
akem has quit [Remote host closed the connection]
akem has joined #ruby
kyrylo has quit [Ping timeout: 250 seconds]
<tbuehlmann> dionysus69: there's String#to_sym, but String#to_sym! doesn't make sense
<dionysus69> dunno, i would expect it would change object type to symbol too
<dionysus69> even better
<dionysus69> how would you optimize this?
<phaul> you can't change an objects type
<tbuehlmann> ^
<dionysus69> I guess I didnt know that pretty important detail xD
<tbuehlmann> what's your usecase? why is it that you don't know var's type? there's Symbol#to_sym as well, which should be a no-op, so `var = var.to_sym` would work. also, why do you need it as a symbol?
<dionysus69> I know I could just know what I will pass in
<dionysus69> just trying to overengineer a bit
<dionysus69> was there a precompilation step before 2.6's new JIT compiler? as I now know, the new JIT compiler compiles code and then runs
kyrylo has joined #ruby
imadper has quit [Remote host closed the connection]
ams__ has joined #ruby
lido has joined #ruby
lido has quit [Changing host]
lido has joined #ruby
johnny56 has quit [Ping timeout: 272 seconds]
johnny56 has joined #ruby
Devalo has joined #ruby
Devalo has quit [Ping timeout: 255 seconds]
gregf_ has joined #ruby
ellcs has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
mozzarella has quit [Remote host closed the connection]
mozzarella has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigintsune has joined #ruby
gigintsune has left #ruby [#ruby]
yield has quit [Remote host closed the connection]
sylario has joined #ruby
yield has joined #ruby
yield has quit [Remote host closed the connection]
jrafanie has joined #ruby
Swyper has joined #ruby
octos has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has joined #ruby
v01d4lph4 has quit [Remote host closed the connection]
ldnunes has joined #ruby
i1nfusion has quit [Remote host closed the connection]
v01d4lph4 has joined #ruby
i1nfusion has joined #ruby
_joes_ has quit [Ping timeout: 250 seconds]
_joes_ has joined #ruby
layer has joined #ruby
DmitryBochkarev has joined #ruby
Swyper has quit [Ping timeout: 268 seconds]
bmurt has joined #ruby
ravioli has joined #ruby
<ravioli> hi
octos has quit [Remote host closed the connection]
ravioli has quit [Quit: WeeChat 2.4]
dinfuehr_ is now known as dinfuehr
_joes_ has quit [Quit: _joes_]
_joes_1 has joined #ruby
_joes_1 has quit [Remote host closed the connection]
_joes_ has joined #ruby
layer has quit [Remote host closed the connection]
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
amosbird has quit [Quit: ZNC 1.6.3+deb2 - http://znc.in]
andikr has quit [Remote host closed the connection]
D9 has quit [Ping timeout: 244 seconds]
dostoyevsky has quit [Quit: leaving]
dostoyevsky has joined #ruby
marmotini_ has joined #ruby
D9 has joined #ruby
marmotini has joined #ruby
griffindy has joined #ruby
griffindy has quit [Client Quit]
crankharder has quit [Ping timeout: 250 seconds]
marmotini_ has quit [Ping timeout: 250 seconds]
crankharder has joined #ruby
SeepingN has joined #ruby
dviola has joined #ruby
griffindy has joined #ruby
crankharder has quit [Ping timeout: 245 seconds]
aupadhye has joined #ruby
leah2 has quit [Ping timeout: 250 seconds]
Deesl has joined #ruby
Rapture has joined #ruby
vondruch_ has joined #ruby
Deesl has quit [Client Quit]
vondruch has quit [Ping timeout: 255 seconds]
vondruch_ is now known as vondruch
Swyper has joined #ruby
crankharder has joined #ruby
agent_white has joined #ruby
v01d4lph4 has quit [Remote host closed the connection]
kapil____ has joined #ruby
Swyper has quit [Ping timeout: 255 seconds]
Swyper has joined #ruby
leah2 has joined #ruby
Swyper has quit [Ping timeout: 246 seconds]
dhollin3 is now known as dhollinger
lucasb has joined #ruby
ferr has quit [Quit: WeeChat 2.4]
spacesuitdiver has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
stryek has joined #ruby
Swyper has joined #ruby
layer has joined #ruby
DmitryBochkarev has quit [Ping timeout: 246 seconds]
marmotini has quit [Ping timeout: 250 seconds]
tau has joined #ruby
grilix has joined #ruby
dviola has quit [Quit: WeeChat 2.4]
AndroidKitKat is now known as mach
mach is now known as AndroidKitKat
yokel has quit [Remote host closed the connection]
yokel has joined #ruby
AndroidKitKat is now known as mach_kernel
mach_kernel is now known as AndroidKitKat
AndroidKitKat is now known as iokit
iokit is now known as AndroidKitKat
Swyper has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 246 seconds]
Dbugger has joined #ruby
Swyper has joined #ruby
rippa has joined #ruby
conta has quit [Ping timeout: 245 seconds]
LenPayne_ has quit [Read error: Connection reset by peer]
LenPayne has joined #ruby
alem0lars_ has joined #ruby
PepeLePewPew has quit [Ping timeout: 272 seconds]
PepeLePewPew has joined #ruby
PepeLePewPew is now known as Cuzner
Cuzner has quit [Changing host]
Cuzner has joined #ruby
Cuzner is now known as PepeLePewPew
alem0lars has quit [Ping timeout: 268 seconds]
<crankharder> The AWS ruby sdk doesn't support showing progress for multipart uploads. As such, I'm trying to PUT that request with something super low level that could spit information s.t. I can figure out upload speed and time to completion. So, +
<crankharder> I'm looking for something super low level that I can PUT a file and somwhoe get progress. not sure if I'm looking in the right place in net/http, or if there's something else I could look at. Any suggestions?
<crankharder> in short: how can I PUT a file to some endpoint and get some output that I can calculate progress from?
polishdub has joined #ruby
renich has joined #ruby
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brool has joined #ruby
spacesuitdiver has joined #ruby
zleap has joined #ruby
zleap has quit [Changing host]
zleap has joined #ruby
mangold has joined #ruby
spacesuitdiver has quit [Quit: Textual IRC Client: www.textualapp.com]
Inline has joined #ruby
DmitryBochkarev has joined #ruby
Ai9zO5AP has joined #ruby
Deesl has joined #ruby
Swyper has quit [Remote host closed the connection]
Azure has quit [Quit: Oops.]
aufi has quit [Ping timeout: 272 seconds]
Azure has joined #ruby
ellcs has quit [Ping timeout: 245 seconds]
tdy1 has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
clemens3 has quit [Ping timeout: 245 seconds]
<havenwood> dionysus69: since Ruby 1.9, CRuby has had a virtual machine (YARV) that parses the grammar and compiles to an abstract syntax tree (AST) as an intermediary representation before compiling on to machine code.
lytol has joined #ruby
<havenwood> dionysus69: Here's an article I wrote about Ruby's JIT that introduces the basics: https://medium.com/square-corner-blog/rubys-new-jit-91a5c864dd10#662a
<havenwood> crankharder: yes, you can do streaming uploads with net/http, but you have to do it manually
<havenwood> crankharder: some other Ruby HTTP libs support it more directly
<havenwood> crankharder: take a look at the "streaming upload" column on this spreadsheet: https://docs.google.com/spreadsheets/d/1vPlk6nMIFa3sI5ISl7zZ5r6lDNpVQX6Jxi3ksXCyVbs/edit?usp=sharing
Swyper has joined #ruby
lxsameer has quit [Quit: out]
CrazyEddy has quit [Remote host closed the connection]
alem0lars__ has joined #ruby
orbyt_ has joined #ruby
zachk has joined #ruby
stan has joined #ruby
alem0lars_ has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
orbyt_ has quit [Ping timeout: 250 seconds]
SuperLag has quit [Ping timeout: 246 seconds]
faitswulff has joined #ruby
faitswulff has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
SuperLag has joined #ruby
conta has joined #ruby
orbyt_ has joined #ruby
hiroaki has joined #ruby
SuperL4g has joined #ruby
SuperLag has quit [Ping timeout: 245 seconds]
kapil____ has quit [Quit: Connection closed for inactivity]
Devalo has joined #ruby
conta has quit [Ping timeout: 250 seconds]
granitepub has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
Swyper has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 250 seconds]
rob264 has joined #ruby
gnufied has joined #ruby
r29v has joined #ruby
Deesl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zachk has quit [Changing host]
zachk has joined #ruby
_joes_ has quit [Ping timeout: 250 seconds]
mangold has quit [Quit: This computer has gone to sleep]
reber has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 246 seconds]
CrazyEddy has joined #ruby
brool has quit [Ping timeout: 268 seconds]
Devalo has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
Devalo has quit [Ping timeout: 268 seconds]
granitepub has quit [Remote host closed the connection]
Swyper has joined #ruby
laaron- has joined #ruby
Devalo has joined #ruby
<crankharder> havenwood: thanks, yea i found a streaming example for a get request in the net/http docs here: http://ruby-doc.org/stdlib-2.1.1/libdoc/net/http/rdoc/Net/HTTP.html#class-Net::HTTP-label-Streaming+Response+Bodies
<crankharder> thanks for those other links!
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
jinie has quit [Ping timeout: 246 seconds]
jrafanie has joined #ruby
jinie has joined #ruby
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
Swyper has quit [Remote host closed the connection]
gix has joined #ruby
Swyper has joined #ruby
jinie has quit [Ping timeout: 250 seconds]
jinie_ has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Deesl has joined #ruby
Swyper has quit [Remote host closed the connection]
jinie_ has quit [Ping timeout: 250 seconds]
sauvin has quit [Remote host closed the connection]
jinie has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
Swyper has joined #ruby
Xiti has quit [Read error: Connection reset by peer]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
orbyt_ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
orbyt_ has quit [Read error: Connection reset by peer]
jcarl43 has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
DmitryBochkarev has quit [Ping timeout: 272 seconds]
nowhere_man has joined #ruby
zleap has quit [Quit: WeeChat 2.4]
Swyper has quit [Remote host closed the connection]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
poguez_ has joined #ruby
kyrylo has joined #ruby
reber has quit [Read error: Connection reset by peer]
clemens3 has joined #ruby
kyrylo has quit [Ping timeout: 245 seconds]
claudiuinberlin has joined #ruby
gheegh has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
Xiti has joined #ruby
<crankharder> havenwood: where do you see that http.rb supports streaming uploads? I dont see anything in the readme wiki or yard docs over there: https://github.com/httprb/http
<crankharder> fwiw, not sure i've found any lib that can stream a file upload and provide status of that upload whlie it's in progress
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
Devalo has quit [Ping timeout: 245 seconds]
jrafanie has joined #ruby
brool has joined #ruby
lido has quit [Ping timeout: 250 seconds]
<brool> i have a map on a string i'm trying to do a caesar cypher on, and i don't understand why my map function isn't returning on the first line for chars that aren't included in the alphabet. https://ghostbin.com/paste/rqbqg
<brool> on line 6 it should just return c when c isn't alphabetic, right?
<adam12> brool: Are you missing a call to `return` on that line?
<brool> adam12: i was pretty sure `return` would terminate the map
<adam12> brool: Oh right. You likely want next.
<brool> adam12: but i *do* want to spit out that char
<brool> so i don't loose spaces and punctuation
<adam12> brool: You should be able to `next c unless alphabet.include? c.downcase`
<brool> adam12: that did it
<brool> ty
<adam12> yw
SeepingN has joined #ruby
fredolinhares has joined #ruby
<brool> actually that introduces a new bug
<brool> sending capital letters through will translate only the first capital letter and then let all the next letters through un-mutated
<brool> "test TEST test" (offset 2) => "vguv VEST test"
Devalo has joined #ruby
<adam12> brool: presumably you might be mutating alphabet? I didn't look and it's a wild guess.
<brool> if i remove `next`, then it works with capitals again but fails to catch non-alphabetic characters
<brool> i'm not mutating alphabet
<adam12> brool: but a = alphabet; a.upcase! but be mutating alphabet by reference.
ur5us has joined #ruby
<brool> it should copy by value :/
<brool> let me test
<adam12> brool: It might be? I never bothered to look that closely, but it stuck out to me.
dinfuehr_ has joined #ruby
<brool> ffffffff you're right
<brool> it copies by reference
<adam12> brool: just call dup on it. alphabet.dup.
<brool> k
dinfuehr has quit [Ping timeout: 255 seconds]
<adam12> brool: or more specifically, a = alphabet.dup
<brool> yeah
bmurt has joined #ruby
<brool> works now
<brool> ty
<brool> can't believe strings copy by reference >.>
<adam12> heh
<adam12> I wonder if there's a list of what's reference and value. I can't remember ever looking for one. But the bang-methods in stdlib stick out to me like a sore thumb for unintended side-effects.
rindolf has joined #ruby
<rindolf> hi all
<adam12> brool: frozen string literals would of likely caught it. `ruby --enable-frozen-string-literal caesar.rb` # caesar.rb:9:in `upcase!': can't modify frozen String (FrozenError)
<adam12> rindolf: o/
<brool> adam12: interesting. i was just running tests in pry after requiring my source file
<rindolf> adam12: hi
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
Ai9zO5AP has quit [Quit: WeeChat 2.4]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
Swyper has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Devalo has quit [Ping timeout: 244 seconds]
Azure has quit [Quit: Oops.]
Swyper has quit [Remote host closed the connection]
Deesl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iNs_ has quit [Remote host closed the connection]
iNs has joined #ruby
Fernando-Basso has joined #ruby
Azure has joined #ruby
_joes_ has joined #ruby
kyrylo has joined #ruby
_joes_ has quit [Remote host closed the connection]
_joes_ has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
ldnunes has quit [Quit: Leaving]
griffindy has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dbugger has quit [Ping timeout: 250 seconds]
Swyper has joined #ruby
rindolf has quit [Read error: Connection reset by peer]
_joes_ has quit [Ping timeout: 245 seconds]
gell5 has quit [Remote host closed the connection]
_joes_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_joes_ has quit [Ping timeout: 246 seconds]
_joes_ has joined #ruby
schleppel has quit [Quit: Konversation terminated!]
hightower3 has quit [Ping timeout: 246 seconds]
gell5 has joined #ruby
gell5 has quit [Ping timeout: 246 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alem0lars__ has quit [Remote host closed the connection]
<cagomez> I have the same set of methods that I need to delegate across classes. They only differ in the object they are delegating to. eg `delegate :id, to: :foo` in one class, and `delegate :id, to: :bar` in another. How do I define a module such that my classes only need to define `foo` or `bar`?
<phaul> def self.delegate_to(obj) ; %i(foo bar).each { |meth| def_delegator(obj, meth) ); end
<phaul> end
<phaul> require 'forwardable'
vondruch has quit [Ping timeout: 250 seconds]
hahuang6- has quit [Disconnected by services]
hahuang6- has joined #ruby
hahuang6- has quit [Disconnected by services]
hahuang6- has joined #ruby
<cagomez> phaul: thank you! looks perfect
<phaul> yw
ellcs has joined #ruby
<cagomez> how long have you worked with Ruby?
Swyper has quit [Remote host closed the connection]
<phaul> few years :) not too long
<phaul> tried 1.8 something and sort of learnt it. then picked up 2.4 again
jacksoow_ has quit [Read error: Connection reset by peer]
jacksoow has joined #ruby
hahuang6- has quit [Disconnected by services]
hahuang6- has joined #ruby
Swyper has joined #ruby
gell5 has joined #ruby
gell5 has quit [Ping timeout: 246 seconds]
polishdub has quit [Quit: leaving]
lytol has quit [Remote host closed the connection]
kent\n has quit [Remote host closed the connection]
moei has joined #ruby
kent\n has joined #ruby
_joes_ has quit [Ping timeout: 246 seconds]
conta has joined #ruby
levifig has quit [Quit: Farewell]
levifig has joined #ruby
layer has quit [Remote host closed the connection]
hiroaki has quit [Ping timeout: 246 seconds]
Deesl has joined #ruby
conta has quit [Ping timeout: 250 seconds]
gell5 has joined #ruby
dsuper7 has joined #ruby
gell5 has quit [Ping timeout: 272 seconds]
Deesl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
clemens3_ has joined #ruby
houhoulis has joined #ruby
clemens3 has quit [Ping timeout: 250 seconds]
jrafanie has joined #ruby
Deesl has joined #ruby
dsuper7 has quit [Quit: Catch you on the flip side....]
Deesl has quit [Client Quit]
dsuper7 has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
dsuper7 has quit [Quit: Catch you on the flip side....]
dsuper7 has joined #ruby
Fernando-Basso has quit [Remote host closed the connection]
gell5 has joined #ruby
gell5 has quit [Ping timeout: 255 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]