00:00
jpn has joined #ruby
00:03
eddof13 has joined #ruby
00:05
eddof13 has quit [Client Quit]
00:09
moldorcoder7 has quit [Ping timeout: 260 seconds]
00:24
nirvdrum has quit [Quit: nirvdrum]
00:26
ur5us has joined #ruby
00:34
mikecmpbll has joined #ruby
00:37
nirvdrum has joined #ruby
00:38
nirvdrum has quit [Client Quit]
00:39
mikecmpbll has quit [Ping timeout: 252 seconds]
01:19
havenwood5 has joined #ruby
01:23
havenwood has quit [Ping timeout: 260 seconds]
01:23
havenwood5 is now known as havenwood
01:59
eddof13 has joined #ruby
02:00
eddof13 has quit [Client Quit]
02:09
nirvdrum has joined #ruby
02:12
nirvdrum has quit [Client Quit]
02:30
jpn has quit [Ping timeout: 255 seconds]
02:37
ur5us has quit [Quit: Leaving]
02:46
ur5us has joined #ruby
03:05
ur5us has quit [Ping timeout: 255 seconds]
03:06
Linux_Kerio has joined #ruby
03:08
bougyman_ is now known as bougyman
04:24
jetchisel has quit [Ping timeout: 255 seconds]
04:27
jetchisel has joined #ruby
04:30
mikecmpbll has joined #ruby
04:31
entropie has quit [Quit: ""]
04:31
entropie has joined #ruby
04:34
mikecmpbll has quit [Ping timeout: 252 seconds]
04:59
Guest34 has joined #ruby
05:05
nirvdrum has joined #ruby
05:26
_aeris_ has joined #ruby
05:26
aeris has quit [Ping timeout: 258 seconds]
05:26
_aeris_ is now known as aeris
05:52
nirvdrum has quit [Quit: nirvdrum]
05:56
teclator has joined #ruby
06:01
John_Ivan_ has quit [Ping timeout: 255 seconds]
06:02
Linux_Kerio has quit [Quit: Konversation terminated!]
06:02
Linux_Kerio has joined #ruby
06:07
Linux_Kerio has quit [Client Quit]
06:08
Linux_Kerio has joined #ruby
06:18
Linux_Kerio has quit [Quit: Konversation terminated!]
06:25
jvalleroy has joined #ruby
06:29
Guest34 has quit [Quit: Client closed]
06:39
dionysus69 has joined #ruby
07:02
fercell has joined #ruby
07:07
jhawthorn has quit [Read error: Connection reset by peer]
07:07
Sankalp has quit [Ping timeout: 268 seconds]
07:07
Sankalp- has joined #ruby
07:07
jhawthorn has joined #ruby
07:07
Sankalp- is now known as Sankalp
07:13
protektwar has joined #ruby
07:13
protektwar has quit [Changing host]
07:13
protektwar has joined #ruby
07:21
Rounin has joined #ruby
07:26
Aminda has quit [Remote host closed the connection]
07:27
Aminda has joined #ruby
07:44
jpn has joined #ruby
07:48
jpn has quit [Ping timeout: 252 seconds]
08:06
mikecmpbll has joined #ruby
08:10
aeris has quit [Remote host closed the connection]
08:10
aeris has joined #ruby
08:11
dionysus69 has quit [Ping timeout: 244 seconds]
08:31
dionysus69 has joined #ruby
08:36
dionysus69 has quit [Client Quit]
08:36
dionysus69 has joined #ruby
08:51
<
mikecmpbll >
mornin'
08:54
jpn has joined #ruby
08:58
dionysus69 has quit [Ping timeout: 255 seconds]
09:04
dionysus69 has joined #ruby
09:18
sphex has quit [Remote host closed the connection]
09:18
sphex has joined #ruby
09:44
cek has joined #ruby
09:48
<
madprops >
when I make unit tests with: class MyTest < Test::Unit::TestCase
09:48
<
madprops >
am i supposed to init an isntance of that class, or make it a static method?
09:48
<
madprops >
in the examples I see there's no `initialize`
09:49
<
madprops >
ohhh i see
09:49
<
madprops >
it runs automatically
10:04
<
madprops >
im surprised how ruby has a bunch of the stuff i liked on nim
10:04
jpn has quit [Ping timeout: 252 seconds]
10:10
dionysus69 has quit [Ping timeout: 252 seconds]
10:20
username9431 has joined #ruby
10:43
jpn has joined #ruby
10:45
<
adam12 >
mikecmpbll: Morning
10:46
<
adam12 >
madprops: Yes. Minitest and Test::Unit use the at_exit hook to run the test suite.
10:49
matoro has quit [Ping timeout: 248 seconds]
10:52
matoro has joined #ruby
10:52
matoro has quit [Changing host]
10:52
matoro has joined #ruby
11:05
dionysus69 has joined #ruby
11:07
ferr_ has joined #ruby
11:08
fercell has quit [Ping timeout: 252 seconds]
11:14
Aminda has quit [Remote host closed the connection]
11:15
Aminda has joined #ruby
11:15
<
madprops >
is there a reason why exception catching is called begin rescue?
11:15
<
madprops >
i mean apart from just naming it that
11:15
<
madprops >
im guessing begin can be reused for other stuff
11:17
jetchisel has quit [Ping timeout: 255 seconds]
11:19
jetchisel has joined #ruby
11:25
protektwar has quit [Ping timeout: 268 seconds]
11:31
<
adam12 >
madprops: Yes. You can use begin to collect statements into a single return value.
11:31
<
adam12 >
ie. @some_value = being; multiple statements across multiple lines; end
11:32
<
adam12 >
madprops: There's also ensure and else. Ensure being obvious the reason and else being super trippy.
11:40
<
madprops >
i see there's also BEGIN {} and END {}
11:42
<
madprops >
im trying to hit a case where i'd need beging to assign to a variable in a nested structure
11:42
<
madprops >
so far it works without it
11:44
<
adam12 >
madprops: BEGIN and END are holdovers from Perl/Awk.
11:44
<
madprops >
haha yeah i thought of awk
11:44
<
adam12 >
I generally don't see it much outside of oneliners.
11:52
<
madprops >
not sure how i'd send an anonymous function / lambda, to a function for callbacks
11:52
<
madprops >
i seen an example where you do a {..} outside the call which is weird
11:52
<
madprops >
so i tried: sum(1, 2, lambda {puts "123"})
11:52
<
madprops >
but the third var is not recognized
11:53
<
adam12 >
What's the definition of `sum`?
11:53
<
adam12 >
def sum(a, b, adder)?
11:54
<
madprops >
undefined method `callback'
11:54
<
adam12 >
madprops: Ah. You can't call it like that, because of the design of the Ruby language.
11:55
<
adam12 >
madprops: There's 3 (maybe more) ways of calling it tho, so you can take your pick.
11:55
<
adam12 >
madprops: callback.call, callback.(), callback[]
11:55
<
madprops >
ok that kinda makes sense
11:55
<
madprops >
callback.call at least
11:56
<
adam12 >
Yeah. The third option is a neat one to simulate UCFS? If I'm remembering that acronym right.
11:57
<
adam12 >
users["adam12"] could be either a Hash lookup, an Array lookup, or an object that responds to #call which will do something to get a value for that key.
11:57
<
adam12 >
So in some cases, the square bracket call syntax is nice.
12:23
<
madprops >
adam12, what do you think of crystal, is it worth learning a bit of that?
12:26
<
madprops >
i really like ruby's syntax
12:26
<
madprops >
sometimes i like to make fast binaries though
12:26
<
madprops >
for that i use nim
12:31
_aeris_ has joined #ruby
12:32
aeris has quit [Remote host closed the connection]
12:33
_aeris_ is now known as aeris
12:33
dionysus70 has joined #ruby
12:34
dionysus69 has quit [Ping timeout: 244 seconds]
12:34
dionysus70 is now known as dionysus69
12:38
<
adam12 >
madprops: I like Crystal.
13:15
John_Ivan_ has joined #ruby
13:20
protektwar has joined #ruby
13:20
protektwar has quit [Changing host]
13:20
protektwar has joined #ruby
13:36
Tempesta has quit [Quit: See ya!]
13:41
Tempesta has joined #ruby
13:55
oxfuxxx has joined #ruby
13:55
shiru has joined #ruby
13:58
shiru has quit [Client Quit]
13:59
artemis has joined #ruby
13:59
nirvdrum has joined #ruby
13:59
oxfuxxx has quit [Ping timeout: 244 seconds]
14:07
vito has quit [Ping timeout: 240 seconds]
14:08
artemis has quit [Ping timeout: 244 seconds]
14:08
vito has joined #ruby
14:09
TomyWork has joined #ruby
14:09
JSharp has quit [Ping timeout: 268 seconds]
14:09
pjlsergeant has quit [Ping timeout: 268 seconds]
14:10
JSharp has joined #ruby
14:11
pjlsergeant has joined #ruby
14:16
fercell has joined #ruby
14:16
arahael has quit [Ping timeout: 268 seconds]
14:16
ferr_ has quit [Ping timeout: 252 seconds]
14:17
desnudopenguino has quit [Ping timeout: 244 seconds]
14:28
arahael has joined #ruby
14:28
protektwar has quit [Ping timeout: 268 seconds]
14:31
kristianpaul has joined #ruby
14:31
nirvdrum has quit [Quit: nirvdrum]
14:32
<
kristianpaul >
Whats the correct way of including a shared library file?
14:33
<
kristianpaul >
May i use the fullpath or need to copy it somwhere in the gem path directory?
14:33
<
mikecmpbll >
a ruby shared library?
14:33
<
kristianpaul >
something.so file, its provided from a vendor i cant compile ..
14:36
<
mikecmpbll >
ah okay. i don't have much experience working with C shared libraries, so, "pass" from me :)
14:40
desnudopenguino has joined #ruby
14:44
<
adam12 >
kristianpaul: Are you writing bindings for it using Fiddle?
14:45
<
kristianpaul >
nope?
14:45
<
adam12 >
kristianpaul: How are you interacting with it
14:45
<
adam12 >
(or planning tto)
14:47
<
kristianpaul >
require 'gem_name"
14:47
<
kristianpaul >
it worked before for ruby 2.7.0 when under /usr/lib/ruby/vendor_ruby/2.7.0/
14:47
<
kristianpaul >
i just added it to the GEM_PATH but
14:48
<
jhass[m] >
So the vendor supplied this specifically for use with Ruby?
14:48
<
kristianpaul >
i switched to ruby 2.7.4 installed by rvm and then got lost trying to use it..
14:48
<
kristianpaul >
jhass[m]: thats correct
14:48
<
adam12 >
kristianpaul: Technically you could probably just `require_relative "your_so_file"`
14:48
<
jhass[m] >
What ruby version they supplied this for?
14:48
<
adam12 >
But Ruby will look in $LOAD_PATH for .rb files, and .so files.
14:48
<
kristianpaul >
jhass[m]: 2.7.0
14:49
<
adam12 >
I don't get how you're interacting with it outside of a FFI interface tho...
14:52
<
jhass[m] >
adam12: sound's like it's an already compiled native ext to me
14:53
<
adam12 >
jhass[m]: Linked against libruby.a maybe?
14:53
<
jhass[m] >
kristianpaul: so is require_relative working, if not, how does it fail?
14:53
<
adam12 >
jhass[m]: I forgot that you can write Ruby C functions and skip the FFI.
14:54
<
jhass[m] >
yeah you can just load an SO and in it's main call rb_define_method or whatever the C API was
14:54
<
kristianpaul >
jhass[m] its failing
14:54
<
jhass[m] >
it's how native extensions work
14:54
<
kristianpaul >
jhass[m]: `require_relative': libruby-2.7.so.2.7: cannot open shared object file: No such file or directory - /usr/lib/ruby/vendor_ruby/2.7.0/mypdf.so
14:54
<
jhass[m] >
(or most of Ruby's C stdlib really)
14:55
<
kristianpaul >
but thats the path..
14:55
<
kristianpaul >
full path
14:55
<
jhass[m] >
what's ldd /usr/lib/ruby/vendor_ruby/2.7.0/mypdf.so saying? (-> gist)
14:57
<
kristianpaul >
ahh libruby-2.7.so.2.7 => not found
15:01
arahael has quit [Ping timeout: 252 seconds]
15:04
dionysus69 has quit [Ping timeout: 252 seconds]
15:14
arahael has joined #ruby
15:16
nirvdrum has joined #ruby
15:20
oxfuxxx has joined #ruby
15:24
artemis has joined #ruby
15:26
nirvdrum has quit [Quit: nirvdrum]
15:27
oxfuxxx has quit [Ping timeout: 268 seconds]
15:31
oxfuxxx has joined #ruby
15:33
artemis has quit [Ping timeout: 252 seconds]
15:34
_ht has joined #ruby
15:35
artemis has joined #ruby
15:37
artemis has quit [Client Quit]
15:37
artemis has joined #ruby
15:39
oxfuxxx has quit [Ping timeout: 244 seconds]
15:41
eddof13 has joined #ruby
15:44
artemis has quit [Ping timeout: 244 seconds]
15:58
Linux_Kerio has joined #ruby
16:15
protektwar has joined #ruby
16:15
protektwar has quit [Changing host]
16:15
protektwar has joined #ruby
16:18
mikecmpbll has quit [Ping timeout: 252 seconds]
16:20
victori has quit [Ping timeout: 248 seconds]
16:30
aandre has quit [Changing host]
16:30
aandre has joined #ruby
16:47
hightower2 has joined #ruby
17:00
nirvdrum has joined #ruby
17:01
oxfuxxx has joined #ruby
17:06
artemis has joined #ruby
17:07
jpn has quit [Ping timeout: 268 seconds]
17:09
hightower2 has quit [Remote host closed the connection]
17:09
oxfuxxx has quit [Ping timeout: 252 seconds]
17:10
oxfuxxx has joined #ruby
17:11
artemis has quit [Ping timeout: 252 seconds]
17:17
axisys has joined #ruby
17:23
Aminda has quit [Remote host closed the connection]
17:24
Aminda has joined #ruby
17:26
aeris has quit [Ping timeout: 258 seconds]
17:27
aeris has joined #ruby
17:30
nirvdrum has quit [Quit: nirvdrum]
17:32
axisys has quit [Remote host closed the connection]
17:40
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:46
eddof13 has joined #ruby
17:49
Vintal has joined #ruby
17:57
oxfuxxx has quit [Ping timeout: 268 seconds]
18:11
oxfuxxx has joined #ruby
18:20
artemis has joined #ruby
18:23
oxfuxxx has quit [Ping timeout: 244 seconds]
18:25
gschanuel has quit [Ping timeout: 252 seconds]
18:32
protektwar has quit [Ping timeout: 268 seconds]
18:32
Vintal has quit [Remote host closed the connection]
18:36
libsys has quit [Ping timeout: 260 seconds]
18:36
libsys has joined #ruby
18:40
Furai has quit [Quit: WeeChat 3.6]
18:46
Furai has joined #ruby
18:48
nirvdrum has joined #ruby
18:57
ferr_ has joined #ruby
18:58
mahlon has quit [Quit: PotatoTech]
18:58
fercell has quit [Ping timeout: 255 seconds]
19:00
Tomte has joined #ruby
19:01
Tomte has quit [Remote host closed the connection]
19:16
mahlon has joined #ruby
19:39
nirvdrum has quit [Quit: nirvdrum]
19:49
CrazyEddy has quit [Ping timeout: 255 seconds]
19:49
nirvdrum has joined #ruby
19:56
nirvdrum has quit [Quit: nirvdrum]
19:57
TomyWork has quit [Remote host closed the connection]
19:57
_ht has quit [Quit: _ht]
20:01
jpn has joined #ruby
20:04
cek has quit [Quit: Connection closed for inactivity]
20:05
jpn has quit [Ping timeout: 252 seconds]
20:10
username9431 has quit [Remote host closed the connection]
20:15
mikecmpbll has joined #ruby
20:19
mikecmpbll has quit [Ping timeout: 252 seconds]
20:23
jpn has joined #ruby
20:28
arahael has quit [Ping timeout: 255 seconds]
20:29
artemis has quit [Ping timeout: 252 seconds]
20:32
jpn has quit [Ping timeout: 252 seconds]
20:40
arahael has joined #ruby
20:41
Linux_Kerio has quit [Quit: Konversation terminated!]
20:44
oxfuxxx has joined #ruby
20:48
jpn has joined #ruby
20:53
dionysus69 has joined #ruby
20:59
dionysus69 has quit [Quit: dionysus69]
20:59
dionysus69 has joined #ruby
21:01
pgib has joined #ruby
21:04
victori has joined #ruby
21:19
ur5us has joined #ruby
21:23
arahael has quit [Ping timeout: 252 seconds]
21:25
cocalero has joined #ruby
21:25
cocalero_ has joined #ruby
21:28
cocalero_ has quit [Client Quit]
21:37
arahael has joined #ruby
21:50
arahael has quit [Ping timeout: 268 seconds]
21:54
adam126 has joined #ruby
21:55
graemefawcett_ has joined #ruby
21:55
Bounga_ has joined #ruby
21:55
patrick_ has joined #ruby
21:55
g_sg_ has joined #ruby
21:55
srushe_ has joined #ruby
21:55
tsujp_ has joined #ruby
21:55
matta_ has joined #ruby
21:55
caleb_ has joined #ruby
21:55
KOTP_ has joined #ruby
21:55
alexisg_ has joined #ruby
21:55
hwrd_ has joined #ruby
21:56
seisatsu_ has joined #ruby
21:56
llua` has joined #ruby
21:56
integral_ has joined #ruby
21:56
phenom_ has joined #ruby
21:56
phryk_ has joined #ruby
21:56
Ca1us has joined #ruby
21:56
cyj123_ has joined #ruby
21:57
quintasan_ has joined #ruby
21:57
cocalero has joined #ruby
21:57
jimeh_ has joined #ruby
21:58
jhass- has joined #ruby
21:58
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:58
jhass has quit [Ping timeout: 244 seconds]
21:58
seisatsu has quit [Ping timeout: 244 seconds]
21:58
integral has quit [Ping timeout: 244 seconds]
21:58
tsujp has quit [Ping timeout: 244 seconds]
21:58
graemefawcett has quit [Ping timeout: 244 seconds]
21:58
madprops has quit [Ping timeout: 244 seconds]
21:58
Caius has quit [Ping timeout: 244 seconds]
21:58
phenom has quit [Ping timeout: 244 seconds]
21:58
hwrd has quit [Ping timeout: 244 seconds]
21:58
matta has quit [Ping timeout: 244 seconds]
21:58
srushe has quit [Ping timeout: 244 seconds]
21:58
gr33n7007h has quit [Ping timeout: 244 seconds]
21:58
leah2 has quit [Ping timeout: 244 seconds]
21:58
alexisg has quit [Ping timeout: 244 seconds]
21:58
scriptonaut has quit [Ping timeout: 244 seconds]
21:58
KOTP has quit [Ping timeout: 244 seconds]
21:58
rapha has quit [Ping timeout: 244 seconds]
21:58
Al2O3 has quit [Ping timeout: 244 seconds]
21:58
devz3ro has quit [Ping timeout: 244 seconds]
21:58
swaggboi has quit [Ping timeout: 244 seconds]
21:58
cyj123 has quit [Ping timeout: 244 seconds]
21:58
g_sg has quit [Ping timeout: 244 seconds]
21:58
caleb has quit [Ping timeout: 244 seconds]
21:58
patrick has quit [Ping timeout: 244 seconds]
21:58
Bounga has quit [Ping timeout: 244 seconds]
21:58
jimeh has quit [Ping timeout: 244 seconds]
21:58
peder has quit [Ping timeout: 244 seconds]
21:58
quintasan has quit [Ping timeout: 244 seconds]
21:58
adam12 has quit [Ping timeout: 244 seconds]
21:58
llua has quit [Ping timeout: 244 seconds]
21:58
phryk has quit [Ping timeout: 244 seconds]
21:58
gr33n7007h has joined #ruby
21:58
thomas25 has quit [Ping timeout: 244 seconds]
21:58
jhass- is now known as jhass
21:58
seisatsu_ is now known as seisatsu
21:58
tsujp_ is now known as tsujp
21:58
hwrd_ is now known as hwrd
21:58
srushe_ is now known as srushe
21:58
alexisg_ is now known as alexisg
21:59
Bounga_ is now known as Bounga
21:59
graemefawcett_ is now known as graemefawcett
21:59
matta_ is now known as matta
21:59
g_sg_ is now known as g_sg
21:59
caleb_ is now known as caleb
21:59
cyj123_ is now known as cyj123
21:59
KOTP_ is now known as KOTP
21:59
integral_ is now known as integral
21:59
integral has quit [Changing host]
21:59
integral has joined #ruby
21:59
thomas25 has joined #ruby
21:59
devz3ro has joined #ruby
21:59
Al2O3 has joined #ruby
21:59
adam126 is now known as adam12
22:00
peder has joined #ruby
22:00
donofrio_ has joined #ruby
22:00
llua` is now known as llua
22:01
madprops has joined #ruby
22:01
madprops has quit [Changing host]
22:01
madprops has joined #ruby
22:02
jimeh_ is now known as jimeh
22:03
donofrio__ has quit [Ping timeout: 268 seconds]
22:05
arahael has joined #ruby
22:09
scriptonaut has joined #ruby
22:09
swaggboi has joined #ruby
22:09
leah2 has joined #ruby
22:10
rapha has joined #ruby
22:10
rapha has quit [Changing host]
22:10
rapha has joined #ruby
22:13
arahael has quit [Ping timeout: 240 seconds]
22:23
nirvdrum has joined #ruby
22:23
cognemo has joined #ruby
22:23
cocalero has joined #ruby
22:28
arahael has joined #ruby
22:40
Linux_Kerio has joined #ruby
22:42
gr33n7007h has quit [Quit: WeeChat 3.6]
22:48
gr33n7007h has joined #ruby
22:51
eddof13 has joined #ruby
23:02
Linux_Kerio has quit [Quit: Konversation terminated!]
23:02
Linux_Kerio has joined #ruby
23:03
Linux_Kerio has quit [Client Quit]
23:04
Linux_Kerio has joined #ruby
23:06
pgib has quit [Ping timeout: 252 seconds]
23:07
pgib has joined #ruby
23:07
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:11
eddof13 has joined #ruby
23:11
eddof13 has quit [Client Quit]
23:12
dionysus69 has quit [Ping timeout: 268 seconds]
23:12
eddof13 has joined #ruby
23:15
eddof13 has quit [Client Quit]
23:15
Vintal has joined #ruby
23:18
nirvdrum has quit [Quit: nirvdrum]
23:20
Linux_Kerio has quit [Quit: Konversation terminated!]
23:21
nirvdrum has joined #ruby
23:24
Linux_Kerio has joined #ruby
23:29
nirvdrum has quit [Quit: nirvdrum]
23:30
nirvdrum has joined #ruby
23:30
eddof13 has joined #ruby
23:31
eddof13 has quit [Client Quit]
23:47
nirvdrum has quit [Quit: nirvdrum]