rack-canonical-host 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## Rack::CanonicalHost 0.0.8
4
+
5
+ * Switch to `Addressable::URI` for URI parsing
6
+
3
7
  ## Rack::CanonicalHost 0.0.7
4
8
 
5
9
  * Fix an issue handling URLs containing `|` characters
@@ -1,3 +1,5 @@
1
+ require 'addressable/uri'
2
+
1
3
  module Rack
2
4
  class CanonicalHost
3
5
  class Redirect
@@ -43,7 +45,7 @@ module Rack
43
45
  private :new_url
44
46
 
45
47
  def request_uri
46
- URI.parse(Rack::Request.new(@env).url.gsub('|', '%7C'))
48
+ Addressable::URI.parse(Rack::Request.new(@env).url)
47
49
  end
48
50
  private :request_uri
49
51
  end
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class CanonicalHost
3
- VERSION = '0.0.7'
3
+ VERSION = '0.0.8'
4
4
  end
5
5
  end
@@ -7,6 +7,7 @@ Gem::Specification.new do |gem|
7
7
  gem.homepage = 'http://github.com/tylerhunt/rack-canonical-host'
8
8
  gem.author = 'Tyler Hunt'
9
9
 
10
+ gem.add_dependency 'addressable'
10
11
  gem.add_dependency 'rack', '~> 1.0'
11
12
  gem.add_development_dependency 'rspec', '~> 2.0'
12
13
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-canonical-host
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-21 00:00:00.000000000 Z
12
+ date: 2012-06-22 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: addressable
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
14
30
  - !ruby/object:Gem::Dependency
15
31
  name: rack
16
32
  requirement: !ruby/object:Gem::Requirement