cache_back 0.3.0 → 0.3.1

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -1,5 +1,5 @@
1
1
  module CacheBack
2
- class Middleware
2
+ class RackMiddleware
3
3
  def initialize(app)
4
4
  @app = app
5
5
  end
data/lib/cache_back.rb CHANGED
@@ -3,6 +3,7 @@ require 'activerecord'
3
3
 
4
4
  require 'cache_back/configuration_mixin'
5
5
  require 'cache_back/cache'
6
+ require 'cache_back/rack_middleware'
6
7
 
7
8
  module CacheBack
8
9
  module_function
@@ -13,8 +14,9 @@ module CacheBack
13
14
  end
14
15
 
15
16
  ActiveRecord::Base.extend(CacheBack::ConfigurationMixin)
17
+
16
18
  begin
17
- ActionController::Dispatcher.middleware.use(CacheBack::Middleware)
19
+ ActionController::Dispatcher.middleware.use(CacheBack::RackMiddleware)
18
20
  rescue NameError => e
19
21
 
20
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cache_back
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mick Staugaard
@@ -52,7 +52,7 @@ files:
52
52
  - lib/cache_back/cache.rb
53
53
  - lib/cache_back/configuration_mixin.rb
54
54
  - lib/cache_back/dirty_mixin.rb
55
- - lib/cache_back/middleware.rb
55
+ - lib/cache_back/rack_middleware.rb
56
56
  - lib/cache_back/read_mixin.rb
57
57
  - lib/cache_back/write_mixin.rb
58
58
  - test/database.yml