neeto-translate-cli 0.1.4 → 0.1.6
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/lib/neeto_translate_cli/payload_builder.rb +2 -4
- data/lib/neeto_translate_cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9caea3f6a0125f4389b667a23e82a8e90e44fb51f6d37615f4eccb6316dc7d5c
|
|
4
|
+
data.tar.gz: 5aabd01f0625ff1da29736545c42d835399c8f55cfd38895edb74c52fbd181ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec2e3e7a14fb0f912e19cd8eaaf79f0e64fc53e92e891dc3edb3a8e786f0a56ad3e74af0bddb02712244218e8f3c3b4b525f66db4bd649c9d7f01de5c32cbfd1
|
|
7
|
+
data.tar.gz: 49f053407380b2f181520c79543921eef660f0b1388f522bc84928069754646a87a7a5b7409778ae2f2974211e22e6fa4ccc843d122d74107f26537dc1b02fa3
|
|
@@ -3,8 +3,6 @@ require "yaml"
|
|
|
3
3
|
|
|
4
4
|
module NeetoTranslateCli
|
|
5
5
|
class PayloadBuilder
|
|
6
|
-
COMMIT_AUTHOR = "neetobot"
|
|
7
|
-
|
|
8
6
|
attr_reader :options, :updated_keys
|
|
9
7
|
|
|
10
8
|
def initialize(options)
|
|
@@ -32,7 +30,7 @@ module NeetoTranslateCli
|
|
|
32
30
|
private
|
|
33
31
|
|
|
34
32
|
def git_commit_id
|
|
35
|
-
`git log --
|
|
33
|
+
`git log --grep="\[neeto-translate\]" -n 1 --pretty=format:"%H"`.strip
|
|
36
34
|
end
|
|
37
35
|
|
|
38
36
|
def en_json_flattened
|
|
@@ -101,7 +99,7 @@ module NeetoTranslateCli
|
|
|
101
99
|
end
|
|
102
100
|
|
|
103
101
|
def load_yml(file_path)
|
|
104
|
-
return { en
|
|
102
|
+
return { "en" => {} } unless File.file?(file_path)
|
|
105
103
|
|
|
106
104
|
YAML.load_file(file_path, aliases: true)
|
|
107
105
|
end
|