jhass[m] changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
pvalenta has quit [Ping timeout: 248 seconds]
ensyde has joined #ruby
grumpus has joined #ruby
pvalenta has joined #ruby
nirvdrum has joined #ruby
yCrazyEdd has quit [Ping timeout: 244 seconds]
onyx_ has quit [Read error: Connection reset by peer]
EternalSunshine has quit [Quit: WeeChat 3.6]
ensyde has quit [Quit: Leaving]
ensyde has joined #ruby
grumpus has quit [Quit: Leaving...]
Al2O3 has quit [Ping timeout: 268 seconds]
taiju` has joined #ruby
taiju` is now known as taiju
Al2O3 has joined #ruby
niv is now known as jackrandom
jackrandom is now known as cybniv
cybniv is now known as niv
taiju has quit [Ping timeout: 244 seconds]
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
mikecmpbll has joined #ruby
mikecmpbll has quit [Ping timeout: 264 seconds]
aesthetikx has joined #ruby
aestheti1 has quit [Ping timeout: 265 seconds]
jmcgnh has quit [Ping timeout: 268 seconds]
<sam113101> yo, how big can ruby numbers get?
nirvdrum has quit [Quit: nirvdrum]
jmcgnh has joined #ruby
Pixi has quit [Ping timeout: 260 seconds]
jmcgnh has quit [Ping timeout: 264 seconds]
Pixi has joined #ruby
jmcgnh has joined #ruby
jvalleroy has quit [Remote host closed the connection]
jvalleroy has joined #ruby
jvalleroy has quit [Remote host closed the connection]
<leftylink> pandabot: rb (1<<99999999).bit_length
<pandabot> 100000000 - https://carc.in/#/r/dskm
<leftylink> well, we can see that they can at least get up to 100000000 bits
<leftylink> pandabot: rb (1<<9999999999).bit_length
<pandabot> 10000000000 - https://carc.in/#/r/dskr
<leftylink> that's a lot of bits
sagax has joined #ruby
moldorcoder7 has quit [Quit: %bye mirc%]
moldorcoder7 has joined #ruby
c10l has quit [Quit: See ya! o/]
c10l has joined #ruby
jvalleroy has joined #ruby
lesihctej has quit [Ping timeout: 264 seconds]
ur5us has quit [Ping timeout: 244 seconds]
ensyde has quit [Quit: Leaving]
ensyde has joined #ruby
RetroPunk has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
protektwar has joined #ruby
kale has joined #ruby
ahayworth has quit [Ping timeout: 252 seconds]
ahayworth has joined #ruby
comet23 has joined #ruby
aeris has quit [Ping timeout: 258 seconds]
aeris has joined #ruby
teclator has joined #ruby
kale has quit [Ping timeout: 244 seconds]
infinityfye has joined #ruby
mikecmpbll has joined #ruby
nmollerup has joined #ruby
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
jetchisel has joined #ruby
mikecmpbll has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
RetroPunk has joined #ruby
RetroPunk has quit [Client Quit]
ur5us has joined #ruby
RetroPunk has joined #ruby
dionysus69 has joined #ruby
peer has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
zoknert has joined #ruby
comet23 has quit [Ping timeout: 252 seconds]
ccapndave has joined #ruby
infinityfye has quit [Read error: Connection reset by peer]
infinityfye has joined #ruby
smudge-the-cat has joined #ruby
smudge-the-cat has left #ruby [#ruby]
ensyde has quit [Quit: Leaving]
zoknert has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 268 seconds]
ur5us has joined #ruby
ccapndave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rapha> hmm i remember it was possible on an airgapped machine to 'gem install ./foobar.gem' ... apparently not so anymore. it just hangs. sad.
<rapha> or is that a jruby thing..
<rapha> oooh, it has --local
<rapha> thanks y'all
ccapndave has joined #ruby
ccapndave has quit [Client Quit]
mikecmpbll has joined #ruby
ccapndave has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
ccapndave has quit [Client Quit]
smp has quit [Quit: ZNC 1.8.2 - https://znc.in]
mikecmpbll has joined #ruby
mikecmpbll has quit [Ping timeout: 264 seconds]
smp has joined #ruby
smp has quit [Ping timeout: 264 seconds]
smp has joined #ruby
smp has quit [Client Quit]
smp has joined #ruby
smp has quit [Quit: ZNC 1.8.2 - https://znc.in]
smp has joined #ruby
<rapha> (morning all)
zoknert has joined #ruby
<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
mikecmpbll has joined #ruby
mikecmpbll has quit [Ping timeout: 264 seconds]
fandre1986 has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
zoknert has quit [Ping timeout: 265 seconds]
<leftylink> pandabot: rburl http://ix.io/4b2x
<pandabot> [:woof, #<RuntimeError: you didn't call super!!!>] - https://carc.in/#/r/dsni
<leftylink> well that's a really shitty solution so that's fun
<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
fandre1986 has quit [Quit: Connection closed]
<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.
<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.
protektwar has quit [Ping timeout: 260 seconds]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
nirvdrum has joined #ruby
skuntee4 has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
skuntee4 has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
nirvdrum has joined #ruby
szkl has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
skuntee4 has joined #ruby
skuntee4 has quit [Ping timeout: 265 seconds]
nirvdrum has quit [Quit: nirvdrum]
eddof13 has joined #ruby
nirvdrum has joined #ruby
protektwar has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Ping timeout: 265 seconds]
reset has quit [Quit: reset]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
infinityfye has quit [Quit: Leaving]
nirvdrum has quit [Quit: nirvdrum]
mikecmpbll has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
dionysus69 has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nirvdrum has joined #ruby
eddof13 has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
nirvdrum has joined #ruby
Pixi` has joined #ruby
Pixi has quit [Ping timeout: 264 seconds]
nirvdrum has quit [Quit: nirvdrum]
undeadmonk has joined #ruby
nirvdrum has joined #ruby
MRDPZK has joined #ruby
<MRDPZK> hi folks
<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
<MRDPZK> `WARNING: You don't have /home/mehrdadpazooki/bin in your PATH, gem executables will not run.`
<undeadmonk> just do what it says put that path/bin in your env PATH
<MRDPZK> undeadmonk: which file is that. I use fish for shell
<undeadmonk> no file just the path
<undeadmonk> export PATH="$HOME/bin:$PATH"
<MRDPZK> gotcha thanks
<undeadmonk> np
DenKn[m] has joined #ruby
<undeadmonk> anyone familiar with pg segfaulting with a rails db:create?
mikecmpbll has quit [Ping timeout: 265 seconds]
John_Ivan has quit [Quit: Phantom of the future.]
John_Ivan has joined #ruby
<adam12> undeadmonk: Is the pg gem segfaulting or is it postgres?
<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.
nirvdrum_ has joined #ruby
nirvdrum has quit [Read error: Connection reset by peer]
nirvdrum_ has quit [Client Quit]
<MRDPZK> what am I missing that this library doesn't install? https://www.irccloud.com/pastebin/DbidGyTr/w.log
<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
nirvdrum has joined #ruby
<weaksauce> MRDPZK did you look in the log file?
<MRDPZK> Yeah the file doesn’t exist
<weaksauce> net/ftp should be a basic gem in the stdlib
<weaksauce> which ruby?
<MRDPZK> I’m rebooting my machine just in case after installing ruby related libs
<MRDPZK> You mean which version?
<weaksauce> yeah
<MRDPZK> 3.1.2p20
<weaksauce> /tmp/bundler20220921-469228-n4f3xnnokogiri-1.8.5/extensions/x86_64-linux/3.1.0/nokogiri-1.8.5/gem_make.out
<weaksauce> what about that?
<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.
<MRDPZK> To which version should i upgrade to
desnudopenguino1 has joined #ruby
<MRDPZK> Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
<MRDPZK> Installing nokogiri 1.8.5 with native extensions
<MRDPZK> /usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20220921-5581-6id35u.rb extconf.rb
<MRDPZK> current directory: /tmp/bundler20220921-5581-poz6mhnokogiri-1.8.5/gems/nokogiri-1.8.5/ext/nokogiri
MRDPZK has quit [Excess Flood]
desnudopenguino has quit [Ping timeout: 244 seconds]
desnudopenguino1 is now known as desnudopenguino
plujon has joined #ruby
hrberg has quit [Ping timeout: 268 seconds]
nirvdrum has quit [Quit: nirvdrum]
<undeadmonk> adam12: yeah that is what i suspect
<undeadmonk> adam12: any way to force it in rvm
MRDPZK has joined #ruby
moldorcoder7 has quit [Read error: Connection reset by peer]
<adam12> undeadmonk: Maybe? What command are you running that triggers the error? what is your ruby version?
<adam12> bbiab
moldorcoder7 has joined #ruby
<undeadmonk> 2.7.3 ruby by rvm / pg 1.2.3
<undeadmonk> do a bundle install and all good but segfaults with rails db:create
<weaksauce> you doing a bundle exec rails db:create?
<undeadmonk> no just rails db:create
<undeadmonk> same error tho
nirvdrum has joined #ruby
nirvdrum has quit [Client Quit]
<MRDPZK> just fixed it
<adam12> undeadmonk: `bundle pristine pg` and retry maybe?
<adam12> MRDPZK: how?
<axisys> how to add variable into a key? hash[:db.#{var}.com] = "blah" does not work
<adam12> axisys: hash["db.#{var}.com".to_sym] = "blah"
<axisys> Ah.. thanks
CalimeroTeknik has quit [Ping timeout: 268 seconds]
CalimeroTeknik has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Sankalp has quit [Ping timeout: 252 seconds]
Sankalp has joined #ruby
<MRDPZK> needed to do gem github-markup
<MRDPZK> and that was it
_ht has joined #ruby
sgt_chuckles has joined #ruby
archsinner has joined #ruby
eddof13 has joined #ruby
sgt_chuckles has quit [Quit: Client closed]
sgt_chuckles has joined #ruby
jtperreault has joined #ruby
_ht has quit [Remote host closed the connection]
dorian_ is now known as dorian
ur5us has joined #ruby
mikecmpbll has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
sgt_chuckles has quit [Quit: Client closed]
<undeadmonk> adam12: think i found my problem here https://github.com/rvm/rvm/issues/5209
archsinner has quit [Quit: archsinner]
archsinner has joined #ruby
<scottgy> I'm trying to generate a string from a CSV object (https://ruby-doc.org/stdlib-2.6.3/libdoc/csv/rdoc/CSV.html) and for some reason this seems frustratingly difficult. Is this possible?
<weaksauce> scottgy readlines? not do it for you
<weaksauce> something like the_csv.readlines.map {|line| line.join(",")}.join("\n")
<sam113101> hold on, number.digits isn't even guarantueed to be in the correct order?
archsinner has quit [Quit: archsinner]
<leftylink> I have always seen digits to be in the correct order
<sam113101> [33] pry(main)> 123456789.digits
<sam113101> => [9, 8, 7, 6, 5, 4, 3, 2, 1]
<leftylink> that looks right
<sam113101> so it's in reverse
eron has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<scottgy> weaksauce: I dunno, if I'm having to join on ',' why am I even using a CSV object?
undeadmonk has quit [Quit: Lost terminal]
<weaksauce> yeah it's not ideal since parsing valid csv is tricky
<legit> https://github.com/rubycocos/csvreader has been mentioned in the mailing list, perhaps it can be of use
<leftylink> pandabot: rb c = CSV.new("foo,0\nbar,1\nbaz,2"); CSV.generate { |g| c.each { |r| g << r } }
<pandabot> stderr: -e:2:in `<main>': uninitialized constant CSV (NameError) - exit 1 - https://carc.in/#/r/dsr3
<leftylink> pandabot: rb require 'csv'; c = CSV.new("foo,0\nbar,1\nbaz,2"); CSV.generate { |g| c.each { |r| g << r } }
<pandabot> "foo,0\nbar,1\nbaz,2\n" - https://carc.in/#/r/dsr4
<leftylink> eh... not the easiest, would like a to_s
<leftylink> I guess I could refine it onto CSV
<gr33n7007h> scottgy: csv_object.to_io.string
<gr33n7007h> sam113101: #digits uses LSD, that's why
<weaksauce> what's the actual class on that CSV object scottgy
<gr33n7007h> weaksauce: yep, that's actually a valid point!
<weaksauce> if it's a table it does have to_s built in.
<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
<weaksauce> or the to_io trick
<gr33n7007h> scottgy: ^
dionysus69 has quit [Ping timeout: 265 seconds]
<sam113101> gr33n7007h: LSD? the drug?
<gr33n7007h> sam113101: least significant digit
<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, ...
ua_ has quit [Ping timeout: 250 seconds]
<sam113101> I wish '/' wouldn't do rounding division by default
Rounin has quit [Ping timeout: 244 seconds]
teclator has joined #ruby
nirvdrum has joined #ruby
eron has quit [Quit: Client closed]
teclator has quit [Remote host closed the connection]
nirvdrum has quit [Quit: nirvdrum]
reset has joined #ruby
joast has joined #ruby
robotmay_ has quit [Ping timeout: 250 seconds]
hightower2 has joined #ruby
robotmay has joined #ruby
archsinner has joined #ruby