rack-locale_chooser 0.7 → 0.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -38,7 +38,6 @@ module Rack::LocaleChooser
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
# check http://codetunes.com/2009/04/17/dynamic-cookie-domains-with-racks-middleware/
|
42
41
|
def set_session_options
|
43
42
|
@env['rack.session.options'] = {} unless @env['rack.session.options']
|
44
43
|
@env['rack.session.options'][:domain] = @options[:default_domain]
|
@@ -58,7 +57,7 @@ module Rack::LocaleChooser
|
|
58
57
|
end
|
59
58
|
|
60
59
|
def cookie_locale
|
61
|
-
@request.cookies['locale']
|
60
|
+
@request.cookies['locale'] unless @options[:disable_cookie]
|
62
61
|
end
|
63
62
|
|
64
63
|
def geo_locale
|
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: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: "0.
|
8
|
+
- 8
|
9
|
+
version: "0.8"
|
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-11 00:00:00 -03:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|