sinatra-cache 0.3.2 → 0.3.4

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/README.rdoc CHANGED
@@ -69,6 +69,22 @@ the extension in your sub-classed Sinatra app:
69
69
 
70
70
  end
71
71
 
72
+
73
+ In your "classic" Sinatra app, you just require the extension and set some key settings, like this:
74
+
75
+ require 'rubygems'
76
+ require 'sinatra'
77
+ require 'sinatra/cache'
78
+
79
+ # NB! you need to set the root of the app first
80
+ set :root, '/path/2/the/root/of/your/app'
81
+ set :public, '/path/2/public'
82
+
83
+ set :cache_enabled, true # turn it on
84
+
85
+ <snip...>
86
+
87
+
72
88
 
73
89
  That's more or less it.
74
90
 
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ begin
10
10
  gem.email = "kematzy@gmail.com"
11
11
  gem.homepage = "http://github.com/kematzy/sinatra-cache"
12
12
  gem.authors = ["kematzy"]
13
- gem.add_dependency('sinatra', '>=1.0.a')
13
+ gem.add_dependency('sinatra', '>=1.0')
14
14
  gem.add_dependency('sinatra-outputbuffer', '>=0.1.0')
15
15
  gem.add_development_dependency "sinatra-tests", ">= 0.1.6"
16
16
  gem.add_development_dependency "rspec", ">= 1.3.0"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.4
data/lib/sinatra/cache.rb CHANGED
@@ -1,10 +1,9 @@
1
1
 
2
- require 'sinatra/base'
3
2
  require 'sinatra/outputbuffer'
4
3
 
5
4
  module Sinatra
6
5
  module Cache
7
- VERSION = '0.3.2' unless const_defined?(:VERSION)
6
+ VERSION = '0.3.4' unless const_defined?(:VERSION)
8
7
  def self.version; "Sinatra::Cache v#{VERSION}"; end
9
8
  end #/ Cache
10
9
  end #/ Sinatra
@@ -662,6 +662,6 @@ module Sinatra
662
662
 
663
663
  end #/ Cache
664
664
 
665
- # register(Sinatra::Cache) # not really needed here
665
+ register(Sinatra::Cache) # support classic apps
666
666
 
667
667
  end #/ Sinatra
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sinatra-cache}
8
- s.version = "0.3.2"
8
+ s.version = "0.3.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["kematzy"]
12
- s.date = %q{2010-04-27}
12
+ s.date = %q{2010-05-14}
13
13
  s.description = %q{A Sinatra Extension that makes Page and Fragment Caching easy.}
14
14
  s.email = %q{kematzy@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -50,18 +50,18 @@ Gem::Specification.new do |s|
50
50
  s.specification_version = 3
51
51
 
52
52
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
53
- s.add_runtime_dependency(%q<sinatra>, [">= 1.0.a"])
53
+ s.add_runtime_dependency(%q<sinatra>, [">= 1.0"])
54
54
  s.add_runtime_dependency(%q<sinatra-outputbuffer>, [">= 0.1.0"])
55
55
  s.add_development_dependency(%q<sinatra-tests>, [">= 0.1.6"])
56
56
  s.add_development_dependency(%q<rspec>, [">= 1.3.0"])
57
57
  else
58
- s.add_dependency(%q<sinatra>, [">= 1.0.a"])
58
+ s.add_dependency(%q<sinatra>, [">= 1.0"])
59
59
  s.add_dependency(%q<sinatra-outputbuffer>, [">= 0.1.0"])
60
60
  s.add_dependency(%q<sinatra-tests>, [">= 0.1.6"])
61
61
  s.add_dependency(%q<rspec>, [">= 1.3.0"])
62
62
  end
63
63
  else
64
- s.add_dependency(%q<sinatra>, [">= 1.0.a"])
64
+ s.add_dependency(%q<sinatra>, [">= 1.0"])
65
65
  s.add_dependency(%q<sinatra-outputbuffer>, [">= 0.1.0"])
66
66
  s.add_dependency(%q<sinatra-tests>, [">= 0.1.6"])
67
67
  s.add_dependency(%q<rspec>, [">= 1.3.0"])
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 2
9
- version: 0.3.2
8
+ - 4
9
+ version: 0.3.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - kematzy
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-27 00:00:00 +08:00
17
+ date: 2010-05-14 00:00:00 +08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -27,8 +27,7 @@ dependencies:
27
27
  segments:
28
28
  - 1
29
29
  - 0
30
- - a
31
- version: 1.0.a
30
+ version: "1.0"
32
31
  type: :runtime
33
32
  version_requirements: *id001
34
33
  - !ruby/object:Gem::Dependency