summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-09-04 21:44:52 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2022-09-04 21:45:13 -0700
commit277498e2a2b62b564e3d39ca54aa15b6e8a2c41a (patch)
treeca824ed847d5e3cee9af1a761c0b87a08cb61f98 /lib
parent4d469472e2fda05cbdef98ce2a1fe945f2355f51 (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/endpoint_specification.rb2
1 files changed, 1 insertions, 1 deletions
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
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) }