Skip to content

Replace HeaderDowncaser with Hash#transform_keys #1015

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

Conversation

notapatch
Copy link
Contributor

VCR dropping support for Ruby 2.4 allows a VCR specific module, HeaderDowncaser, to be replaced by a Ruby standard library call Hash#transform_keys.

I didn't find any unit tests specific to the module but the support module was used throughout the RSpec test suite.

Reference

Ruby 2.5 introduced Hash#transform_keys
https://docs.ruby-lang.org/en/3.2/NEWS/NEWS-2_5_0.html

Close: #1012

VCR dropping support for Ruby 2.4 allows a VCR specific module,
HeaderDowncaser, to be replaced by a Ruby standard library call
Hash#transform_keys.

I didn't find any unit tests specific to the module but the
support module was used throughout the RSpec test suite.

Reference

Ruby 2.5 introduced Hash#transform_keys
https://docs.ruby-lang.org/en/3.2/NEWS/NEWS-2_5_0.html

Close: vcr#1012
Copy link
Member

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

Thanks, @notapatch 🙏 Good one!

@olleolleolle olleolleolle merged commit 40f1246 into vcr:master Feb 21, 2024
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.

tests: Drop module HeaderDowncaser and use Hash#transform_keys instead
2 participants