neeto-translate-cli 0.2.15 → 0.2.16

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: 7a5cdd3730b1b026202de5c2dfe21b51d73b7650e994d95a287f97c023e13a66
4
- data.tar.gz: ee6bbc1ee51baf4e17fa73ab1ea4392912327ded336b2b266d8ec7de325902f1
3
+ metadata.gz: c5817f6cfd72f6e75854d06d72dd508793efd282ac7044d1e71ae110290b4cdd
4
+ data.tar.gz: 297e6e59d6de7c5476683dc6eb6a44e0439651d6c107c194b44ff60c5004651c
5
5
  SHA512:
6
- metadata.gz: e4375a681db4ec54d63778bdcfe836cda97bc37739242d7715823ad201a54349bb52e4e825d62ad216379ab177cc25f23af1eeecd4058fa0a1e67de23c311a66
7
- data.tar.gz: '069ae00d35a9964f0484fc93da2d4c74a0243cf6c865c2b875d7c7cc72a7f04954e3c00f10844e7e0c505fda60c6367b0ab003427b23077bc116a22eb543abf9'
6
+ metadata.gz: af6e86f1d47006438d597b329fd378df2d78517bd97df784f4f858678dac5017df7bb19d0d1f56bdbcce07c9c44885582b80e7d1e9b42edf8925a95fcfcf1984
7
+ data.tar.gz: 4f30a538da0d46b5bd7cfc7323b0ff06619a8d05512b51d355c1c7654cffb43041017b04f394aba8d5ef2885776a05db70bc0715b2a97b0648e058f4cd02e880
@@ -44,7 +44,7 @@ module NeetoTranslateCli
44
44
  frontend_translations[:en].each do |file_path, content|
45
45
  lang_file_path = "#{options[:frontend]}/en/#{file_path}.json"
46
46
  relative_path_from_pwd = Pathname.new(lang_file_path).to_s
47
- previous_content = `git show #{commit_id}:#{relative_path_from_pwd}`
47
+ previous_content = `git show #{commit_id}:#{relative_path_from_pwd}`.force_encoding("UTF-8")
48
48
  next if previous_content.empty?
49
49
 
50
50
  previous_json = JSON.parse(previous_content)
@@ -44,7 +44,7 @@ module NeetoTranslateCli
44
44
  end
45
45
 
46
46
  def find_updated_keys(commit_id)
47
- previous_en_json_content = `git show #{commit_id}:#{options[:frontend]}/en.json`
47
+ previous_en_json_content = `git show #{commit_id}:#{options[:frontend]}/en.json`.force_encoding("UTF-8")
48
48
  updated_frontend_keys = []
49
49
  unless previous_en_json_content.empty?
50
50
  previous_en_json = JSON.parse(previous_en_json_content)
@@ -56,7 +56,7 @@ module NeetoTranslateCli
56
56
  end
57
57
  end
58
58
 
59
- previous_en_yml_content = `git show #{commit_id}:#{options[:backend]}/en.yml`
59
+ previous_en_yml_content = `git show #{commit_id}:#{options[:backend]}/en.yml`.force_encoding("UTF-8")
60
60
  updated_backend_keys = []
61
61
  unless previous_en_yml_content.empty?
62
62
  previous_en_yml = YAML.load(previous_en_yml_content, aliases: true)["en"]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NeetoTranslateCli
4
- VERSION = "0.2.15"
4
+ VERSION = "0.2.16"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neeto-translate-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.15
4
+ version: 0.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abhay V Ashokan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-11-13 00:00:00.000000000 Z
11
+ date: 2026-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday