diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-05-08 14:19:04 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-05-13 07:54:37 +0900 |
commit | 0e60b59d5884edb8f9aea023efd9b24f1ff02049 (patch) | |
tree | e52935ce510440872ca5ce6b0e092cbc94f18bc9 /spec/bundler/support/switch_rubygems.rb | |
parent | 68224651a4d4dc3ce0cea666f5423dd8b6ba6cfc (diff) |
Update the bundler version with master branch
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3086
Diffstat (limited to 'spec/bundler/support/switch_rubygems.rb')
-rw-r--r-- | spec/bundler/support/switch_rubygems.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/bundler/support/switch_rubygems.rb b/spec/bundler/support/switch_rubygems.rb new file mode 100644 index 0000000000..d3dd685d31 --- /dev/null +++ b/spec/bundler/support/switch_rubygems.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +require_relative "rubygems_version_manager" +RubygemsVersionManager.new(ENV["RGV"]).switch + +if ENV["BUNDLER_SPEC_IGNORE_DEFAULT_BUNDLER_GEM"] + module NoBundlerStubs + def default_stubs(pattern = "*.gemspec") + super(pattern).reject {|s| s.name == "bundler" } + end + end + + Gem::Specification.singleton_class.prepend(NoBundlerStubs) +end |