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

fix: add back a rack-protection.rb file #1814

Merged
merged 2 commits into from Sep 26, 2022
Merged

Conversation

olleolleolle
Copy link
Member

@olleolleolle olleolleolle commented Sep 26, 2022

In order to keep compat with earlier files, this wrapper file is needed.

See omniauth/omniauth#1089

This is a reaction to #1537 (comment) - thanks @mvz !

In order to keep compat with earlier files, this wrapper file is needed.

See omniauth/omniauth#1089
@mvz
Copy link

mvz commented Sep 26, 2022

Thanks for the quick action, @olleolleolle!

@dentarg
Copy link
Member

dentarg commented Sep 26, 2022

I wonder why this is needed 🤔 From the Bundler Slack earlier this year

CA572037-D34A-4A13-81CF-BB16F13DF156

Maybe the extra file is needed for uses without Bundler?

@dentarg
Copy link
Member

dentarg commented Sep 26, 2022

This is similar to rack/rack-session#8

@olleolleolle
Copy link
Member Author

olleolleolle commented Sep 26, 2022

@dentarg Appreciate the sleuthing, the consuming gem had it a bit wrong the whole time. Them requiring rack/protection would be the fix.

But, then again, we could be nice to the world at large, not forcing change upon them.

@mvz
Copy link

mvz commented Sep 26, 2022

@dentarg not all dependencies are auto-loaded through the Gemfile; a gem that uses rack-protection will have to use require "rack-protection" or require "rack/protection" or require "rack_protection".

@mvz
Copy link

mvz commented Sep 26, 2022

This is similar to rack/rack-session#8

Yes, but it's different in the sense that there was a rack-protection.rb file already.

@jkowens
Copy link
Member

jkowens commented Sep 26, 2022

Thanks @olleolleolle. It looks like the test failures are due to breaking changes in Haml 6. I wonder if we should lock that to version 5 in our sinatra-contrib dev dependencies for now? I'm not exactly sure to do with that one. Haml::Buffer was removed.

@jkowens jkowens closed this Sep 26, 2022
@jkowens jkowens reopened this Sep 26, 2022
@jkowens jkowens merged commit 2619255 into sinatra:master Sep 26, 2022
@olleolleolle olleolleolle deleted the patch-4 branch September 26, 2022 13:52
nov added a commit to nov/omniauth-apple that referenced this pull request Oct 9, 2022
nov added a commit to nov/omniauth-apple that referenced this pull request Oct 9, 2022
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

4 participants