[前][次][番号順一覧][スレッド一覧]

ruby-changes:73452

From: David <ko1@a...>
Date: Tue, 6 Sep 2022 17:12:01 +0900 (JST)
Subject: [ruby-changes:73452] 1f77cc3894 (master): [rubygems/rubygems] Fix `set` not being found when running specs on dev rubies

https://git.ruby-lang.org/ruby.git/commit/?id=1f77cc3894

From 1f77cc3894d42b6c063ce640b27ae5bb24bc8b55 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Tue, 6 Sep 2022 06:46:21 +0200
Subject: [rubygems/rubygems] Fix `set` not being found when running specs on
 dev rubies

https://github.com/rubygems/rubygems/commit/c5b2960388
---
 spec/bundler/runtime/inline_spec.rb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/spec/bundler/runtime/inline_spec.rb b/spec/bundler/runtime/inline_spec.rb
index 83f898c4ac..d53e8663a6 100644
--- a/spec/bundler/runtime/inline_spec.rb
+++ b/spec/bundler/runtime/inline_spec.rb
@@ -451,6 +451,9 @@ RSpec.describe "bundler/inline#gemfile" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/runtime/inline_spec.rb#L451
 
     realworld_system_gems "timeout uri" # this spec uses net/http which requires these default gems
 
+    # on prerelease rubies, a required_rubygems_version constraint is added by RubyGems to the resolution, causing Molinillo to load the `set` gem
+    realworld_system_gems "set --version 1.0.3" if Gem.ruby_version.prerelease?
+
     script <<-RUBY, :dir => tmp("path_without_gemfile"), :env => { "BUNDLER_GEM_DEFAULT_DIR" => system_gem_path.to_s }
       require "bundler/inline"
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]