high_voltage 1.2.2 → 2.1.0
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.
- checksums.yaml +7 -0
- data/.gitignore +2 -2
- data/.travis.yml +5 -6
- data/Appraisals +14 -3
- data/Gemfile.lock +43 -67
- data/NEWS.md +22 -0
- data/README.md +188 -104
- data/Rakefile +11 -10
- data/app/controllers/concerns/high_voltage/static_page.rb +42 -0
- data/app/controllers/high_voltage/pages_controller.rb +1 -28
- data/config/routes.rb +5 -0
- data/high_voltage.gemspec +5 -3
- data/lib/high_voltage/configuration.rb +33 -0
- data/lib/high_voltage/engine.rb +9 -0
- data/lib/high_voltage/version.rb +1 -1
- data/lib/high_voltage.rb +5 -17
- data/spec/constraints/root_route_spec.rb +10 -6
- data/spec/controllers/action_caching_controller_spec.rb +27 -0
- data/spec/controllers/page_caching_controller_spec.rb +28 -0
- data/spec/controllers/pages_controller_spec.rb +8 -18
- data/spec/dummy/config/environments/test.rb +1 -2
- data/spec/dummy/config/initializers/secret_key_base.rb +1 -0
- data/spec/dummy/config/routes.rb +2 -2
- data/spec/dummy/public/pages/exists.html +0 -0
- data/spec/high_voltage/configuration_spec.rb +25 -0
- data/spec/high_voltage_spec.rb +5 -1
- data/spec/minimal_spec_helper.rb +5 -0
- data/spec/requests/home_page_spec.rb +13 -0
- data/spec/routing/routes_spec.rb +47 -57
- data/spec/spec_helper.rb +13 -5
- data/spec/support/caching.rb +15 -0
- data/spec/support/concern_reload.rb +11 -0
- metadata +61 -40
- data/gemfiles/rails_3.0.18.gemfile +0 -7
- data/gemfiles/rails_3.1.9.gemfile +0 -7
- data/gemfiles/rails_3.2.10.gemfile +0 -7
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
def concern_reload
|
|
2
|
+
HighVoltage::PagesController.class_eval do
|
|
3
|
+
if respond_to?(:caches_action)
|
|
4
|
+
caches_action :show, if: -> { HighVoltage.action_caching }
|
|
5
|
+
end
|
|
6
|
+
|
|
7
|
+
if respond_to?(:caches_page)
|
|
8
|
+
caches_page :show, if: -> { HighVoltage.page_caching }
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
metadata
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: high_voltage
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 2.1.0
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Matt Jankowski
|
|
@@ -17,81 +16,87 @@ authors:
|
|
|
17
16
|
autorequire:
|
|
18
17
|
bindir: bin
|
|
19
18
|
cert_chain: []
|
|
20
|
-
date: 2013-
|
|
19
|
+
date: 2013-12-30 00:00:00.000000000 Z
|
|
21
20
|
dependencies:
|
|
22
21
|
- !ruby/object:Gem::Dependency
|
|
23
|
-
name:
|
|
22
|
+
name: activesupport
|
|
24
23
|
requirement: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
24
|
requirements:
|
|
27
|
-
- -
|
|
25
|
+
- - ">="
|
|
28
26
|
- !ruby/object:Gem::Version
|
|
29
|
-
version:
|
|
27
|
+
version: 3.1.0
|
|
30
28
|
type: :development
|
|
31
29
|
prerelease: false
|
|
32
30
|
version_requirements: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
31
|
requirements:
|
|
35
|
-
- -
|
|
32
|
+
- - ">="
|
|
36
33
|
- !ruby/object:Gem::Version
|
|
37
|
-
version:
|
|
34
|
+
version: 3.1.0
|
|
38
35
|
- !ruby/object:Gem::Dependency
|
|
39
|
-
name:
|
|
36
|
+
name: appraisal
|
|
40
37
|
requirement: !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
38
|
requirements:
|
|
43
|
-
- -
|
|
39
|
+
- - ">="
|
|
44
40
|
- !ruby/object:Gem::Version
|
|
45
41
|
version: '0'
|
|
46
42
|
type: :development
|
|
47
43
|
prerelease: false
|
|
48
44
|
version_requirements: !ruby/object:Gem::Requirement
|
|
49
|
-
none: false
|
|
50
45
|
requirements:
|
|
51
|
-
- -
|
|
46
|
+
- - ">="
|
|
52
47
|
- !ruby/object:Gem::Version
|
|
53
48
|
version: '0'
|
|
54
49
|
- !ruby/object:Gem::Dependency
|
|
55
50
|
name: capybara
|
|
56
51
|
requirement: !ruby/object:Gem::Requirement
|
|
57
|
-
none: false
|
|
58
52
|
requirements:
|
|
59
|
-
- -
|
|
53
|
+
- - '='
|
|
60
54
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 0.
|
|
55
|
+
version: 2.0.3
|
|
62
56
|
type: :development
|
|
63
57
|
prerelease: false
|
|
64
58
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
none: false
|
|
66
59
|
requirements:
|
|
67
|
-
- -
|
|
60
|
+
- - '='
|
|
68
61
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: 0.
|
|
62
|
+
version: 2.0.3
|
|
70
63
|
- !ruby/object:Gem::Dependency
|
|
71
|
-
name:
|
|
64
|
+
name: pry
|
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
|
66
|
+
requirements:
|
|
67
|
+
- - ">="
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '0'
|
|
70
|
+
type: :development
|
|
71
|
+
prerelease: false
|
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
73
|
+
requirements:
|
|
74
|
+
- - ">="
|
|
75
|
+
- !ruby/object:Gem::Version
|
|
76
|
+
version: '0'
|
|
77
|
+
- !ruby/object:Gem::Dependency
|
|
78
|
+
name: rspec-rails
|
|
72
79
|
requirement: !ruby/object:Gem::Requirement
|
|
73
|
-
none: false
|
|
74
80
|
requirements:
|
|
75
|
-
- -
|
|
81
|
+
- - ">="
|
|
76
82
|
- !ruby/object:Gem::Version
|
|
77
83
|
version: '0'
|
|
78
84
|
type: :development
|
|
79
85
|
prerelease: false
|
|
80
86
|
version_requirements: !ruby/object:Gem::Requirement
|
|
81
|
-
none: false
|
|
82
87
|
requirements:
|
|
83
|
-
- -
|
|
88
|
+
- - ">="
|
|
84
89
|
- !ruby/object:Gem::Version
|
|
85
90
|
version: '0'
|
|
86
|
-
description: Fire in the disco.
|
|
91
|
+
description: Fire in the disco. Fire in the ... taco bell.
|
|
87
92
|
email:
|
|
88
93
|
- support@thoughtbot.com
|
|
89
94
|
executables: []
|
|
90
95
|
extensions: []
|
|
91
96
|
extra_rdoc_files: []
|
|
92
97
|
files:
|
|
93
|
-
- .gitignore
|
|
94
|
-
- .travis.yml
|
|
98
|
+
- ".gitignore"
|
|
99
|
+
- ".travis.yml"
|
|
95
100
|
- Appraisals
|
|
96
101
|
- CONTRIBUTING.md
|
|
97
102
|
- Gemfile
|
|
@@ -100,13 +105,12 @@ files:
|
|
|
100
105
|
- NEWS.md
|
|
101
106
|
- README.md
|
|
102
107
|
- Rakefile
|
|
108
|
+
- app/controllers/concerns/high_voltage/static_page.rb
|
|
103
109
|
- app/controllers/high_voltage/pages_controller.rb
|
|
104
110
|
- config/routes.rb
|
|
105
|
-
- gemfiles/rails_3.0.18.gemfile
|
|
106
|
-
- gemfiles/rails_3.1.9.gemfile
|
|
107
|
-
- gemfiles/rails_3.2.10.gemfile
|
|
108
111
|
- high_voltage.gemspec
|
|
109
112
|
- lib/high_voltage.rb
|
|
113
|
+
- lib/high_voltage/configuration.rb
|
|
110
114
|
- lib/high_voltage/constraints/root_route.rb
|
|
111
115
|
- lib/high_voltage/engine.rb
|
|
112
116
|
- lib/high_voltage/page_finder.rb
|
|
@@ -114,7 +118,9 @@ files:
|
|
|
114
118
|
- lib/high_voltage/route_drawers/root.rb
|
|
115
119
|
- lib/high_voltage/version.rb
|
|
116
120
|
- spec/constraints/root_route_spec.rb
|
|
121
|
+
- spec/controllers/action_caching_controller_spec.rb
|
|
117
122
|
- spec/controllers/alternative_finder_controller_spec.rb
|
|
123
|
+
- spec/controllers/page_caching_controller_spec.rb
|
|
118
124
|
- spec/controllers/pages_controller_spec.rb
|
|
119
125
|
- spec/controllers/subclassed_pages_controller_spec.rb
|
|
120
126
|
- spec/dummy/Rakefile
|
|
@@ -145,6 +151,7 @@ files:
|
|
|
145
151
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
|
146
152
|
- spec/dummy/config/initializers/inflections.rb
|
|
147
153
|
- spec/dummy/config/initializers/mime_types.rb
|
|
154
|
+
- spec/dummy/config/initializers/secret_key_base.rb
|
|
148
155
|
- spec/dummy/config/initializers/secret_token.rb
|
|
149
156
|
- spec/dummy/config/initializers/session_store.rb
|
|
150
157
|
- spec/dummy/config/locales/en.yml
|
|
@@ -159,40 +166,48 @@ files:
|
|
|
159
166
|
- spec/dummy/public/javascripts/effects.js
|
|
160
167
|
- spec/dummy/public/javascripts/prototype.js
|
|
161
168
|
- spec/dummy/public/javascripts/rails.js
|
|
169
|
+
- spec/dummy/public/pages/exists.html
|
|
162
170
|
- spec/dummy/public/stylesheets/.gitkeep
|
|
163
171
|
- spec/dummy/script/rails
|
|
172
|
+
- spec/high_voltage/configuration_spec.rb
|
|
164
173
|
- spec/high_voltage/page_finder_spec.rb
|
|
165
174
|
- spec/high_voltage_spec.rb
|
|
166
175
|
- spec/integration/navigation_spec.rb
|
|
176
|
+
- spec/minimal_spec_helper.rb
|
|
177
|
+
- spec/requests/home_page_spec.rb
|
|
167
178
|
- spec/routing/routes_spec.rb
|
|
168
179
|
- spec/spec_helper.rb
|
|
180
|
+
- spec/support/caching.rb
|
|
181
|
+
- spec/support/concern_reload.rb
|
|
169
182
|
homepage: http://github.com/thoughtbot/high_voltage
|
|
170
|
-
licenses:
|
|
183
|
+
licenses:
|
|
184
|
+
- MIT
|
|
185
|
+
metadata: {}
|
|
171
186
|
post_install_message:
|
|
172
187
|
rdoc_options: []
|
|
173
188
|
require_paths:
|
|
174
189
|
- lib
|
|
175
190
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
|
-
none: false
|
|
177
191
|
requirements:
|
|
178
|
-
- -
|
|
192
|
+
- - ">="
|
|
179
193
|
- !ruby/object:Gem::Version
|
|
180
194
|
version: '0'
|
|
181
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
|
-
none: false
|
|
183
196
|
requirements:
|
|
184
|
-
- -
|
|
197
|
+
- - ">="
|
|
185
198
|
- !ruby/object:Gem::Version
|
|
186
199
|
version: '0'
|
|
187
200
|
requirements: []
|
|
188
201
|
rubyforge_project:
|
|
189
|
-
rubygems_version:
|
|
202
|
+
rubygems_version: 2.2.0
|
|
190
203
|
signing_key:
|
|
191
|
-
specification_version:
|
|
204
|
+
specification_version: 4
|
|
192
205
|
summary: Simple static page rendering controller
|
|
193
206
|
test_files:
|
|
194
207
|
- spec/constraints/root_route_spec.rb
|
|
208
|
+
- spec/controllers/action_caching_controller_spec.rb
|
|
195
209
|
- spec/controllers/alternative_finder_controller_spec.rb
|
|
210
|
+
- spec/controllers/page_caching_controller_spec.rb
|
|
196
211
|
- spec/controllers/pages_controller_spec.rb
|
|
197
212
|
- spec/controllers/subclassed_pages_controller_spec.rb
|
|
198
213
|
- spec/dummy/Rakefile
|
|
@@ -223,6 +238,7 @@ test_files:
|
|
|
223
238
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
|
224
239
|
- spec/dummy/config/initializers/inflections.rb
|
|
225
240
|
- spec/dummy/config/initializers/mime_types.rb
|
|
241
|
+
- spec/dummy/config/initializers/secret_key_base.rb
|
|
226
242
|
- spec/dummy/config/initializers/secret_token.rb
|
|
227
243
|
- spec/dummy/config/initializers/session_store.rb
|
|
228
244
|
- spec/dummy/config/locales/en.yml
|
|
@@ -237,11 +253,16 @@ test_files:
|
|
|
237
253
|
- spec/dummy/public/javascripts/effects.js
|
|
238
254
|
- spec/dummy/public/javascripts/prototype.js
|
|
239
255
|
- spec/dummy/public/javascripts/rails.js
|
|
256
|
+
- spec/dummy/public/pages/exists.html
|
|
240
257
|
- spec/dummy/public/stylesheets/.gitkeep
|
|
241
258
|
- spec/dummy/script/rails
|
|
259
|
+
- spec/high_voltage/configuration_spec.rb
|
|
242
260
|
- spec/high_voltage/page_finder_spec.rb
|
|
243
261
|
- spec/high_voltage_spec.rb
|
|
244
262
|
- spec/integration/navigation_spec.rb
|
|
263
|
+
- spec/minimal_spec_helper.rb
|
|
264
|
+
- spec/requests/home_page_spec.rb
|
|
245
265
|
- spec/routing/routes_spec.rb
|
|
246
266
|
- spec/spec_helper.rb
|
|
247
|
-
|
|
267
|
+
- spec/support/caching.rb
|
|
268
|
+
- spec/support/concern_reload.rb
|