00:02
giorgian has quit [Ping timeout: 276 seconds]
00:06
ur5us has quit [Ping timeout: 250 seconds]
00:08
roadie has joined #ruby
00:12
roadie has quit [Ping timeout: 260 seconds]
00:16
kiki_lamb has joined #ruby
00:22
kiki_lamb has quit [Ping timeout: 240 seconds]
00:32
roadie has joined #ruby
00:51
nakilon has joined #ruby
00:51
<
nakilon >
how do you store testing assets that are too heavy for git?
00:53
<
nakilon >
what if it's an opensource project on github? what do you think about storing assets on some cloud object storage provider? the links might rot in few years
00:53
kiki_lamb has joined #ruby
00:58
giorgian has joined #ruby
00:58
<
nakilon >
github recommends LFS but I had some hard time with it
00:59
kiki_lamb has quit [Ping timeout: 272 seconds]
01:03
<
weaksauce >
how big are you talking nakilon
01:03
<
weaksauce >
ox1eef I think hastebin is probably fine. toptal acquired them
01:03
giorgian has quit [Ping timeout: 256 seconds]
01:05
<
nakilon >
weaksauce I need snapshots of webpages; I made a snapshot of
www.google.com two years ago and I don't remember how I processed it but it weights 300kb; now I made new snapshot and it's 500kb
01:05
<
nakilon >
it could be dozens of such files
01:06
<
nakilon >
(that's awful though that google page weights 500kb today)
01:07
emcb549 has joined #ruby
01:07
<
weaksauce >
is that really too much for git?
01:07
<
weaksauce >
how many versions are you storing?
01:07
<
nakilon >
it adds permanently to it's size
01:08
<
nakilon >
that's only 2nd version, I just don't devote as much time to the project as I would love to
01:09
gfawcett has joined #ruby
01:09
emcb54 has quit [Ping timeout: 276 seconds]
01:09
emcb549 is now known as emcb54
01:13
<
nakilon >
hm, on the other side specifically that repo does not aim to update those files but rather add them
01:14
<
nakilon >
so you won't download much of anything that is "outdated"
01:26
<
ox1eef >
weaksauce: i presume most of these links are fine, but i wouldn't say they are universally known. in any case, it would be nice to have support for anonymous pastes - which github seems to no longer have.
01:26
kiki_lamb has joined #ruby
01:26
<
ox1eef >
nakilon: welcome back!
01:28
<
nakilon >
ox1eef hello ) it's not BNC yet, I've just got account password remembered somehow on this computer
01:30
<
nakilon >
I'm happy the bug I've reported about shadowing splatted vars is fixed
01:31
Rounin has quit [Ping timeout: 276 seconds]
01:31
kiki_lamb has quit [Ping timeout: 256 seconds]
01:32
WhereIsMySpoon has joined #ruby
01:35
<
ox1eef >
cool, me too, and that's a shame. i hope you can get a permanent bouncer setup.
01:37
WhereIsMySpoon has quit [Ping timeout: 272 seconds]
01:42
jhass has quit [Ping timeout: 240 seconds]
01:48
ur5us has joined #ruby
01:58
roadie has quit [Ping timeout: 248 seconds]
01:59
giorgian has joined #ruby
02:00
kiki_lamb has joined #ruby
02:03
hololeap has joined #ruby
02:03
giorgian has quit [Ping timeout: 246 seconds]
02:04
kiki_lamb has quit [Ping timeout: 240 seconds]
02:15
b3lm0nt has joined #ruby
02:28
Ziyan has joined #ruby
02:29
b3lm0nt has quit [Ping timeout: 276 seconds]
02:30
b3lm0nt has joined #ruby
02:30
b3lm0nt has joined #ruby
02:30
b3lm0nt has quit [Changing host]
02:35
jhass has joined #ruby
02:36
kiki_lamb has joined #ruby
02:38
RickHull has quit [Ping timeout: 250 seconds]
02:39
b3lm0nt has quit [Ping timeout: 276 seconds]
02:41
kiki_lamb has quit [Ping timeout: 272 seconds]
02:51
b3lm0nt has joined #ruby
02:51
b3lm0nt has quit [Changing host]
02:51
b3lm0nt has joined #ruby
02:57
MCx has quit [Quit: Client closed]
02:58
b3lm0nt has quit [Ping timeout: 240 seconds]
02:59
giorgian has joined #ruby
03:00
b3lm0nt has joined #ruby
03:00
b3lm0nt has quit [Changing host]
03:00
b3lm0nt has joined #ruby
03:02
Thanzex has quit [Read error: Connection reset by peer]
03:02
Thanzex3 has joined #ruby
03:04
b3lm0nt has quit [Ping timeout: 240 seconds]
03:05
b3lm0nt has joined #ruby
03:05
b3lm0nt has quit [Changing host]
03:05
b3lm0nt has joined #ruby
03:05
giorgian has quit [Ping timeout: 276 seconds]
03:08
roadie has joined #ruby
03:10
b3lm0nt has quit [Ping timeout: 272 seconds]
03:10
b3lm0nt has joined #ruby
03:10
b3lm0nt has quit [Changing host]
03:10
b3lm0nt has joined #ruby
03:12
kiki_lamb has joined #ruby
03:13
roadie has quit [Ping timeout: 248 seconds]
03:15
b3lm0nt has quit [Ping timeout: 272 seconds]
03:15
b3lm0nt has joined #ruby
03:15
b3lm0nt has quit [Changing host]
03:15
b3lm0nt has joined #ruby
03:17
kiki_lamb has quit [Ping timeout: 276 seconds]
03:20
b3lm0nt has quit [Ping timeout: 256 seconds]
03:21
b3lm0nt has joined #ruby
03:21
b3lm0nt has joined #ruby
03:21
b3lm0nt has quit [Changing host]
03:22
roadie has joined #ruby
03:27
roadie has quit [Ping timeout: 260 seconds]
03:28
b3lm0nt has quit [Ping timeout: 246 seconds]
03:30
b3lm0nt has joined #ruby
03:30
b3lm0nt has joined #ruby
03:30
b3lm0nt has quit [Changing host]
03:39
b3lm0nt has quit [Ping timeout: 272 seconds]
03:39
b3lm0nt has joined #ruby
03:39
b3lm0nt has quit [Changing host]
03:39
b3lm0nt has joined #ruby
03:44
b3lm0nt has quit [Ping timeout: 246 seconds]
03:44
b3lm0nt has joined #ruby
03:44
b3lm0nt has joined #ruby
03:44
b3lm0nt has quit [Changing host]
03:47
kiki_lamb has joined #ruby
03:52
kiki_lamb has quit [Ping timeout: 246 seconds]
03:53
b3lm0nt has quit [Ping timeout: 246 seconds]
03:54
b3lm0nt has joined #ruby
03:54
b3lm0nt has quit [Changing host]
03:54
b3lm0nt has joined #ruby
03:59
<
nakilon >
ox1eef we don't have free servers in Russia
04:00
<
nakilon >
we're not the hardware monopolists
04:00
nakilon has quit [Quit: Client closed]
04:00
giorgian has joined #ruby
04:03
b3lm0nt has quit [Ping timeout: 256 seconds]
04:04
b3lm0nt has joined #ruby
04:04
b3lm0nt has quit [Changing host]
04:04
b3lm0nt has joined #ruby
04:06
giorgian has quit [Ping timeout: 256 seconds]
04:08
b3lm0nt has quit [Ping timeout: 246 seconds]
04:09
b3lm0nt has joined #ruby
04:09
b3lm0nt has joined #ruby
04:09
b3lm0nt has quit [Changing host]
04:09
oxfuxxx has joined #ruby
04:15
Vonter has quit [Quit: WeeChat 3.5]
04:16
b3lm0nt has quit [Ping timeout: 246 seconds]
04:17
b3lm0nt has joined #ruby
04:17
b3lm0nt has quit [Changing host]
04:17
b3lm0nt has joined #ruby
04:18
Vonter has joined #ruby
04:21
b3lm0nt has quit [Ping timeout: 246 seconds]
04:22
b3lm0nt has joined #ruby
04:22
b3lm0nt has quit [Changing host]
04:22
b3lm0nt has joined #ruby
04:23
kiki_lamb has joined #ruby
04:25
tweaks has quit [*.net *.split]
04:25
nemesit has quit [*.net *.split]
04:25
bjonnh has quit [*.net *.split]
04:25
Caius has quit [*.net *.split]
04:25
ikonia has quit [*.net *.split]
04:25
nemesit has joined #ruby
04:25
ikonia has joined #ruby
04:25
Caius has joined #ruby
04:25
tweaks has joined #ruby
04:25
bjonnh has joined #ruby
04:27
b3lm0nt has quit [Ping timeout: 256 seconds]
04:28
kiki_lamb has quit [Ping timeout: 248 seconds]
04:28
Buggys has quit [*.net *.split]
04:28
isene has quit [*.net *.split]
04:28
olspookishmagus has quit [*.net *.split]
04:28
olspookishmagus has joined #ruby
04:29
isene has joined #ruby
04:32
Buggys has joined #ruby
04:32
Ziyan has quit [Ping timeout: 246 seconds]
04:33
emcb540 has joined #ruby
04:35
emcb54 has quit [Ping timeout: 246 seconds]
04:35
emcb540 is now known as emcb54
04:35
Ziyan has joined #ruby
04:39
roadie has joined #ruby
04:39
z4kz has joined #ruby
04:54
oxfuxxx has quit [Ping timeout: 246 seconds]
04:56
z4kz has quit [Quit: Client closed]
04:57
kiki_lamb has joined #ruby
04:58
oxfuxxx has joined #ruby
05:00
roadie has quit [Ping timeout: 260 seconds]
05:00
Ziyan has quit [Ping timeout: 276 seconds]
05:00
roadie` has joined #ruby
05:01
giorgian has joined #ruby
05:01
Ziyan has joined #ruby
05:02
kiki_lamb has quit [Ping timeout: 250 seconds]
05:05
roadie` has quit [Ping timeout: 260 seconds]
05:06
giorgian has quit [Ping timeout: 246 seconds]
05:06
oxfuxxx has quit [Quit: [H]EAT ROX FUCK R0X SHIT BRIX. = The Yankies M0th3Rphackers Coconut Aerospace =]
05:13
ur5us has quit [Ping timeout: 240 seconds]
05:15
Thanzex3 has quit [Read error: Connection reset by peer]
05:15
Thanzex has joined #ruby
05:26
Ziyan has quit [Ping timeout: 240 seconds]
05:27
Ziyan has joined #ruby
05:33
WhereIsMySpoon has joined #ruby
05:38
WhereIsMySpoon has quit [Ping timeout: 248 seconds]
05:42
roadie` has joined #ruby
05:44
roadie` has quit [Client Quit]
05:45
roadie has joined #ruby
05:48
kiki_lamb has joined #ruby
05:50
protektwar has joined #ruby
05:50
protektwar has quit [Changing host]
05:50
protektwar has joined #ruby
05:52
Ziyan has quit [Ping timeout: 276 seconds]
05:54
kiki_lamb has quit [Ping timeout: 260 seconds]
05:54
Ziyan has joined #ruby
06:02
giorgian has joined #ruby
06:06
kiki_lamb has joined #ruby
06:07
giorgian has quit [Ping timeout: 248 seconds]
06:11
kiki_lamb has quit [Ping timeout: 260 seconds]
06:18
Ziyan has quit [Ping timeout: 246 seconds]
06:22
Ziyan has joined #ruby
06:29
John_Ivan has quit [Ping timeout: 276 seconds]
06:34
teclator has joined #ruby
06:34
giorgian has joined #ruby
06:41
giorgian has quit [Ping timeout: 260 seconds]
06:44
Ziyan has quit [Ping timeout: 256 seconds]
06:47
Ziyan has joined #ruby
06:57
kiki_lamb has joined #ruby
07:03
kiki_lamb has quit [Ping timeout: 248 seconds]
07:07
giorgian has joined #ruby
07:17
kiki_lamb has joined #ruby
07:22
kiki_lamb has quit [Ping timeout: 246 seconds]
07:26
b3lm0nt has joined #ruby
07:26
b3lm0nt has quit [Changing host]
07:26
b3lm0nt has joined #ruby
07:27
Rounin has joined #ruby
07:34
gr33n7007h has quit [Quit: WeeChat 3.5]
07:35
WhereIsMySpoon has joined #ruby
07:36
kiki_lamb has joined #ruby
07:36
jpn has joined #ruby
07:39
b3lm0nt has quit [Ping timeout: 260 seconds]
07:40
oxfuxxx has joined #ruby
07:40
WhereIsMySpoon has quit [Ping timeout: 260 seconds]
07:41
kiki_lamb has quit [Ping timeout: 276 seconds]
07:43
jpn has quit [Ping timeout: 276 seconds]
07:45
hanzo has quit [Quit: Connection closed for inactivity]
07:50
oxfuxxx has quit [Ping timeout: 260 seconds]
07:52
oxfuxxx has joined #ruby
07:55
jpn has joined #ruby
07:59
jpn has quit [Ping timeout: 276 seconds]
07:59
oxfuxxx has quit [Ping timeout: 276 seconds]
08:02
oxfuxxx has joined #ruby
08:10
kiki_lamb has joined #ruby
08:11
giorgian has quit [Ping timeout: 260 seconds]
08:16
kiki_lamb has quit [Ping timeout: 276 seconds]
08:16
jpn has joined #ruby
08:18
reset has joined #ruby
08:20
dionysus69 has joined #ruby
08:23
giorgian has joined #ruby
08:26
oxfuxxx has quit [Ping timeout: 250 seconds]
08:29
giorgian has quit [Ping timeout: 256 seconds]
08:36
giorgian has joined #ruby
08:40
___nick___ has joined #ruby
08:41
giorgian has quit [Ping timeout: 246 seconds]
08:46
kiki_lamb has joined #ruby
08:46
<
rapha >
weaksauce: well, it seems thus far my strategy of talking to the bot in order to find out who feels responsible for it seems to be putting things in motion alright :o)
08:48
___nick___ has joined #ruby
08:50
Thanzex has quit [Read error: Connection reset by peer]
08:50
Thanzex has joined #ruby
08:51
kiki_lamb has quit [Ping timeout: 260 seconds]
09:00
ur5us has joined #ruby
09:04
giorgian has joined #ruby
09:09
giorgian` has joined #ruby
09:09
dionysus69 has quit [Ping timeout: 248 seconds]
09:10
giorgian has quit [Remote host closed the connection]
09:15
giorgian` has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.1)]
09:16
giorgian has joined #ruby
09:20
kiki_lamb has joined #ruby
09:25
kiki_lamb has quit [Ping timeout: 248 seconds]
09:26
ur5us_ has joined #ruby
09:26
ur5us has quit [Read error: Connection reset by peer]
09:28
<
rapha >
has anyone seen something like this before and can answer my questions? (as comments there)
09:34
Ziyan has quit [Ping timeout: 260 seconds]
09:34
<
rapha >
(sinatra, lockjar (jruby?), "H2" (database?) blah ... and then mostly a syntax question i guess)
09:35
Ziyan has joined #ruby
09:38
WhereIsMySpoon has joined #ruby
09:39
kiki_lamb has joined #ruby
09:41
fowl5 has joined #ruby
09:42
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
09:43
fowl has quit [Ping timeout: 248 seconds]
09:43
fowl5 is now known as fowl
09:43
WhereIsMySpoon has quit [Ping timeout: 276 seconds]
09:44
kiki_lamb has quit [Ping timeout: 256 seconds]
09:45
WhereIsMySpoon has joined #ruby
09:54
WhereIsMySpoon has quit [Ping timeout: 256 seconds]
09:55
kiki_lamb has joined #ruby
09:55
giorgian has quit [Remote host closed the connection]
09:56
giorgian has joined #ruby
09:59
WhereIsMySpoon has joined #ruby
09:59
kiki_lamb has quit [Ping timeout: 240 seconds]
10:05
WhereIsMySpoon has quit [Ping timeout: 240 seconds]
10:05
WhereIsMySpoon has joined #ruby
10:07
Sankalp has joined #ruby
10:11
kiki_lamb has joined #ruby
10:11
WhereIsMySpoon has quit [Ping timeout: 248 seconds]
10:14
twosuns has joined #ruby
10:16
ur5us has joined #ruby
10:16
ur5us_ has quit [Read error: Connection reset by peer]
10:29
Thanzex has quit [Read error: Connection reset by peer]
10:29
Thanzex has joined #ruby
10:37
ur5us has quit [Ping timeout: 240 seconds]
10:41
giorgian has quit [Ping timeout: 246 seconds]
10:46
giorgian has joined #ruby
11:05
twosuns has quit [Quit: ...]
11:38
giorgian has quit [Ping timeout: 248 seconds]
11:41
dionysus69 has joined #ruby
11:46
ssh073 has quit [Remote host closed the connection]
11:47
ssh073 has joined #ruby
11:52
Ziyan has joined #ruby
11:54
RickHull has joined #ruby
11:58
b3lm0nt has joined #ruby
11:58
b3lm0nt has quit [Changing host]
11:58
b3lm0nt has joined #ruby
11:59
TomyWork has joined #ruby
12:04
giorgian has joined #ruby
12:09
giorgian has quit [Remote host closed the connection]
12:09
giorgian has joined #ruby
12:10
b3lm0nt has quit [Ping timeout: 256 seconds]
12:10
b3lm0nt has joined #ruby
12:10
b3lm0nt has quit [Changing host]
12:10
b3lm0nt has joined #ruby
12:11
z4kz has joined #ruby
12:16
b3lm0nt has quit [Ping timeout: 250 seconds]
12:16
b3lm0nt has joined #ruby
12:16
b3lm0nt has joined #ruby
12:16
b3lm0nt has quit [Changing host]
12:20
b3lm0nt has quit [Ping timeout: 246 seconds]
12:21
b3lm0nt has joined #ruby
12:21
b3lm0nt has quit [Changing host]
12:21
b3lm0nt has joined #ruby
12:31
b3lm0nt has quit [Quit: leaving]
12:40
shiru has joined #ruby
12:50
perrierjouet has quit [Ping timeout: 276 seconds]
13:00
shiru has quit [Quit: Lost terminal]
13:04
Ziyan has quit [Ping timeout: 248 seconds]
13:05
Thanzex has quit [Read error: Connection reset by peer]
13:05
Thanzex has joined #ruby
13:06
Ziyan has joined #ruby
13:17
Sankalp has quit [Ping timeout: 248 seconds]
13:28
aeris has quit [Remote host closed the connection]
13:29
aeris has joined #ruby
13:30
z4kz has quit [Quit: Client closed]
13:43
oxfuxxx has joined #ruby
13:45
dionysus69 has quit [Ping timeout: 276 seconds]
13:46
dionysus69 has joined #ruby
13:48
oxfuxxx has quit [Ping timeout: 248 seconds]
13:57
giorgian has quit [Ping timeout: 250 seconds]
14:00
bit4bit has joined #ruby
14:02
aeris has quit [Remote host closed the connection]
14:03
aeris has joined #ruby
14:05
giorgian has joined #ruby
14:06
Sheilong has joined #ruby
14:07
WhereIsMySpoon has joined #ruby
14:07
bit4bit has quit [Ping timeout: 276 seconds]
14:09
Ziyan_ has joined #ruby
14:10
Ziyan has quit [Ping timeout: 260 seconds]
14:12
WhereIsMySpoon has quit [Ping timeout: 256 seconds]
14:13
Ziyan_ has quit [Ping timeout: 246 seconds]
14:13
Ziyan has joined #ruby
14:21
John_Ivan has joined #ruby
14:22
WhereIsMySpoon has joined #ruby
14:27
WhereIsMySpoon has quit [Ping timeout: 246 seconds]
14:41
moldorcoder7 has quit [Ping timeout: 272 seconds]
14:42
Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
14:44
Ziyan has joined #ruby
14:49
jpn_ has joined #ruby
14:52
dionysus69 has quit [Ping timeout: 246 seconds]
14:52
jpn has quit [Ping timeout: 248 seconds]
14:56
Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
15:06
Ziyan has joined #ruby
15:20
hololeap has quit [Ping timeout: 240 seconds]
15:22
hololeap has joined #ruby
15:30
John_Ivan has quit [Read error: Connection reset by peer]
15:31
John_Ivan has joined #ruby
15:31
Ziyan has quit [Ping timeout: 260 seconds]
15:32
John_Ivan has quit [Read error: Connection reset by peer]
15:32
John_Ivan has joined #ruby
15:33
Ziyan has joined #ruby
15:34
white_magic has joined #ruby
15:34
ssh073 has quit [Ping timeout: 240 seconds]
15:44
_ht has joined #ruby
15:46
oxfuxxx has joined #ruby
15:55
oxfuxxx has quit [Ping timeout: 240 seconds]
16:00
giorgian has quit [Ping timeout: 276 seconds]
16:02
dionysus69 has joined #ruby
16:07
jpn has joined #ruby
16:09
white_magic has quit [Quit: Client closed]
16:09
jpn_ has quit [Ping timeout: 248 seconds]
16:25
WhereIsMySpoon has joined #ruby
16:25
giorgian has joined #ruby
16:28
roadie has joined #ruby
16:31
giorgian has quit [Ping timeout: 248 seconds]
16:31
WhereIsMySpoon has quit [Ping timeout: 248 seconds]
16:39
kiwi_36 has joined #ruby
16:41
hanzo has joined #ruby
16:45
dionysus69 has quit [Read error: Connection reset by peer]
16:48
dionysus69 has joined #ruby
16:53
moldorcoder7 has joined #ruby
16:55
oxfuxxx has joined #ruby
16:57
jpn has quit [Ping timeout: 260 seconds]
16:58
giorgian has joined #ruby
17:03
giorgian has quit [Ping timeout: 260 seconds]
17:18
ssh073 has joined #ruby
17:18
jpn has joined #ruby
17:24
Thom2503 has joined #ruby
17:28
giorgian has joined #ruby
17:33
giorgian has quit [Ping timeout: 276 seconds]
17:36
pgib has joined #ruby
17:38
oxfuxxx has quit [Ping timeout: 250 seconds]
17:39
fercell has quit [Ping timeout: 246 seconds]
17:41
TomyWork has quit [Quit: Leaving]
17:43
Thom2503 has quit [Remote host closed the connection]
17:44
fercell has joined #ruby
17:47
jpn has quit [Ping timeout: 276 seconds]
17:48
jpn has joined #ruby
17:52
<
havenwood >
rapha: Ask it about its owner and source location.
17:52
<
havenwood >
rapha: p method(:entries).owner
17:52
<
havenwood >
rapha: p method(:entries).source_location
17:53
<
rapha >
mind successfully blown, havenwood. i never knew about either of these. will check and thank you!
17:53
jpn has quit [Ping timeout: 260 seconds]
17:53
jpn has joined #ruby
17:53
<
havenwood >
rapha: Oh, wait, just reread that and it's a kwarg not a method?
17:54
<
havenwood >
rapha: MultiJson.dump(entries: MAP.to_a)
17:55
<
havenwood >
rapha: If it was a method, I'd ask it about its owner and source location. It looks like it's a keyword argument.
17:55
hololeap has quit [Ping timeout: 240 seconds]
17:56
<
havenwood >
rapha: Object.const_source_location(:MAP)
17:56
giorgian has joined #ruby
17:57
<
havenwood >
rapha: And no need to check the source location, because MAP is defined in the code you shared.
17:57
<
havenwood >
rapha: yeah, just a keyword argument and the lack of a space makes it confusing.
17:58
hololeap has joined #ruby
17:59
<
havenwood >
rapha: Ripper can be useful for cases like this where your eyes might deceive.
17:59
<
havenwood >
rapha: require 'ripper'; Ripper.sexp('MultiJson.dump entries:MAP.to_a')
17:59
<
havenwood >
That let's you know it's a :bare_assoc_hash
17:59
<
rapha >
huh, i also never knew that you're allowed to skip the space after the colon for an implicit hash
18:00
<
rapha >
(bare assoc hash = what i call an implicit hash?)
18:01
<
rapha >
but okay, yeah, that explains it
18:01
<
rapha >
what i'm still wondering is why the person felt inclined to make the whole utf8 stuff explicit as though it was still the early 2000s
18:01
giorgian has quit [Ping timeout: 248 seconds]
18:01
<
rapha >
but probably only they could answer that
18:02
<
rapha >
btw havenwood new Last Week Tonight with John Oliver is out!
18:15
giorgian has joined #ruby
18:18
noname has joined #ruby
18:19
giorgian has quit [Ping timeout: 240 seconds]
18:20
hololeap has quit [Ping timeout: 240 seconds]
18:22
cjac has joined #ruby
18:23
<
cjac >
can I ask a noob question?
18:23
<
cjac >
I've never written tests in ruby before, so I'm starting from the bottom.
18:23
<
cjac >
how do I check whether a function defined in a module has been injected into the namespace without calling that function?
18:24
<
cjac >
is it something like this?
18:24
<
cjac >
eval("defined? #{celo}") == 'method'
18:24
hololeap has joined #ruby
18:25
noname has quit [Ping timeout: 256 seconds]
18:27
<
cjac >
I'm trying to write a unit test for this module, and I wanted to start with ensuring that the methods 'def'd in the module are properly loaded.
18:29
<
rapha >
and he's calling that a noob question
18:34
<
leftylink >
I don't think it makes sense to test whether the language is working properly, but this is a case for respond_to?
18:37
<
leftylink >
pandabot: rb module A; def foo; end end; class B end; class C include A end; [B.new.respond_to?(:foo), C.new.respond_to?(:foo)]
18:44
jpn has quit [Ping timeout: 248 seconds]
18:45
Thanzex has quit [Read error: Connection reset by peer]
18:45
Thanzex has joined #ruby
18:51
<
cjac >
you're probably right about not making sense. In perl, we have Test::More::use_ok() which verifies that the module gets loaded. I was going for something like that.
18:52
noname has joined #ruby
19:04
giorgian has joined #ruby
19:06
Thom2503 has joined #ruby
19:08
jpn has joined #ruby
19:10
giorgian has quit [Ping timeout: 276 seconds]
19:10
<
leftylink >
ehhhh I guess < can be used then.
19:11
<
leftylink >
pandabot: rb module A def cjac; end end; class B end; class C include A end; [B < A, C < A]
19:11
hololeap has quit [Ping timeout: 240 seconds]
19:12
Thom2503 has quit [Ping timeout: 260 seconds]
19:14
jpn has quit [Quit: Lost terminal]
19:14
hololeap has joined #ruby
19:19
Thom2503 has joined #ruby
19:20
aeris has quit [Remote host closed the connection]
19:20
aeris has joined #ruby
19:21
hanzo has quit [Quit: Connection closed for inactivity]
19:22
hololeap has quit [Ping timeout: 240 seconds]
19:23
Thom2503 has quit [Ping timeout: 248 seconds]
19:25
jpn has joined #ruby
19:25
hololeap has joined #ruby
19:27
noname has quit [Ping timeout: 248 seconds]
19:34
Thom2503 has joined #ruby
19:36
giorgian has joined #ruby
19:39
Thom2503 has quit [Ping timeout: 276 seconds]
19:41
giorgian has quit [Ping timeout: 260 seconds]
19:51
_ht has quit [Remote host closed the connection]
19:54
<
rapha >
havenwood: was it you who i talked with about emulating a Matlab-ish Ruby environment in VSCode?
19:54
<
rapha >
anyhow, vscode-rdbg is great, as is rdbg itself
19:55
<
rapha >
i'm just wondering if there is a way to on have to open a file and instead just have a terminal with, say, a pry session in it ... and something whereby the state of that session gets saved on exit and restored when you reopen vscode
19:57
<
rapha >
spyder does the same thing for python i believe
19:59
ua_ has quit [Ping timeout: 248 seconds]
20:02
crankharder has joined #ruby
20:02
giorgian has joined #ruby
20:03
<
rapha >
ah, there's even a jupyter extension which will give you that handy variable explorer for python
20:03
<
rapha >
just not for ruby ... not without setting breakpoints, at least
20:04
___nick___ has quit [Ping timeout: 248 seconds]
20:07
hololeap has quit [Ping timeout: 240 seconds]
20:08
jpn has quit [Ping timeout: 260 seconds]
20:08
giorgian has quit [Ping timeout: 256 seconds]
20:10
hololeap has joined #ruby
20:13
ua_ has joined #ruby
20:19
ua_ has quit [Ping timeout: 246 seconds]
20:19
giorgian has joined #ruby
20:20
<
rapha >
hah, not even a need for creating a jupyter notebook with python.
20:20
* rapha
feels a little sad
20:21
<
cjac >
leftylink: am I picking up with you're putting down? How do I run this test?
20:23
<
rapha >
maybe i'll have to figure out what the API for vscode's variable explorer is and then i could write an extension that ties it in with one of ruby's many REPLs
20:24
<
cjac >
rapha: one REPL to rule them all
20:24
<
cjac >
and they called it ring zero
20:24
<
rapha >
you should make that into a poem cjac :)
20:24
<
cjac >
I just did. I have it logged to ~/.irclogs/libera/#ruby.log for evers and evers
20:25
giorgian has quit [Ping timeout: 260 seconds]
20:31
Thom2503 has joined #ruby
20:32
<
havenwood >
cjac: first: gem install --no-document toys && bundle install
20:32
ua_ has joined #ruby
20:33
<
cjac >
You don't have write permissions for the /var/lib/gems/2.7.0 directory.
20:33
<
cjac >
do you have virtualenv for ruby?
20:33
<
leftylink >
sounds like that's an Issue that should be filed with the project, that they should have docs as to how to run their tests. however since they have a .rspec file and a spec directory, it can be pretty likely that rspec is involved
20:33
<
cjac >
we call it local::lib in perl
20:33
roadie has quit [Ping timeout: 240 seconds]
20:34
WhereIsMySpoon has joined #ruby
20:34
<
cjac >
good call, thanks, leftylink!
20:35
Thom2503 has quit [Ping timeout: 240 seconds]
20:36
<
cjac >
is there something like install, but that doesn't write the files to the destination?
20:36
<
cjac >
in the world of make, we often have a test target, for instance
20:37
robotmay has quit [Quit: Be excellent to each other]
20:38
<
cjac >
looks like it's build: gem build
20:38
<
rapha >
cjac: just that 'zero' doesn't rhyme with 'all'
20:38
howdoi has joined #ruby
20:38
<
cjac >
you could have a chorus behind the "ZERO" singing "aaaaah"
20:38
<
rapha >
cjac: either sudo or set GEM_HOME to something you're allowed to write to
20:39
<
cjac >
thanks, I was looking for GEM_HOME
20:39
<
rapha >
(and put ~/.gem/ruby/3.0.0/bin/ in your PATH)
20:40
<
havenwood >
cjac: tests=(rubocop integration build yardoc linkinator)
20:40
<
havenwood >
cjac: for test in "${tests[@]}"
20:41
<
havenwood >
toys do "$test" < /dev/null
20:42
<
havenwood >
They could make that ^ easier with a Rakefile or Bakefile, but you can run it manually like that ^
20:43
WhereIsMySpoon has quit [Ping timeout: 276 seconds]
20:45
robotmay has joined #ruby
20:46
ua_ has quit [Ping timeout: 276 seconds]
20:47
<
cjac >
a bit of spam here: ~/src/github/googleapis/google-auth-library-ruby$ rubocop integration build yardoc linkinator
20:47
<
cjac >
Inspecting 0 files
20:48
<
cjac >
0 files inspected, no offenses detected
20:50
jpn has joined #ruby
20:51
hololeap has quit [Ping timeout: 240 seconds]
20:54
hololeap has joined #ruby
20:57
jpn has quit [Ping timeout: 256 seconds]
20:59
ua_ has joined #ruby
20:59
roadie has joined #ruby
20:59
<
havenwood >
cjac: Did you see the bash lines I wrote above? You can run them individually if you prefer.
20:59
<
havenwood >
cjac: toys do integration < /dev/null
20:59
<
havenwood >
cjac: etc
21:03
<
cjac >
oh, there it is. sorry.
21:03
<
cjac >
it was the ${test[@]} that threw me.
21:03
<
cjac >
for test in rubocop integration build yardoc linkinator ; do toys do "$test" ; done
21:04
splud has quit [Ping timeout: 276 seconds]
21:05
<
havenwood >
right, yes
21:05
splud has joined #ruby
21:07
roadie has quit [Ping timeout: 260 seconds]
21:10
jpn has joined #ruby
21:10
<
cjac >
linkinator and yardoc are not looking pretty
21:12
protektwar has quit [Ping timeout: 260 seconds]
21:14
jpn has quit [Ping timeout: 240 seconds]
21:15
jpn has joined #ruby
21:17
ua_ has quit [Ping timeout: 276 seconds]
21:18
ur5us has joined #ruby
21:18
hololeap has quit [Ping timeout: 240 seconds]
21:20
jpn has quit [Ping timeout: 276 seconds]
21:20
giorgian has joined #ruby
21:21
hololeap has joined #ruby
21:25
giorgian has quit [Ping timeout: 246 seconds]
21:30
hololeap has quit [Ping timeout: 240 seconds]
21:31
ua_ has joined #ruby
21:34
hololeap has joined #ruby
21:35
jpn has joined #ruby
21:36
kiwi_36 has quit [Ping timeout: 256 seconds]
21:42
kiwi_36 has joined #ruby
21:42
jpn has quit [Ping timeout: 250 seconds]
21:53
giorgian has joined #ruby
21:55
roadie has joined #ruby
21:56
Thom2503 has joined #ruby
21:59
giorgian has quit [Ping timeout: 250 seconds]
22:00
roadie has quit [Ping timeout: 260 seconds]
22:00
Thom2503 has quit [Ping timeout: 240 seconds]
22:11
<
cjac >
toys do test # is the way to run anything in test/**/*_test.rb
22:12
RickHull has quit [Remote host closed the connection]
22:12
RickHull has joined #ruby
22:23
perrierjouet has joined #ruby
22:25
jpn has joined #ruby
22:25
giorgian has joined #ruby
22:27
finsternis has quit [Read error: Connection reset by peer]
22:27
finsternis has joined #ruby
22:29
jpn has quit [Ping timeout: 248 seconds]
22:31
giorgian has quit [Ping timeout: 260 seconds]
22:38
shokohsc has joined #ruby
22:40
hanzo has joined #ruby
22:47
dionysus69 has quit [Ping timeout: 250 seconds]
22:55
giorgian has joined #ruby
22:59
WhereIsMySpoon has joined #ruby
23:00
twosuns has joined #ruby
23:01
giorgian has quit [Ping timeout: 260 seconds]
23:04
hololeap has quit [Ping timeout: 240 seconds]
23:06
roadie has joined #ruby
23:07
hololeap has joined #ruby
23:09
WhereIsMySpoon has quit [Ping timeout: 260 seconds]
23:14
roadie has quit [Ping timeout: 248 seconds]
23:19
jpn has joined #ruby
23:23
jpn has quit [Ping timeout: 246 seconds]
23:29
crankharder has quit [Quit: leaving]
23:34
WhereIsMySpoon has joined #ruby
23:38
howdoi has quit [Quit: Connection closed for inactivity]
23:41
WhereIsMySpoon has quit [Ping timeout: 240 seconds]
23:44
idiocrash has joined #ruby
23:55
idiocrash has quit [Ping timeout: 246 seconds]
23:56
giorgian has joined #ruby
23:59
idiocrash has joined #ruby