Skip to content

partially backported spec change of Hash#transform_keys! #833

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2021

Conversation

nagachika
Copy link
Member

I backported the change of Hash#transform_keys! into ruby_3_0.

https://bugs.ruby-lang.org/issues/17735

This PR should stop the test-spec failures on RubyCI.
see the commits below too.

ruby/ruby@31e0382
ruby/ruby@84d9a9a

@@ -84,7 +84,7 @@
end
end

ruby_version_is "2.5.1" do
ruby_version_is "2.5.1"..."3.0" do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be 3.0.1 (also below) since 3.0.0 behaves likes 2.5.1 and the result is {:b=>1, :c=>2}.
I'll push a commit to do that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it's even 3.0.2 it seems.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right! Thank you for your additional fix.

Copy link
Member

@eregon eregon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@eregon eregon merged commit 07b95bf into master Apr 15, 2021
@eregon eregon deleted the hash_transform_keys_change_on_break_in_block_3_0 branch April 15, 2021 09:50
nagachika added a commit to nagachika/ruby that referenced this pull request Apr 18, 2021
	spec/ruby/core/hash/transform_keys_spec.rb: Fix the failure of
	 ruby_3_0

	ruby/spec#833
	ruby/spec@8290e5a
	---
	 spec/ruby/core/hash/transform_keys_spec.rb | 4 ++--
	 1 file changed, 2 insertions(+), 2 deletions(-)
nagachika added a commit to nagachika/ruby that referenced this pull request Apr 18, 2021
	spec/ruby/core/hash/transform_keys_spec.rb: Fix the failure of
	 ruby_3_0

	ruby/spec#833
	ruby/spec@8290e5a
	---
	 spec/ruby/core/hash/transform_keys_spec.rb | 4 ++--
	 1 file changed, 2 insertions(+), 2 deletions(-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants