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

Moves UserAgent into Sinatra::UserAgentHelper namespace to fix collisions with other libraries #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anglinb
Copy link

@anglinb anglinb commented Jun 26, 2017

Previously the UserAgent class in the lib/sinatra/support/useragenthelpers.rb file was not included in the Sinatra::UserAgentHelpers namespace which caused collisions in other libraries. Most recently, the lack of namespace cause issues with twitter/secureheaders: Issue 335

I simply moved the UserAgent class into the namespace. I ran the tests and they passed. The UserAgent class is actually only ever used in the lib/sinatra/support/useragenthelpers.rb file so this should be a non-breaking change for most usages of this library.

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.

1 participant