padrino-cache 0.9.19 → 0.9.20
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/Rakefile +1 -1
- data/lib/padrino-cache.rb +2 -3
- data/lib/padrino-cache/helpers/cache_store.rb +4 -4
- data/lib/padrino-cache/helpers/fragment.rb +4 -4
- data/lib/padrino-cache/helpers/page.rb +5 -4
- data/lib/padrino-cache/store/file.rb +1 -1
- data/lib/padrino-cache/store/memcache.rb +2 -2
- data/lib/padrino-cache/store/memory.rb +1 -1
- data/lib/padrino-cache/store/redis.rb +1 -1
- data/test/helper.rb +0 -1
- data/test/test_padrino_cache.rb +0 -1
- data/test/test_stores.rb +0 -1
- metadata +7 -7
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
data/lib/padrino-cache.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
require 'fileutils'
|
2
2
|
require 'padrino-core'
|
3
3
|
require 'padrino-helpers'
|
4
|
-
|
5
|
-
Dir.glob(File.dirname(__FILE__) + '/padrino-cache/helpers/*.rb') {|file| require file}
|
4
|
+
FileSet.glob_require('padrino-cache/{helpers}/*.rb', __FILE__)
|
6
5
|
|
7
6
|
module Padrino
|
8
7
|
module Cache
|
@@ -32,4 +31,4 @@ module Padrino
|
|
32
31
|
end
|
33
32
|
end
|
34
33
|
end # Helpers
|
35
|
-
end # Padrino
|
34
|
+
end # Padrino
|
@@ -5,6 +5,7 @@ module Padrino
|
|
5
5
|
def expires_in(time)
|
6
6
|
@_last_expires_in = time
|
7
7
|
end
|
8
|
+
|
8
9
|
def self.padrino_route_added(route, verb, path, args, options, block)
|
9
10
|
if route.cache and %w(GET HEAD).include?(verb)
|
10
11
|
route.add_before_filter(Proc.new {
|
@@ -25,7 +26,7 @@ module Padrino
|
|
25
26
|
})
|
26
27
|
end
|
27
28
|
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
29
|
+
end # Page
|
30
|
+
end # Helpers
|
31
|
+
end # Cache
|
32
|
+
end # Padrino
|
data/test/helper.rb
CHANGED
data/test/test_padrino_cache.rb
CHANGED
data/test/test_stores.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padrino-cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 20
|
10
|
+
version: 0.9.20
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Padrino Team
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date:
|
21
|
+
date: 2011-01-19 00:00:00 -08:00
|
22
22
|
default_executable:
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
@@ -29,12 +29,12 @@ dependencies:
|
|
29
29
|
requirements:
|
30
30
|
- - "="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
hash:
|
32
|
+
hash: 19
|
33
33
|
segments:
|
34
34
|
- 0
|
35
35
|
- 9
|
36
|
-
-
|
37
|
-
version: 0.9.
|
36
|
+
- 20
|
37
|
+
version: 0.9.20
|
38
38
|
type: :runtime
|
39
39
|
version_requirements: *id001
|
40
40
|
description: Caching support for memcached, page and fragment
|