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 CHANGED
@@ -1,6 +1,6 @@
1
1
  = Painless Page and Fragment Caching (padrino-cache)
2
2
 
3
- Not implemented yet.
3
+ Not documented yet.
4
4
 
5
5
  == Copyright
6
6
 
data/Rakefile CHANGED
@@ -2,4 +2,4 @@
2
2
  RAKE_ROOT = __FILE__
3
3
 
4
4
  require 'rubygems'
5
- require File.expand_path(File.dirname(__FILE__) + '/../gem_rake_helper')
5
+ require File.expand_path(File.dirname(__FILE__) + '/../gem_rake_helper')
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
- #FileSet.glob_require('padrino-cache/{helpers}/*.rb', __FILE__)
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
@@ -9,7 +9,7 @@ module Padrino
9
9
  self.class.cache_store.delete(self.class.url(*key))
10
10
  end
11
11
  end
12
- end
13
- end
14
- end
15
- end
12
+ end # CacheStore
13
+ end # Helpers
14
+ end # Cache
15
+ end # Padrino
@@ -15,7 +15,7 @@ module Padrino
15
15
  end
16
16
  end
17
17
  end
18
- end
19
- end
20
- end
21
- end
18
+ end # Fragment
19
+ end # Helpers
20
+ end # Cache
21
+ 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
@@ -58,4 +58,4 @@ module Padrino
58
58
  end # File
59
59
  end # Store
60
60
  end # Cache
61
- end # Padrino
61
+ end # Padrino
@@ -33,11 +33,11 @@ module Padrino
33
33
  def delete(key)
34
34
  @backend.delete(key)
35
35
  end
36
-
36
+
37
37
  def flush
38
38
  @backend.flush
39
39
  end
40
40
  end # Memcached
41
41
  end # Store
42
42
  end # Cache
43
- end # Padrino
43
+ end # Padrino
@@ -47,4 +47,4 @@ module Padrino
47
47
  end # Memory
48
48
  end # Store
49
49
  end # Cache
50
- end # Padrino
50
+ end # Padrino
@@ -35,4 +35,4 @@ module Padrino
35
35
  end # Redis
36
36
  end # Store
37
37
  end # Cache
38
- end # Padrino
38
+ end # Padrino
data/test/helper.rb CHANGED
@@ -21,5 +21,4 @@ class Test::Unit::TestCase
21
21
  @matches.length == 1 ? @matches.first : false
22
22
 
23
23
  end
24
-
25
24
  end
@@ -182,5 +182,4 @@ class TestPadrinoCache < Test::Unit::TestCase
182
182
  get "/foo"
183
183
  assert_equal 500, status
184
184
  end
185
-
186
185
  end
data/test/test_stores.rb CHANGED
@@ -94,5 +94,4 @@ class TestInMemoryStore < Test::Unit::TestCase
94
94
  assert_equal nil, @cache.get('0')
95
95
  assert_equal '1', @cache.get('1')
96
96
  end
97
-
98
97
  end
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: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 19
10
- version: 0.9.19
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: 2010-11-17 00:00:00 +01:00
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: 29
32
+ hash: 19
33
33
  segments:
34
34
  - 0
35
35
  - 9
36
- - 19
37
- version: 0.9.19
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