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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b417ad418dde918054346c6ae0ab08666a5d205
4
- data.tar.gz: 8c76240084044ebee4a3a602293914760e72e8f0
3
+ metadata.gz: 684e0437bbf7cc86e2716aef718a30755d9062cc
4
+ data.tar.gz: dc6f0d1b5753e1864841448c04a376598192c3dc
5
5
  SHA512:
6
- metadata.gz: bdac23c33192d626f2cfee46bd0481f5efd327742fb0ea2f1e64e4a1db04e06b29ba423156af235627522726c97c8c060cbd8288f1884dc8077cebe79576cee4
7
- data.tar.gz: 304f52b5b55c1c1c0b2e445e8e72a5563b83d984723d8d0265b9ccc5005d45f0e7db2120df799fb5d42b6797b368f2f755671daf72008cfec40f54e5a496728a
6
+ metadata.gz: e0464fa1868c7be7cb56f9aad58862f558d40df286c29c1fe078e70702e05e71d8a37cc8da7caa8e186ed5d1d65587cb8447025c4b0fdb79d1eb80f2b86ff8f7
7
+ data.tar.gz: e8a3f6bd658210f4a039e86de5ea1866e4ec757935f78114ea4b6f8421915e5cc65c61c9340f32dfb1d98a00e25a99676e721c0c4a3def0f87fd21a0eb3e7767
@@ -63,7 +63,7 @@ class PhraseAppUpdaterCLI < Thor
63
63
  end
64
64
 
65
65
  unless store_phraseapp_originals_path.empty?
66
- result.resolved_files.each do |file|
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
@@ -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, changed_files + [default_locale_file])
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)
@@ -1,3 +1,3 @@
1
1
  class PhraseAppUpdater
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-15 00:00:00.000000000 Z
11
+ date: 2017-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor