copy_tuner_client 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- copy_tuner_client (0.0.2)
4
+ copy_tuner_client (0.0.3)
5
5
  i18n (>= 0.5.0)
6
6
  json
7
7
 
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  module CopyTunerClient
2
2
  # Client version
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
 
5
5
  # API version being used to communicate with the server
6
6
  API_VERSION = '2.0'.freeze
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.2
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: 3859046982728401984
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: 3859046982728401984
372
+ hash: 1018111501165444892
373
373
  requirements: []
374
374
  rubyforge_project:
375
375
  rubygems_version: 1.8.23