copy_tuner_client 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/gemfiles/2.3.gemfile.lock +1 -1
- data/gemfiles/3.0.gemfile.lock +1 -1
- data/gemfiles/3.1.gemfile.lock +1 -1
- data/lib/copy_tuner_client/configuration.rb +2 -0
- data/lib/copy_tuner_client/rails.rb +1 -1
- data/lib/copy_tuner_client/railtie.rb +1 -1
- data/lib/copy_tuner_client/request_sync.rb +2 -2
- data/lib/copy_tuner_client/version.rb +1 -1
- data/lib/copy_tuner_client.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/gemfiles/2.3.gemfile.lock
CHANGED
data/gemfiles/3.0.gemfile.lock
CHANGED
data/gemfiles/3.1.gemfile.lock
CHANGED
@@ -184,6 +184,8 @@ module CopyTunerClient
|
|
184
184
|
if middleware && development? && !disable_middleware
|
185
185
|
logger.info "Using copytuner sync middleware"
|
186
186
|
middleware.use RequestSync, :cache => cache, :interval => sync_interval
|
187
|
+
else
|
188
|
+
logger.info "[[[Warn]]] Not useing copytuner sync middleware" unless middleware
|
187
189
|
end
|
188
190
|
|
189
191
|
@applied = true
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module CopyTunerClient
|
2
2
|
# Connects to integration points for Rails 3 applications
|
3
3
|
class Railtie < ::Rails::Railtie
|
4
|
-
initializer :initialize_copy_tuner_rails, :
|
4
|
+
initializer :initialize_copy_tuner_rails, :before => :load_config_initializers do
|
5
5
|
CopyTunerClient::Rails.initialize
|
6
6
|
end
|
7
7
|
|
@@ -27,7 +27,7 @@ module CopyTunerClient
|
|
27
27
|
# request.
|
28
28
|
def call(env)
|
29
29
|
if /^\/copytuner/ =~ ::Rack::Request.new(env).path_info
|
30
|
-
dup._call(env
|
30
|
+
dup._call(env)
|
31
31
|
else
|
32
32
|
@cache.download unless asset_request?(env) or in_interval?
|
33
33
|
response = @app.call(env)
|
@@ -39,7 +39,7 @@ module CopyTunerClient
|
|
39
39
|
|
40
40
|
protected
|
41
41
|
|
42
|
-
def _call(env
|
42
|
+
def _call(env)
|
43
43
|
@req = ::Rack::Request.new(env)
|
44
44
|
|
45
45
|
case @req.path_info
|
data/lib/copy_tuner_client.rb
CHANGED
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.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -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: 1956433369967339800
|
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: 1956433369967339800
|
375
375
|
requirements: []
|
376
376
|
rubyforge_project:
|
377
377
|
rubygems_version: 1.8.23
|