copy_tuner_client 0.0.2 → 0.0.3
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.
- data/Gemfile.lock +1 -1
- data/lib/copy_tuner_client/configuration.rb +6 -2
- data/lib/copy_tuner_client/version.rb +1 -1
- metadata +3 -3
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, :ca_file].freeze
|
|
19
|
+
:framework, :middleware, :disable_middleware, :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
|
|
@@ -84,6 +84,9 @@ module CopyTunerClient
|
|
|
84
84
|
# @return the middleware stack, if any, which should respond to +use+
|
|
85
85
|
attr_accessor :middleware
|
|
86
86
|
|
|
87
|
+
# @return [Boolean] disable middleware setting
|
|
88
|
+
attr_accessor :disable_middleware
|
|
89
|
+
|
|
87
90
|
# @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.
|
|
88
91
|
attr_accessor :ca_file
|
|
89
92
|
|
|
@@ -178,7 +181,8 @@ module CopyTunerClient
|
|
|
178
181
|
process_guard = ProcessGuard.new(cache, poller, to_hash)
|
|
179
182
|
I18n.backend = I18nBackend.new(cache)
|
|
180
183
|
|
|
181
|
-
if middleware && development?
|
|
184
|
+
if middleware && development? && !disable_middleware
|
|
185
|
+
logger.info "Using copytuner sync middleware"
|
|
182
186
|
middleware.use RequestSync, :cache => cache, :interval => sync_interval
|
|
183
187
|
end
|
|
184
188
|
|
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.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -360,7 +360,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
360
360
|
version: '0'
|
|
361
361
|
segments:
|
|
362
362
|
- 0
|
|
363
|
-
hash:
|
|
363
|
+
hash: 1018111501165444892
|
|
364
364
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
365
365
|
none: false
|
|
366
366
|
requirements:
|
|
@@ -369,7 +369,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
369
369
|
version: '0'
|
|
370
370
|
segments:
|
|
371
371
|
- 0
|
|
372
|
-
hash:
|
|
372
|
+
hash: 1018111501165444892
|
|
373
373
|
requirements: []
|
|
374
374
|
rubyforge_project:
|
|
375
375
|
rubygems_version: 1.8.23
|