crowdin-cli 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/crowdin-cli +1 -2
- data/lib/crowdin-cli/version.rb +1 -1
- metadata +3 -3
data/bin/crowdin-cli
CHANGED
@@ -161,7 +161,6 @@ command :upload do |c|
|
|
161
161
|
# array containing elements common to the two arrays
|
162
162
|
update_files = local_project_tree[:files] & remote_project_tree[:files]
|
163
163
|
files_for_upload = local_files.select{ |file| update_files.include?(file[:dest]) }
|
164
|
-
files_for_upload.map{ |file| file.keep_if{ |k, v| [:source, :dest].include?(k) } }
|
165
164
|
files_for_upload.each do |file|
|
166
165
|
puts "Update file `#{file[:dest]}`"
|
167
166
|
@crowdin.update_file([] << file)
|
@@ -213,7 +212,7 @@ command :upload do |c|
|
|
213
212
|
supported_languages = @crowdin.supported_languages
|
214
213
|
translation_languages = supported_languages.select{ |lang| project_languages.include?(lang['crowdin_code']) }
|
215
214
|
|
216
|
-
source_language =
|
215
|
+
source_language = project_info['source_language']['code']
|
217
216
|
source_language = supported_languages.find{ |lang| lang['crowdin_code'] == source_language }
|
218
217
|
|
219
218
|
translated_files = Hash.new{ |hash, key| hash[key] = Array.new }
|
data/lib/crowdin-cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crowdin-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - '='
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 0.0.
|
101
|
+
version: 0.0.6
|
102
102
|
type: :runtime
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -106,7 +106,7 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - '='
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0.0.
|
109
|
+
version: 0.0.6
|
110
110
|
description:
|
111
111
|
email:
|
112
112
|
- anton.linux@gmail.com
|