diff options
author | Akinori MUSHA <knu@idaemons.org> | 2023-02-24 17:37:00 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-02-24 11:48:08 +0000 |
commit | 5d5ff6e5eda887b39691db4db58ac1c2c3a1f8d9 (patch) | |
tree | 34faf437b3fe0ff1d4ef3e576d37b20399591640 /lib | |
parent | 454ac4cbb22fdae44a75cef1412693e4fb526630 (diff) |
[ruby/set] Set#merge does not take keyword arguments as a Hash
https://github.com/ruby/set/commit/ca1c9532a9
Diffstat (limited to 'lib')
-rw-r--r-- | lib/set.rb | 2 | ||||
-rw-r--r-- | lib/set/set.gemspec | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/set.rb b/lib/set.rb index 9140d024cf..95dd9217b1 100644 --- a/lib/set.rb +++ b/lib/set.rb @@ -598,7 +598,7 @@ class Set # Merges the elements of the given enumerable objects to the set and # returns self. - def merge(*enums) + def merge(*enums, **nil) enums.each do |enum| if enum.instance_of?(self.class) @hash.update(enum.instance_variable_get(:@hash)) diff --git a/lib/set/set.gemspec b/lib/set/set.gemspec index 0def52e859..1e83287420 100644 --- a/lib/set/set.gemspec +++ b/lib/set/set.gemspec @@ -8,7 +8,7 @@ Gem::Specification.new do |spec| spec.description = %q{Provides a class to deal with collections of unordered, unique values} spec.homepage = "https://github.com/ruby/set" spec.licenses = ["Ruby", "BSD-2-Clause"] - spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") + spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0") spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = spec.homepage |