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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- copy_tuner_client (0.0.4)
4
+ copy_tuner_client (0.0.5)
5
5
  i18n (>= 0.5.0)
6
6
  json
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/mat_aki/gem/copy-tuner-ruby-client
3
3
  specs:
4
- copy_tuner_client (0.0.4)
4
+ copy_tuner_client (0.0.5)
5
5
  i18n (>= 0.5.0)
6
6
  json
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/mat_aki/gem/copy-tuner-ruby-client
3
3
  specs:
4
- copy_tuner_client (0.0.4)
4
+ copy_tuner_client (0.0.5)
5
5
  i18n (>= 0.5.0)
6
6
  json
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/mat_aki/gem/copy-tuner-ruby-client
3
3
  specs:
4
- copy_tuner_client (0.0.4)
4
+ copy_tuner_client (0.0.5)
5
5
  i18n (>= 0.5.0)
6
6
  json
7
7
 
@@ -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
@@ -14,7 +14,7 @@ module CopyTunerClient
14
14
  end
15
15
  end
16
16
 
17
- if defined?(Rails::Railtie)
17
+ if defined?(::Rails::Railtie)
18
18
  require 'copy_tuner_client/railtie'
19
19
  else
20
20
  CopyTunerClient::Rails.initialize
@@ -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, :after => :before_initialize do
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, last_synced: @last_synced)
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, vals = {})
42
+ def _call(env)
43
43
  @req = ::Rack::Request.new(env)
44
44
 
45
45
  case @req.path_info
@@ -1,6 +1,6 @@
1
1
  module CopyTunerClient
2
2
  # Client version
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
 
5
5
  # API version being used to communicate with the server
6
6
  API_VERSION = '2.0'.freeze
@@ -70,6 +70,6 @@ module CopyTunerClient
70
70
  end
71
71
  end
72
72
 
73
- if defined? Rails
73
+ if defined? ::Rails
74
74
  require 'copy_tuner_client/rails'
75
75
  end
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
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: 1986208387973179793
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: 1986208387973179793
374
+ hash: 1956433369967339800
375
375
  requirements: []
376
376
  rubyforge_project:
377
377
  rubygems_version: 1.8.23