locallingo 0.4.1 → 0.4.2
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 +4 -0
- data/lib/locallingo/state_store.rb +1 -1
- data/lib/locallingo/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 59b29821c8d0702b66bdbf3573565ed97b7ec1730091561bdab5d4c21fd8cecf
|
|
4
|
+
data.tar.gz: 1c3a26a753aa7fe3bf8f2c30c372caa8903f558b23ddb5cccd9f663f9cb6889b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e52e5fd9039c732daafbe32100dd51d14fc839b149da624d6da9f465a9b9adfefb0ee42f1cdf1705789b69cc103f83d25fe12e89cc80dbc1a24a0b85e642d59
|
|
7
|
+
data.tar.gz: 8869c511367af25968e6e18464b6ed8ff6eef74fc16de56b3d80a78842df521bcbb9487df92d429b731d917a167a19c9610571193313f4d2c096871c21e0dc3e
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,10 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
9
|
### Fixed
|
|
10
|
+
- State files are written with a trailing final newline, so the output is
|
|
11
|
+
POSIX-conformant and files that already end with a newline are no longer
|
|
12
|
+
rewritten with newline-only diffs. One-time effect after upgrading: each
|
|
13
|
+
state file gets a single newline-adding rewrite, then stabilizes. (#7)
|
|
10
14
|
- `lingo sync` backfills a missing `target_hash` from the current target value,
|
|
11
15
|
so hand-added translations (written straight into the YAML, never passing
|
|
12
16
|
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)
|
data/lib/locallingo/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mikael Henriksson
|
|
@@ -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/
|
|
93
|
+
homepage: https://github.com/zoolutions/locallingo
|
|
94
94
|
licenses:
|
|
95
95
|
- MIT
|
|
96
96
|
metadata:
|
|
97
|
-
source_code_uri: https://github.com/
|
|
98
|
-
changelog_uri: https://github.com/
|
|
99
|
-
bug_tracker_uri: https://github.com/
|
|
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:
|