rack-locale_chooser 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,7 +54,7 @@ module Rack::LocaleChooser
54
54
 
55
55
  def url_locale
56
56
  hosts = @options[:host_mappings].invert
57
- hosts["http://#{@request.host}"] if hosts.has_key?("http://#{@request.host}")
57
+ hosts[@request.host] if hosts.has_key?(@request.host)
58
58
  end
59
59
 
60
60
  def cookie_locale
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module LocaleChooser
3
- VERSION = "0.0.12"
3
+ VERSION = "0.0.13"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-locale_chooser
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 12
10
- version: 0.0.12
9
+ - 13
10
+ version: 0.0.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Jefferson Jean Martins Gir\xC3\xA3o"