inertia_i18n 0.1.1 → 0.1.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 +9 -1
- data/lib/generators/inertia_i18n/templates/i18n_spec.rb +17 -17
- data/lib/inertia_i18n/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fffa2fd4c6b9f5440cb772db7fbbfaada7fff088d5a9353d2892c70bfe0530cc
|
|
4
|
+
data.tar.gz: 0421d497bdf1c2e3f750d315bd2ccdda1efd95eab941551efcd2bc07d41bcd7f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a16495f95242a91f483ced0f5f27b9b734a77597810ab3e1709600f52827393808ff80360abae78ddca54955b80a0f00ae6ce9a2242295ad843249828b3db32
|
|
7
|
+
data.tar.gz: 4d77eeaa325d2b06c741bb293f8f4c23b0298cf9c62f8c7fe1552124d180723a40f78211e06872dcd57fa1a958c88b7ec138cf38c9683afa4024228628f0b3a9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.1.3] - 2026-01-16
|
|
4
|
+
|
|
5
|
+
- Fix `RSpec/SpecFilePathFormat` lint error in generated test file
|
|
6
|
+
|
|
7
|
+
## [0.1.2] - 2026-01-16
|
|
8
|
+
|
|
9
|
+
- Fix `LocalJumpError` in generated RSpec test file
|
|
10
|
+
|
|
3
11
|
## [0.1.1] - 2026-01-16
|
|
4
12
|
|
|
5
13
|
- Change generated test file paths to `spec/inertia_i18n_spec.rb` and `test/inertia_i18n_test.rb`
|
|
6
14
|
|
|
7
|
-
## [0.1.0] - 2026-01-
|
|
15
|
+
## [0.1.0] - 2026-01-16
|
|
8
16
|
|
|
9
17
|
- Initial release
|
|
@@ -2,30 +2,30 @@ require "rails_helper"
|
|
|
2
2
|
require "inertia_i18n/health_checker"
|
|
3
3
|
require "inertia_i18n/file_converter"
|
|
4
4
|
|
|
5
|
-
RSpec.describe InertiaI18n
|
|
5
|
+
RSpec.describe InertiaI18n do
|
|
6
6
|
it "has healthy translations" do
|
|
7
7
|
# Ensure JSON files are up-to-date before checking
|
|
8
8
|
InertiaI18n::FileConverter.convert_all
|
|
9
9
|
|
|
10
|
-
checker =
|
|
11
|
-
|
|
12
|
-
return if checker.healthy?
|
|
10
|
+
checker = InertiaI18n::HealthChecker.new.check!
|
|
13
11
|
|
|
14
12
|
message = ["\nTranslation health check failed!"]
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
unless checker.healthy?
|
|
15
|
+
if checker.issues[:missing].any?
|
|
16
|
+
message << "\nMissing Keys (#{checker.issues[:missing].count}):"
|
|
17
|
+
checker.issues[:missing].each { |i| message << " - #{i[:key]}" }
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
if checker.issues[:unused].any?
|
|
21
|
+
message << "\nUnused Keys (#{checker.issues[:unused].count}):"
|
|
22
|
+
checker.issues[:unused].each { |i| message << " - #{i[:key]}" }
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
if checker.issues[:unsync].any?
|
|
26
|
+
message << "\nLocale Synchronization Issues (#{checker.issues[:unsync].count}):"
|
|
27
|
+
checker.issues[:unsync].each { |i| message << " - #{i[:key]} (in #{i[:locale]})" }
|
|
28
|
+
end
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
expect(checker.healthy?).to be(true), message.join("\n")
|
data/lib/inertia_i18n/version.rb
CHANGED