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
hightower3 has quit [Remote host closed the connection]
hightower3 has joined #ruby
markong has quit [Ping timeout: 265 seconds]
reset has joined #ruby
Mikaela has quit [Ping timeout: 258 seconds]
Mikaela has joined #ruby
moldorcoder7 has quit [Ping timeout: 246 seconds]
ur5us has quit [Ping timeout: 244 seconds]
nirvdrum has joined #ruby
ur5us has joined #ruby
fef has joined #ruby
ur5us has quit [Remote host closed the connection]
nirvdrum has quit [Quit: nirvdrum]
ur5us has joined #ruby
nirvdrum has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
nirvdrum has joined #ruby
Sankalp has quit [Ping timeout: 265 seconds]
Sankalp has joined #ruby
fef has quit [Ping timeout: 258 seconds]
fef has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
nirvdrum has quit [Quit: nirvdrum]
nirvdrum has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
Vonter has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
nirvdrum has joined #ruby
fef has quit [Ping timeout: 258 seconds]
hightower2 has joined #ruby
hightower3 has quit [Ping timeout: 246 seconds]
fef has joined #ruby
fef has quit [Client Quit]
<tsujp> I have a single ruby file with a method `def fetch ... end` in it and a `class Grist` with it's own `def self.fetch ... end` in it. I want calling `Grist.fetch(...)` to defer to the "generic" fetch in that file but calling `fetch` inside the Grist class' `self.fetch` results in infinite recursion
<tsujp> Easily fixed if I rename the generic fetch to like `def g_fetch ... end` but.. that's ugly. Putting all this in a module seems verbose too? It's just a little thingo for me (paste incoming)
<tsujp> Line 61 has the thing in question (it's really simple Ruby code I imagine): https://gist.github.com/tsujp/722447ab685f3e83b2f1fcb77a5d5221
<leftylink> pandabot rb def samename; :good end; class C def self.samename; Object.send(:samename) end end; C.samename
<pandabot> :good - https://carc.in/#/r/dszh
<leftylink> I guess?????????????????
nirvdrum has quit [Quit: nirvdrum]
aeris has quit [Ping timeout: 258 seconds]
<tsujp> But I am trying to call to the global scope `fetch` not the current classes one
<tsujp> I tried `::fetch` which doesn't work either
<leftylink> the top-level one is called by Object.send(:samename), which the above demonstrated already
_aeris_ has joined #ruby
<tsujp> Ah whoops misread it sorry
<tsujp> Call the class method which calls the top-level.. I didn't realise it'd be on `Object` by default
<tsujp> Is that where all "unclassed" methods are?
<leftylink> well I think it has to be
<leftylink> pandabot: rb def f; end; method(:f).owner
<pandabot> Object - https://carc.in/#/r/dszi
<leftylink> I didn't know that before today. I am learning it for the first time
jpn has joined #ruby
jpn has quit [Ping timeout: 265 seconds]
zoknert has joined #ruby
zoknert has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
zoknert has joined #ruby
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 244 seconds]
zoknert has quit [Ping timeout: 252 seconds]
sympt has quit [Read error: Connection reset by peer]
zoknert has joined #ruby
zoknert has quit [Ping timeout: 265 seconds]
zoknert has joined #ruby
zoknert has quit [Ping timeout: 252 seconds]
kristianpaul has quit [Read error: Connection reset by peer]
kristianpaul has joined #ruby
jpn has joined #ruby
skuntee4 has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
skuntee4 has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
skuntee4 has joined #ruby
scuntee5 has joined #ruby
skuntee4 has quit [Ping timeout: 260 seconds]
scuntee5 has quit [Ping timeout: 252 seconds]
skuntee4 has joined #ruby
_ht has joined #ruby
scuntee5 has joined #ruby
scuntee5 has quit [Client Quit]
skuntee4 has quit [Ping timeout: 246 seconds]
hrberg has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
yxhuvud has quit [Remote host closed the connection]
jpn has quit [Ping timeout: 260 seconds]
hrberg has joined #ruby
yxhuvud has joined #ruby
dionysus69 has joined #ruby
skuntee4 has joined #ruby
scuntee5 has joined #ruby
skuntee4 has quit [Ping timeout: 265 seconds]
scuntee5 has quit [Read error: Connection reset by peer]
skuntee4 has joined #ruby
markong has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
skuntee4 has quit [Read error: Connection reset by peer]
rvalue has quit [Ping timeout: 260 seconds]
shokohsc has quit [Read error: Connection reset by peer]
shokohsc has joined #ruby
<georgemp> Hi. I have a gem installed in my home folders .gem/ruby/3.1.2/bin. I'm not sure how it got there. I've been trying various means of installing it :) Recently, I installed rvm. Anyway, `gem uninstall gemname` says it's not installed. `which gemname` however shows it in that folder. How would I go about uninstalling this? Thanks
_ht has quit [Quit: _ht]
_ht has joined #ruby
<havenwood> georgemp: You can tell RubyGems where to arbitrarily delete gems or gem bin with `--install-dir DIR` and `--bindir DIR` flags for `gem uninstall` or you can nuke the directory from orbit.
<georgemp> `gem uninstall s3_website --install-dir /Users/georgemp/.gem/ruby/3.1.2/gems/s3_website-3.4.0 --bindir /Users/georgemp/.gem/ruby/3.1.2/bin` still syas s3_website is not installed. I can just safely delete the bin and s3_website-3.4.0 from the gems dir?
<sam113101> guys I've got a problem
Sankalp has quit [Ping timeout: 265 seconds]
skuntee4 has joined #ruby
skuntee4 has quit [Client Quit]
hightower3 has quit [Remote host closed the connection]
hightower3 has joined #ruby
rvalue has joined #ruby
Sankalp has joined #ruby
rvalue has quit [Client Quit]
rvalue has joined #ruby
jpn has joined #ruby
<aesthetikx> sam113101: yes?
<georgemp> is it safe to nuke `.gem` in my home folder? It seems like when I do a gem install now, it goes into .rvm/gems/ruby-3.1.2/ . My prior installs seem to be in .gem/ruby/3.x - I figure it might just be easier to start from a clean slate
<georgemp> on macOS if that makes a difference :)
<aesthetikx> also, "print 'dont have a thing' or exit unless have_a_thing?" works, but seems odd because I use or instead of the more natural sounding and, but puts returns nil, and thus here we are. Is there a more perl-esque way to do this?
<aesthetikx> georgemp, I don't know exactly but my thought process would be to leave it unless you think it is causing problems; if it is, you could just move it to a folder named gem_backup or something in case it breaks anything, but I would say yeah if you have RVM then your hoem .gem shouldn't matter
<aesthetikx> system ruby stuff would be installed elsewhere so that shoulld be fine
<aesthetikx> my .gem is basically empty, for example
<georgemp> aesthetikx: that sounds like a better idea..i'll move it to a .bak
<aesthetikx> :thumbs_up_emoji:
betas8 has joined #ruby
protektwar has quit [Ping timeout: 252 seconds]
betas8 has quit [Remote host closed the connection]
victori has quit [Ping timeout: 260 seconds]
zoknert has joined #ruby
jpn has quit [Ping timeout: 265 seconds]
<georgemp> i've forked a gem (s3_website) and am trying to install it from my local fork. I'm trying `gem install s3_website -s file://path/to/local/fork/s3_website`. While the gem installs, it seems to be the previous version. How would I get it to pick up my latest changes? I've committed and tagged them in git (locally)
<georgemp> pushing to github also doesn't seem to make a difference. Is there something I need to do to mark this tag as the default one to be used?
RetroPunk has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
protektwar has joined #ruby
protektwar has joined #ruby
RetroPunk has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 265 seconds]
zoknert has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
<aesthetikx> cd into that directory,
<aesthetikx> and then you should see a .gemspec
<aesthetikx> (you may have to gem uninstall s3_website first)
<aesthetikx> and the you should be able to do like gem build s3_website.gemspec
<aesthetikx> and then you should see a new .gem file
<aesthetikx> and then you can gem instal whatever-xyz.gem
<aesthetikx> georgemp
<aesthetikx> if you are talking about the actual numeric version, you would have to update the gem version in the .gemspec file, which likely pulls (by convention) from like lib/s3_website/version.rb or something
jpn has quit [Ping timeout: 246 seconds]
<aesthetikx> also, I figured out 'abort "Dont have a thing" unless have_a_thing?' / 'have_a_thing? or abort "Dont have a thing"' reads nice.
markong has quit [Ping timeout: 246 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
markong has joined #ruby
jpn has joined #ruby
zoknert has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
sagax has quit [Ping timeout: 264 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 244 seconds]
zoknert has quit [Ping timeout: 264 seconds]
zoknert has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
John_Ivan has quit [Quit: Phantom of the future.]
John_Ivan has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
sagax has joined #ruby
John_Ivan has quit [Quit: Phantom of the future.]
John_Ivan has joined #ruby
matoro has quit [Quit: ZNC 1.8.2 - https://znc.in]
matoro has joined #ruby
matoro has joined #ruby
matoro has quit [Changing host]
wnd has quit [Quit: Caught sigterm, terminating...]
jetchisel has quit [Ping timeout: 268 seconds]
jetchisel has joined #ruby
wnd has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
plujon has joined #ruby
gordea has joined #ruby
skuntee4 has joined #ruby
hightower3 has quit [Remote host closed the connection]
jpn has joined #ruby
hightower2 has joined #ruby
Neopolitan has quit [Quit: Ping timeout (120 seconds)]
markong has quit [Ping timeout: 246 seconds]
victori has joined #ruby
Neopolitan has joined #ruby
nirvdrum has joined #ruby
ur5us has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
protektwar has quit [Ping timeout: 252 seconds]
jpn has quit [Ping timeout: 265 seconds]
hightower2 has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 246 seconds]
Pixi has quit [Quit: Leaving]
skuntee4 has quit [Ping timeout: 252 seconds]
Mikaela has quit [Remote host closed the connection]
Mikaela has joined #ruby
Pixi has joined #ruby
_ht has quit [Remote host closed the connection]
skuntee4 has joined #ruby
victori has quit [Read error: Connection reset by peer]
weyhmueller_ has quit [Quit: ZNC 1.8.2 - https://znc.in]
weyhmueller has joined #ruby
szkl has quit [Quit: Connection closed for inactivity]
gordea has quit [Quit: gordea]
markong has joined #ruby
ur5us has joined #ruby
desnudopenguino has quit [Read error: Connection reset by peer]
desnudopenguino has joined #ruby
moldorcoder7 has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
pandabot has quit [Quit: check]
John_Ivan has quit [Quit: Phantom of the future.]
pandabot has joined #ruby
duds- has joined #ruby
pandabot has quit [Remote host closed the connection]
Al2O3 has joined #ruby
pandabot has joined #ruby
plujon has quit [Quit: ERC (IRC client for Emacs 27.1)]
pandabot has quit [Remote host closed the connection]
pandabot has joined #ruby
pandabot has quit [Remote host closed the connection]
pandabot has joined #ruby
pandabot has quit [Remote host closed the connection]
pandabot has joined #ruby
pandabot has quit [Remote host closed the connection]
pandabot has joined #ruby
pandabot has quit [Client Quit]
pandabot has joined #ruby