i18n-js 3.2.2 → 3.2.3

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: cf57fa8dfcf89f2bbe736899750fc67fbc54c461cf199f5224f13136fadaf49d
4
- data.tar.gz: 9ac09fae9997e09d056d269b639282415b637c1a27aaba63138b3f03af12e917
3
+ metadata.gz: 93630052fa81543fb1ef783fbd8ca5da0720a993604566928fd6d3357e05f12f
4
+ data.tar.gz: 13abd2f4852f98b6545115d91ca2de93a09d9b96d15b4426edb6168220f12271
5
5
  SHA512:
6
- metadata.gz: fa3def42f8e86c9da13edf1faab48070cfa2b58d74f620815efb24f98af448a78f85512bf83d7c79b04d4e30c7f83d978fc1986af24fba757f5a1d79541849d9
7
- data.tar.gz: 833f82ecfa20b6bc152dc3aa41f00dec9a6ac3820788c103ddc2cd3b37bddd76609af851e84e8a05d4e9afd83ff93fc9c8a718699c326856bac9491a5b0f9183
6
+ metadata.gz: 990e561696fd331a7c92a8a02b83844bc977c7661cc66489e4cbb53396394038cd8f08a29e1d2daa80e8c5192dcc5b37205f3cd8373737b932cced0c786bb798
7
+ data.tar.gz: 15ed6cce61c45067c0c7977ae9e02bd82973490a1964a5dd9ef5bb45716cedd5f2453d4db2e508e3dd6deff22c8bd1e4f868d93826e3fde0d99b652d5c36c3d0
@@ -18,6 +18,14 @@ This project adheres to [Semantic Versioning](http://semver.org/).
18
18
  - Nothing
19
19
 
20
20
 
21
+ ## [3.2.3] - 2019-05-24
22
+
23
+ ### Changed
24
+
25
+ - Allow rails 6 to be used with this gem
26
+ (PR: https://github.com/fnando/i18n-js/pull/536)
27
+
28
+
21
29
  ## [3.2.2] - 2019-05-09
22
30
 
23
31
  ### Fixed
@@ -385,7 +393,8 @@ And today is not April Fools' Day
385
393
 
386
394
 
387
395
 
388
- [Unreleased]: https://github.com/fnando/i18n-js/compare/v3.2.2...HEAD
396
+ [Unreleased]: https://github.com/fnando/i18n-js/compare/v3.2.3...HEAD
397
+ [3.2.3]: https://github.com/fnando/i18n-js/compare/v3.2.2...v3.2.3
389
398
  [3.2.2]: https://github.com/fnando/i18n-js/compare/v3.2.1...v3.2.2
390
399
  [3.2.1]: https://github.com/fnando/i18n-js/compare/v3.2.0...v3.2.1
391
400
  [3.2.0]: https://github.com/fnando/i18n-js/compare/v3.1.0...v3.2.0
@@ -18,7 +18,7 @@ module I18n
18
18
  # Call this in an initializer
19
19
  def using_asset_pipeline?
20
20
  assets_pipeline_available =
21
- (rails3? || rails4? || rails5?) &&
21
+ (rails3? || rails4? || rails5? || rails6?) &&
22
22
  Rails.respond_to?(:application) &&
23
23
  Rails.application.config.respond_to?(:assets)
24
24
  rails3_assets_enabled =
@@ -26,7 +26,7 @@ module I18n
26
26
  assets_pipeline_available &&
27
27
  Rails.application.config.assets.enabled != false
28
28
 
29
- assets_pipeline_available && (rails4? || rails5? || rails3_assets_enabled)
29
+ assets_pipeline_available && (rails4? || rails5? || rails6? || rails3_assets_enabled)
30
30
  end
31
31
 
32
32
  private
@@ -43,6 +43,10 @@ module I18n
43
43
  rails? && Rails.version.to_i == 5
44
44
  end
45
45
 
46
+ def rails6?
47
+ rails? && Rails.version.to_i == 6
48
+ end
49
+
46
50
  def safe_gem_check(*args)
47
51
  if Gem::Specification.respond_to?(:find_by_name)
48
52
  Gem::Specification.find_by_name(*args)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module I18n
4
4
  module JS
5
- VERSION = "3.2.2"
5
+ VERSION = "3.2.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n-js
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-09 00:00:00.000000000 Z
11
+ date: 2019-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n