We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8efa3fd commit 5e9ff3fCopy full SHA for 5e9ff3f
lib/patches/rubygems.rb
@@ -17,7 +17,11 @@
17
if Truffle::Boot.get_option 'did_you_mean' and Truffle::Boot.get_option 'rubygems'
18
begin
19
gem 'did_you_mean'
20
- rescue LoadError => e
21
- Truffle::Debug.log_warning "#{File.basename(__FILE__)}:#{__LINE__} #{e.message}"
+ rescue LoadError
+ # Ignore, this happens when GEM_HOME and GEM_PATH are set and do not include
22
+ # the default gem home. In such a case, did_you_mean was loaded already, but
23
+ # it is no longer possible to register the Gem with RubyGems. This happens
24
+ # for instance with 'bundle exec' after `bundle install --deployment`.
25
+ nil
26
end
27
0 commit comments