rack-locale_chooser 0.0.8 → 0.0.9

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-locale_chooser (0.0.4)
4
+ rack-locale_chooser (0.0.8)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -19,6 +19,8 @@ module Rack::LocaleChooser
19
19
  set_session_options
20
20
 
21
21
  set_locale
22
+
23
+ puts "Url Locale: #{url_locale} | Cookie Locale: #{cookie_locale} | Geo Locale: #{geo_locale} | Browser Locale: #{browser_locale} | Definitive Locale: #{locale} | Original URL: #{@original_url} | New URL: #{localized_url}"
22
24
 
23
25
  @app.call(env) if @request.post? || @request.put? || @request.delete?
24
26
 
@@ -30,7 +32,7 @@ module Rack::LocaleChooser
30
32
  response.set_cookie('locale', {
31
33
  :value => I18n.locale,
32
34
  :path => '/',
33
- :domain => @env["rack.session.options"][:domain]}) if geo_locale != cookie_locale
35
+ :domain => @env["rack.session.options"][:domain]})
34
36
  response.finish
35
37
  end
36
38
  end
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module LocaleChooser
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
@@ -0,0 +1,7 @@
1
+ es | | | en | es | http://es.example.com/ | http://es.example.com/
2
+ | | | en | en | http://example.com/ | http://us.example.com/
3
+ | | es | en | es | http://example.com/ | http://es.example.com/
4
+ | | | en | en | http://example.com/ | http://us.example.com/
5
+ | | | es | es | http://example.com/ | http://es.example.com/
6
+ | | | en | en | http://example.com/ | http://us.example.com/
7
+ | es | | en | es | http://example.com/ | http://es.example.com/
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: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Jefferson Jean Martins Gir\xC3\xA3o"
@@ -81,6 +81,7 @@ files:
81
81
  - lib/rack-locale_chooser.rb
82
82
  - lib/rack-locale_chooser/chooser.rb
83
83
  - lib/rack-locale_chooser/version.rb
84
+ - log/locale_chooser.log
84
85
  - rack-locale_chooser.gemspec
85
86
  - spec/rack-locale_chooser_spec.rb
86
87
  - spec/spec_helper.rb