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 +4 -4
- data/README.md +1 -1
- data/app/controllers/shopapp_login_controller.rb +4 -2
- data/shopapp.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd1ec5dd191bd180c6078f78149e15c32bd7be0371b9c6c0f861d02a37adfb9c
|
4
|
+
data.tar.gz: 575ed87973f94cced2bb8e1182b730f202925df0dbf3a213b6f2a319c5c4f2aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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?
|
data/shopapp.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'shopapp'
|
3
|
-
s.version = '0.2.
|
4
|
-
s.date = '2019-10-
|
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.
|
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-
|
11
|
+
date: 2019-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|