i18n-js 3.2.2 → 3.2.3
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/CHANGELOG.md +10 -1
- data/lib/i18n/js/dependencies.rb +6 -2
- data/lib/i18n/js/version.rb +1 -1
- 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: 93630052fa81543fb1ef783fbd8ca5da0720a993604566928fd6d3357e05f12f
|
|
4
|
+
data.tar.gz: 13abd2f4852f98b6545115d91ca2de93a09d9b96d15b4426edb6168220f12271
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 990e561696fd331a7c92a8a02b83844bc977c7661cc66489e4cbb53396394038cd8f08a29e1d2daa80e8c5192dcc5b37205f3cd8373737b932cced0c786bb798
|
|
7
|
+
data.tar.gz: 15ed6cce61c45067c0c7977ae9e02bd82973490a1964a5dd9ef5bb45716cedd5f2453d4db2e508e3dd6deff22c8bd1e4f868d93826e3fde0d99b652d5c36c3d0
|
data/CHANGELOG.md
CHANGED
|
@@ -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.
|
|
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
|
data/lib/i18n/js/dependencies.rb
CHANGED
|
@@ -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)
|
data/lib/i18n/js/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2019-05-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: i18n
|