refinerycms-i18n 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -3
- data/bin/rails +9 -3
- data/lib/refinery/i18n/engine.rb +1 -2
- data/refinerycms-i18n.gemspec +3 -3
- data/spec/controllers/refinery/admin/resources_controller_spec.rb +1 -1
- metadata +4 -5
- data/script/rails +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e44a07018771a23eeda1f1b5b12fd845eb1932d
|
4
|
+
data.tar.gz: c802cfd10d4199a642a2a6e11f2127cca2fff59d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55dd35355020bac66f0be88c1f130fb6d00f06c4f587f5dfa8c6c4db35cde9222213d17b6318056fba599148de2c0ca8cba9babfd38f0c5efc4cb0f9fe98d117
|
7
|
+
data.tar.gz: 2a2604e5316d9909cf31280224b5297ab16d43ce4959d9af560b90654960965a10fd18a91e0a90c8837f047a68b1daeeff11478a9a275a4e802ade2d5690ef5a
|
data/.travis.yml
CHANGED
data/bin/rails
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# This command will automatically be run when you run "rails" with Rails
|
2
|
+
# This command will automatically be run when you run "rails" with Rails gems
|
3
|
+
# installed from the root of your application.
|
3
4
|
|
4
|
-
|
5
|
-
load File.expand_path('../../spec/dummy/bin/rails'
|
5
|
+
begin
|
6
|
+
load File.join(File.expand_path('../../', __FILE__), 'spec/dummy/bin/rails')
|
7
|
+
rescue LoadError => load_error
|
8
|
+
warn "No dummy Rails application found! \n" \
|
9
|
+
"To create one in spec/dummy, please run: \n\n" \
|
10
|
+
" rake refinery:testing:dummy_app"
|
11
|
+
end
|
data/lib/refinery/i18n/engine.rb
CHANGED
@@ -18,8 +18,7 @@ module Refinery
|
|
18
18
|
config.to_prepare do
|
19
19
|
::ApplicationController.module_eval do
|
20
20
|
def default_url_options
|
21
|
-
|
22
|
-
super.reverse_merge locale_param
|
21
|
+
super.reverse_merge ({ locale: ::I18n.locale })
|
23
22
|
end
|
24
23
|
|
25
24
|
def find_or_set_locale
|
data/refinerycms-i18n.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
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.2}
|
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}
|
9
|
-
s.homepage = %q{
|
9
|
+
s.homepage = %q{https://refinerycms.com}
|
10
10
|
s.authors = ['Philip Arndt', 'Uģis Ozols']
|
11
11
|
s.require_paths = %w(lib)
|
12
12
|
s.license = %q{MIT}
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.files = `git ls-files`.split("\n")
|
15
15
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
16
16
|
|
17
|
-
s.required_ruby_version = '>= 2.2.
|
17
|
+
s.required_ruby_version = '>= 2.2.9'
|
18
18
|
|
19
19
|
s.add_dependency 'routing-filter', '>= 0.4.0'
|
20
20
|
s.add_dependency 'rails-i18n', '~> 5.0.0'
|
@@ -5,7 +5,7 @@ module Refinery
|
|
5
5
|
describe ResourcesController, type: :controller do
|
6
6
|
before do
|
7
7
|
Globalize.locale = :en
|
8
|
-
@resource =
|
8
|
+
@resource = FactoryBot.create(:resource, :resource_title => "My resource in English")
|
9
9
|
|
10
10
|
# Add a translation
|
11
11
|
Globalize.locale = :es
|
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.2
|
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:
|
12
|
+
date: 2018-03-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: routing-filter
|
@@ -316,14 +316,13 @@ files:
|
|
316
316
|
- lib/translate/log.rb
|
317
317
|
- lib/translate/storage.rb
|
318
318
|
- refinerycms-i18n.gemspec
|
319
|
-
- script/rails
|
320
319
|
- spec/controllers/refinery/admin/resources_controller_spec.rb
|
321
320
|
- spec/features/set_locale_spec.rb
|
322
321
|
- spec/spec_helper.rb
|
323
322
|
- spec/support/refinery/i18n/set_defaults.rb
|
324
323
|
- tasks/rspec.rake
|
325
324
|
- translate-readme.md
|
326
|
-
homepage:
|
325
|
+
homepage: https://refinerycms.com
|
327
326
|
licenses:
|
328
327
|
- MIT
|
329
328
|
metadata: {}
|
@@ -335,7 +334,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
335
334
|
requirements:
|
336
335
|
- - ">="
|
337
336
|
- !ruby/object:Gem::Version
|
338
|
-
version: 2.2.
|
337
|
+
version: 2.2.9
|
339
338
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
340
339
|
requirements:
|
341
340
|
- - ">="
|
data/script/rails
DELETED