havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.2.0, 3.1.3, 3.0.5, 2.7.7: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://t.ly/9ua4 | Logs: https://libera.irclog.whitequark.org/ruby/
dionysus69 has quit [Ping timeout: 272 seconds]
sickdyd has left #ruby [#ruby]
miah1 has joined #ruby
miah has quit [Quit: WeeChat 3.1]
miah1 is now known as miah
miah has quit [Client Quit]
miah has joined #ruby
markong has quit [Ping timeout: 272 seconds]
hololeap is now known as shadowdaemon
shadowdaemon is now known as Guest2078
Guest2078 is now known as hololeap
entropie has quit [Ping timeout: 255 seconds]
entropie has joined #ruby
razetime has joined #ruby
<introom> hi. what's this syntax: pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
<introom> i wonder what the trailing {5} is. semantically it should be the default value, but the {} syntax is unfamiliar to me.
<leftylink> block.
<weaksauc_> yeah it's a block (anonymous function) passed into that fetch method
<weaksauc_> in ruby the last run line is the return value
<weaksauc_> and you don't need |variable, list|so it can be that concise.
plantman has joined #ruby
<introom> the fetch function already takes an argument "RAILS_MAX_THREADS", so how come the block {5} ?
<leftylink> default value.
<leftylink> pandabot: ri ENV#fetch
<leftylink> of cours, reading that page tells you they could have instead written ENV.fetch("RAILS_MAX_THREADS", 5) and be none the worse off
<leftylink> but it seems that they chose to use a block, well very well then
<introom> from the doc, the anonymous block should take one argument `name`. but my example does not.
<introom> i though it shall give some error of function signature mismatch
<leftylink> "RAILS_MAX_THREADS" is the name.
<introom> I mean the name as in {|name| xxx}. Assume the block is an anonoymous function that takes one argument `name`.
<leftylink> I see. blocks do not enforce their arity (unlike lambdas, which do)
sam113101 has quit [Remote host closed the connection]
sam113101 has joined #ruby
caedmon has joined #ruby
<introom> hi. I saw rake task like this: https://bpa.st/3NFPA
<introom> I wonder what is the ":environment" for? Is it a builtin rake task?
miah has quit [Quit: WeeChat 3.6]
miah has joined #ruby
cartdrige has joined #ruby
Sheilong has quit []
<introom> i got it. {foo: 42} is the same as {:foo => 42}. and since it's the last function arguments, so {} can be avoided.
ur5us has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby
postmodern has quit [Client Quit]
moldorcoder7 has quit [Ping timeout: 272 seconds]
caedmon has quit [Ping timeout: 268 seconds]
otisolsen70 has joined #ruby
otisolsen70 has quit [Remote host closed the connection]
otisolsen70 has joined #ruby
Linux_Kerio has joined #ruby
TomyWork has joined #ruby
Pixi has quit [Ping timeout: 260 seconds]
Pixi has joined #ruby
shiru has joined #ruby
teclator has joined #ruby
tomtmym has joined #ruby
tomtmym has joined #ruby
tomtmym has quit [Changing host]
Michaela has joined #ruby
Mikaela has quit [Ping timeout: 255 seconds]
shiru has quit [Quit: Lost terminal]
Sankalp has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
Sankalp has joined #ruby
Linux_Kerio has quit [Ping timeout: 255 seconds]
plantman has quit [Ping timeout: 260 seconds]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
rvalue has joined #ruby
cartdrige has quit [Ping timeout: 246 seconds]
_ht has joined #ruby
markong has joined #ruby
eeee has joined #ruby
eeee has quit [Ping timeout: 260 seconds]
moldorcoder7 has joined #ruby
cartdrige has joined #ruby
finsternis has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
<leah2> NoMethodError: undefined method `exists?' for File:Class
<leah2> /builddir/subtle-0.11.6579/Rakefile:291:in `block in <top (required)>'
<leah2> first blood
<leah2> /usr/include/ruby-3.2.0/ruby/onigmo.h:802:3: error: unknown type name 'uint64_t'
<leah2> really
___nick___ has joined #ruby
cxl has quit [Quit: bye]
cxl has joined #ruby
cxl has quit [Quit: bye]
cxl has joined #ruby
NewOnRuby has joined #ruby
<NewOnRuby> yop
NewOnRuby has quit [Client Quit]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
razetime has quit [Remote host closed the connection]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
caedmon has joined #ruby
graywolf has joined #ruby
caedmon has quit [Ping timeout: 246 seconds]
stirl has joined #ruby
crax23 has joined #ruby
Y05hito__ has joined #ruby
cartdrige has quit [Ping timeout: 268 seconds]
hightower2 has quit [Ping timeout: 260 seconds]
crax23 has quit [Ping timeout: 260 seconds]
FullMetalStacker has joined #ruby
hightower2 has joined #ruby
dviola has quit [Quit: WeeChat 3.7.1]
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 252 seconds]
crax23 has quit [Ping timeout: 246 seconds]
Michaela has quit [Remote host closed the connection]
Michaela has joined #ruby
axisys has quit [Ping timeout: 260 seconds]
axisys has joined #ruby
FullMetalStacker has joined #ruby
markong has quit [Ping timeout: 260 seconds]
cartdrige has joined #ruby
mahlon has quit [Ping timeout: 265 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
<ox1eef_> Is that Subtle, the tiled window manager that embeds Ruby leah2 ?
axisys has quit [Remote host closed the connection]
mahlon has joined #ruby
cartdrige has quit [Quit: I am more peaced off than a dragon trying to blow out candles]
stirl has quit [Ping timeout: 246 seconds]
Linux_Kerio has quit [Ping timeout: 260 seconds]
graywolf has quit [Ping timeout: 260 seconds]
FullMetalStacker has quit [Remote host closed the connection]
FullMetalStacker has joined #ruby
FullMetalStacker has quit [Client Quit]
<leah2> yes
<leah2> i fixed it now
<ox1eef_> Nice. I used that years ago. I was under the impression it is no longer maintained though.
<ox1eef_> I like the 'sublet' feature but because they can block the UI thread they usually require doing everything async, or taking as little time as possible.
<ox1eef_> I also wonder if mruby would be easier to embed than cruby
plantman has joined #ruby
ur5us has joined #ruby
plantman has quit [Ping timeout: 255 seconds]
finsternis has joined #ruby
Starfoxxes has quit [Ping timeout: 264 seconds]
Starfoxxes has joined #ruby
___nick___ has quit [Ping timeout: 252 seconds]
_ht has quit [Quit: _ht]
teclator has joined #ruby
stirl has joined #ruby
plantman has joined #ruby
plantman has quit [Ping timeout: 256 seconds]
hightower2 has quit [Ping timeout: 260 seconds]
hightower2 has joined #ruby
plantman has joined #ruby
plantman has quit [Ping timeout: 255 seconds]
cartdrige has joined #ruby
tomtmym has quit [Quit: Gone.]
<sam113101> why is it that I can "gem install nokogiri" just fine as a normal user, but when installing it through bundler I need sudo?
stirl has quit [Ping timeout: 246 seconds]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
markong has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
otisolsen70 has quit [Read error: Connection reset by peer]
<Rounin> sam113101: It probably installs it in a directory available to more than one user
reset has quit [Quit: reset]
<sam113101> Rounin: I would like bundle to install the gems at the same place gem installs them by default (my home folder?)
<Rounin> sam113101: I'm not familiar with that tool I'm afraid... Maybe it has a help parameter or man page that can say how you might do that