diff options
author | Hiroshi SHIBATA <[email protected]> | 2020-12-08 16:33:39 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2020-12-08 17:30:02 +0900 |
commit | 4aca77edde91f826aa243e268bf1ef5214530583 () | |
tree | ef0cf1a95fcced00ca5fa40f3412c567bf95d705 /lib/rubygems/request_set/gem_dependency_api.rb | |
parent | 6a6a24df9b72750d12f9b15192bdb7517e668efb (diff) |
Merge prepare version of RubyGems 3.2.0
Notes: Merged: https://.com/ruby/ruby/pull/3864
-rw-r--r-- | lib/rubygems/request_set/gem_dependency_api.rb | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -88,7 +88,7 @@ class Gem::RequestSet::GemDependencyAPI :truffleruby => Gem::Platform::RUBY, :x64_mingw => x64_mingw, :x64_mingw_20 => x64_mingw, - :x64_mingw_21 => x64_mingw }.freeze gt_eq_0 = Gem::Requirement.new '>= 0' @@ -379,7 +379,7 @@ class Gem::RequestSet::GemDependencyAPI Gem::Requirement.create requirements end - return unless gem_platforms options groups = gem_group name, options @@ -532,7 +532,7 @@ Gem dependencies file #{@path} includes git reference for both ref/branch and ta # Handles the platforms: option from +options+. Returns true if the # platform matches the current platform. - def gem_platforms(options) # :nodoc: platform_names = Array(options.delete :platform) platform_names.concat Array(options.delete :platforms) platform_names.concat @current_platforms if @current_platforms @@ -543,7 +543,7 @@ Gem dependencies file #{@path} includes git reference for both ref/branch and ta raise ArgumentError, "unknown platform #{platform_name.inspect}" unless platform = PLATFORM_MAP[platform_name] - next false unless Gem::Platform.match platform if engines = ENGINE_MAP[platform_name] next false unless engines.include? Gem.ruby_engine |