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?
<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]
<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.
<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. ¯\_(ツ)_/¯
<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…]
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.
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
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`?