asdf-ruby icon indicating copy to clipboard operation
asdf-ruby copied to clipboard

Specify default gem location

Open quintrino opened this issue 5 years ago • 6 comments

At the moment the default-gems file has to be stored in the $HOME directory. I'm wondering if it's possible to make this location customisable, either following the XDG format or via a custom enviroment variable such as ASDF_RUBY_DEFAULT_GEMS_PATH.

quintrino avatar Apr 01 '19 21:04 quintrino

@quintrino I've opened #114 with a change that might work for you. It's not completely configurable to allow arbitrary paths, but it means that as I store my asdf config at $XDG_CONFIG_HOME/asdf-vm/asdfrc I can now store my default gem list at $XDG_CONFIG_HOME/asdf-vm/default-gems

rodjek avatar Apr 18 '19 00:04 rodjek

Amazing. Thanks so much!

quintrino avatar Apr 18 '19 00:04 quintrino

Hmm, I just tested this by installing ruby 2.5.1 and then running ASDF_RUBY_VERSION=2.5.1 pry and it didn't seem to work.

Are there steps you'd recommend for me to try and better understand why it doesn't install the default gems list?

quintrino avatar May 23 '19 07:05 quintrino

Hi @rodjek just checking if you're planning on merging in #114 ?

I suspect last time I may have still been using the master version asdf-ruby, rather than the correct branch.

quintrino avatar Oct 31 '19 01:10 quintrino

@quintrino I don't have merge rights on the project

rodjek avatar Oct 31 '19 07:10 rodjek

@Stratus3D just wanted to check if you'd consider merging #114 ?

quintrino avatar Apr 03 '20 00:04 quintrino

Sorry for the late reply here 😆 . I think this has been solved by #212

Stratus3D avatar Mar 20 '24 18:03 Stratus3D