toptranslation_cli 1.0.0 → 1.0.1
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/CHANGELOG.md +12 -0
- data/lib/toptranslation_cli/configuration.rb +8 -3
- data/lib/toptranslation_cli/file_finder.rb +1 -1
- data/lib/toptranslation_cli/initializer.rb +1 -1
- data/lib/toptranslation_cli/placeholder_path.rb +1 -1
- data/lib/toptranslation_cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 233119c9bbbc8ac2c69a81f16620229176b9add7bfa5e6159c5d0624945a5126
|
4
|
+
data.tar.gz: e1e08b4bd6a3d059dc1ac8c91a80c72587cdad47d54e92f446858c5093edcec3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5629f83491b9937ab92ec64490d9866e29aae2909daca935e68e018760b56a1c1f0f67033d8ab4cac3294732a89598cd9e8c51b801b0be48228709bbabddd30f
|
7
|
+
data.tar.gz: 99bdfd882cc6a32fd9fec01d5cdc3757b323a066aa5310bfc0418efae8e11129e63b49f4654e4c57043ea2332ca76cd67399cd1c80d5f041847b2245b437f1e1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
<a name="1.0.1"></a>
|
2
|
+
### 1.0.1 (2019-10-08)
|
3
|
+
|
4
|
+
#### Bug Fixes
|
5
|
+
|
6
|
+
* rename a private method which was called by a a different name ([dc1e265](/../commit/dc1e265))
|
7
|
+
* make regex for placeholder paths case insensitive ([fe1d0dd](/../commit/fe1d0dd))
|
8
|
+
|
9
|
+
#### maintain
|
10
|
+
|
11
|
+
* make tt init use the same configuration as the other commands ([6b7370c](/../commit/6b7370c))
|
12
|
+
|
1
13
|
<a name="1.0.0"></a>
|
2
14
|
### 1.0.0 (2019-10-08)
|
3
15
|
|
@@ -6,13 +6,18 @@ module ToptranslationCli
|
|
6
6
|
|
7
7
|
FILENAME = '.toptranslation.yml'
|
8
8
|
|
9
|
+
def initialize
|
10
|
+
@files_base_url = 'https://files.toptranslation.com'
|
11
|
+
@api_base_url = 'https://api.toptranslation.com'
|
12
|
+
@verbose = !ENV['VERBOSE'].nil?
|
13
|
+
end
|
14
|
+
|
9
15
|
def load
|
10
16
|
@project_identifier = configuration['project_identifier']
|
11
17
|
@access_token = configuration['access_token']
|
18
|
+
@files_base_url = configuration['files_base_url'] || @files_base_url
|
19
|
+
@api_base_url = configuration['api_base_url'] || @api_base_url
|
12
20
|
@files = configuration['files'] || []
|
13
|
-
@files_base_url = configuration['files_base_url'] || 'https://files.toptranslation.com'
|
14
|
-
@api_base_url = configuration['api_base_url'] || 'https://api.toptranslation.com'
|
15
|
-
@verbose = !ENV['VERBOSE'].nil?
|
16
21
|
end
|
17
22
|
|
18
23
|
def save
|
@@ -14,7 +14,7 @@ module ToptranslationCli
|
|
14
14
|
|
15
15
|
def initialize
|
16
16
|
@prompt = TTY::Prompt.new
|
17
|
-
@client =
|
17
|
+
@client = ToptranslationCli.connection
|
18
18
|
@pastel = Pastel.new
|
19
19
|
format = "[#{@pastel.yellow(':spinner')}] :title"
|
20
20
|
@spinner = TTY::Spinner.new(format, success_mark: @pastel.green('+'), error_mark: @pastel.red('-'))
|