00:02
pvalenta has quit [Ping timeout: 248 seconds]
00:03
ensyde has joined #ruby
00:03
grumpus has joined #ruby
00:03
pvalenta has joined #ruby
00:04
nirvdrum has joined #ruby
00:42
yCrazyEdd has quit [Ping timeout: 244 seconds]
00:54
onyx_ has quit [Read error: Connection reset by peer]
00:55
EternalSunshine has quit [Quit: WeeChat 3.6]
01:00
ensyde has quit [Quit: Leaving]
01:01
ensyde has joined #ruby
01:29
grumpus has quit [Quit: Leaving...]
01:44
Al2O3 has quit [Ping timeout: 268 seconds]
01:44
taiju` has joined #ruby
01:45
taiju` is now known as taiju
01:57
Al2O3 has joined #ruby
02:05
niv is now known as jackrandom
02:05
jackrandom is now known as cybniv
02:07
cybniv is now known as niv
02:38
taiju has quit [Ping timeout: 244 seconds]
02:50
mikecmpbll has joined #ruby
02:55
mikecmpbll has quit [Ping timeout: 264 seconds]
03:03
aesthetikx has joined #ruby
03:03
aestheti1 has quit [Ping timeout: 265 seconds]
03:06
jmcgnh has quit [Ping timeout: 268 seconds]
03:16
<
sam113101 >
yo, how big can ruby numbers get?
03:33
nirvdrum has quit [Quit: nirvdrum]
03:56
jmcgnh has joined #ruby
04:13
Pixi has quit [Ping timeout: 260 seconds]
04:16
jmcgnh has quit [Ping timeout: 264 seconds]
04:16
Pixi has joined #ruby
04:25
jmcgnh has joined #ruby
04:32
jvalleroy has quit [Remote host closed the connection]
04:33
jvalleroy has joined #ruby
04:40
jvalleroy has quit [Remote host closed the connection]
04:44
<
leftylink >
pandabot: rb (1<<99999999).bit_length
04:44
<
leftylink >
well, we can see that they can at least get up to 100000000 bits
04:45
<
leftylink >
pandabot: rb (1<<9999999999).bit_length
04:46
<
leftylink >
that's a lot of bits
04:50
sagax has joined #ruby
05:00
moldorcoder7 has quit [Quit: %bye mirc%]
05:00
moldorcoder7 has joined #ruby
05:00
c10l has quit [Quit: See ya! o/]
05:01
c10l has joined #ruby
05:13
jvalleroy has joined #ruby
05:17
lesihctej has quit [Ping timeout: 264 seconds]
05:23
ur5us has quit [Ping timeout: 244 seconds]
05:34
ensyde has quit [Quit: Leaving]
05:35
ensyde has joined #ruby
06:08
protektwar has joined #ruby
06:09
kale has joined #ruby
06:09
ahayworth has quit [Ping timeout: 252 seconds]
06:10
ahayworth has joined #ruby
06:18
comet23 has joined #ruby
06:21
aeris has quit [Ping timeout: 258 seconds]
06:26
aeris has joined #ruby
06:30
teclator has joined #ruby
06:30
kale has quit [Ping timeout: 244 seconds]
06:43
infinityfye has joined #ruby
06:45
mikecmpbll has joined #ruby
06:54
nmollerup has joined #ruby
06:55
Rounin has joined #ruby
06:55
Rounin has quit [Changing host]
06:55
Rounin has joined #ruby
07:04
mikecmpbll has quit [Ping timeout: 252 seconds]
07:13
jetchisel has joined #ruby
07:15
mikecmpbll has joined #ruby
07:16
rvalue has quit [Read error: Connection reset by peer]
07:16
rvalue has joined #ruby
07:23
RetroPunk has joined #ruby
07:26
RetroPunk has quit [Client Quit]
07:29
ur5us has joined #ruby
07:31
RetroPunk has joined #ruby
07:35
dionysus69 has joined #ruby
07:38
peer has joined #ruby
07:48
ur5us has quit [Ping timeout: 244 seconds]
07:49
zoknert has joined #ruby
07:51
comet23 has quit [Ping timeout: 252 seconds]
07:58
ccapndave has joined #ruby
08:10
infinityfye has quit [Read error: Connection reset by peer]
08:13
infinityfye has joined #ruby
08:16
smudge-the-cat has joined #ruby
08:16
smudge-the-cat has left #ruby [#ruby]
08:19
ensyde has quit [Quit: Leaving]
08:24
zoknert has quit [Remote host closed the connection]
08:28
mikecmpbll has quit [Ping timeout: 268 seconds]
08:35
ur5us has joined #ruby
08:39
ccapndave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:44
<
rapha >
hmm i remember it was possible on an airgapped machine to 'gem install ./foobar.gem' ... apparently not so anymore. it just hangs. sad.
08:44
<
rapha >
or is that a jruby thing..
08:46
<
rapha >
oooh, it has --local
08:46
<
rapha >
thanks y'all
08:56
ccapndave has joined #ruby
08:57
ccapndave has quit [Client Quit]
09:00
mikecmpbll has joined #ruby
09:08
ccapndave has joined #ruby
09:08
mikecmpbll has quit [Ping timeout: 265 seconds]
09:08
ccapndave has quit [Client Quit]
09:13
mikecmpbll has joined #ruby
09:21
mikecmpbll has quit [Ping timeout: 264 seconds]
09:24
smp has joined #ruby
09:34
smp has quit [Ping timeout: 264 seconds]
09:37
smp has joined #ruby
09:40
smp has quit [Client Quit]
09:41
smp has joined #ruby
09:54
smp has joined #ruby
10:05
<
rapha >
(morning all)
10:07
zoknert has joined #ruby
10:32
<
dionysus69 >
is there a way to raise an error if a child class method doesn't call super? I want to enforce child method definition to call super, like in mini-test setup method
10:44
mikecmpbll has joined #ruby
11:05
mikecmpbll has quit [Ping timeout: 264 seconds]
11:08
fandre1986 has joined #ruby
11:18
ur5us has quit [Ping timeout: 244 seconds]
11:23
zoknert has quit [Ping timeout: 265 seconds]
11:58
<
leftylink >
well that's a really shitty solution so that's fun
12:02
<
leftylink >
yeah I think it's a better idea to just change the contract. have the parent call some different method that children override at their leisure
12:51
fandre1986 has quit [Quit: Connection closed]
12:58
<
adam12 >
dionysus69: I have the same issue on some teams I work with, and was thinking I might solve it with a Rubocop rule. I haven't had time to dig into it yet tho.
12:58
<
adam12 >
rapha: Should work as long as foobar.gem doesn't need any remote dependencies :P Could look at gemstash too, for a local mirror in the airgapped network.
13:20
protektwar has quit [Ping timeout: 260 seconds]
13:24
protektwar has joined #ruby
13:24
protektwar has quit [Changing host]
13:24
protektwar has joined #ruby
13:25
nirvdrum has joined #ruby
13:34
skuntee4 has joined #ruby
13:39
nirvdrum has quit [Quit: nirvdrum]
13:41
skuntee4 has quit [Ping timeout: 265 seconds]
13:47
mikecmpbll has joined #ruby
13:48
nirvdrum has joined #ruby
14:05
szkl has joined #ruby
14:15
dionysus69 has quit [Remote host closed the connection]
14:15
dionysus69 has joined #ruby
14:17
skuntee4 has joined #ruby
14:26
skuntee4 has quit [Ping timeout: 265 seconds]
14:28
nirvdrum has quit [Quit: nirvdrum]
15:03
eddof13 has joined #ruby
15:05
nirvdrum has joined #ruby
15:28
protektwar has quit [Ping timeout: 264 seconds]
15:58
dionysus69 has quit [Ping timeout: 265 seconds]
16:07
reset has quit [Quit: reset]
16:11
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:12
eddof13 has joined #ruby
16:25
infinityfye has quit [Quit: Leaving]
16:31
nirvdrum has quit [Quit: nirvdrum]
16:34
mikecmpbll has quit [Ping timeout: 264 seconds]
16:47
mikecmpbll has joined #ruby
16:49
dionysus69 has joined #ruby
16:50
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:53
nirvdrum has joined #ruby
16:58
eddof13 has joined #ruby
17:04
nirvdrum has quit [Quit: nirvdrum]
17:05
nirvdrum has joined #ruby
17:08
Pixi` has joined #ruby
17:11
Pixi has quit [Ping timeout: 264 seconds]
17:40
nirvdrum has quit [Quit: nirvdrum]
17:50
undeadmonk has joined #ruby
17:51
nirvdrum has joined #ruby
17:52
MRDPZK has joined #ruby
17:53
<
MRDPZK >
I'm installing a ruby package for markup. I'm a bit ignorant of ruby run environment so right now I'm getting this
17:53
<
MRDPZK >
`WARNING: You don't have /home/mehrdadpazooki/bin in your PATH, gem executables will not run.`
17:55
<
undeadmonk >
just do what it says put that path/bin in your env PATH
17:56
<
MRDPZK >
undeadmonk: which file is that. I use fish for shell
17:57
<
undeadmonk >
no file just the path
17:57
<
undeadmonk >
export PATH="$HOME/bin:$PATH"
17:58
<
MRDPZK >
gotcha thanks
18:01
DenKn[m] has joined #ruby
18:02
<
undeadmonk >
anyone familiar with pg segfaulting with a rails db:create?
18:05
mikecmpbll has quit [Ping timeout: 265 seconds]
18:05
John_Ivan has quit [Quit: Phantom of the future.]
18:05
John_Ivan has joined #ruby
18:11
<
adam12 >
undeadmonk: Is the pg gem segfaulting or is it postgres?
18:13
<
adam12 >
undeadmonk: If it's the pg gem (likely), then I'd wager a guess that it's compiled against a different Ruby version than the one calling it.
18:15
nirvdrum_ has joined #ruby
18:15
nirvdrum has quit [Read error: Connection reset by peer]
18:17
nirvdrum_ has quit [Client Quit]
18:17
<
ruby[bot] >
MRDPZK: we in #ruby do not like irccloud.com, it has no syntax highlighting, distracting formatting and loads slowly for most. Please use
https://gist.github.com
18:17
nirvdrum has joined #ruby
18:21
<
weaksauce >
MRDPZK did you look in the log file?
18:22
<
MRDPZK >
Yeah the file doesn’t exist
18:22
<
weaksauce >
net/ftp should be a basic gem in the stdlib
18:22
<
weaksauce >
which ruby?
18:22
<
MRDPZK >
I’m rebooting my machine just in case after installing ruby related libs
18:22
<
MRDPZK >
You mean which version?
18:24
<
weaksauce >
/tmp/bundler20220921-469228-n4f3xnnokogiri-1.8.5/extensions/x86_64-linux/3.1.0/nokogiri-1.8.5/gem_make.out
18:24
<
weaksauce >
what about that?
18:25
<
adam12 >
MRDPZK: Doesn't fix your issue directly, but if you upgrade the version of nokogiri you're using, they started shipping built gems, where compilation is not necessary. I think your version predates that.
18:26
<
MRDPZK >
To which version should i upgrade to
18:29
desnudopenguino1 has joined #ruby
18:29
<
MRDPZK >
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
18:29
<
MRDPZK >
Installing nokogiri 1.8.5 with native extensions
18:29
<
MRDPZK >
/usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20220921-5581-6id35u.rb extconf.rb
18:29
<
MRDPZK >
current directory: /tmp/bundler20220921-5581-poz6mhnokogiri-1.8.5/gems/nokogiri-1.8.5/ext/nokogiri
18:29
MRDPZK has quit [Excess Flood]
18:31
desnudopenguino has quit [Ping timeout: 244 seconds]
18:31
desnudopenguino1 is now known as desnudopenguino
18:32
plujon has joined #ruby
18:37
hrberg has quit [Ping timeout: 268 seconds]
18:43
nirvdrum has quit [Quit: nirvdrum]
18:44
<
undeadmonk >
adam12: yeah that is what i suspect
18:44
<
undeadmonk >
adam12: any way to force it in rvm
18:47
MRDPZK has joined #ruby
18:47
moldorcoder7 has quit [Read error: Connection reset by peer]
18:49
<
adam12 >
undeadmonk: Maybe? What command are you running that triggers the error? what is your ruby version?
18:50
moldorcoder7 has joined #ruby
18:51
<
undeadmonk >
2.7.3 ruby by rvm / pg 1.2.3
18:51
<
undeadmonk >
do a bundle install and all good but segfaults with rails db:create
18:54
<
weaksauce >
you doing a bundle exec rails db:create?
18:57
<
undeadmonk >
no just rails db:create
18:57
<
undeadmonk >
same error tho
18:57
nirvdrum has joined #ruby
19:00
nirvdrum has quit [Client Quit]
19:01
<
MRDPZK >
just fixed it
19:18
<
adam12 >
undeadmonk: `bundle pristine pg` and retry maybe?
19:19
<
adam12 >
MRDPZK: how?
19:19
<
axisys >
how to add variable into a key? hash[:db.#{var}.com] = "blah" does not work
19:19
<
adam12 >
axisys: hash["db.#{var}.com".to_sym] = "blah"
19:21
<
axisys >
Ah.. thanks
19:29
CalimeroTeknik has quit [Ping timeout: 268 seconds]
19:32
CalimeroTeknik has joined #ruby
19:33
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:35
Sankalp has quit [Ping timeout: 252 seconds]
19:36
Sankalp has joined #ruby
19:48
<
MRDPZK >
needed to do gem github-markup
19:48
<
MRDPZK >
and that was it
19:54
_ht has joined #ruby
19:55
sgt_chuckles has joined #ruby
19:59
archsinner has joined #ruby
20:02
eddof13 has joined #ruby
20:04
sgt_chuckles has quit [Quit: Client closed]
20:08
sgt_chuckles has joined #ruby
20:11
jtperreault has joined #ruby
20:15
_ht has quit [Remote host closed the connection]
20:18
dorian_ is now known as dorian
20:55
ur5us has joined #ruby
21:01
mikecmpbll has joined #ruby
21:06
mikecmpbll has quit [Ping timeout: 265 seconds]
21:17
sgt_chuckles has quit [Quit: Client closed]
21:37
archsinner has quit [Quit: archsinner]
21:38
archsinner has joined #ruby
21:45
<
weaksauce >
scottgy readlines? not do it for you
21:46
<
weaksauce >
something like the_csv.readlines.map {|line| line.join(",")}.join("\n")
21:50
<
sam113101 >
hold on, number.digits isn't even guarantueed to be in the correct order?
21:50
archsinner has quit [Quit: archsinner]
21:50
<
leftylink >
I have always seen digits to be in the correct order
21:50
<
sam113101 >
[33] pry(main)> 123456789.digits
21:50
<
sam113101 >
=> [9, 8, 7, 6, 5, 4, 3, 2, 1]
21:51
<
leftylink >
that looks right
21:51
<
sam113101 >
so it's in reverse
21:55
eron has joined #ruby
22:01
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:04
<
scottgy >
weaksauce: I dunno, if I'm having to join on ',' why am I even using a CSV object?
22:05
undeadmonk has quit [Quit: Lost terminal]
22:06
<
weaksauce >
yeah it's not ideal since parsing valid csv is tricky
22:12
<
leftylink >
pandabot: rb c = CSV.new("foo,0\nbar,1\nbaz,2"); CSV.generate { |g| c.each { |r| g << r } }
22:12
<
leftylink >
pandabot: rb require 'csv'; c = CSV.new("foo,0\nbar,1\nbaz,2"); CSV.generate { |g| c.each { |r| g << r } }
22:13
<
leftylink >
eh... not the easiest, would like a to_s
22:13
<
leftylink >
I guess I could refine it onto CSV
22:17
<
gr33n7007h >
scottgy: csv_object.to_io.string
22:17
<
gr33n7007h >
sam113101: #digits uses LSD, that's why
22:18
<
weaksauce >
what's the actual class on that CSV object scottgy
22:21
<
gr33n7007h >
weaksauce: yep, that's actually a valid point!
22:22
<
weaksauce >
if it's a table it does have to_s built in.
22:22
<
weaksauce >
if it's an instance of an unparsed csv you could munge it to that. if it's an array of arrays already it can be passed into table too
22:23
<
weaksauce >
or the to_io trick
22:23
<
gr33n7007h >
scottgy: ^
22:30
dionysus69 has quit [Ping timeout: 265 seconds]
22:31
<
sam113101 >
gr33n7007h: LSD? the drug?
22:31
<
gr33n7007h >
sam113101: least significant digit
22:36
<
gr33n7007h >
sam113101: e.g: 123.digits => 321 meaning (1 * 10 ^ 2) + (2 * 10 ^ 1) + (3 * 10 ^ 0) = 123; `0` being the lowest exponent meaning 3 is the LSD, then 2, ...
22:38
ua_ has quit [Ping timeout: 250 seconds]
22:49
<
sam113101 >
I wish '/' wouldn't do rounding division by default
22:50
Rounin has quit [Ping timeout: 244 seconds]
22:53
teclator has joined #ruby
22:53
nirvdrum has joined #ruby
22:54
eron has quit [Quit: Client closed]
23:06
teclator has quit [Remote host closed the connection]
23:11
nirvdrum has quit [Quit: nirvdrum]
23:12
reset has joined #ruby
23:13
joast has joined #ruby
23:25
robotmay_ has quit [Ping timeout: 250 seconds]
23:28
hightower2 has joined #ruby
23:31
robotmay has joined #ruby
23:42
archsinner has joined #ruby