phraseapp_updater 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/phraseapp_updater +1 -1
- data/lib/phraseapp_updater.rb +4 -1
- data/lib/phraseapp_updater/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 684e0437bbf7cc86e2716aef718a30755d9062cc
|
4
|
+
data.tar.gz: dc6f0d1b5753e1864841448c04a376598192c3dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0464fa1868c7be7cb56f9aad58862f558d40df286c29c1fe078e70702e05e71d8a37cc8da7caa8e186ed5d1d65587cb8447025c4b0fdb79d1eb80f2b86ff8f7
|
7
|
+
data.tar.gz: e8a3f6bd658210f4a039e86de5ea1866e4ec757935f78114ea4b6f8421915e5cc65c61c9340f32dfb1d98a00e25a99676e721c0c4a3def0f87fd21a0eb3e7767
|
data/bin/phraseapp_updater
CHANGED
@@ -63,7 +63,7 @@ class PhraseAppUpdaterCLI < Thor
|
|
63
63
|
end
|
64
64
|
|
65
65
|
unless store_phraseapp_originals_path.empty?
|
66
|
-
result.
|
66
|
+
result.original_phraseapp_files.each do |file|
|
67
67
|
path = "#{store_phraseapp_originals_path.chomp("/")}/#{file.name}.json"
|
68
68
|
File.write(path, file.content)
|
69
69
|
end
|
data/lib/phraseapp_updater.rb
CHANGED
@@ -47,10 +47,13 @@ class PhraseAppUpdater
|
|
47
47
|
upload_ids = phraseapp_api.upload_files(changed_files)
|
48
48
|
phraseapp_api.remove_keys_not_in_uploads(upload_ids)
|
49
49
|
|
50
|
+
puts "Uploading #{default_locale_file}"
|
50
51
|
upload_id = phraseapp_api.upload_file(default_locale_file)
|
52
|
+
|
53
|
+
puts "Removing keys not in upload #{upload_id}"
|
51
54
|
phraseapp_api.remove_keys_not_in_upload(upload_id)
|
52
55
|
|
53
|
-
LocaleFileUpdates.new(phraseapp_files.values,
|
56
|
+
LocaleFileUpdates.new(phraseapp_files.values, [default_locale_file] + resolved_files)
|
54
57
|
end
|
55
58
|
|
56
59
|
def self.pull(phraseapp_api_key, phraseapp_project_id, fallback_locales_path)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phraseapp_updater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Griffin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|