rack-cache 1.5.1 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  require 'rack/request'
2
- require 'rack/cache/cachecontrol'
2
+ require 'rack/cache/cache_control'
3
3
 
4
4
  module Rack::Cache
5
5
 
@@ -2,7 +2,7 @@ require 'time'
2
2
  require 'set'
3
3
  require 'rack/response'
4
4
  require 'rack/utils'
5
- require 'rack/cache/cachecontrol'
5
+ require 'rack/cache/cache_control'
6
6
 
7
7
  module Rack::Cache
8
8
 
@@ -1,6 +1,6 @@
1
1
  require 'uri'
2
- require 'rack/cache/metastore'
3
- require 'rack/cache/entitystore'
2
+ require 'rack/cache/meta_store'
3
+ require 'rack/cache/entity_store'
4
4
 
5
5
  module Rack::Cache
6
6
 
@@ -29,6 +29,7 @@ module Rack::Cache
29
29
  end
30
30
 
31
31
  private
32
+
32
33
  def create_store(type, uri)
33
34
  if uri.respond_to?(:scheme) || uri.respond_to?(:to_str)
34
35
  uri = URI.parse(uri) unless uri.respond_to?(:scheme)
@@ -53,6 +54,7 @@ module Rack::Cache
53
54
  end
54
55
 
55
56
  public
57
+
56
58
  @@singleton_instance = new
57
59
  def self.instance
58
60
  @@singleton_instance
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Tomayko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-24 00:00:00.000000000 Z
11
+ date: 2016-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -124,11 +124,15 @@ files:
124
124
  - README.md
125
125
  - lib/rack-cache.rb
126
126
  - lib/rack/cache.rb
127
+ - lib/rack/cache/app_engine.rb
127
128
  - lib/rack/cache/appengine.rb
129
+ - lib/rack/cache/cache_control.rb
128
130
  - lib/rack/cache/cachecontrol.rb
129
131
  - lib/rack/cache/context.rb
132
+ - lib/rack/cache/entity_store.rb
130
133
  - lib/rack/cache/entitystore.rb
131
134
  - lib/rack/cache/key.rb
135
+ - lib/rack/cache/meta_store.rb
132
136
  - lib/rack/cache/metastore.rb
133
137
  - lib/rack/cache/options.rb
134
138
  - lib/rack/cache/request.rb