Open MSP-Greg opened 6 years ago
Using SU 2017 & Windows, gems can be installed to Gem.user_dir. Due to the fact that ENV['GEM_PATH'] is incorrect, they can not be used.
The following code will allow their use:
ENV['GEM_PATH'] = "#{Gem.user_dir}#{File::PATH_SEPARATOR}#{Gem.dir}" Gem.paths = {'GEM_PATH' => "#{Gem.user_dir}#{File::PATH_SEPARATOR}#{Gem.dir}" }
I could list several reasons why I think this would be helpful, and I can't think any reason for not making this change. If there are any, I'd be happy to discuss further.
Thanks, Greg
Logged as SU-38588
I've got a patch that can be used, adds 'defaults' directory to rubygems, then a file named ruby.rb. RubyInstaller builds use operating_system.rb.
ruby.rb
operating_system.rb
Using SU 2017 & Windows, gems can be installed to Gem.user_dir. Due to the fact that ENV['GEM_PATH'] is incorrect, they can not be used.
The following code will allow their use:
I could list several reasons why I think this would be helpful, and I can't think any reason for not making this change. If there are any, I'd be happy to discuss further.
Thanks, Greg