crowdin-cli 0.5.3 → 0.5.4
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.
- checksums.yaml +4 -4
- data/bin/crowdin-cli +6 -7
- data/lib/crowdin-cli/version.rb +1 -1
- data/locales/en.yml +2 -2
- 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: f06e2619f3ca894592ea2461b272548b26f8f0d5
|
4
|
+
data.tar.gz: 1fa47dcd91d9f95397b73deb69fac4eeda829ec1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2b5961ef3c87a59e8e4da02032dc55b6e4b704c2366902ec9e2769c5f6f3004ac5fc8917bda39ef4ba7688c4e167f23e34be1135a028df9444f9b560ab5e678
|
7
|
+
data.tar.gz: e50cf65954a6367a56a59f521fcea48ba2922b512bc47164b51aa2ded85772aae934b996e809cba79a6418afd00e875c86760446db5624f1c2848f13d5ed3cac
|
data/bin/crowdin-cli
CHANGED
@@ -291,18 +291,17 @@ end
|
|
291
291
|
# ├ └ ─ │
|
292
292
|
#
|
293
293
|
def display_tree(files_tree, level = -2, branches = [])
|
294
|
-
tab = ' ' * 4
|
295
294
|
level += 1
|
296
295
|
|
297
296
|
files_tree.each_with_index do |(key, val), index|
|
298
297
|
if val.empty? # this is a file
|
299
|
-
result = branches.take(level).inject('') { |s, i| s << (i == 1 ? '│
|
298
|
+
result = branches.take(level).inject('') { |s, i| s << (i == 1 ? '│' : '').ljust(4) }
|
300
299
|
|
301
300
|
if index == files_tree.length - 1
|
302
301
|
# this is a last element
|
303
|
-
result << '└' + '── ' + key
|
302
|
+
result << '└' + '──' + ' ' + key
|
304
303
|
else
|
305
|
-
result << '├' + '── ' + key
|
304
|
+
result << '├' + '──' + ' ' + key
|
306
305
|
end
|
307
306
|
|
308
307
|
puts result
|
@@ -310,14 +309,14 @@ def display_tree(files_tree, level = -2, branches = [])
|
|
310
309
|
if key == '' # root directory
|
311
310
|
result = '.'
|
312
311
|
else
|
313
|
-
result = branches.take(level).inject('') { |s, i| s << (i == 1 ? '│
|
312
|
+
result = branches.take(level).inject('') { |s, i| s << (i == 1 ? '│' : '').ljust(4) }
|
314
313
|
if index == files_tree.length - 1
|
315
314
|
# this is a last element
|
316
|
-
result << '└' + '── ' + key
|
315
|
+
result << '└' + '──' + ' ' + key
|
317
316
|
|
318
317
|
branches[level] = 0
|
319
318
|
else
|
320
|
-
result << '├' + '── ' + key
|
319
|
+
result << '├' + '──' + ' ' + key
|
321
320
|
|
322
321
|
branches[level] = 1
|
323
322
|
end
|
data/lib/crowdin-cli/version.rb
CHANGED
data/locales/en.yml
CHANGED
@@ -26,7 +26,7 @@ en:
|
|
26
26
|
long_desc: |
|
27
27
|
Upload source files to Crowdin project.
|
28
28
|
If there are new localization files locally they will be added to Crowdin project.
|
29
|
-
|
29
|
+
Otherwise files will be updated (if no --no-auto-update option specified).
|
30
30
|
switches:
|
31
31
|
auto_update:
|
32
32
|
desc: |
|
@@ -60,7 +60,7 @@ en:
|
|
60
60
|
language:
|
61
61
|
desc: |
|
62
62
|
If the option is defined the translations will be downloaded for single specified language.
|
63
|
-
|
63
|
+
Otherwise (by default) translations are downloaded for all languages
|
64
64
|
switches:
|
65
65
|
ignore_match:
|
66
66
|
desc: |
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Crowdin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|