refinerycms-i18n 4.0.0 → 4.0.1
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.
- checksums.yaml +4 -4
- data/Gemfile +4 -0
- data/lib/refinery/i18n-filter.rb +1 -1
- data/lib/refinery/i18n/engine.rb +1 -1
- data/refinerycms-i18n.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 985a7f5d83484a91fa8277f88ad2e30bb5302fb3
|
|
4
|
+
data.tar.gz: 5e97eb8e393f3b3e068b65d0f2c019752fa9a5ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1e5ed7f28ac84366a817ba60f46f64456b6ccff75f440e8cf952bfe1b8c6ab0d46531761453707e6693b8b56ff8425c4328fe525c75f42bb8584a6bf57e05905
|
|
7
|
+
data.tar.gz: 984345ab600a159ff5c7ea5790cb6dcbdad2d7b383ecffbaa041944e97eee096ef1151ba8d11a021add0ece2ea77edfd71019e80fa6efbe96e79cb0b1b787956
|
data/Gemfile
CHANGED
|
@@ -10,6 +10,10 @@ git "https://github.com/refinery/refinerycms", branch: "master" do
|
|
|
10
10
|
end
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
group :development, :test do
|
|
14
|
+
gem "listen"
|
|
15
|
+
end
|
|
16
|
+
|
|
13
17
|
# Database Configuration
|
|
14
18
|
unless ENV["TRAVIS"]
|
|
15
19
|
gem "activerecord-jdbcsqlite3-adapter", :platform => :jruby
|
data/lib/refinery/i18n-filter.rb
CHANGED
data/lib/refinery/i18n/engine.rb
CHANGED
|
@@ -28,7 +28,7 @@ module Refinery
|
|
|
28
28
|
if ::Refinery::I18n.has_locale?(locale = params[:locale].try(:to_sym))
|
|
29
29
|
::I18n.locale = locale
|
|
30
30
|
elsif locale.present? && locale != ::Refinery::I18n.default_frontend_locale
|
|
31
|
-
params[:locale] = ::I18n.locale = ::Refinery::I18n.default_frontend_locale
|
|
31
|
+
params[:locale] = ::I18n.locale.to_s = ::Refinery::I18n.default_frontend_locale.to_s
|
|
32
32
|
redirect_to(params, :notice => "The locale '#{locale}' is not supported.") and return
|
|
33
33
|
else
|
|
34
34
|
::I18n.locale = ::Refinery::I18n.default_frontend_locale
|
data/refinerycms-i18n.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{refinerycms-i18n}
|
|
5
|
-
s.version = %q{4.0.
|
|
5
|
+
s.version = %q{4.0.1}
|
|
6
6
|
s.description = %q{i18n logic extracted from Refinery CMS, for Refinery CMS.}
|
|
7
7
|
s.summary = %q{i18n logic for Refinery CMS.}
|
|
8
8
|
s.email = %q{info@refinerycms.com}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: refinerycms-i18n
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.
|
|
4
|
+
version: 4.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Philip Arndt
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-
|
|
12
|
+
date: 2017-09-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: routing-filter
|