copy_tuner_client 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/copy_tuner_client/configuration.rb +9 -1
- data/lib/copy_tuner_client/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
@@ -16,7 +16,7 @@ module CopyTunerClient
|
|
16
16
|
:http_open_timeout, :http_read_timeout, :client_name, :client_url,
|
17
17
|
:client_version, :port, :protocol, :proxy_host, :proxy_pass,
|
18
18
|
:proxy_port, :proxy_user, :secure, :polling_delay, :sync_interval, :sync_interval_staging, :logger,
|
19
|
-
:framework, :middleware, :disable_middleware, :ca_file].freeze
|
19
|
+
:framework, :middleware, :disable_middleware, :disable_test_translation, :ca_file].freeze
|
20
20
|
|
21
21
|
# @return [String] The API key for your project, found on the project edit form.
|
22
22
|
attr_accessor :api_key
|
@@ -87,6 +87,9 @@ module CopyTunerClient
|
|
87
87
|
# @return [Boolean] disable middleware setting
|
88
88
|
attr_accessor :disable_middleware
|
89
89
|
|
90
|
+
# @return [Boolean] disable download translation for test enviroment
|
91
|
+
attr_accessor :disable_test_translation
|
92
|
+
|
90
93
|
# @return [String] the path to a root certificate file used to verify ssl sessions. Default's to the root certificate file for copy-tuner.com.
|
91
94
|
attr_accessor :ca_file
|
92
95
|
|
@@ -195,6 +198,11 @@ module CopyTunerClient
|
|
195
198
|
unless test?
|
196
199
|
process_guard.start
|
197
200
|
end
|
201
|
+
|
202
|
+
if test? and !disable_test_translation
|
203
|
+
logger.info "Download translation now"
|
204
|
+
cache.download
|
205
|
+
end
|
198
206
|
end
|
199
207
|
|
200
208
|
def port
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: copy_tuner_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
@@ -362,7 +362,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
362
362
|
version: '0'
|
363
363
|
segments:
|
364
364
|
- 0
|
365
|
-
hash:
|
365
|
+
hash: 1508274453488739820
|
366
366
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
367
367
|
none: false
|
368
368
|
requirements:
|
@@ -371,7 +371,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
371
371
|
version: '0'
|
372
372
|
segments:
|
373
373
|
- 0
|
374
|
-
hash:
|
374
|
+
hash: 1508274453488739820
|
375
375
|
requirements: []
|
376
376
|
rubyforge_project:
|
377
377
|
rubygems_version: 1.8.23
|