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 +4 -4
- data/bin/crowdin-cli +3 -1
- data/lib/crowdin-cli/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: ca8a6106bede17a0348f4cde54823cf779579783
|
4
|
+
data.tar.gz: a7004c0632c8115cee028c8c0b6a367774ced70d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 787ccfe292caa45919033c849b25b947653a40a96e60da62826858c6cb1d1f4215221322aed60e86a5187c4526dea132afd06972430095fce9c17a85fefb112b
|
7
|
+
data.tar.gz: 5bb5f8afe7014b66a8847279776e19195c9b554b19cd2e84b069bd085c7e097344a2d95e1cd3a7f0aa3ec3092c58318375038dc4358c56b662d4e003b49cdfc1
|
data/bin/crowdin-cli
CHANGED
@@ -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)
|
data/lib/crowdin-cli/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|