crowdin-cli 0.3.8 → 0.3.9
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/README.md +14 -14
- data/bin/crowdin-cli +9 -9
- data/lib/crowdin-cli/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 537f53d50ce6de83a8e9197a1bfb2c5e8588c448
|
4
|
+
data.tar.gz: f3d7877dd48622b16ad97ab3a8bd9f9603c4acf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06677d220d7fa58aa62f1856aa2baa320f139737704a5eb7177764cb83a094201728e57c279e922b810af27548e292a79a591659faed818dc04307b938e30189
|
7
|
+
data.tar.gz: d28e1d50481b0556582e31a2bb1ad06a4d8aa6415ed25505562781af83f838b3eb58692daff6ee7c52a86379f98eedca4d5e14dd13cb3ad0a5abcedcb9ad5590
|
data/README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# Crowdin-CLI
|
2
2
|
|
3
|
-
[Crowdin Integration Utility Homepage](http://crowdin.
|
4
|
-
| [Support](http://crowdin.
|
5
|
-
| [
|
3
|
+
[Crowdin Integration Utility Homepage](http://crowdin.com/page/cli-tool)
|
4
|
+
| [Support](http://crowdin.com/contacts)
|
5
|
+
| [crowdin.com Homepage](http://crowdin.com)
|
6
6
|
| [crowdin-api RubyDoc](http://rubydoc.info/github/crowdin/crowdin-api/)
|
7
7
|
|
8
|
-
A Command-Line Interface to sync files between local computer/server and [Crowdin](crowdin.
|
8
|
+
A Command-Line Interface to sync files between local computer/server and [Crowdin](crowdin.com).
|
9
9
|
|
10
10
|
It is cross-platform and can be run in a terminal (Linux, MacOS X) or in cmd.exe (Windows).
|
11
11
|
|
@@ -40,7 +40,7 @@ Create `crowdin.yaml` YAML file in your root project directory with the followin
|
|
40
40
|
```
|
41
41
|
project_identifier: test
|
42
42
|
api_key: KeepTheAPIkeySecret
|
43
|
-
base_url: http://api.crowdin.
|
43
|
+
base_url: http://api.crowdin.com
|
44
44
|
base_path: /path/to/your/project
|
45
45
|
|
46
46
|
files:
|
@@ -51,7 +51,7 @@ files:
|
|
51
51
|
|
52
52
|
* `api_key` - Crowdin Project API key
|
53
53
|
* `project_identifier` - Crowdin project name
|
54
|
-
* `base_url` - (default: http://api.crowdin.
|
54
|
+
* `base_url` - (default: http://api.crowdin.com)
|
55
55
|
* `base_path` - defines what directory have to be scaned(default: current directory)
|
56
56
|
* `files`
|
57
57
|
* `source` - defines only files that should be uploaded as sources
|
@@ -111,7 +111,7 @@ See sample configuration below::
|
|
111
111
|
---
|
112
112
|
project_identifier: test
|
113
113
|
api_key: KeepTheAPIkeySecret
|
114
|
-
base_url: http://api.crowdin.
|
114
|
+
base_url: http://api.crowdin.com
|
115
115
|
base_path: /path/to/your/project
|
116
116
|
|
117
117
|
files:
|
@@ -140,7 +140,7 @@ Let's say your locale directories named 'en', 'uk', 'fr', 'de'. All of them can
|
|
140
140
|
---
|
141
141
|
project_identifier: test
|
142
142
|
api_key: KeepTheAPIkeySecret
|
143
|
-
base_url: http://api.crowdin.
|
143
|
+
base_url: http://api.crowdin.com
|
144
144
|
base_path: /path/to/your/project
|
145
145
|
|
146
146
|
files:
|
@@ -155,7 +155,7 @@ files:
|
|
155
155
|
```
|
156
156
|
Mapping format is the following: `crowdin_language_code : code_use_use`.
|
157
157
|
|
158
|
-
Check [complete list of Crowdin language codes](http://crowdin.
|
158
|
+
Check [complete list of Crowdin language codes](http://crowdin.com/page/api/language-codes) that can be used for mapping.
|
159
159
|
|
160
160
|
You can also override language codes for other placeholders like `%android_code%`, `%locale%` etc...
|
161
161
|
|
@@ -187,7 +187,7 @@ Configuration sample is below:
|
|
187
187
|
---
|
188
188
|
project_identifier: test
|
189
189
|
api_key: KeepTheAPIkeySecret
|
190
|
-
base_url: http://api.crowdin.
|
190
|
+
base_url: http://api.crowdin.com
|
191
191
|
base_path: /path/to/your/project
|
192
192
|
preserve_hierarchy: true
|
193
193
|
```
|
@@ -198,7 +198,7 @@ preserve_hierarchy: true
|
|
198
198
|
---
|
199
199
|
project_identifier: test
|
200
200
|
api_key: KeepTheAPIkeySecret
|
201
|
-
base_url: http://api.crowdin.
|
201
|
+
base_url: http://api.crowdin.com
|
202
202
|
base_path: /path/to/your/project
|
203
203
|
|
204
204
|
files:
|
@@ -244,7 +244,7 @@ files:
|
|
244
244
|
---
|
245
245
|
project_identifier: test
|
246
246
|
api_key: KeepTheAPIkeySecret
|
247
|
-
base_url: http://api.crowdin.
|
247
|
+
base_url: http://api.crowdin.com
|
248
248
|
base_path: /path/to/your/project
|
249
249
|
|
250
250
|
files:
|
@@ -263,7 +263,7 @@ files:
|
|
263
263
|
---
|
264
264
|
project_identifier: test
|
265
265
|
api_key: KeepTheAPIkeySecret
|
266
|
-
base_url: http://api.crowdin.
|
266
|
+
base_url: http://api.crowdin.com
|
267
267
|
base_path: /path/to/your/project
|
268
268
|
|
269
269
|
files:
|
@@ -351,6 +351,6 @@ Tested with the following Ruby versions:
|
|
351
351
|
|
352
352
|
Author: Anton Maminov (anton.maminov@gmail.com)
|
353
353
|
|
354
|
-
Copyright: 2012-2014 [
|
354
|
+
Copyright: 2012-2014 [crowdin.com](http://crowdin.com/)
|
355
355
|
|
356
356
|
This project is licensed under the MIT license, a copy of which can be found in the LICENSE file.
|
data/bin/crowdin-cli
CHANGED
@@ -370,7 +370,7 @@ command :upload do |c|
|
|
370
370
|
|
371
371
|
@config['files'].each do |file|
|
372
372
|
get_invalid_placeholders(file['translation']).each do |placeholder|
|
373
|
-
puts "Warning: #{placeholder} is not valid variable supported by Crowdin. See http://crowdin.
|
373
|
+
puts "Warning: #{placeholder} is not valid variable supported by Crowdin. See http://crowdin.com/page/cli-tool#configuration-file for more details."
|
374
374
|
end
|
375
375
|
|
376
376
|
ignores = file['ignore'] || []
|
@@ -421,7 +421,7 @@ command :upload do |c|
|
|
421
421
|
exit_now! <<EOS
|
422
422
|
No source files to upload.
|
423
423
|
Check your configuration file to ensure that they contain valid directives.
|
424
|
-
See http://crowdin.
|
424
|
+
See http://crowdin.com/page/cli-tool#configuration-file for more details.
|
425
425
|
EOS
|
426
426
|
end
|
427
427
|
|
@@ -540,7 +540,7 @@ EOS
|
|
540
540
|
|
541
541
|
@config['files'].each do |file|
|
542
542
|
get_invalid_placeholders(file['translation']).each do |placeholder|
|
543
|
-
puts "Warning: #{placeholder} is not valid variable supported by Crowdin. See http://crowdin.
|
543
|
+
puts "Warning: #{placeholder} is not valid variable supported by Crowdin. See http://crowdin.com/page/cli-tool#configuration-file for more details."
|
544
544
|
end
|
545
545
|
|
546
546
|
ignores = file['ignore'] || []
|
@@ -596,7 +596,7 @@ EOS
|
|
596
596
|
exit_now! <<EOS
|
597
597
|
No translation files to upload.
|
598
598
|
Check your configuration file to ensure that they contain valid directives.
|
599
|
-
See http://crowdin.
|
599
|
+
See http://crowdin.com/page/cli-tool#configuration-file for more details.
|
600
600
|
EOS
|
601
601
|
end
|
602
602
|
|
@@ -777,7 +777,7 @@ command :list do |ls_cmd|
|
|
777
777
|
|
778
778
|
@config['files'].each do |file|
|
779
779
|
get_invalid_placeholders(file['translation']).each do |placeholder|
|
780
|
-
puts "Warning: #{placeholder} is not valid variable supported by Crowdin. See http://crowdin.
|
780
|
+
puts "Warning: #{placeholder} is not valid variable supported by Crowdin. See http://crowdin.com/page/cli-tool#configuration-file for more details."
|
781
781
|
end
|
782
782
|
|
783
783
|
ignores = file['ignore'] || []
|
@@ -925,7 +925,7 @@ pre do |globals ,command, options, args|
|
|
925
925
|
Can't find configuration file (default `crowdin.yaml').
|
926
926
|
Type `crowdin-cli help` to know how to specify custom configuration file
|
927
927
|
|
928
|
-
See http://crowdin.
|
928
|
+
See http://crowdin.com/page/cli-tool#configuration-file for more details
|
929
929
|
EOS
|
930
930
|
else
|
931
931
|
@config = YAML.load_file(globals[:config]) || {}
|
@@ -942,7 +942,7 @@ EOS
|
|
942
942
|
exit_now! <<EOS
|
943
943
|
Configuration file misses required option `#{key}`
|
944
944
|
|
945
|
-
See http://crowdin.
|
945
|
+
See http://crowdin.com/page/cli-tool#configuration-file for more details
|
946
946
|
EOS
|
947
947
|
end
|
948
948
|
end
|
@@ -951,7 +951,7 @@ EOS
|
|
951
951
|
exit_now! <<EOS
|
952
952
|
Configuration file misses required section `files`
|
953
953
|
|
954
|
-
See http://crowdin.
|
954
|
+
See http://crowdin.com/page/cli-tool#configuration-file for more details
|
955
955
|
EOS
|
956
956
|
end
|
957
957
|
end
|
@@ -1011,7 +1011,7 @@ EOS
|
|
1011
1011
|
|
1012
1012
|
Crowdin::API.log = Logger.new($stderr) if globals[:verbose]
|
1013
1013
|
|
1014
|
-
base_url = @config['base_url'] || 'http://api.crowdin.
|
1014
|
+
base_url = @config['base_url'] || 'http://api.crowdin.com'
|
1015
1015
|
@crowdin = Crowdin::API.new(api_key: @config['api_key'], project_id: @config['project_identifier'], base_url: base_url)
|
1016
1016
|
|
1017
1017
|
begin
|
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.3.
|
4
|
+
version: 0.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Crowdin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -89,7 +89,7 @@ dependencies:
|
|
89
89
|
version: '0.2'
|
90
90
|
- - '>='
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: 0.2.
|
92
|
+
version: 0.2.3
|
93
93
|
type: :runtime
|
94
94
|
prerelease: false
|
95
95
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -99,7 +99,7 @@ dependencies:
|
|
99
99
|
version: '0.2'
|
100
100
|
- - '>='
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 0.2.
|
102
|
+
version: 0.2.3
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: i18n
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|