locallingo 0.4.1 → 0.4.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: 566c302b3598359e622f4b6b98a59bf1a8b3487fc81b898ca93a2d0446c31c63
4
- data.tar.gz: 9961bb74a9f23e2bebdaa4c64913723a195eaac89470a68e3f175b87f2a68e24
3
+ metadata.gz: e31de70770225e0fa02a19b214791252d80b79b46f69ff02fe4a4966079fb3bf
4
+ data.tar.gz: 1b32c3ef52453c291676585fa0ca6a1da301879d292b98de13c017c6d03195e6
5
5
  SHA512:
6
- metadata.gz: 441a84936ce9cb8cba5354bfc81ec49de1d498190b81c9020c52df3b4d7fa4ef15aefde5b6d9911e5dabf161227765f93aa75c6e99e677f61febb0dbfbd95a3e
7
- data.tar.gz: 4d18fed67d04efb9750abb753fee743bd4a206bc9c396e95c882db5d2add9c948782cc65f38bb4b64f9f51018281d7c8af4b4130a37c8b36ddae420cd688f4db
6
+ metadata.gz: c6293ed9127107f94800a144653e593aa2482aae0d5352dde2a7a02cd9043afedbcd441e112e3e3565e7842b981a9935623c70e94603a26fb0555e31b65397e9
7
+ data.tar.gz: e20e64e38717897b90ab7607dfe032b52ecd3d9b12af37ec8615ca8811fe2d4fef6d3eefb6f00196e0b1d9f4eded368a0118f3dcbbddc2704d04f6ecb50106b3
data/CHANGELOG.md CHANGED
@@ -6,7 +6,16 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ### Changed
10
+ - Allow `ruby_llm` 2.x (dependency constraint widened from `< 2` to `< 3`). The
11
+ gem only uses RubyLLM's stable chat API and guarded config accessors, so a
12
+ host app can take the RubyLLM 2.0 bump without waiting on Locallingo.
13
+
9
14
  ### Fixed
15
+ - State files are written with a trailing final newline, so the output is
16
+ POSIX-conformant and files that already end with a newline are no longer
17
+ rewritten with newline-only diffs. One-time effect after upgrading: each
18
+ state file gets a single newline-adding rewrite, then stabilizes. (#7)
10
19
  - `lingo sync` backfills a missing `target_hash` from the current target value,
11
20
  so hand-added translations (written straight into the YAML, never passing
12
21
  through `translate` or `accept-edits`) get a baseline and the `manual_edits`
@@ -51,7 +51,7 @@ module Locallingo
51
51
 
52
52
  by_namespace.each do |namespace, keys|
53
53
  state_file = File.join(state_dir, "#{namespace}.#{locale}.json")
54
- content = JSON.pretty_generate(keys.sort.to_h)
54
+ content = "#{JSON.pretty_generate(keys.sort.to_h)}\n"
55
55
  next if File.exist?(state_file) && File.read(state_file) == content
56
56
 
57
57
  File.write(state_file, content)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Locallingo
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locallingo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '1.0'
19
19
  - - "<"
20
20
  - !ruby/object:Gem::Version
21
- version: '2'
21
+ version: '3'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '1.0'
29
29
  - - "<"
30
30
  - !ruby/object:Gem::Version
31
- version: '2'
31
+ version: '3'
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: rubocop
34
34
  requirement: !ruby/object:Gem::Requirement
@@ -90,13 +90,13 @@ files:
90
90
  - lib/locallingo/version.rb
91
91
  - lib/rubocop/cop/locallingo/relative_i18n_key.rb
92
92
  - lib/rubocop/cop/locallingo/strftime_in_view.rb
93
- homepage: https://github.com/mhenrixon/locallingo
93
+ homepage: https://github.com/zoolutions/locallingo
94
94
  licenses:
95
95
  - MIT
96
96
  metadata:
97
- source_code_uri: https://github.com/mhenrixon/locallingo
98
- changelog_uri: https://github.com/mhenrixon/locallingo/blob/main/CHANGELOG.md
99
- bug_tracker_uri: https://github.com/mhenrixon/locallingo/issues
97
+ source_code_uri: https://github.com/zoolutions/locallingo
98
+ changelog_uri: https://github.com/zoolutions/locallingo/blob/main/CHANGELOG.md
99
+ bug_tracker_uri: https://github.com/zoolutions/locallingo/issues
100
100
  rubygems_mfa_required: 'true'
101
101
  rdoc_options: []
102
102
  require_paths: