refinerycms-i18n 4.0.1 → 4.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 985a7f5d83484a91fa8277f88ad2e30bb5302fb3
4
- data.tar.gz: 5e97eb8e393f3b3e068b65d0f2c019752fa9a5ed
3
+ metadata.gz: 6e44a07018771a23eeda1f1b5b12fd845eb1932d
4
+ data.tar.gz: c802cfd10d4199a642a2a6e11f2127cca2fff59d
5
5
  SHA512:
6
- metadata.gz: 1e5ed7f28ac84366a817ba60f46f64456b6ccff75f440e8cf952bfe1b8c6ab0d46531761453707e6693b8b56ff8425c4328fe525c75f42bb8584a6bf57e05905
7
- data.tar.gz: 984345ab600a159ff5c7ea5790cb6dcbdad2d7b383ecffbaa041944e97eee096ef1151ba8d11a021add0ece2ea77edfd71019e80fa6efbe96e79cb0b1b787956
6
+ metadata.gz: 55dd35355020bac66f0be88c1f130fb6d00f06c4f587f5dfa8c6c4db35cde9222213d17b6318056fba599148de2c0ca8cba9babfd38f0c5efc4cb0f9fe98d117
7
+ data.tar.gz: 2a2604e5316d9909cf31280224b5297ab16d43ce4959d9af560b90654960965a10fd18a91e0a90c8837f047a68b1daeeff11478a9a275a4e802ade2d5690ef5a
@@ -9,7 +9,8 @@ notifications:
9
9
  webhooks:
10
10
  - https://webhooks.gitter.im/e/b5d48907cdc89864b874
11
11
  rvm:
12
- - 2.4.1
13
- - 2.3.3
14
- - 2.2.6
12
+ - 2.5.0
13
+ - 2.4.3
14
+ - 2.3.6
15
+ - 2.2.9
15
16
  sudo: false
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 3 gems installed from the root of your application.
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
- ENGINE_PATH = File.expand_path('../..', __FILE__)
5
- load File.expand_path('../../spec/dummy/bin/rails', __FILE__)
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
@@ -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
- locale_param=(::Refinery::I18n.config.enabled? && ::I18n.locale != ::Refinery::I18n.default_frontend_locale) ? { :locale => ::I18n.locale } : {}
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
@@ -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.1}
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{http://refinerycms.com}
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.6'
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 = FactoryGirl.create(:resource, :resource_title => "My resource in English")
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.1
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: 2017-09-14 00:00:00.000000000 Z
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: http://refinerycms.com
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.6
337
+ version: 2.2.9
339
338
  required_rubygems_version: !ruby/object:Gem::Requirement
340
339
  requirements:
341
340
  - - ">="
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- ENGINE_PATH = File.expand_path('../..', __FILE__)
5
- load File.expand_path('../../spec/dummy/script/rails', __FILE__)