rack-locale_chooser 1.3 → 1.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -86,8 +86,8 @@ module Rack::LocaleChooser
|
|
86
86
|
|
87
87
|
def set_locale
|
88
88
|
I18n.locale = @env['rack.locale'] = locale.to_sym
|
89
|
-
@env['rack.city'] = geo_record
|
90
|
-
@env['rack.country_code'] = geo_record
|
89
|
+
@env['rack.city'] = geo_record ? geo_record.city : 'undefined'
|
90
|
+
@env['rack.country_code'] = geo_record ? geo_record.country_code : 'undefined'
|
91
91
|
end
|
92
92
|
|
93
93
|
def localized_url
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-locale_chooser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: "1.
|
8
|
+
- 4
|
9
|
+
version: "1.4"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- "Jefferson Jean Martins Gir\xC3\xA3o"
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-11-
|
17
|
+
date: 2010-11-24 00:00:00 -03:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|