Skip to content
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

Don't use deprecated Rack::VERSION in Rack 3 #1049

Merged

Conversation

etiennebarrie
Copy link
Contributor

When I upgraded Rack, I got a few deprecation warnings regarding the usage of Rack::VERSION in lib/webmock/rack_response.rb.

This conditionally adds the key to the Rack environment, since not only it's no longer required but it's also deprecated.

I also added a commit to enable deprecation warnings by default, it's not something that RSpec does but it can be useful like in this case. Let me know (or just remove that commit) if you'd rather not have that.

@bblimke
Copy link
Owner

bblimke commented Feb 19, 2024

Thank you @etiennebarrie . I appreciate the fix and enabling deprecation warning by default in webmock specs.

@bblimke bblimke merged commit 37c9de9 into bblimke:master Feb 19, 2024
8 checks passed
@etiennebarrie
Copy link
Contributor Author

Thanks for releasing a new version this quickly!

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.

None yet

2 participants