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

ruby-changes:73422

From: Takashi <ko1@a...>
Date: Mon, 5 Sep 2022 13:46:05 +0900 (JST)
Subject: [ruby-changes:73422] 277498e2a2 (master): Attempt to fix test-bundler

https://git.ruby-lang.org/ruby.git/commit/?id=277498e2a2

From 277498e2a2b62b564e3d39ca54aa15b6e8a2c41a Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Sun, 4 Sep 2022 21:44:52 -0700
Subject: Attempt to fix test-bundler

f7cf641469161c3770b58f79e08e312512212aa8 broke spec/bundler/install/gems/resolving_spec.rb:356.
This line seems to impact that test, so I slightly modified the
implementation for that spec's case.
---
 lib/bundler/endpoint_specification.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bundler/endpoint_specification.rb b/lib/bundler/endpoint_specification.rb
index 863544b1f9..f0e7ba2595 100644
--- a/lib/bundler/endpoint_specification.rb
+++ b/lib/bundler/endpoint_specification.rb
@@ -12,7 +12,7 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/endpoint_specification.rb#L12
       super()
       @name         = name
       @version      = Gem::Version.create version
-      @platform     = Gem::Platform.new(platform)
+      @platform     = platform.nil? ? nil : Gem::Platform.new(platform)
       @spec_fetcher = spec_fetcher
       @dependencies = dependencies.map {|dep, reqs| build_dependency(dep, reqs) }
 
-- 
cgit v1.2.1


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

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