Merge pull request #511 from koic/suppress_kwargs_warning_for_ruby_2_7_0

Suppress keyword arguments warning for Ruby 2.7.0
This commit is contained in:
Daniel Doubrovkine (dB.) @dblockdotorg 2020-01-15 15:58:43 -05:00 committed by GitHub
commit ac15574582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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])