-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ruby 2.5 has removed the normalization of multiple slashes in URLs, so you can get 301 redirect errors if you run for example `Model.get('/batch/id')`. ``` 2.4 > URI.parse("http://example.org").merge('people//batch///id') => #<URI::HTTP http://example.org/people/batch/id> ^ ^ ``` ``` 2.5 > URI.parse("http://example.org").merge('people//batch///id') => #<URI::HTTP http://example.org/people//batch///id> ^^ ^^^ ``` In Hawk's use case, it should be safe to assume that paths should be squeezed, but since this can be considered a breaking change, this commit also bumps the major version number Ref: https://bugs.ruby-lang.org/issues/8352
- Loading branch information
Showing
4 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.byebug_history | ||
/.bundle/ | ||
/.yardoc | ||
/coverage/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Hawk | ||
VERSION = '2.0.0' | ||
VERSION = '3.0.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters