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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 566c302b3598359e622f4b6b98a59bf1a8b3487fc81b898ca93a2d0446c31c63
4
- data.tar.gz: 9961bb74a9f23e2bebdaa4c64913723a195eaac89470a68e3f175b87f2a68e24
3
+ metadata.gz: 59b29821c8d0702b66bdbf3573565ed97b7ec1730091561bdab5d4c21fd8cecf
4
+ data.tar.gz: 1c3a26a753aa7fe3bf8f2c30c372caa8903f558b23ddb5cccd9f663f9cb6889b
5
5
  SHA512:
6
- metadata.gz: 441a84936ce9cb8cba5354bfc81ec49de1d498190b81c9020c52df3b4d7fa4ef15aefde5b6d9911e5dabf161227765f93aa75c6e99e677f61febb0dbfbd95a3e
7
- data.tar.gz: 4d18fed67d04efb9750abb753fee743bd4a206bc9c396e95c882db5d2add9c948782cc65f38bb4b64f9f51018281d7c8af4b4130a37c8b36ddae420cd688f4db
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)
@@ -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.2"
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.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/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: