summaryrefslogtreecommitdiff
path: root/spec/bundler/runtime
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-07-27 15:17:48 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-07-28 14:57:10 +0900
commit35517baae5a1bb5fa77771f7d465d0bf40c96a5d (patch)
treec7e3ea8e7359e39dee356b3049839c3d2d99ffa8 /spec/bundler/runtime
parent989f3add62f45d6bf0250810c3c14e2bf22ddb78 (diff)
Use Gem::BUNDLED_GEMS::SINCE
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8126
Diffstat (limited to 'spec/bundler/runtime')
-rw-r--r--spec/bundler/runtime/setup_spec.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/spec/bundler/runtime/setup_spec.rb b/spec/bundler/runtime/setup_spec.rb
index 8901477e07..e98d462ee6 100644
--- a/spec/bundler/runtime/setup_spec.rb
+++ b/spec/bundler/runtime/setup_spec.rb
@@ -1567,9 +1567,9 @@ end
G
ruby <<-R
- module Gem
- remove_const :BUNDLED_GEMS if defined?(BUNDLED_GEMS)
- BUNDLED_GEMS = { "csv" => "1.0.0" }
+ Gem.send(:remove_const, :BUNDLED_GEMS) if defined?(Gem::BUNDLED_GEMS)
+ module Gem::BUNDLED_GEMS
+ SINCE = { "csv" => "1.0.0" }
end
require 'bundler/setup'
require 'csv'
@@ -1589,9 +1589,9 @@ end
G
ruby <<-R
- module Gem
- remove_const :BUNDLED_GEMS if defined?(BUNDLED_GEMS)
- BUNDLED_GEMS = { "csv" => "1.0.0" }
+ Gem.send(:remove_const, :BUNDLED_GEMS) if defined?(Gem::BUNDLED_GEMS)
+ module Gem::BUNDLED_GEMS
+ SINCE = { "csv" => "1.0.0" }
end
require 'csv'
require 'bundler/setup'
@@ -1612,9 +1612,9 @@ end
G
ruby <<-R
- module Gem
- remove_const :BUNDLED_GEMS if defined?(BUNDLED_GEMS)
- BUNDLED_GEMS = { "csv" => "1.0.0" }
+ Gem.send(:remove_const, :BUNDLED_GEMS) if defined?(Gem::BUNDLED_GEMS)
+ module Gem::BUNDLED_GEMS
+ SINCE = { "csv" => "1.0.0" }
end
require 'bundler/setup'
require 'csv'
@@ -1637,9 +1637,9 @@ end
G
ruby <<-R
- module Gem
- remove_const :BUNDLED_GEMS if defined?(BUNDLED_GEMS)
- BUNDLED_GEMS = { "csv" => "1.0.0", "net-imap" => "0.0.1" }
+ Gem.send(:remove_const, :BUNDLED_GEMS) if defined?(Gem::BUNDLED_GEMS)
+ module Gem::BUNDLED_GEMS
+ SINCE = { "csv" => "1.0.0", "net-imap" => "0.0.1" }
end
require 'bundler/setup'
begin