crowdin-cli 0.0.5 → 0.0.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.
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 = 'en'
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 }
@@ -1,5 +1,5 @@
1
1
  module Crowdin
2
2
  module CLI
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.6'
4
4
  end
5
5
  end
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.5
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.5
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.5
109
+ version: 0.0.6
110
110
  description:
111
111
  email:
112
112
  - anton.linux@gmail.com