00:02
<
_73 >
I am not a Ruby programmer, but I am tasked with fixing up a Ruby program. I need to write a rspec test that ensures a method outputs to STDOUT. How can I capture the STDOUT output that is produced when I invoke the method?
00:03
Rounin has quit [Ping timeout: 272 seconds]
00:07
crax23 has joined #ruby
00:07
<
adam12 >
_73: There's an expectation that checks for output to stdout I think. expect { something }.to.output_to_stdout or something.
00:08
<
_73 >
Oh nice that is convenient
00:09
cartdrige has quit [Ping timeout: 240 seconds]
00:13
grokify has joined #ruby
00:23
grokify has quit [Ping timeout: 250 seconds]
00:27
Y05hito__ has joined #ruby
00:30
cartdrige has joined #ruby
00:30
crax23 has quit [Ping timeout: 272 seconds]
00:31
Y05hito__ has quit [Ping timeout: 255 seconds]
00:38
Laplace has quit [Quit: Connection closed for inactivity]
00:39
galtgendo has left #ruby [#ruby]
00:45
John_Ivan_ has quit [Remote host closed the connection]
00:45
John_Ivan_ has joined #ruby
01:07
crax23 has joined #ruby
01:09
Y05hito__ has joined #ruby
01:10
cartdrige has quit [Ping timeout: 272 seconds]
01:12
crax23 has quit [Ping timeout: 240 seconds]
01:13
grokify has joined #ruby
01:18
grokify has quit [Ping timeout: 272 seconds]
01:25
reset has quit [Quit: reset]
01:28
bougyman_ is now known as bougyman
01:40
cartdrige has joined #ruby
01:41
Y05hito__ has quit [Ping timeout: 250 seconds]
01:42
Guest97 has quit [Quit: Client closed]
01:44
Aminda has quit [Ping timeout: 258 seconds]
01:47
cartdrige has quit [Ping timeout: 240 seconds]
01:48
Aminda has joined #ruby
01:49
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:55
grokify has joined #ruby
02:00
grokify has quit [Ping timeout: 240 seconds]
02:22
aeris has quit [Remote host closed the connection]
02:23
aeris has joined #ruby
02:24
ssh0732 has quit [Ping timeout: 258 seconds]
02:42
aeris has quit [Remote host closed the connection]
02:43
aeris has joined #ruby
02:43
John_Ivan_ has quit [Ping timeout: 246 seconds]
02:48
grokify has joined #ruby
02:49
rndChars has quit [Ping timeout: 250 seconds]
02:53
grokify has quit [Ping timeout: 272 seconds]
03:01
grokify has joined #ruby
03:10
grokify has quit [Remote host closed the connection]
03:53
D_A_N has quit [Ping timeout: 240 seconds]
03:56
D_A_N has joined #ruby
04:05
grokify has joined #ruby
04:10
grokify has quit [Remote host closed the connection]
04:15
trillp has joined #ruby
04:34
ur5us has quit [Ping timeout: 272 seconds]
05:11
rvalue has quit [Read error: Connection reset by peer]
05:11
rvalue has joined #ruby
05:22
polishdub has quit [Ping timeout: 260 seconds]
05:39
jpn has joined #ruby
05:39
cartdrige has joined #ruby
05:40
D_A_N has quit [Quit: leaving]
05:41
ur5us has joined #ruby
05:41
crax23 has joined #ruby
05:44
cartdrige has quit [Ping timeout: 272 seconds]
05:50
kerunaru has joined #ruby
06:17
kerunaru has quit [Remote host closed the connection]
06:28
teclator has joined #ruby
06:35
wand has quit [Ping timeout: 258 seconds]
06:38
kerunaru has joined #ruby
06:42
ur5us has quit [Ping timeout: 272 seconds]
06:42
kerunaru has quit [Read error: Connection reset by peer]
06:49
jpn has quit [Ping timeout: 272 seconds]
06:53
jpn has joined #ruby
06:55
Y05hito__ has joined #ruby
06:58
crax23 has quit [Ping timeout: 272 seconds]
07:00
crax23 has joined #ruby
07:00
plujon has quit [Ping timeout: 272 seconds]
07:02
Y05hito__ has quit [Ping timeout: 252 seconds]
07:04
crax23 has quit [Remote host closed the connection]
07:11
jpn has quit [Ping timeout: 272 seconds]
07:15
Rounin has joined #ruby
07:15
Rounin has quit [Changing host]
07:15
Rounin has joined #ruby
07:15
kerunaru has joined #ruby
07:20
trillp has quit [Quit: WeeChat 3.7]
07:24
wand has joined #ruby
07:35
jpn has joined #ruby
07:54
ur5us has joined #ruby
08:00
TomyWork has joined #ruby
08:03
jvalleroy has joined #ruby
08:06
kerunaru has quit [Ping timeout: 250 seconds]
08:07
kerunaru has joined #ruby
08:15
kerunaru has quit [Ping timeout: 250 seconds]
08:17
kerunaru has joined #ruby
08:33
trillp has joined #ruby
08:49
ur5us has quit [Ping timeout: 260 seconds]
08:51
otisolsen70 has joined #ruby
09:05
tankf33der has joined #ruby
09:07
perrierjouet has quit [Quit: WeeChat 3.7.1]
09:09
jpn has quit [Ping timeout: 276 seconds]
09:13
perrierjouet has joined #ruby
09:15
jpn has joined #ruby
09:34
kerunaru has quit [Ping timeout: 272 seconds]
09:35
kerunaru has joined #ruby
10:04
kerunaru has quit [Ping timeout: 272 seconds]
10:04
kerunaru has joined #ruby
10:07
dionysus69 has joined #ruby
11:14
reset has joined #ruby
11:29
aeris has quit [Ping timeout: 258 seconds]
11:30
hightower2 has joined #ruby
11:30
aeris has joined #ruby
11:36
some14u has joined #ruby
11:36
some14u has quit [Client Quit]
11:48
_aeris_ has joined #ruby
11:49
aeris has quit [Ping timeout: 258 seconds]
11:49
_aeris_ is now known as aeris
11:54
Sankalp has quit [Ping timeout: 240 seconds]
11:55
Sankalp has joined #ruby
12:24
markong has joined #ruby
12:33
rndChars has joined #ruby
12:36
cartdrige has joined #ruby
12:38
John_Ivan_ has joined #ruby
12:44
grokify has joined #ruby
12:46
D_A_N has joined #ruby
12:49
grokify has quit [Ping timeout: 250 seconds]
12:53
aeris has quit [Remote host closed the connection]
12:53
aeris has joined #ruby
12:56
rvalue has quit [Read error: Connection reset by peer]
12:56
rvalue has joined #ruby
12:58
some14u has joined #ruby
13:02
some14u has quit [Client Quit]
13:04
some14u has joined #ruby
13:23
dionysus69 has quit [Ping timeout: 252 seconds]
13:26
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:27
crax23 has joined #ruby
13:29
eddof13 has joined #ruby
13:29
cartdrige has quit [Ping timeout: 250 seconds]
13:31
some14u has joined #ruby
13:33
cocalero_ has joined #ruby
13:33
cocalero_ has quit [Client Quit]
13:45
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:56
grokify has joined #ruby
13:57
eddof13 has joined #ruby
14:00
grokify has quit [Ping timeout: 250 seconds]
14:01
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:17
Goodbye_Vincent has quit [Quit: Ping timeout (120 seconds)]
14:31
some14u has joined #ruby
14:37
Goodbye_Vincent has joined #ruby
14:38
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:39
grokify has joined #ruby
14:43
grokify has quit [Ping timeout: 250 seconds]
14:48
Y05hito__ has joined #ruby
14:51
crax23 has quit [Ping timeout: 250 seconds]
14:53
kerunaru has quit [Remote host closed the connection]
14:57
polishdub has joined #ruby
15:00
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:01
Y05hito__ has quit [Ping timeout: 250 seconds]
15:06
grokify has joined #ruby
15:12
grokify has quit [Remote host closed the connection]
15:13
grokify has joined #ruby
15:18
grokify has quit [Ping timeout: 272 seconds]
15:19
eddof13 has joined #ruby
15:31
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:35
eddof13 has joined #ruby
16:13
walez has joined #ruby
16:14
trillp has left #ruby [#ruby]
16:42
joto has quit [Ping timeout: 272 seconds]
16:48
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:50
grokify has joined #ruby
16:50
grokify has quit [Remote host closed the connection]
16:57
victori has joined #ruby
16:57
grokify has joined #ruby
16:59
grokify has quit [Remote host closed the connection]
17:05
<
adam12 >
4.74% cache hit rate for gemdocs.org. I might punt on the CDN.
17:08
dionysus69 has joined #ruby
17:15
NightMonkey has joined #ruby
17:17
grokify has joined #ruby
17:26
grokify has quit [Remote host closed the connection]
17:27
grokify has joined #ruby
17:27
rndChars has quit [Remote host closed the connection]
17:28
Pixi` has joined #ruby
17:29
D_A_N has quit [Ping timeout: 260 seconds]
17:29
D_A_N has joined #ruby
17:32
Pixi has quit [Ping timeout: 260 seconds]
17:41
cartdrige has joined #ruby
17:43
crax23 has joined #ruby
17:44
Y05hito__ has joined #ruby
17:46
cartdrige has quit [Ping timeout: 240 seconds]
17:48
crax23 has quit [Ping timeout: 260 seconds]
17:50
grokify has quit [Remote host closed the connection]
17:50
TomyWork has quit [Remote host closed the connection]
17:51
georgemp has left #ruby [WeeChat 3.7]
17:52
grokify has joined #ruby
17:54
crax23 has joined #ruby
17:55
grokify has quit [Remote host closed the connection]
17:56
cartdrige has joined #ruby
17:56
Y05hito__ has quit [Ping timeout: 260 seconds]
17:58
grokify has joined #ruby
17:59
crax23 has quit [Ping timeout: 260 seconds]
17:59
crax23 has joined #ruby
18:01
cartdrige has quit [Ping timeout: 246 seconds]
18:03
grokify has quit [Remote host closed the connection]
18:03
markong has quit [Ping timeout: 260 seconds]
18:04
_ht has joined #ruby
18:08
grokify has joined #ruby
18:14
grokify has quit [Remote host closed the connection]
18:15
cartdrige has joined #ruby
18:17
crax23 has quit [Ping timeout: 276 seconds]
18:17
grokify has joined #ruby
18:19
ssh0732 has joined #ruby
18:20
walez has quit [Ping timeout: 240 seconds]
18:21
Sankalp has quit [Ping timeout: 252 seconds]
18:23
some14u has joined #ruby
18:24
grokify has quit [Remote host closed the connection]
18:25
Sankalp has joined #ruby
18:29
grokify has joined #ruby
18:32
eron has joined #ruby
18:36
grokify has quit [Remote host closed the connection]
18:40
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:40
some14u has joined #ruby
18:42
walez has joined #ruby
18:43
cartdrige has quit [Quit: Leaving]
18:50
walez has quit [Quit: Leaving]
18:59
cartdrige has joined #ruby
19:04
crax23 has joined #ruby
19:04
grokify has joined #ruby
19:04
hightower2 has quit [Remote host closed the connection]
19:05
grokify has quit [Remote host closed the connection]
19:06
cartdrige has quit [Ping timeout: 250 seconds]
19:09
cartdrige has joined #ruby
19:11
crax23 has quit [Ping timeout: 250 seconds]
19:27
crax23 has joined #ruby
19:30
cartdrige has quit [Ping timeout: 272 seconds]
19:32
wand has quit [Ping timeout: 258 seconds]
19:44
Y05hito__ has joined #ruby
19:46
crax23 has quit [Ping timeout: 246 seconds]
19:56
grokify has joined #ruby
19:57
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:57
gnafu has joined #ruby
19:59
some14u has joined #ruby
20:00
some14u has quit [Client Quit]
20:00
some14u has joined #ruby
20:00
Y05hito__ has quit [Ping timeout: 250 seconds]
20:01
grokify has quit [Ping timeout: 272 seconds]
20:03
_ht has quit [Quit: _ht]
20:03
<
gnafu >
I'm hoping to get some insight into running a script with `bundle` in a systemd user service. The command runs fine in the project folder, but starting the systemd service fails with an error.
20:06
<
adam12 >
gnafu: `ruby -v` from the working location
20:07
<
adam12 >
gnafu: also, `which ruby`
20:11
<
gnafu >
adam12: ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
20:11
<
gnafu >
adam12: /usr/bin/ruby
20:12
<
gnafu >
As far as I can tell, PATH is the same for both my login shell and my systemd user environment (`printenv` vs. `systemctl --user show-environment`).
20:13
<
adam12 >
gnafu: Instead of calling bundle directly, what happens if you do `bash -lc "..your execstart here"`
20:14
<
gnafu >
(And the error is the same whether I use "/home/gideon/Projects/mam_backup" or "%h/Projects/mam_backup" for WorkingDirectory.)
20:14
grokify has joined #ruby
20:14
<
gnafu >
adam12: Aah, let me try that :-).
20:14
ur5us has joined #ruby
20:18
grokify has quit [Ping timeout: 250 seconds]
20:19
<
gnafu >
adam12: Hey, I think that worked! At least, it didn't error out. However, it seems to have overwritten the .xml file with a blank file...
20:20
<
gnafu >
Wait, no: silly me, I was looking at the wrong file ^^;.
20:20
<
adam12 >
Did it work then?
20:21
<
gnafu >
adam12: Yes, it did :-D. Whoop!
20:21
<
adam12 >
gnafu: Nice. Does it work without the `-l` (so just `-c`)?
20:22
<
gnafu >
adam12: Then the next question is: Is that the most appropriate way to do that, or is there a more "systemd way" to tell it to run in a login shell?
20:22
<
gnafu >
adam12: Let me try that...
20:22
<
adam12 >
gnafu: I'm not sure tbh. systemd is a mystery to me :) running without `-l` would be ideal.. but atleast we're not using `-i` :P
20:24
<
gnafu >
It does run with just `-c`.
20:24
wand has joined #ruby
20:25
<
gnafu >
adam12: Thank you so much. I'll do some more digging to see if I should do something in the unit file instead of calling bash like that, but at least this works for now ^^.
20:26
<
adam12 >
gnafu: No problem :)
20:27
eddof13 has joined #ruby
20:29
<
gnafu >
I've never used Ruby before ^^;. I'm working on moving all my phone usage over to JMP (jmp.chat) and that uses XMPP. The JMP developers seem to like Ruby :-).
20:31
<
adam12 >
gnafu: Cool. Ruby is awesome.
20:40
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:41
some14u has joined #ruby
20:41
eron has quit [Quit: Client closed]
20:42
<
gnafu >
I'm not seeing anything more appropriate that `bash -c` yet, and I actually see some systemd documentation recommending using `sh -c` for running shell commands, so I'm going to leave it.
20:42
<
gnafu >
adam12: Thanks again!
20:42
<
adam12 >
gnafu: yw!
21:16
cartdrige has joined #ruby
21:28
crax23 has joined #ruby
21:30
cartdrige has quit [Ping timeout: 260 seconds]
21:33
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:33
Y05hito__ has joined #ruby
21:36
crax23 has quit [Ping timeout: 260 seconds]
21:36
cartdrige has joined #ruby
21:38
Y05hito__ has quit [Ping timeout: 272 seconds]
21:42
otisolsen70 has quit [Quit: Leaving]
21:52
crax23 has joined #ruby
21:54
grokify has joined #ruby
21:55
cartdrige has quit [Ping timeout: 250 seconds]
21:56
Y05hito__ has joined #ruby
21:59
crax23 has quit [Ping timeout: 250 seconds]
21:59
grokify has quit [Remote host closed the connection]
22:07
Y05hito__ has quit [Ping timeout: 250 seconds]
22:09
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:13
quintasan has quit []
22:14
quintasan has joined #ruby
22:24
cahoots has joined #ruby
22:24
<
cahoots >
hi, if i start a thread with "Thread.new ..." but don't store it anywhere, is it at risk of deallocation before it finishes?
22:27
gonix has joined #ruby
22:46
quintasan has quit []
22:46
quintasan has joined #ruby
22:48
grokify has joined #ruby
22:53
grokify has quit [Ping timeout: 252 seconds]
22:53
markong has joined #ruby
23:03
eddof13 has joined #ruby
23:17
eddof13 has quit [Read error: Connection reset by peer]
23:18
grokify has joined #ruby
23:20
dionysus69 has quit [Read error: Connection reset by peer]
23:20
quintasan has quit []
23:20
dionysus69 has joined #ruby
23:21
quintasan has joined #ruby
23:31
grokify has quit [Remote host closed the connection]
23:34
John_Ivan__ has joined #ruby
23:34
John_Ivan_ has quit [Read error: Connection reset by peer]
23:40
Rounin has quit [Ping timeout: 240 seconds]
23:43
gonix has quit [Ping timeout: 260 seconds]
23:46
cartdrige has joined #ruby
23:57
cahoots has quit [Ping timeout: 240 seconds]