Bacon_Rack 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,7 @@ module Bacon_Rack
29
29
 
30
30
  status.should.include last_response.status
31
31
 
32
- last_response['Location'].sub(File.join(last_request.env['SERVER_NAME'],'/'), '/')
32
+ last_response['Location'].sub(File.join(last_request.env['SERVER_NAME'],'/'), '/').sub(%r!https?:///!, '/')
33
33
  .should == path
34
34
  end
35
35
 
@@ -1 +1 @@
1
- Bacon_Rack_Version = "0.2.1"
1
+ Bacon_Rack_Version = "0.2.2"
@@ -29,7 +29,7 @@ describe ":redirects_to" do
29
29
  end
30
30
 
31
31
  it "ignores SERVER_NAME in location header" do
32
- last_request.env['SERVER_NAME'] = "http://random.org/"
32
+ last_request.env['SERVER_NAME'] = "random.org/"
33
33
  last_response.status = 301
34
34
  last_response['Location'] = "http://random.org/new"
35
35
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Bacon_Rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: