radiant-cache_by_page-extension 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
@@ -1,4 +1,5 @@
|
|
1
|
-
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
- unless simple
|
2
|
+
- if page.cache_setting == "Default"
|
3
|
+
%td.status{:title=>Page.default_caching}= page.cache_setting
|
4
|
+
- else
|
5
|
+
%td.status= page.cache_setting
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{radiant-cache_by_page-extension}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Andrew vonderLuft"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-06-23}
|
13
13
|
s.description = %q{Enables per page admin option of setting caching to a non-default value, or turning it off altogether.}
|
14
14
|
s.email = %q{avonderluft@avlux.net}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -5,6 +5,7 @@ describe Page, "with page-specific caching", :type => :integration do
|
|
5
5
|
USING_RACK_CACHE = SiteController.respond_to?('cache_timeout')
|
6
6
|
|
7
7
|
before :all do
|
8
|
+
FileUtils.chdir RAILS_ROOT
|
8
9
|
@cache_dir = "#{RAILS_ROOT}/tmp/cache"
|
9
10
|
@cache_file = USING_RACK_CACHE ? "#{@cache_dir}/meta/*/*" : "#{@cache_dir}/_site-root.yml"
|
10
11
|
end
|
@@ -47,7 +48,7 @@ describe Page, "with page-specific caching", :type => :integration do
|
|
47
48
|
|
48
49
|
describe "- intial fetch of page before updates" do
|
49
50
|
it "should render a page with default caching" do
|
50
|
-
|
51
|
+
navigate_to "#{@page.slug}"
|
51
52
|
response.should be_success
|
52
53
|
response.cache_timeout.should be_nil
|
53
54
|
page_is_cached(@page).should be_true
|
@@ -62,8 +63,9 @@ describe Page, "with page-specific caching", :type => :integration do
|
|
62
63
|
|
63
64
|
%w(minutes time).each do |att|
|
64
65
|
describe "- page with specific caching option by #{att}" do
|
65
|
-
|
66
|
+
|
66
67
|
before(:each) do
|
68
|
+
@cache.clear
|
67
69
|
page_is_cached(@page).should be_false
|
68
70
|
@expire_mins = 180
|
69
71
|
@expire_time = @expire_mins.minutes.from_now
|
@@ -73,7 +75,7 @@ describe Page, "with page-specific caching", :type => :integration do
|
|
73
75
|
@page.cache_expire_time = @expire_time
|
74
76
|
end
|
75
77
|
@page.save!
|
76
|
-
|
78
|
+
navigate_to "#{@page.slug}"
|
77
79
|
page_is_cached(@page).should be_true
|
78
80
|
end
|
79
81
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-cache_by_page-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andrew vonderLuft
|
@@ -15,12 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-06-23 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
prerelease: false
|
22
|
+
type: :runtime
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
24
|
none: false
|
26
25
|
requirements:
|
@@ -32,8 +31,9 @@ dependencies:
|
|
32
31
|
- 9
|
33
32
|
- 1
|
34
33
|
version: 0.9.1
|
35
|
-
|
34
|
+
name: radiant
|
36
35
|
version_requirements: *id001
|
36
|
+
prerelease: false
|
37
37
|
description: Enables per page admin option of setting caching to a non-default value, or turning it off altogether.
|
38
38
|
email: avonderluft@avlux.net
|
39
39
|
executables: []
|