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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a4954965db51e0c477201a5fd1b3951c8442545556630e63fa733a429da252d
4
- data.tar.gz: b5e20502b975c6a77a12a045432fe54c66026b26b5a78c0a5bf2472d83eb092d
3
+ metadata.gz: fffa2fd4c6b9f5440cb772db7fbbfaada7fff088d5a9353d2892c70bfe0530cc
4
+ data.tar.gz: 0421d497bdf1c2e3f750d315bd2ccdda1efd95eab941551efcd2bc07d41bcd7f
5
5
  SHA512:
6
- metadata.gz: f3d2a66d32aee58cdb436187dcfb75cef820322f80de05a042733343dfa913fe3fcf38259727c993ea44f21aec46d4d0b1be6d58bd47ad6e09c8df76a42d9057
7
- data.tar.gz: 7f0b6a6857d5eba1602131f8f4e0ab7617e1c3c69da0d5c946c4a49b64daf109d0adb8fee89002808d8e0d1bffcfbf7de437420c27667ca1f70072f40c57af2c
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-06
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::HealthChecker do
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 = described_class.new.check!
11
-
12
- return if checker.healthy?
10
+ checker = InertiaI18n::HealthChecker.new.check!
13
11
 
14
12
  message = ["\nTranslation health check failed!"]
15
13
 
16
- if checker.issues[:missing].any?
17
- message << "\nMissing Keys (#{checker.issues[:missing].count}):"
18
- checker.issues[:missing].each { |i| message << " - #{i[:key]}" }
19
- end
20
-
21
- if checker.issues[:unused].any?
22
- message << "\nUnused Keys (#{checker.issues[:unused].count}):"
23
- checker.issues[:unused].each { |i| message << " - #{i[:key]}" }
24
- end
25
-
26
- if checker.issues[:unsync].any?
27
- message << "\nLocale Synchronization Issues (#{checker.issues[:unsync].count}):"
28
- checker.issues[:unsync].each { |i| message << " - #{i[:key]} (in #{i[:locale]})" }
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")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InertiaI18n
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inertia_i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Poimtsev