rack-locale_chooser 0.7 → 0.8

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.
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module LocaleChooser
3
- VERSION = "0.7"
3
+ VERSION = "0.8"
4
4
  end
5
5
  end
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: 5
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 7
9
- version: "0.7"
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-08 00:00:00 -03:00
17
+ date: 2010-11-11 00:00:00 -03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency