Skip to content

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