havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.7.0-preview1: 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!
yqt has joined #ruby
yqt has quit [Ping timeout: 245 seconds]
skryking has quit [Ping timeout: 244 seconds]
involans has joined #ruby
ramfjord has joined #ruby
ur5us has joined #ruby
skryking has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
tdy has joined #ruby
tdy has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
ramfjord has quit [Ping timeout: 245 seconds]
Bounga has quit [Ping timeout: 252 seconds]
sh7d has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
fphilipe has joined #ruby
BTRE has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 245 seconds]
tdy has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
ramfjord has joined #ruby
Bounga has joined #ruby
BTRE has joined #ruby
involans has quit [Quit: involans]
Swyper has joined #ruby
Bounga has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
Exuma has joined #ruby
dbugger has quit [Ping timeout: 264 seconds]
DaRock has joined #ruby
jenrzzz has joined #ruby
fphilipe has quit [Ping timeout: 245 seconds]
wildermind has quit [Quit: Connection closed for inactivity]
sh7d has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
involans has joined #ruby
yqt has joined #ruby
Swyper has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
yqt has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
Bounga has joined #ruby
fphilipe has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
Bounga has quit [Ping timeout: 276 seconds]
s2013 has joined #ruby
morenoh11 has quit [Ping timeout: 245 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe has quit [Ping timeout: 246 seconds]
yqt has joined #ruby
yqt has quit [Ping timeout: 258 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmcgnh has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
morenoh11 has joined #ruby
Dr_MDMA_MD has quit [Quit: Connection closed for inactivity]
hhffppff has joined #ruby
hhffppff has quit [Remote host closed the connection]
morenoh11 has quit [Ping timeout: 272 seconds]
<havenwood> getting same number of fibers spun up now in the benchmark warmup phase as it used to be total :D
<havenwood> i like this new fiber pool
Swyper has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
ur5us has joined #ruby
sleetdrop has joined #ruby
comet23 has joined #ruby
yqt has joined #ruby
oetjenj has joined #ruby
yqt has quit [Ping timeout: 272 seconds]
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has joined #ruby
morenoh11 has joined #ruby
Bounga has joined #ruby
Mrgoose8 has quit [Quit: The Lounge - https://thelounge.chat]
Mrgoose8 has joined #ruby
morenoh11 has quit [Ping timeout: 244 seconds]
Bounga has quit [Ping timeout: 252 seconds]
jmcgnh has joined #ruby
Technodrome has joined #ruby
bitwinery has quit [Quit: Leaving]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
kapilp has joined #ruby
davor_ has joined #ruby
davor has quit [Ping timeout: 272 seconds]
davor_ is now known as davor
houhoulis has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 244 seconds]
gix has joined #ruby
gix- has quit [Ping timeout: 245 seconds]
yqt has joined #ruby
morenoh11 has joined #ruby
yqt has quit [Ping timeout: 248 seconds]
chalkmonster has joined #ruby
morenoh11 has quit [Ping timeout: 258 seconds]
fphilipe has joined #ruby
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
englishm has joined #ruby
englishm has quit [Excess Flood]
involans has quit [Quit: involans]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ring0` has quit [Quit: bb 0_o]
reed has joined #ruby
morenoh11 has joined #ruby
yqt has joined #ruby
morenoh11 has quit [Ping timeout: 272 seconds]
reed has quit [Quit: Mutter: www.mutterirc.com]
yqt has quit [Ping timeout: 268 seconds]
orbyt_ has joined #ruby
Inline has quit [Quit: Leaving]
conta has joined #ruby
ZAJDAN has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
morenoh11 has joined #ruby
esrse has joined #ruby
sauvin has joined #ruby
Exuma has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Furai has quit [Quit: WeeChat 2.5]
exmortus has quit [Ping timeout: 245 seconds]
Furai has joined #ruby
Furai has quit [Client Quit]
Furai has joined #ruby
exmortus has joined #ruby
_whitelogger has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
yqt has joined #ruby
gix has quit [Ping timeout: 244 seconds]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skryking has quit [Ping timeout: 245 seconds]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
conta has quit [Ping timeout: 244 seconds]
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
yqt has quit [Ping timeout: 268 seconds]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
s2013 has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
conta has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
absolutejam4 has joined #ruby
schne1der has joined #ruby
hiroaki has quit [Ping timeout: 245 seconds]
comet23 has quit [Quit: Connection closed for inactivity]
fphilipe has quit [Ping timeout: 272 seconds]
thebananaking has quit [Quit: Connection closed for inactivity]
corellian has joined #ruby
absolutejam4 has quit [Ping timeout: 248 seconds]
snickers has joined #ruby
TomyWork has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
schne1der has quit [Ping timeout: 268 seconds]
oetjenj has joined #ruby
yqt has joined #ruby
Exuma has joined #ruby
Exuma has quit [Client Quit]
aupadhye has joined #ruby
Exuma has joined #ruby
andikr has joined #ruby
Exuma has quit [Client Quit]
yqt has quit [Ping timeout: 258 seconds]
Exuma has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BH23 has joined #ruby
wildermind has joined #ruby
Bounga has joined #ruby
cats has quit [Ping timeout: 272 seconds]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
Bounga has quit [Ping timeout: 276 seconds]
AJA4350 has quit [Remote host closed the connection]
AJA4350 has joined #ruby
troulouliou_div2 has joined #ruby
cats has joined #ruby
donofrio__ has joined #ruby
chunkypuffs has quit [Quit: ZNC 1.7.1 - https://znc.in]
cliluw has quit [Read error: Connection reset by peer]
ropeney has quit [Ping timeout: 245 seconds]
nirix has quit [Ping timeout: 245 seconds]
AJA4350 has quit [Ping timeout: 245 seconds]
cliluw has joined #ruby
ropeney has joined #ruby
nirix has joined #ruby
Frobozz_ has joined #ruby
AJA4350 has joined #ruby
regent has joined #ruby
guardian has quit [Ping timeout: 245 seconds]
Frobozz has quit [Quit: quit]
hays has quit [Quit: No Ping reply in 180 seconds.]
mcspud has quit [Excess Flood]
segy has quit [Ping timeout: 245 seconds]
vondruch has quit [Ping timeout: 245 seconds]
gigetoo has quit [Ping timeout: 245 seconds]
Grobo has quit [Ping timeout: 245 seconds]
arooni has quit [Excess Flood]
andikr has quit [Read error: Connection reset by peer]
chunkypuffs has joined #ruby
donofrio_ has quit [Ping timeout: 245 seconds]
balo has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
vondruch has joined #ruby
hays has joined #ruby
mcspud- has joined #ruby
teclator has quit [Quit: No Ping reply in 180 seconds.]
guardian has joined #ruby
segy has joined #ruby
arooni has joined #ruby
themsay has quit [Ping timeout: 272 seconds]
teclator has joined #ruby
mcspud- is now known as mcspud
balo has joined #ruby
gigetoo has joined #ruby
jefffrails35 has joined #ruby
absolutejam4 has joined #ruby
cd has quit [Quit: cd]
Tuor has joined #ruby
jefffrails35 has quit [Quit: Leaving]
iNs_ is now known as iNs
jmcgnh has quit [Ping timeout: 272 seconds]
jmcgnh has joined #ruby
<dionysus69> what would be a cool way to precampute default argument if not assigned based on another argument?
<dionysus69> let's say I have def method(collection: [obj1,obj2], model: collection.first.class)
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
<dionysus69> never seen anything like it in practice so I am little confused on how to approach it
Technodrome has quit [Ping timeout: 272 seconds]
kapilp has quit [Quit: Connection closed for inactivity]
mikecmpbll has joined #ruby
yqt has joined #ruby
themsay has joined #ruby
fphilipe has joined #ruby
jinie has joined #ruby
yqt has quit [Ping timeout: 268 seconds]
lxsameer has joined #ruby
conta has quit [Remote host closed the connection]
conta has joined #ruby
Bounga has joined #ruby
Technodrome has joined #ruby
absolutejam4 has quit [Ping timeout: 258 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Bounga` has joined #ruby
Bounga has quit [Ping timeout: 264 seconds]
snickers has quit [Quit: Textual IRC Client: www.textualapp.com]
Bounga` has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
planigan has quit [Ping timeout: 245 seconds]
planigan has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
skryking has joined #ruby
yqt has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
sylario has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
deepreds1 has joined #ruby
yqt has quit [Ping timeout: 268 seconds]
tdy has quit [Ping timeout: 268 seconds]
BH23 has quit [Ping timeout: 245 seconds]
tdy has joined #ruby
TheBrayn has quit [Ping timeout: 258 seconds]
tdy has quit [Ping timeout: 245 seconds]
jmcgnh has quit [Ping timeout: 258 seconds]
Frobozz_ is now known as Frobozz
wildermind has quit [Quit: Connection closed for inactivity]
jmcgnh has joined #ruby
morenoh11 has quit [Ping timeout: 244 seconds]
shtirlic has quit [Quit: ZNC - http://znc.in]
shtirlic has joined #ruby
conta has quit [Remote host closed the connection]
conta has joined #ruby
schne1der has joined #ruby
yqt has joined #ruby
conta has quit [Ping timeout: 245 seconds]
MatrixBridge has joined #ruby
MatrixBridge has left #ruby ["User left"]
chalkmon1 has joined #ruby
conta has joined #ruby
chalkmonster has quit [Ping timeout: 244 seconds]
morenoh11 has joined #ruby
teej has quit [Quit: Connection closed for inactivity]
morenoh11 has quit [Ping timeout: 244 seconds]
chalkmonster has joined #ruby
chalkmon1 has quit [Ping timeout: 244 seconds]
TheBrayn has joined #ruby
TheBrayn has quit [Client Quit]
ramfjord has joined #ruby
conta has quit [Ping timeout: 268 seconds]
exmortus has quit [Remote host closed the connection]
exmortus has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
IRC-Source_96 has joined #ruby
TheBrayn has joined #ruby
conta has joined #ruby
aupadhye has quit [Ping timeout: 268 seconds]
absolutejam4 has joined #ruby
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 245 seconds]
vondruch_ is now known as vondruch
ellcs has joined #ruby
morenoh11 has joined #ruby
IRC-Source_96 has quit [Ping timeout: 244 seconds]
morenoh11 has quit [Ping timeout: 244 seconds]
aupadhye has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
redlegion has joined #ruby
xco has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
absolutejam4 has quit [Ping timeout: 245 seconds]
ellcs has quit [Ping timeout: 244 seconds]
budonyc has quit [Ping timeout: 244 seconds]
absolutejam4 has joined #ruby
absolutejam4 has quit [Ping timeout: 246 seconds]
esrse has quit [Ping timeout: 246 seconds]
conta has quit [Ping timeout: 248 seconds]
vondruch has quit [Ping timeout: 245 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
morenoh11 has joined #ruby
griffindy has joined #ruby
morenoh11 has quit [Ping timeout: 258 seconds]
conta has joined #ruby
absolutejam4 has joined #ruby
absolutejam4 has quit [Ping timeout: 245 seconds]
yalue has joined #ruby
queip has quit [Ping timeout: 268 seconds]
lmc has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
ramfjord has joined #ruby
queip has joined #ruby
deepreds1 has quit [Ping timeout: 258 seconds]
x0f_ has joined #ruby
x0f has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
x0f_ has quit [Ping timeout: 268 seconds]
x0f has joined #ruby
cow[moo] has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
conta has quit [Ping timeout: 245 seconds]
joshua__ has joined #ruby
yqt has quit [Ping timeout: 244 seconds]
morenoh11 has joined #ruby
griffindy has quit [Quit: Textual IRC Client: www.textualapp.com]
conta has joined #ruby
morenoh11 has quit [Ping timeout: 244 seconds]
shansen has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 248 seconds]
troulouliou_divn has joined #ruby
troulouliou_divn has quit [Remote host closed the connection]
shansen has joined #ruby
aphprentice__ has quit [Quit: Connection closed for inactivity]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
troulouliou_div2 has quit [Ping timeout: 248 seconds]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
griffindy has joined #ruby
oetjenj has quit [Client Quit]
lucasb has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
joshua__ has quit [Quit: joshua__]
oetjenj has quit [Client Quit]
lmc has quit [Quit: Leaving...]
cd has joined #ruby
oetjenj has joined #ruby
absolutejam4 has joined #ruby
ikbenhet has joined #ruby
absolutejam4 has quit [Ping timeout: 245 seconds]
chalkmonster has quit [Quit: WeeChat 2.5]
ascarter has joined #ruby
conta has quit [Ping timeout: 248 seconds]
ikbenhet has quit [Quit: Textual IRC Client: www.textualapp.com]
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
DTZUZO has quit [Ping timeout: 245 seconds]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
jenrzzz has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
involans has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
<adam12> dionysus69: Does that solution not work?
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
jenrzzz has quit [Ping timeout: 258 seconds]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
conta1 has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
yqt has joined #ruby
morenoh11 has joined #ruby
absolutejam4 has joined #ruby
yqt has quit [Ping timeout: 268 seconds]
morenoh11 has quit [Ping timeout: 272 seconds]
Rapture has joined #ruby
wildermind has joined #ruby
Inline has joined #ruby
Tuor has quit [Quit: Konversation terminated!]
absolutejam4 has quit [Ping timeout: 246 seconds]
MindSpark has joined #ruby
<MindSpark> hey, I have a Rakefile that is including some packages. When I run rake, I get the error "LoadError: cannot load such file -- ra10ke"
gremax has joined #ruby
<MindSpark> Although I have the gems installed via bundler. Sorry, total noob here.
DaRock has quit [Ping timeout: 245 seconds]
<MindSpark> Anyone?
griffindy has quit [Ping timeout: 245 seconds]
matheusmoreira has quit [Ping timeout: 268 seconds]
andikr has quit [Remote host closed the connection]
matheusmoreira has joined #ruby
<adam12> MindSpark: How about prefixing your rake command with `bundle exec`?
andikr has joined #ruby
chalkmonster has joined #ruby
<MindSpark> adam12, I think I figured it out. I needed to set $GEM_HOME and $GEM_PATH, or one of them.
<adam12> MindSpark: You shouldn't have to...
<MindSpark> how come?
<adam12> MindSpark: Well, what did you have to set them to?
<MindSpark> I set them to ~/.gem
<adam12> MindSpark: Bundler alleviates the need for setting $GEM_HOME and $GEM_PATH.
<MindSpark> I think it's because I installed ruby via the puppet package instead of the default package manager?
GodFather has joined #ruby
<MindSpark> adam12, does that also apply to rake?
<MindSpark> Because bundler itself ran fine
<MindSpark> but when I ran rake, that's the error I got
<adam12> MindSpark: Bundler is basically 2 components. One part is depedency resolution / installation, and the other part is path management.
ramfjord has joined #ruby
<adam12> MindSpark: Bundler knows where it installed the gems, so when you need a gem, it's possible it's not installed in GEM_HOME but bundler knows that, so it manipulates the path.
<adam12> MindSpark: The two ways it does that are either, bundle exec being used, or require "bundler/setup"
<adam12> MindSpark: Rake is a system gem and installed outside of bundler, so it can be called directly, but the second you require a gem managed by bundler, it needs that load path manipulated. Either require "bundler/setup" at the top of your Rakefile or prefix your commands with bundle exec.
jefffrails35 has joined #ruby
jefffrails35 has quit [Remote host closed the connection]
<MindSpark> Ah, ok... I'll try to require bundler/setup
<MindSpark> LoadError: cannot load such file -- bundler/setup
<adam12> Is your GEM_HOME and GEM_PATH environment variables still set/different?
<MindSpark> I unset them
<adam12> Maybe they had defaults.
<adam12> Did you set them, and _then_ install bundler?
<MindSpark> nope
<MindSpark> I set them after I installed bundler and things weren't working
xco has quit [Quit: xco]
xco has joined #ruby
<adam12> MindSpark: Interesting. Well you could just re-install bundler or re-set the GEM_HOME and GEM_PATH. But something has gone hinky and it's too hard to determine what.
<MindSpark> I am guessing that if you install ruby via apt or rpm or aio or w/e, the environment is added into etc/bash.profile /
<MindSpark> And in that case it applies to all users?
ramfjord has quit [Ping timeout: 272 seconds]
<MindSpark> adam12, can you try and echo $GEM_PATH and $GEM_HOME on your machine?
lxsameer has quit [Ping timeout: 258 seconds]
<MindSpark> One thing to note of course is that my bundler and bundle binaries are in ~/.gem/bin. Which currently is not set in my path
schne1der has quit [Ping timeout: 258 seconds]
<adam12> MindSpark: Both of mine are unset by default. I use direnv when working on projects and use GEM_HOME there (but never GEM_PATH)
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mdl8165 has joined #ruby
<MindSpark> yes, well it works when I have GEM_HOME set. I don't have to have GEM_PATH really. I think they're interchangeable
<adam12> MindSpark: A lot of package managers butcher the ruby install. Eventually I think ~/.gem will be default for `gem` command (I believe it's user-install option defaults to it)
mdl8165 has quit [Client Quit]
<adam12> MindSpark: Ideally: you only need GEM_HOME set if you're installing gems as non-root.
<adam12> MindSpark: If you are using bundler, you need to ensure bundler is used. This can either be through it's binstubs, bundle exec, or require bundler/setup as mentioned.
<adam12> MindSpark: Outside of that, it should just work :)
involans has quit [Ping timeout: 245 seconds]
oetjenj has joined #ruby
<MindSpark> adam12, what about bundle exec? Do I just execute this before I include any gems?
<adam12> MindSpark: bundle exec is used before calling any gem binaries. bundle exec rake, bundle exec rails, etc. The bundle exec portion sets up the $LOAD_PATH to find the bundle'd gem, not the one that might be installed elsewhere / outside of the load path.
morenoh11 has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
<MindSpark> Ah, so I would have had to call rake via bundle exec rake ?
yqt has joined #ruby
morenoh11 has quit [Ping timeout: 244 seconds]
s2013 has joined #ruby
yqt has quit [Ping timeout: 268 seconds]
dbugger has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.5]
absolutejam4 has joined #ruby
aupadhye has joined #ruby
gremax has quit [Quit: leaving]
absolutejam4 has quit [Ping timeout: 245 seconds]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
<adam12> MindSpark: Yes
oetjenj has quit [Client Quit]
involans has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
<havenwood> Prefix `bundle exec`, or it's not your bundle!
andikr has quit [Remote host closed the connection]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
rikkipitt has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
Rapture has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
gix has joined #ruby
oetjenj has quit [Client Quit]
shtirlic has quit [Quit: ZNC - http://znc.in]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
conta1 has quit [Ping timeout: 245 seconds]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
shtirlic has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
fphilipe has quit [Ping timeout: 272 seconds]
oetjenj has quit [Client Quit]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has joined #ruby
rikkipitt has quit [Quit: Leaving...]
jenrzzz has joined #ruby
ep4sh2k__ has joined #ruby
reber has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
morenoh11 has joined #ruby
AJA4350 has quit [Remote host closed the connection]
AJA4350 has joined #ruby
corellian has quit [Quit: leaving]
morenoh11 has quit [Ping timeout: 272 seconds]
Exuma has joined #ruby
yqt has joined #ruby
orbyt_ has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yqt has quit [Ping timeout: 272 seconds]
dviola has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
yalue has quit [Quit: Leaving]
dhollinger has quit [Ping timeout: 258 seconds]
redlegion has quit [Quit: The Lounge - https://thelounge.chat]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
mikecmpbll has quit [Quit: inabit. zz.]
dviola has quit [Quit: WeeChat 2.5]
thebetrayer has joined #ruby
Rapture has joined #ruby
jenrzzz has joined #ruby
MindSpark has quit [Ping timeout: 244 seconds]
thebetra1 has joined #ruby
griffindy has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
thebetra1 has quit [Client Quit]
gnufied has joined #ruby
deepreds1 has joined #ruby
plujon has joined #ruby
<plujon> Is there a ruby idiom for recursively sorting a nested hash by key, then value?
<plujon> { 'b' => ['c', 'a'], 'a' => { 'c' => 1, 'b' => 2 }, } # to sort something like this
chalkmonster has joined #ruby
aupadhye has quit [Remote host closed the connection]
yqt has joined #ruby
dbugger has quit [Quit: Leaving]
duderonomy has joined #ruby
ramfjord has joined #ruby
Technodrome has joined #ruby
Technodrome has quit [Remote host closed the connection]
Technodrome has joined #ruby
ua has quit [Ping timeout: 244 seconds]
nowhere_man has joined #ruby
insolentworm has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
solars has quit [Quit: Connection closed for inactivity]
fphilipe has joined #ruby
dhollinger has joined #ruby
fphilipe has quit [Ping timeout: 250 seconds]
redlegion has joined #ruby
absolutejam4 has joined #ruby
dhollinger has quit [Ping timeout: 244 seconds]
kaiser has joined #ruby
dhollinger has joined #ruby
absolutejam4 has quit [Ping timeout: 244 seconds]
dellavg has joined #ruby
ua has joined #ruby
ep4sh2k__ has quit [Quit: Connection closed for inactivity]
themsay has quit [Ping timeout: 245 seconds]
thebetra1 has joined #ruby
falconfox has joined #ruby
orbyt_ has quit [Read error: Connection reset by peer]
kaiser0 has joined #ruby
orbyt_ has joined #ruby
kaiser has quit [Ping timeout: 248 seconds]
yalue has joined #ruby
mdl8615 has joined #ruby
sauvin has quit [Ping timeout: 244 seconds]
morenoh11 has joined #ruby
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
Dr_MDMA_MD has joined #ruby
Inline has quit [Ping timeout: 264 seconds]
themsay has joined #ruby
<havenwood> plujon: what should the result be?
<plujon> { 'a' => { 'b' => 2, 'c' => 1 }, 'b' => ['a', 'c'] }
<plujon> havenwood: sort by keys, and [maybe?] sort any arrays?
krasnus has quit [Ping timeout: 258 seconds]
heyimwill has quit [Ping timeout: 258 seconds]
<havenwood> plujon: the first level is easy: h.sort.to_h
wildermind has quit [Quit: Connection closed for inactivity]
zave has joined #ruby
thebetra1 has quit [Quit: WeeChat 2.2]
thebetra1 has joined #ruby
thebetra1 has quit [Client Quit]
<zave> hi all, does anyone here use .rbenv/cache with a downloaded ruby in a tar file?
<zave> for rbenv install <that tar file> , i mean?
Inline has joined #ruby
<morenoh11> how do I pass a block to .each ? https://repl.it/@morenoh149/OpulentTestyMass
involans has quit [Remote host closed the connection]
<adam12> morenoh11: The `do` on line 13 is a syntax error.
thebetra1 has joined #ruby
<adam12> morenoh11: For line 12 (each), you have 3 "block" passing strategies. do/end, {}, or &some_proc.
AJA4350 has quit [Ping timeout: 244 seconds]
<morenoh11> ok I have https://repl.it/@morenoh149/OpulentTestyMass now, I can't seem to update the hash, should I construct a new one as I iterate?
<adam12> morenoh11: It's very out of place to see use of `for` in Ruby. Most people use the iterators provided by Enumerable. So answers.each rather than the use of for.
<havenwood> plujon: For your example, if it's only a single level deep, you can: h.sort.to_h { |key, value| [key, value.sort.public_send("to_#{value.class.name.chr.downcase}")] }
<havenwood> plujon: (replace that #to_h with #map and a #to_h on the end with an older Ruby)
<adam12> morenoh11: What should the result of that be?
<havenwood> &>> { 'b' => ['c', 'a'], 'a' => { 'c' => 1, 'b' => 2 }, }.sort.to_h { |key, value| [key, value.sort.public_send("to_#{value.class.name.chr.downcase}")] }
<adam12> morenoh11: You have a return value of `Integer`. Presuming you want something to be counted?
<rubydoc> # => {"a"=>{"b"=>2, "c"=>1}, "b"=>["a", "c"]} (https://carc.in/#/r/7a34)
<plujon> havenwood: Wowza. Thanks I wouldn't have thought of the public_send approach..
<morenoh11> I'm not too concerned with the Integer bit, just trying to get ruby loops and hash
<havenwood> plujon: There are many ways to do it! I might end up refactoring that to something a bit more straightforward.
<adam12> morenoh11: I'm presuming you're talking about updating the hash around line 1$?
<adam12> morenoh11: line 14 rather?
chalkmonster has quit [Quit: WeeChat 2.5]
<adam12> morenoh11: If that's the case, what you're getting as 'value' is actually a value, not a reference. When you mutate it (value -= 2), you get another value. It's not touching the reference at all which remains the same. You likely want to re-assign it. hash[key] -= 2 or hash[key] = value - 2.
hiroaki has joined #ruby
morenoh11 has quit [Ping timeout: 272 seconds]
Dr_MDMA_MD has quit []
AJA4350 has joined #ruby
Dr_MDMA_MD has joined #ruby
nst^ has joined #ruby
<havenwood> Since they left, one-liner time!
<havenwood> answers.group_by(&:itself).transform_values(&:size)
<adam12> havenwood: show off :P
<adam12> havenwood: Haven't seen transform_values before...
<havenwood> adam12: #transform_keys and #transform_values are handy new ones. They added one then the other.
<adam12> havenwood: Only seen transform_keys. Very nice. I wonder which Ruby version they came in.
<havenwood> adam12: then the new block form of #to_h for transforming both at once
<havenwood> adam12: 2.5 for keys and 2.6 for values iir
<havenwood> err, 2.4 keys, 2.5 values, 2.6 to_h?
<havenwood> adam12: i don't remember. >.> i used to know.
<adam12> havenwood: I'll not be lazy and look it up :P
<havenwood> my final guess is 2.4 keys, 2.5 values, 2.6 to_h
<havenwood> adam12: In 2.7 the oneliner becomes a very short one. :)
<havenwood> answers.tally
<baweaver> Tally ho
<havenwood> #=> => {1=>2, 0=>3}
<havenwood> I'd probably write it: answers.tally.transform_values(&reduce_population)
kaiser0 has quit [Ping timeout: 268 seconds]
<adam12> havenwood: why a method that returns a proc vs just assigning a proc to a local? preference?
<havenwood> adam12 Multitasking example fail. I'd actually use a constant, to not be churning out procs.
<adam12> havenwood: Save your GC with this one weird trick!
kaiser0 has joined #ruby
jenrzzz has joined #ruby
<adam12> havenwood: Freezing a proc? You monster. :P
<havenwood> muahahahaa
<adam12> &>> Proc.new.freeze
<rubydoc> stderr: -e:2:in `new': tried to create Proc object without a block (ArgumentError) (https://carc.in/#/r/7a3b)
<havenwood> &>> Proc.new { }.freeze
<rubydoc> # => #<Proc:0x0000564b39f1e1b0@-e:2> (https://carc.in/#/r/7a3c)
<adam12> Oh yah. Thanks Ruby 2.new.
nowhere_man has quit [Ping timeout: 245 seconds]
<adam12> Interesting.
LtHummus has quit [Quit: ZNC 1.7.4 - https://znc.in]
<havenwood> adam12: `lamba(&prok)` or `prok.curry` gets you an unfrozen version, fwiw.
<havenwood> lambda*
<havenwood> #to_proc stays frozen
<adam12> havenwood: I wonder the benefit to freezing the proc.
<havenwood> keeps longer
<havenwood> j/k
falconfox has quit [Ping timeout: 248 seconds]
<havenwood> adam12: Nobody will go adding singleton methods to it if you freeze it. Trying to think of other wins...
<havenwood> ¯\_(ツ)_/¯
<adam12> havenwood: lulz. I like my proc's to be freeze dried and then rehydrated.
* adam12 goes to submit PR to ruby-lang/ruby for Object#rehydrate
LtHummus has joined #ruby
<leftylink> surely they would have added transform_values before transform_keys
<leftylink> transform_values is more aplpicable and requires less care than transform_keys (for the latter, one has to think about what happens if you map two former keys to the same new key)
galaxie has quit [Ping timeout: 260 seconds]
dellavg has quit [Ping timeout: 268 seconds]
xco has quit [Quit: xco]
deepredsky has joined #ruby
absolutejam has joined #ruby
galaxie has joined #ruby
griffindy has quit [Remote host closed the connection]
deepreds1 has quit [Ping timeout: 272 seconds]
zapata has joined #ruby
morenoh11 has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
<morenoh11> adam12: yes, is there a way to update a has as you iterate or should I construct a new one
<morenoh11> hash*
mdl8615 has quit [Ping timeout: 245 seconds]
ellcs has joined #ruby
jenrzzz has joined #ruby
absolutejam has quit [Ping timeout: 258 seconds]
Jonopoly has joined #ruby
KindOne is now known as uplime
fphilipe has joined #ruby
morenoh11 has quit [Ping timeout: 272 seconds]
plujon has quit [Quit: ERC (IRC client for Emacs 25.2.2)]
redlegion has quit [Quit: The Lounge - https://thelounge.chat]
redlegion has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
nowhere_man has joined #ruby
absolutejam has joined #ruby
heyimwill has joined #ruby
_sfiguser has joined #ruby
xco has joined #ruby
ur5us has joined #ruby
<_sfiguser> guys i just started ruby and i really like the language... i was wondering if the ruby language is alive in 2019 and if new projects are implemented in ruby...
krasnus has joined #ruby
<_sfiguser> i mean i want to spend some time learning some modern language i can use for network programming and for writing scripts for network security assessment and system admin
s2013 has joined #ruby
<_sfiguser> leftylink, ok if i sort by recently updated i get this Updated on Sep 27, 2018
SeepingN has joined #ruby
<leftylink> counterexample, https://github.com/rails/rails is certainly written in ruby and was certainly updated more recently than september 27
kaiser0 has quit [Quit: Leaving]
<havenwood> _sfiguser: At Square we create a new Ruby app and gem about once a month these days, fwiw.
yalue has quit [Quit: Leaving]
<_sfiguser> what about multithreading does it also have the GIL as python?
xco has quit [Quit: xco]
<havenwood> _sfiguser: The reference implementation of Ruby (CRuby) does have a GIL (GVL).
<havenwood> _sfiguser: JRuby, TruffleRuby and some other implementations don't have a GIL.
xco has joined #ruby
fphilipe has quit [Quit: WeeChat 2.4]
<havenwood> _sfiguser: The CRuby path forward on that front appears to be the introduction of Guilds in Ruby 3 for parallel computation, and Async I/O backed by Fibers for parallel IO.
deepredsky has quit [Ping timeout: 258 seconds]
<_sfiguser> what's a module to do async http requests in ruby ?
<leftylink> out of curiosity I also looked at rubinius. then I saw its readme says it doesn't supprot refinements. guess I can't use it then, DOH
<havenwood> _sfiguser: Check out the socketry async libraries, including the async gem: https://github.com/socketry
bambanx has joined #ruby
schne1der has joined #ruby
xco has quit [Quit: xco]
gnufied has quit [Ping timeout: 246 seconds]
jenrzzz_ has joined #ruby
joshuacronemeyer has joined #ruby
xco has joined #ruby
redlegion has quit [Quit: The Lounge - https://thelounge.chat]
morenoh11 has joined #ruby
Swyper has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
redlegion has joined #ruby
<_sfiguser> do ruby have bindings for libcurl ?
houhoulis has joined #ruby
Swyper has quit [Remote host closed the connection]
<havenwood> _sfiguser: There are several gems with libcurl bindings or ffi.
<havenwood> _sfiguser: Typhoeus and Curb are two. I think Patron might be deprecated?
<havenwood> _sfiguser: I'd recommend Typhoeus.
Swyper has joined #ruby
jenrzzz_ has quit [Ping timeout: 272 seconds]
<havenwood> _sfiguser: Here's a spreadsheet that compares many aspects of Ruby HTTP clients: https://docs.google.com/spreadsheets/d/1vPlk6nMIFa3sI5ISl7zZ5r6lDNpVQX6Jxi3ksXCyVbs/edit?usp=sharing
<havenwood> Yeah, I removed Patron. It must be dead.
<havenwood> ¯\_(ツ)_/¯
duderonomy has quit [Ping timeout: 244 seconds]
Swyper has quit [Remote host closed the connection]
morenoh11 has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
mdl8615 has joined #ruby
lxsameer has quit [Quit: out]
jenrzzz has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
Swyper has quit [Remote host closed the connection]
catbusters has joined #ruby
mdl8615 has quit [Ping timeout: 248 seconds]
xco has quit [Quit: xco]
hiroaki has quit [Ping timeout: 252 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has joined #ruby
Technodrome has joined #ruby
yqt has quit [Ping timeout: 246 seconds]
Technodrome has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 258 seconds]
evdubs has quit [Quit: Leaving]
Dr_MDMA_MD has quit [Quit: Connection closed for inactivity]
evdubs has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
m27frogy has quit [Quit: ZNC - https://znc.in]
m27frogy has joined #ruby
tdy has quit [Ping timeout: 258 seconds]
joshuacronemeyer has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
ellcs has quit [Ping timeout: 250 seconds]
absolutejam has quit [Ping timeout: 272 seconds]
Technodrome has joined #ruby
ramfjord has joined #ruby
_sfiguser has quit [Remote host closed the connection]
s2013 has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
Fernando-Basso has joined #ruby
schne1der has quit [Ping timeout: 248 seconds]
DaRock has joined #ruby
<adam12> I saw Patron removed from a project I'm on as well, but without any backstory. Maybe it is?
<adam12> Actually it looks active..
FastJack has quit [Ping timeout: 264 seconds]
<havenwood> hrmmmm
<havenwood> adam12: Maybe it just had a downturn then came back?
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joshuacronemeyer has joined #ruby
bogn has joined #ruby
henninb has joined #ruby
FastJack has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
joshuacronemeyer has quit [Quit: Textual IRC Client: www.textualapp.com]
themsay has quit [Ping timeout: 258 seconds]
Fernando-Basso has quit [Remote host closed the connection]
bogn has quit [Quit: Konversation terminated!]
bogn has joined #ruby
bogn has quit [Client Quit]
ramfjord has quit [Ping timeout: 245 seconds]