spree_change_locale 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- spree_change_locale (0.5)
4
+ spree_change_locale (0.5.1)
5
5
  http_accept_language (~> 1.0)
6
6
  spree_core (>= 0.70.0)
7
7
 
@@ -10,7 +10,7 @@ module LocaleHelper
10
10
  locale == current_locale
11
11
  end
12
12
  def link_to_locale(locale, name = nil, *args)
13
- link_to name || locale_name(locale), "/#{locale}#{request && request.path}", *args if locale_enabled?(locale)
13
+ link_to(name || locale_name(locale), "/#{locale}#{request && request.path}", *args) if locale_enabled?(locale)
14
14
  end
15
15
  def locale_name(locale)
16
16
  I18n.t(:this_file_language, :locale => locale) if locale_enabled?(locale)
@@ -1,3 +1,4 @@
1
+ require 'http_accept_language'
1
2
  require 'spree_core'
2
3
  require 'spree_change_locale/engine'
3
4
  require 'spree_change_locale/i18n_extension'
@@ -1452,3 +1452,25 @@ Completed 302 Found in 2ms
1452
1452
  Parameters: {"locale"=>"ru"}
1453
1453
  Redirected to http://test.host/
1454
1454
  Completed 302 Found in 1ms
1455
+ MailMethod Load (0.8ms) SELECT "mail_methods".* FROM "mail_methods" WHERE "mail_methods"."environment" = 'test' LIMIT 1
1456
+ Property Load (15.7ms) SELECT "properties".* FROM "properties" WHERE "properties"."name" = 'brand' LIMIT 1
1457
+ AppConfiguration Load (14.9ms) SELECT "configurations".* FROM "configurations" WHERE "configurations"."type" IN ('AppConfiguration') AND "configurations"."name" = 'Default configuration' LIMIT 1
1458
+ Processing by LocaleController#set as HTML
1459
+ Parameters: {"locale"=>"es"}
1460
+ Redirected to http://test.host/
1461
+ Completed 302 Found in 2ms
1462
+ Processing by LocaleController#set as HTML
1463
+ Parameters: {"locale"=>"ru"}
1464
+ Redirected to http://test.host/
1465
+ Completed 302 Found in 93ms
1466
+ MailMethod Load (0.2ms) SELECT "mail_methods".* FROM "mail_methods" WHERE "mail_methods"."environment" = 'test' LIMIT 1
1467
+ Property Load (0.1ms) SELECT "properties".* FROM "properties" WHERE "properties"."name" = 'brand' LIMIT 1
1468
+ AppConfiguration Load (0.3ms) SELECT "configurations".* FROM "configurations" WHERE "configurations"."type" IN ('AppConfiguration') AND "configurations"."name" = 'Default configuration' LIMIT 1
1469
+ Processing by LocaleController#set as HTML
1470
+ Parameters: {"locale"=>"es"}
1471
+ Redirected to http://test.host/
1472
+ Completed 302 Found in 3ms
1473
+ Processing by LocaleController#set as HTML
1474
+ Parameters: {"locale"=>"ru"}
1475
+ Redirected to http://test.host/
1476
+ Completed 302 Found in 85ms
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_change_locale'
5
- s.version = '0.5.1'
5
+ s.version = '0.5.2'
6
6
  s.summary = 'Easy locale change for Spree'
7
7
  s.description = 'Easy locale change for Spree'
8
8
  s.required_ruby_version = '>= 1.8.7'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: spree_change_locale
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.1
5
+ version: 0.5.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - humancopy
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-11-10 00:00:00 Z
13
+ date: 2011-11-22 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: spree_core