diff options
author | Daniel Doubrovkine (dB.) @dblockdotorg <dblock@dblock.org> | 2020-01-15 15:58:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-15 15:58:43 -0500 |
commit | ac155745825af0fbb1b46c38f1d2f903e6e04fb1 (patch) | |
tree | 3d5166f9ecac0d882160fef3b55f80c88bb0964b | |
parent | eb69c58b627379568d0c7dfc73eead42c5f1f140 (diff) | |
parent | 570409727e6ce02db3ad39579c49dcc73769ebc2 (diff) | |
download | hashie-ac155745825af0fbb1b46c38f1d2f903e6e04fb1.tar.gz |
Merge pull request #511 from koic/suppress_kwargs_warning_for_ruby_2_7_0
Suppress keyword arguments warning for Ruby 2.7.0
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | spec/hashie/extensions/mash/symbolize_keys_spec.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index ec6b19f..8f1a5a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ scheme are considered to be bugs. * [#508](https://github.com/hashie/hashie/pull/508): Fixed `Hashie::Extensions::DeepMerge` `#deep_merge` not correctly dup'ing sub-hashes if active_support hash extensions were not present - [@bobbymcwho](https://github.com/bobbymcwho). * [#500](https://github.com/hashie/hashie/pull/500): Do not warn when setting Mash keys that look like underbang, bang, and query methods - [@michaelherold](https://github.com/michaelherold). * [#510](https://github.com/hashie/hashie/pull/510): Ensure that `Hashie::Mash#compact` is only defined on Ruby version >= 2.4.0 - [@bobbymcwho](https://github.com/bobbymcwho). +* [#511](https://github.com/hashie/hashie/pull/511): Suppress keyword arguments warning for Ruby 2.7.0 - [@koic](https://github.com/koic). * Your contribution here. ### Security diff --git a/spec/hashie/extensions/mash/symbolize_keys_spec.rb b/spec/hashie/extensions/mash/symbolize_keys_spec.rb index 1e52534..9846737 100644 --- a/spec/hashie/extensions/mash/symbolize_keys_spec.rb +++ b/spec/hashie/extensions/mash/symbolize_keys_spec.rb @@ -26,7 +26,7 @@ RSpec.describe Hashie::Extensions::Mash::SymbolizeKeys do end let(:instance) { my_mash.new('outer' => { 'inner' => 42 }, 'testing' => [1, 2, 3]) } - subject { destructure.call(instance) } + subject { destructure.call(**instance) } it 'is converted on method calls' do expect(subject).to eq(outer: { inner: 42 }, testing: [1, 2, 3]) |