00:22
dionysus69 has quit [Ping timeout: 272 seconds]
00:49
sickdyd has left #ruby [#ruby]
01:24
miah1 has joined #ruby
01:24
miah has quit [Quit: WeeChat 3.1]
01:25
miah1 is now known as miah
01:26
miah has quit [Client Quit]
01:34
miah has joined #ruby
01:44
markong has quit [Ping timeout: 272 seconds]
02:08
hololeap is now known as shadowdaemon
02:09
shadowdaemon is now known as Guest2078
02:09
Guest2078 is now known as hololeap
02:13
entropie has quit [Ping timeout: 255 seconds]
02:14
entropie has joined #ruby
02:21
razetime has joined #ruby
02:22
<
introom >
hi. what's this syntax: pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
02:23
<
introom >
i wonder what the trailing {5} is. semantically it should be the default value, but the {} syntax is unfamiliar to me.
02:27
<
weaksauc_ >
yeah it's a block (anonymous function) passed into that fetch method
02:27
<
weaksauc_ >
in ruby the last run line is the return value
02:27
<
weaksauc_ >
and you don't need |variable, list|so it can be that concise.
02:33
plantman has joined #ruby
02:40
<
introom >
the fetch function already takes an argument "RAILS_MAX_THREADS", so how come the block {5} ?
02:40
<
leftylink >
default value.
02:41
<
leftylink >
pandabot: ri ENV#fetch
02:41
<
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
02:42
<
leftylink >
but it seems that they chose to use a block, well very well then
02:44
<
introom >
from the doc, the anonymous block should take one argument `name`. but my example does not.
02:44
<
introom >
i though it shall give some error of function signature mismatch
02:46
<
leftylink >
"RAILS_MAX_THREADS" is the name.
02:47
<
introom >
I mean the name as in {|name| xxx}. Assume the block is an anonoymous function that takes one argument `name`.
02:48
<
leftylink >
I see. blocks do not enforce their arity (unlike lambdas, which do)
03:19
sam113101 has quit [Remote host closed the connection]
03:19
sam113101 has joined #ruby
03:41
caedmon has joined #ruby
03:45
<
introom >
I wonder what is the ":environment" for? Is it a builtin rake task?
03:58
miah has quit [Quit: WeeChat 3.6]
03:58
miah has joined #ruby
04:05
cartdrige has joined #ruby
04:08
Sheilong has quit []
04:12
<
introom >
i got it. {foo: 42} is the same as {:foo => 42}. and since it's the last function arguments, so {} can be avoided.
04:22
ur5us has quit [Ping timeout: 246 seconds]
04:32
postmodern has joined #ruby
04:33
postmodern has quit [Client Quit]
04:36
moldorcoder7 has quit [Ping timeout: 272 seconds]
05:13
caedmon has quit [Ping timeout: 268 seconds]
05:18
otisolsen70 has joined #ruby
05:19
otisolsen70 has quit [Remote host closed the connection]
05:20
otisolsen70 has joined #ruby
06:53
Linux_Kerio has joined #ruby
07:06
TomyWork has joined #ruby
07:06
Pixi has quit [Ping timeout: 260 seconds]
07:14
Pixi has joined #ruby
07:34
shiru has joined #ruby
07:51
teclator has joined #ruby
08:06
tomtmym has joined #ruby
08:06
tomtmym has joined #ruby
08:06
tomtmym has quit [Changing host]
08:16
Michaela has joined #ruby
08:17
Mikaela has quit [Ping timeout: 255 seconds]
08:19
shiru has quit [Quit: Lost terminal]
08:32
Sankalp has quit [Read error: Connection reset by peer]
08:33
dionysus69 has joined #ruby
08:35
Sankalp has joined #ruby
08:45
Linux_Kerio has quit [Ping timeout: 255 seconds]
08:50
plantman has quit [Ping timeout: 260 seconds]
09:02
jvalleroy has joined #ruby
09:08
rvalue has joined #ruby
09:11
cartdrige has quit [Ping timeout: 246 seconds]
09:42
_ht has joined #ruby
09:57
markong has joined #ruby
10:18
eeee has joined #ruby
10:25
eeee has quit [Ping timeout: 260 seconds]
10:30
moldorcoder7 has joined #ruby
10:59
cartdrige has joined #ruby
12:23
finsternis has quit [Read error: Connection reset by peer]
13:21
Linux_Kerio has joined #ruby
13:33
<
leah2 >
NoMethodError: undefined method `exists?' for File:Class
13:33
<
leah2 >
/builddir/subtle-0.11.6579/Rakefile:291:in `block in <top (required)>'
13:33
<
leah2 >
first blood
13:35
<
leah2 >
/usr/include/ruby-3.2.0/ruby/onigmo.h:802:3: error: unknown type name 'uint64_t'
13:50
___nick___ has joined #ruby
14:26
cxl has quit [Quit: bye]
14:58
cxl has joined #ruby
15:11
cxl has quit [Quit: bye]
15:16
cxl has joined #ruby
15:29
NewOnRuby has joined #ruby
15:33
NewOnRuby has quit [Client Quit]
15:36
___nick___ has joined #ruby
15:36
___nick___ has quit [Client Quit]
15:38
___nick___ has joined #ruby
15:42
razetime has quit [Remote host closed the connection]
16:10
caedmon has joined #ruby
16:27
graywolf has joined #ruby
16:32
caedmon has quit [Ping timeout: 246 seconds]
16:52
stirl has joined #ruby
16:53
crax23 has joined #ruby
16:55
Y05hito__ has joined #ruby
16:56
cartdrige has quit [Ping timeout: 268 seconds]
16:57
hightower2 has quit [Ping timeout: 260 seconds]
16:58
crax23 has quit [Ping timeout: 260 seconds]
17:03
FullMetalStacker has joined #ruby
17:23
hightower2 has joined #ruby
17:31
dviola has quit [Quit: WeeChat 3.7.1]
17:38
crax23 has joined #ruby
17:41
Y05hito__ has quit [Ping timeout: 252 seconds]
17:49
crax23 has quit [Ping timeout: 246 seconds]
18:03
Michaela has quit [Remote host closed the connection]
18:03
Michaela has joined #ruby
18:04
axisys has quit [Ping timeout: 260 seconds]
18:05
axisys has joined #ruby
18:11
FullMetalStacker has joined #ruby
18:15
markong has quit [Ping timeout: 260 seconds]
18:19
cartdrige has joined #ruby
18:22
mahlon has quit [Ping timeout: 265 seconds]
18:33
dionysus69 has quit [Ping timeout: 260 seconds]
18:36
<
ox1eef_ >
Is that Subtle, the tiled window manager that embeds Ruby leah2 ?
18:43
axisys has quit [Remote host closed the connection]
18:56
mahlon has joined #ruby
19:00
cartdrige has quit [Quit: I am more peaced off than a dragon trying to blow out candles]
19:14
stirl has quit [Ping timeout: 246 seconds]
19:18
Linux_Kerio has quit [Ping timeout: 260 seconds]
19:40
graywolf has quit [Ping timeout: 260 seconds]
19:41
FullMetalStacker has quit [Remote host closed the connection]
19:46
FullMetalStacker has joined #ruby
19:46
FullMetalStacker has quit [Client Quit]
19:53
<
leah2 >
i fixed it now
20:09
<
ox1eef_ >
Nice. I used that years ago. I was under the impression it is no longer maintained though.
20:10
<
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.
20:12
<
ox1eef_ >
I also wonder if mruby would be easier to embed than cruby
20:13
plantman has joined #ruby
20:31
ur5us has joined #ruby
20:52
plantman has quit [Ping timeout: 255 seconds]
20:52
finsternis has joined #ruby
20:53
Starfoxxes has quit [Ping timeout: 264 seconds]
20:58
Starfoxxes has joined #ruby
21:04
___nick___ has quit [Ping timeout: 252 seconds]
21:09
_ht has quit [Quit: _ht]
21:13
teclator has joined #ruby
21:14
stirl has joined #ruby
21:15
plantman has joined #ruby
21:32
plantman has quit [Ping timeout: 256 seconds]
21:53
hightower2 has quit [Ping timeout: 260 seconds]
22:05
hightower2 has joined #ruby
22:05
plantman has joined #ruby
22:14
plantman has quit [Ping timeout: 255 seconds]
22:29
cartdrige has joined #ruby
22:40
tomtmym has quit [Quit: Gone.]
22:45
<
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?
22:52
stirl has quit [Ping timeout: 246 seconds]
22:55
markong has joined #ruby
23:00
ruby[bot] has quit [Remote host closed the connection]
23:00
ruby[bot] has joined #ruby
23:10
otisolsen70 has quit [Read error: Connection reset by peer]
23:11
<
Rounin >
sam113101: It probably installs it in a directory available to more than one user
23:16
reset has quit [Quit: reset]
23:21
<
sam113101 >
Rounin: I would like bundle to install the gems at the same place gem installs them by default (my home folder?)
23:23
<
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