summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@idaemons.org>2023-02-24 17:37:00 +0900
committergit <svn-admin@ruby-lang.org>2023-02-24 11:48:08 +0000
commit5d5ff6e5eda887b39691db4db58ac1c2c3a1f8d9 (patch)
tree34faf437b3fe0ff1d4ef3e576d37b20399591640 /lib
parent454ac4cbb22fdae44a75cef1412693e4fb526630 (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.rb2
-rw-r--r--lib/set/set.gemspec2
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