web_translate_it 2.4.11 → 2.4.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66a5c317674bbe2ed5e34456a69f2a4a927d7574d12e6131709c947acb8fa3bb
4
- data.tar.gz: 262ca5d895379b6f43a3541917b81f8844d9d3d5d72db86f63fc0388757d703a
3
+ metadata.gz: '088a8a2578209bdefd6abbdc9989c29c27da69df2a4ebf57ff7e89aeddc454fe'
4
+ data.tar.gz: 45428f99e5b9aef34759d7c3c0089cbb843cb6fe298102855823156d8501b4b1
5
5
  SHA512:
6
- metadata.gz: 54d07038ade4c4fa56dc44bd63acd152c22a97ffacf1769915f5728a39b0b45f2bfa9c3baba78fc0dda24c7a087ae7b7a19fdf4ba85b3b025c4f898e59ce6189
7
- data.tar.gz: 5fcc2ea6e361b6c31102205a97fce63026f91d1a48d200eb832d3ef81e4a94581df295a9561ec09ddfdb920c5232ff37371398e19ef8d65ccff6c3695830dd2f
6
+ metadata.gz: 15e13a2794cee9a705ad276b8c4d04452fdff2db386b1ec1766c69e3044df1c5258e7e682b981c6c0ce568d83e91af9125ca35b10eb7aedee191744f60b176e2
7
+ data.tar.gz: 626bda04b619653a15122cd0d41214f2d4cdf7612680c8f378906447c0ce9c6017ec6472189ac12dbcc314b1a370efb8c7f50081a906131a2ec146211b62a783
data/history.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## Version 2.4.12 / 2021-06-30
2
+
3
+ * Add ability to pass project API token as an ENV variable. You can run:
4
+ `export WTI_PROJECT_API_KEY=[my_api_token]`
5
+ `wti pull`
6
+
1
7
  ## Version 2.4.11 / 2019-10-22
2
8
 
3
9
  * Fix for `wti pull` without parameters.
@@ -113,7 +113,7 @@ module WebTranslateIt
113
113
  to_add = parameters.reject{ |param| added.include?(File.expand_path(param))}
114
114
  if to_add.any?
115
115
  to_add.each do |param|
116
- file = TranslationFile.new(nil, param, nil, configuration.api_key)
116
+ file = TranslationFile.new(nil, param.gsub(/ /, "\\ "), nil, configuration.api_key)
117
117
  success = file.create(http, command_options.low_priority)
118
118
  complete_success = false if !success
119
119
  end
@@ -20,7 +20,7 @@ module WebTranslateIt
20
20
  self.path = root_path
21
21
  self.logger = logger
22
22
  if File.exists?(File.expand_path(path_to_config_file, self.path))
23
- self.api_key = configuration['api_key']
23
+ self.api_key = ENV["WTI_PROJECT_API_KEY"] || configuration['api_key']
24
24
  self.before_pull = configuration['before_pull']
25
25
  self.after_pull = configuration['after_pull']
26
26
  self.before_push = configuration['before_push']
data/readme.md CHANGED
@@ -276,4 +276,4 @@ fr: 100% translated, 100% completed.
276
276
 
277
277
  # License
278
278
 
279
- Copyright (c) 2009-2019 WebTranslateIt Software S.L, released under the MIT License.
279
+ Copyright (c) 2009-2021 WebTranslateIt Software S.L, released under the MIT License.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web_translate_it
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.11
4
+ version: 2.4.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edouard Briere
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-22 00:00:00.000000000 Z
11
+ date: 2021-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multipart-post
@@ -124,7 +124,7 @@ homepage: https://webtranslateit.com
124
124
  licenses:
125
125
  - MIT
126
126
  metadata: {}
127
- post_install_message:
127
+ post_install_message:
128
128
  rdoc_options:
129
129
  - "--main"
130
130
  - readme.md
@@ -141,9 +141,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  requirements: []
144
- rubyforge_project:
145
- rubygems_version: 2.7.7
146
- signing_key:
144
+ rubygems_version: 3.0.6
145
+ signing_key:
147
146
  specification_version: 4
148
147
  summary: A CLI to sync locale files with WebTranslateIt.com.
149
148
  test_files: