radiant-sheets-extension 1.0.11 → 1.1.0.alpha

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ module Radiant
2
+ class JavascriptPageResponseCacheDirector < Radiant::PageResponseCacheDirector
3
+ def self.cache_timeout
4
+ @cache_timeout ||= 30.days
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module Radiant
2
+ class StylesheetPageResponseCacheDirector < Radiant::PageResponseCacheDirector
3
+ def self.cache_timeout
4
+ @cache_timeout ||= 30.days
5
+ end
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module RadiantSheetsExtension
2
- VERSION = '1.0.11'
2
+ VERSION = '1.1.0.alpha'
3
3
  end
@@ -22,6 +22,6 @@ Gem::Specification.new do |s|
22
22
  # s.executables = Dir['bin/*'] - ignores
23
23
  s.require_paths = ["lib"]
24
24
 
25
- s.add_dependency 'sass', '~>3.1.12'
25
+ s.add_dependency 'sass', '~>3.2.1'
26
26
  s.add_dependency 'coffee-script', '~>2.2.0'
27
27
  end
data/sheets_extension.rb CHANGED
@@ -55,24 +55,5 @@ class SheetsExtension < Radiant::Extension
55
55
  end
56
56
  alias_method_chain :render_node, :sheets
57
57
  end
58
-
59
- SiteController.class_eval do
60
- def self.sheet_cache_timeout
61
- @sheet_cache_timeout ||= 30.days
62
- end
63
- def self.sheet_cache_timeout=(val)
64
- @sheet_cache_timeout = val
65
- end
66
-
67
- def set_cache_control_with_sheets
68
- if @page.sheet?
69
- expires_in self.class.sheet_cache_timeout, :public => true, :private => false
70
- else
71
- set_cache_control_without_sheets
72
- end
73
- end
74
- alias_method_chain :set_cache_control, :sheets
75
- end
76
-
77
58
  end
78
59
  end
metadata CHANGED
@@ -1,64 +1,46 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: radiant-sheets-extension
3
- version: !ruby/object:Gem::Version
4
- hash: 1
5
- prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 11
10
- version: 1.0.11
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0.alpha
5
+ prerelease: 6
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Radiant CMS Dev Team
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-06-15 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-08-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: sass
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70192068275220 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 27
29
- segments:
30
- - 3
31
- - 1
32
- - 12
33
- version: 3.1.12
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.1
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: coffee-script
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70192068275220
25
+ - !ruby/object:Gem::Dependency
26
+ name: coffee-script
27
+ requirement: &70192068264460 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
29
+ requirements:
42
30
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 7
45
- segments:
46
- - 2
47
- - 2
48
- - 0
31
+ - !ruby/object:Gem::Version
49
32
  version: 2.2.0
50
33
  type: :runtime
51
- version_requirements: *id002
52
- description: Manage CSS and Javascript content in Radiant CMS as Sheets, a subset of Pages.
53
- email:
34
+ prerelease: false
35
+ version_requirements: *70192068264460
36
+ description: Manage CSS and Javascript content in Radiant CMS as Sheets, a subset
37
+ of Pages.
38
+ email:
54
39
  - radiant@radiantcms.org
55
40
  executables: []
56
-
57
41
  extensions: []
58
-
59
42
  extra_rdoc_files: []
60
-
61
- files:
43
+ files:
62
44
  - app/controllers/admin/scripts_controller.rb
63
45
  - app/controllers/admin/sheet_resource_controller.rb
64
46
  - app/controllers/admin/styles_controller.rb
@@ -66,6 +48,8 @@ files:
66
48
  - app/helpers/admin/sheet_resource_helper.rb
67
49
  - app/helpers/admin/styles_helper.rb
68
50
  - app/models/javascript_page.rb
51
+ - app/models/radiant/javascript_page_response_cache_director.rb
52
+ - app/models/radiant/stylesheet_page_response_cache_director.rb
69
53
  - app/models/sheet.rb
70
54
  - app/models/stylesheet_page.rb
71
55
  - app/views/admin/scripts/edit.html.haml
@@ -119,38 +103,29 @@ files:
119
103
  - spec/spec_helper.rb
120
104
  homepage: http://radiantcms.org/
121
105
  licenses: []
122
-
123
106
  post_install_message:
124
107
  rdoc_options: []
125
-
126
- require_paths:
108
+ require_paths:
127
109
  - lib
128
- required_ruby_version: !ruby/object:Gem::Requirement
110
+ required_ruby_version: !ruby/object:Gem::Requirement
129
111
  none: false
130
- requirements:
131
- - - ">="
132
- - !ruby/object:Gem::Version
133
- hash: 3
134
- segments:
135
- - 0
136
- version: "0"
137
- required_rubygems_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ! '>='
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
138
117
  none: false
139
- requirements:
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- hash: 3
143
- segments:
144
- - 0
145
- version: "0"
118
+ requirements:
119
+ - - ! '>'
120
+ - !ruby/object:Gem::Version
121
+ version: 1.3.1
146
122
  requirements: []
147
-
148
123
  rubyforge_project:
149
- rubygems_version: 1.8.23
124
+ rubygems_version: 1.8.11
150
125
  signing_key:
151
126
  specification_version: 3
152
127
  summary: Sheets for Radiant CMS
153
- test_files:
128
+ test_files:
154
129
  - spec/ci/before_script
155
130
  - spec/ci/script
156
131
  - spec/controllers/admin/scripts_controller_spec.rb
@@ -170,4 +145,3 @@ test_files:
170
145
  - features/admin/managing_stylesheets.feature
171
146
  - features/support/env.rb
172
147
  - features/support/paths.rb
173
- has_rdoc: