-
Notifications
You must be signed in to change notification settings - Fork 0
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
Using Addressable to parse URI #5
Conversation
Gemfile
Outdated
@@ -27,3 +27,5 @@ end | |||
gem "rails", rails | |||
|
|||
gem "an_engine", path: "./spec/an_engine" | |||
|
|||
gem "addressable" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this to https://github.com/openstax/path_prefixer/blob/master/path_prefixer.gemspec? Otherwise bundler will not bundle it correctly. Use s.add_dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -18,7 +18,7 @@ def _compute_redirect_to_location(request, options) #:nodoc: | |||
already_has_prefix = options.match(/^#{request.script_name}/) | |||
|
|||
unless already_has_prefix | |||
options_uri = URI(options) | |||
options_uri = Addressable::URI.parse(options) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
require 'addressable/uri'
at the top (gemspec does not load dependencies automatically)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
No description provided.