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)
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.