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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 670a39458358d6f3b7be7cb8e4d17d1218ae10c5
4
- data.tar.gz: abc0a523a67c8a6d05a9bfb12613f8857a2bda9a
3
+ metadata.gz: f06e2619f3ca894592ea2461b272548b26f8f0d5
4
+ data.tar.gz: 1fa47dcd91d9f95397b73deb69fac4eeda829ec1
5
5
  SHA512:
6
- metadata.gz: 13580b9db9a409a01ebc2dc18207f4e0f97a97184f67e9cb859b93de1efaf97ae5811c591434f75f24c0fca36437c4a94976c8840084426a1f0d378d7bff53af
7
- data.tar.gz: 1e30247d743d9f1b08363866985938d7ddc4c2f56555d80c61da360e3479f4f04dbf2d0db6db4766f999c486b57a3fa9a3b417861d260009c49b94acc8b21df3
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
@@ -1,5 +1,5 @@
1
1
  module Crowdin
2
2
  module CLI
3
- VERSION = '0.5.3'
3
+ VERSION = '0.5.4'
4
4
  end
5
5
  end
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
- Othervice files will be updated (if no --no-auto-update option specified).
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
- Othervice (by default) translations are downloaded for all languages
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.3
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-05-04 00:00:00.000000000 Z
11
+ date: 2016-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake