crowdin-cli 0.5.6 → 0.6.0

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: 823a8fda702b2d0c254bcafd32c0354cc3da3cf0
4
- data.tar.gz: f20c4b6cceeac981f7b7af4f401085752cc04478
3
+ metadata.gz: ec62d7630395f2ae965291604abd246301af25c7
4
+ data.tar.gz: d7bb48ee1d3ee17812851cefbd9b447cba80a3aa
5
5
  SHA512:
6
- metadata.gz: 4f81872f7bc0c997d8ead829c39cb5e8c7421266785d00f520dd33d702a247c36766bc84da543720f031777c476f7181736c25b93d0627064c4dcdac0b84558d
7
- data.tar.gz: 9f8f1f8990298b6cfd2d4d8892062e8945d86953017e0d44fe8b54f71a6b7ea89321a13c5f7b4fbe3a7079b73ddcbd5a63e671bc8dcb861792f1229fb895dd3c
6
+ metadata.gz: 36045d1831fb72b6de47919cf8399e5c169ee14bcfdf4babf97ac7c37605cc315e00a62ab02ae57f7856ab8bcd2bf1db8ca438bf785dae21baac773f0f8a8583
7
+ data.tar.gz: c2ba7e4bf0d09d544cb2af5f15411a5ae1ff2840ff77ab6298171dccdf63c8b2ca74ed89366689c46d08519fbd7d27417dad0755d3985aecf92dc4cc0a73d50f
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2012-2016 Anton Maminov
3
+ Copyright (c) 2012-2018 Anton Maminov
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -515,7 +515,7 @@ java -jar <myapp>.jar
515
515
  We bundled crowdin-cli as a Java application to let you start using crowdin-cli easier.
516
516
  This method does not require installation. To get started:
517
517
 
518
- 1. [Download crowdin-cli.jar](https://crowdin.com/downloads/crowdin-cli.jar "Download crowdin-cli bundled as Java application") and save to your hard drive
518
+ 1. [Download crowdin-cli.jar](https://downloads.crowdin.com/cli/v1/crowdin-cli.jar "Download crowdin-cli bundled as Java application") and save to your hard drive
519
519
  2. Check that you have Java 7 installed
520
520
  3. Add the crowdin-cli.jar file to your project directory
521
521
 
@@ -531,47 +531,6 @@ This method does not require installation. To get started:
531
531
 
532
532
  Author: Anton Maminov (anton.maminov@gmail.com)
533
533
 
534
- Copyright: 2012-2016 [crowdin.com](http://crowdin.com/)
534
+ Copyright: 2012-2018 [crowdin.com](http://crowdin.com/)
535
535
 
536
536
  This project is licensed under the MIT license, a copy of which can be found in the LICENSE file.
537
-
538
- ```
539
-
540
- `.-:://oooosyyyyyyyyyyyyyyyyyyyysoooo+///:::...
541
- .-//oyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyysoo//:-.`
542
- .:+syyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyssssssssssssyyyyyyyyyyyyso+/:.`
543
- `:oyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyssoo+++///::::::::::::::::::-------::::////+ooooo+/:.
544
- `:oyyyyyyyyyyyyyyyyyyyyyyyyyyyso++/::::::::::::--......```` ```
545
- -+yyyyyyyyyyyyyyyyyyyyyyyyyso+/:::::::::--...``
546
- .oyyyyyyyyyyyyyyyyyyyyyyyyo+::::::::--.`` ....-----------------....`
547
- /yyyyyyyyyyyyyyyyyyyyyyyo/:::::::-..` ..-:/+oosssyyyyyyyyyyyyyyyyyyyyyssssssso++/:--`
548
- `oyyyyyyyyyyyyyyyyyyyyyyo/::::::-.` .-/+ssyyyyyyyyyyyyyyyysssooo++////::----..........```
549
- `syyyyyyyyyyyyyyyyyyyyys/:::::-.` .:+syyyyyyyyyyyyyyysoo+//:::---..```
550
- oyyyyyyyyyyyyyyyyyyyyy+:::::-. ./syyyyyyyyyyyyyyso+/::::--.``
551
- :yyyyyyyyyyyyyyyyyyyyy+::::-. -oyyyyyyyyyyyyyys+/::::-.`` `.--::/++++ssssssssso++++/::-.`
552
- oyyyyyyyyyyyyyyyyyyyy+::::-` .oyyyyyyyyyyyyyyo/:::-.` .-/+ssyyyyyyyyssoo++///::----......``
553
- .yyyyyyyyyyyyyyyyyyyys::::- :syyyyyyyyyyyyys/:::-` ./osyyyyyyyyso+/::-.````
554
- :ossyyyyyyyyyyyyyyyyy/:::- -yyyyyyyyyyyyyy+:::-` -oyyyyyyyyso/::-.``
555
- ``.:/+oosssyyyyyyyo::::` `syyyyyyyyyyyyyo:::. `oyyyyyyyyy+::-.`
556
- .:::::::///++oo::::- -yyyyyyyyyyyyys:::. `oyyyyyyyys/:-`
557
- -::::::::::::::::::. /yyyyyyyyyyyyy+::- :yyyyyyyyy/:.
558
- -:::::::::::::::::: .:::++ooosssss:::` /ssyyyyyyo:-
559
- o+/:-::::::::::::::::::- :::::::::::::` ``.///////:.
560
- yyyyyyssoo++////:::::::. ::::::::::::- `..::::::::.
561
- yyyyyyyyyyyyyyyysso::::. -o+/++///////:::- :yyssssss/:.
562
- yyyyyyyyyyyyyyyyyyy::::. .yyyyyyyyyyyys:::` `yyyyyyyyo:-
563
- +yyyyyyyyyyyyyyyyyy/:::. syyyyyyyyyyyy/::. /yyyyyyyy/:.
564
- -yyyyyyyyyyyyyyyyyy/:::: :yyyyyyyyyyyyo::: `oyyyyyyyy/:-`
565
- `syyyyyyyyyyyyyyyyyo::::` oyyyyyyyyyyyy+::- /syyyyyyyo/:-.`` `````.
566
- :yyyyyyyyyyyyyyyyyy/:::- `syyyyyyyyyyyy/::-` `/oyyyyyyyssoo+++//:-.`
567
- +yyyyyyyyyyyyyyyyyo::::- `oyyyyyyyyyyyyo:::-` `-://oo+///--`
568
- `syyyyyyyyyyyyyyyyy+::::- /yyyyyyyyyyyyyo/:::-..` ``..`
569
- `syyyyyyyyyyyyyyyyy+::::-` `/syyyyyyyyyyyyso++//::::/:///:-.`
570
- `+yyyyyyyyyyyyyyyyys/::::-` .:+yyyyyyyyyyyyyyyysso/:.`
571
- -syyyyyyyyyyyyyyyyyo:::::-.` `.---////----..
572
- `/syyyyyyyyyyyyyyyyyo+::::::-..``
573
- -+yyyyyyyyyyyyyyyyyyso+/:::::::---......--::-..`
574
- -/oyyyyyyyyyyyyyyyyyyyysssoooooooo++/-.`
575
- `-:/oosyyyyyyyyyyyyyooo//::.`
576
-
577
- ```
@@ -79,10 +79,9 @@ def export_pattern_to_path(path, export_pattern, lang, languages_mapping = nil)
79
79
  '%three_letters_code%' => lang['iso_639_3'],
80
80
  '%locale%' => lang['locale'],
81
81
  '%locale_with_underscore%' => lang['locale'].gsub('-', '_'),
82
- '%android_code%' => android_locale_code(lang['locale']),
83
- '%osx_code%' => osx_language_code(lang['crowdin_code']) + '.lproj',
84
- '%osx_xliff%' => osx_language_code(lang['crowdin_code']) + '.xliff',
85
- '%osx_locale%' => osx_language_code(lang['crowdin_code']),
82
+ '%android_code%' => lang['android_code'],
83
+ '%osx_code%' => lang['osx_code'],
84
+ '%osx_locale%' => lang['osx_locale'],
86
85
  }
87
86
 
88
87
  placeholders = pattern.inject([]){ |memo, h| memo << h.first[/%(.*)%/, 1] }
@@ -182,25 +181,6 @@ def translate_pattern_to_regexp(pat)
182
181
  return Regexp.new(res + '$')
183
182
  end
184
183
 
185
- def android_locale_code(locale_code)
186
- locale_code = case locale_code
187
- when 'he-IL' then 'iw-IL'
188
- when 'yi-DE' then 'ji-DE'
189
- when 'id-ID' then 'in-ID'
190
- else locale_code
191
- end
192
- return locale_code.sub('-', '-r')
193
- end
194
-
195
- def osx_language_code(language_code)
196
- language_code = case language_code
197
- when 'zh-TW' then 'zh-Hant'
198
- when 'zh-CN' then 'zh-Hans'
199
- else language_code
200
- end
201
- return language_code.sub('-', '_')
202
- end
203
-
204
184
  def get_invalid_placeholders(export_pattern)
205
185
  valid_placeholders = [
206
186
  '%language%',
@@ -210,7 +190,6 @@ def get_invalid_placeholders(export_pattern)
210
190
  '%locale_with_underscore%',
211
191
  '%android_code%',
212
192
  '%osx_code%',
213
- '%osx_xliff%',
214
193
  '%osx_locale%',
215
194
  '%original_file_name%',
216
195
  '%original_path%',
@@ -1,5 +1,5 @@
1
1
  module Crowdin
2
2
  module CLI
3
- VERSION = '0.5.6'
3
+ VERSION = '0.6.0'
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.6
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Crowdin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-14 00:00:00.000000000 Z
11
+ date: 2018-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  requirements: []
146
146
  rubyforge_project:
147
- rubygems_version: 2.5.2
147
+ rubygems_version: 2.6.13
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: Crowdin CLI.