crowdin-cli 0.5.0 → 0.5.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: 11f770174a6caab3825b80edcf669999504acf0f
4
- data.tar.gz: 968602558be8a6a1a5efd4c6d33e07532d7a11cd
3
+ metadata.gz: ca8a6106bede17a0348f4cde54823cf779579783
4
+ data.tar.gz: a7004c0632c8115cee028c8c0b6a367774ced70d
5
5
  SHA512:
6
- metadata.gz: 3596eaf69499f7798d15e9425b806f9b490e0826bfe00bb5f6de5249267b29764413b7bdea61ba2589d37e356075906c26a9fdb55c931419acd800616c17d92a
7
- data.tar.gz: 4a660c81bf5ca5a417ca2d08327283cade4a2b7dac0105788e6d4198157eff28ae417a27cb7d857f484f95a01e432ee77a011fee8d33cda39e722c0dea47ba98
6
+ metadata.gz: 787ccfe292caa45919033c849b25b947653a40a96e60da62826858c6cb1d1f4215221322aed60e86a5187c4526dea132afd06972430095fce9c17a85fefb112b
7
+ data.tar.gz: 5bb5f8afe7014b66a8847279776e19195c9b554b19cd2e84b069bd085c7e097344a2d95e1cd3a7f0aa3ec3092c58318375038dc4358c56b662d4e003b49cdfc1
@@ -414,6 +414,7 @@ command :upload do |c|
414
414
  if File.exist?(File.join(@base_path, file['source']))
415
415
  dest = file['dest'] || file['source']
416
416
  type = file['type']
417
+
417
418
  dest_files << dest
418
419
 
419
420
  local_file = { dest: dest, source: File.join(@base_path, file['source']), export_pattern: file['translation'], type: type }
@@ -426,6 +427,7 @@ command :upload do |c|
426
427
  else
427
428
  Find.find(@base_path) do |source_path|
428
429
  dest = source_path.sub(/\A#{Regexp.escape(@base_path)}/, '') # relative path in Crowdin
430
+ type = file['type']
429
431
 
430
432
  if File.directory?(source_path)
431
433
  if ignores.any? { |pattern| File.fnmatch?(pattern, dest, File::FNM_PATHNAME) }
@@ -440,7 +442,7 @@ command :upload do |c|
440
442
 
441
443
  export_pattern = construct_export_pattern(dest, file['source'], file['translation'])
442
444
 
443
- local_file = { dest: dest, source: source_path, export_pattern: export_pattern }
445
+ local_file = { dest: dest, source: source_path, export_pattern: export_pattern, type: type }
444
446
 
445
447
  @allowed_options.each do |option|
446
448
  local_file.merge!({ option.to_sym => file[option] }) if file.has_key?(option)
@@ -1,5 +1,5 @@
1
1
  module Crowdin
2
2
  module CLI
3
- VERSION = '0.5.0'
3
+ VERSION = '0.5.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crowdin-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Crowdin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-14 00:00:00.000000000 Z
11
+ date: 2015-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake