shopapp 0.2.68 → 0.2.69

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 738ab7bb67c5529b4184fd324415e44aad3bfa911bbd6bdec41f28e13af43f37
4
- data.tar.gz: 694d7f2e1d4976f7c651f239c24e70810107dc16e0472ca724c6d203ca00df56
3
+ metadata.gz: fd1ec5dd191bd180c6078f78149e15c32bd7be0371b9c6c0f861d02a37adfb9c
4
+ data.tar.gz: 575ed87973f94cced2bb8e1182b730f202925df0dbf3a213b6f2a319c5c4f2aa
5
5
  SHA512:
6
- metadata.gz: d5254b85c1219fc355cc615a916d530bfa468a40a71f027ff883bad4910969ec1847869f69e546692334ebad8761daef433d47308cf1399dbd385bdb9801368a
7
- data.tar.gz: 58fa561426e2f322acd0e66ccac96af5d62628fd7d1a97ebe4b3f5575b9fc511239b18a38e6efe99b49cf1b5b1c3508db2fcfd6bb498e0362e8d6b66d0f585a6
6
+ metadata.gz: 58b573db12a8035b80bf43fb3f3db66922d471c625d44ef7cc849b6f31a96746916f9e68e6420d2fcd9ebb83713d9cfb82c6737b925cd1387cf902f32b0bf280
7
+ data.tar.gz: 93f1c8728714ec81ac40ee6fc9a4bede066be702b7fd9a5a4b1d7a3b4cef0ef1c07ae9989407ce5de935b6900bde759fb8d78daa6cc5e06312573b318a4b819c
data/README.md CHANGED
@@ -93,4 +93,4 @@ shopapp to support i18n, add two methods to your ApplicationController:
93
93
 
94
94
  To build new version of this gem, change the version in shopapp.gemspec and run:
95
95
 
96
- gem build shopapp.gemspec ; gem push shopapp-0.2.68.gem; gem install shopapp
96
+ gem build shopapp.gemspec ; gem push shopapp-0.2.69.gem; gem install shopapp
@@ -8,9 +8,11 @@ class ShopappLoginController < ApplicationController
8
8
  cookies[:set_i18n_pub] = params['set_i18n_pub']
9
9
  end
10
10
 
11
- if cookies[:set_i18n_pub]
11
+ I18n.locale = if cookies[:set_i18n_pub].present?
12
12
  redirect_parameters[:set_i18n_pub] = cookies[:set_i18n_pub]
13
- I18n.locale = (cookies[:set_i18n_pub] || I18n.default_locale).to_sym
13
+ cookies[:set_i18n_pub].to_sym
14
+ else
15
+ I18n.default_locale
14
16
  end
15
17
 
16
18
  unless Rails.configuration.settings['use_welcome_screen'].present?
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'shopapp'
3
- s.version = '0.2.68'
4
- s.date = '2019-10-03'
3
+ s.version = '0.2.69'
4
+ s.date = '2019-10-04'
5
5
  s.summary = 'Do a shoplift.'
6
6
  s.description = 'Ha! Art thou Bedlam? Dost thou thirst base Trojan, to have me fold up Parca\'s fatal web? Hence!\
7
7
  I am qualmish at the smell of leek.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.68
4
+ version: 0.2.69
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeljko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-03 00:00:00.000000000 Z
11
+ date: 2019-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties