diff options
author | Takashi Kokubun <[email protected]> | 2022-09-04 21:44:52 -0700 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2022-09-04 21:45:13 -0700 |
commit | 277498e2a2b62b564e3d39ca54aa15b6e8a2c41a (patch) | |
tree | ca824ed847d5e3cee9af1a761c0b87a08cb61f98 /lib/bundler/endpoint_specification.rb | |
parent | 4d469472e2fda05cbdef98ce2a1fe945f2355f51 (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/bundler/endpoint_specification.rb')
-rw-r--r-- | lib/bundler/endpoint_specification.rb | 2 |
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) } |