high_voltage 1.1.1 → 2.0.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 -0
- data/.travis.yml +6 -1
- data/Appraisals +13 -4
- data/Gemfile.lock +53 -67
- data/MIT-LICENSE +1 -1
- data/NEWS.md +23 -0
- data/README.md +201 -71
- data/Rakefile +10 -5
- data/app/controllers/concerns/high_voltage/static_page.rb +41 -0
- data/app/controllers/high_voltage/pages_controller.rb +1 -31
- data/config/routes.rb +3 -2
- data/high_voltage.gemspec +5 -3
- data/lib/high_voltage/constraints/root_route.rb +22 -0
- data/lib/high_voltage/engine.rb +9 -2
- data/lib/high_voltage/page_finder.rb +37 -0
- data/lib/high_voltage/route_drawers/default.rb +15 -0
- data/lib/high_voltage/route_drawers/root.rb +16 -0
- data/lib/high_voltage/version.rb +1 -1
- data/lib/high_voltage.rb +19 -2
- data/spec/constraints/root_route_spec.rb +25 -0
- data/spec/controllers/action_caching_controller_spec.rb +23 -0
- data/spec/controllers/alternative_finder_controller_spec.rb +12 -0
- data/spec/controllers/page_caching_controller_spec.rb +20 -0
- data/spec/controllers/pages_controller_spec.rb +63 -41
- data/spec/controllers/subclassed_pages_controller_spec.rb +19 -20
- data/spec/dummy/app/controllers/alternative_finder_controller.rb +14 -0
- data/spec/dummy/app/controllers/subclassed_pages_controller.rb +0 -4
- data/spec/dummy/app/views/pages/also_dir/also_nested.html.erb +1 -0
- data/spec/dummy/app/views/pages/also_exists.html.erb +1 -0
- data/spec/dummy/app/views/pages/also_exists_but_references_nonexistent_partial.html.erb +2 -0
- data/spec/dummy/app/views/pages/rot13.html.erb +1 -0
- data/spec/dummy/config/application.rb +0 -1
- data/spec/dummy/config/environments/test.rb +1 -7
- data/spec/dummy/config/initializers/secret_key_base.rb +1 -0
- data/spec/dummy/config/routes.rb +2 -1
- data/spec/high_voltage/page_finder_spec.rb +52 -0
- data/spec/high_voltage_spec.rb +7 -3
- data/spec/integration/navigation_spec.rb +3 -3
- data/spec/minimal_spec_helper.rb +5 -0
- data/spec/routing/routes_spec.rb +107 -33
- data/spec/spec_helper.rb +7 -18
- data/spec/support/caching.rb +12 -0
- data/spec/support/concern_reload.rb +11 -0
- metadata +121 -98
- data/gemfiles/rails-3.0.10.gemfile +0 -7
- data/gemfiles/rails-3.0.10.gemfile.lock +0 -124
- data/gemfiles/rails-3.1.0.gemfile +0 -7
- data/gemfiles/rails-3.1.0.gemfile.lock +0 -137
data/spec/routing/routes_spec.rb
CHANGED
|
@@ -1,68 +1,142 @@
|
|
|
1
1
|
require 'spec_helper'
|
|
2
|
-
describe 'routes' do
|
|
3
|
-
context "using default configuration" do
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
describe 'routes' do
|
|
4
|
+
context 'using default configuration' do
|
|
5
|
+
it 'should generate normal resource route with id' do
|
|
6
|
+
page_path('one').should eq '/pages/one'
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
-
it
|
|
10
|
-
page_path(
|
|
9
|
+
it 'should generate normal resource route with string' do
|
|
10
|
+
page_path('one').should eq '/pages/one'
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
it
|
|
14
|
-
page_path(
|
|
13
|
+
it 'should generate nested route with string' do
|
|
14
|
+
page_path('one/two').should eq '/pages/one/two'
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
it
|
|
18
|
-
assert_recognizes(
|
|
17
|
+
it 'should recognize nested route' do
|
|
18
|
+
assert_recognizes(
|
|
19
|
+
{
|
|
20
|
+
:controller => 'high_voltage/pages',
|
|
21
|
+
:action => 'show',
|
|
22
|
+
:id => 'one/two'
|
|
23
|
+
},
|
|
24
|
+
'/pages/one/two'
|
|
25
|
+
)
|
|
19
26
|
end
|
|
20
27
|
|
|
21
|
-
it
|
|
22
|
-
assert_recognizes(
|
|
28
|
+
it 'should recognize normal route' do
|
|
29
|
+
assert_recognizes(
|
|
30
|
+
{
|
|
31
|
+
:controller => 'high_voltage/pages',
|
|
32
|
+
:action => 'show',
|
|
33
|
+
:id => 'one'
|
|
34
|
+
},
|
|
35
|
+
'/pages/one'
|
|
36
|
+
)
|
|
23
37
|
end
|
|
24
38
|
|
|
25
|
-
it
|
|
26
|
-
assert_recognizes(
|
|
39
|
+
it 'should recognize normal route with dots' do
|
|
40
|
+
assert_recognizes(
|
|
41
|
+
{
|
|
42
|
+
:controller => 'high_voltage/pages',
|
|
43
|
+
:action => 'show',
|
|
44
|
+
:id => 'one.two.three'
|
|
45
|
+
},
|
|
46
|
+
'/pages/one.two.three'
|
|
47
|
+
)
|
|
27
48
|
end
|
|
28
49
|
end
|
|
29
50
|
|
|
30
|
-
context
|
|
51
|
+
context 'using top-level routing configuration' do
|
|
52
|
+
around do |example|
|
|
53
|
+
cached_high_voltage_route_drawer = HighVoltage.route_drawer
|
|
54
|
+
HighVoltage.route_drawer = HighVoltage::RouteDrawers::Root
|
|
55
|
+
Rails.application.reload_routes!
|
|
31
56
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
HighVoltage
|
|
57
|
+
example.run
|
|
58
|
+
|
|
59
|
+
HighVoltage.route_drawer = cached_high_voltage_route_drawer
|
|
35
60
|
Rails.application.reload_routes!
|
|
36
61
|
end
|
|
37
62
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
Rails.application.reload_routes!
|
|
63
|
+
it 'should generate normal resource route with string' do
|
|
64
|
+
page_path('one').should eq '/one'
|
|
41
65
|
end
|
|
42
66
|
|
|
43
|
-
it
|
|
44
|
-
page_path(
|
|
67
|
+
it 'should generate nested route with string' do
|
|
68
|
+
page_path('one/two').should eq '/one/two'
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
context 'using a custom content_path' do
|
|
73
|
+
around do |example|
|
|
74
|
+
cached_high_voltage_content_path = HighVoltage.content_path
|
|
75
|
+
HighVoltage.content_path = 'other_pages/'
|
|
76
|
+
Rails.application.reload_routes!
|
|
77
|
+
|
|
78
|
+
example.run
|
|
79
|
+
|
|
80
|
+
HighVoltage.content_path = cached_high_voltage_content_path
|
|
81
|
+
Rails.application.reload_routes!
|
|
45
82
|
end
|
|
46
83
|
|
|
47
|
-
it
|
|
48
|
-
page_path(
|
|
84
|
+
it 'should generate normal resource route with string' do
|
|
85
|
+
page_path('one').should eq '/other_pages/one'
|
|
49
86
|
end
|
|
50
87
|
|
|
51
|
-
it
|
|
52
|
-
page_path(
|
|
88
|
+
it 'should generate nested route with string' do
|
|
89
|
+
page_path('one/two').should eq '/other_pages/one/two'
|
|
53
90
|
end
|
|
54
91
|
|
|
55
|
-
it
|
|
56
|
-
assert_recognizes(
|
|
92
|
+
it 'should recognize nested route' do
|
|
93
|
+
assert_recognizes(
|
|
94
|
+
{
|
|
95
|
+
:controller => 'high_voltage/pages',
|
|
96
|
+
:action => 'show',
|
|
97
|
+
:id => 'one/two'
|
|
98
|
+
},
|
|
99
|
+
'/other_pages/one/two'
|
|
100
|
+
)
|
|
57
101
|
end
|
|
58
102
|
|
|
59
|
-
it
|
|
60
|
-
assert_recognizes(
|
|
103
|
+
it 'should recognize normal route' do
|
|
104
|
+
assert_recognizes(
|
|
105
|
+
{
|
|
106
|
+
:controller => 'high_voltage/pages',
|
|
107
|
+
:action => 'show',
|
|
108
|
+
:id => 'one'
|
|
109
|
+
},
|
|
110
|
+
'/other_pages/one'
|
|
111
|
+
)
|
|
61
112
|
end
|
|
62
113
|
|
|
63
|
-
it
|
|
64
|
-
assert_recognizes(
|
|
114
|
+
it 'should recognize normal route with dots' do
|
|
115
|
+
assert_recognizes(
|
|
116
|
+
{
|
|
117
|
+
:controller => 'high_voltage/pages',
|
|
118
|
+
:action => 'show',
|
|
119
|
+
:id => 'one.two.three'
|
|
120
|
+
},
|
|
121
|
+
'/other_pages/one.two.three'
|
|
122
|
+
)
|
|
65
123
|
end
|
|
66
124
|
end
|
|
67
125
|
|
|
126
|
+
context 'with default configuration disabled' do
|
|
127
|
+
around do |example|
|
|
128
|
+
cached_high_voltage_routes = HighVoltage.routes
|
|
129
|
+
HighVoltage.routes = false
|
|
130
|
+
Rails.application.reload_routes!
|
|
131
|
+
|
|
132
|
+
example.run
|
|
133
|
+
|
|
134
|
+
HighVoltage.routes = cached_high_voltage_routes
|
|
135
|
+
Rails.application.reload_routes!
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
it 'should not recognize routes' do
|
|
139
|
+
{ :get => '/pages/one/two' }.should_not be_routable
|
|
140
|
+
end
|
|
141
|
+
end
|
|
68
142
|
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -1,30 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
ENV["RAILS_ENV"] = "test"
|
|
1
|
+
ENV['RAILS_ENV'] = 'test'
|
|
3
2
|
|
|
4
3
|
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
|
5
|
-
require
|
|
6
|
-
require
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
ActionMailer::Base.perform_deliveries = true
|
|
10
|
-
ActionMailer::Base.default_url_options[:host] = "test.com"
|
|
4
|
+
require 'pry'
|
|
5
|
+
require 'rails/test_help'
|
|
6
|
+
require 'rspec/rails'
|
|
7
|
+
require 'capybara/rails'
|
|
11
8
|
|
|
12
9
|
Rails.backtrace_cleaner.remove_silencers!
|
|
13
|
-
|
|
14
|
-
# Configure capybara for integration testing
|
|
15
|
-
require "capybara/rails"
|
|
16
|
-
Capybara.default_driver = :rack_test
|
|
10
|
+
Capybara.default_driver = :rack_test
|
|
17
11
|
Capybara.default_selector = :css
|
|
18
12
|
|
|
19
|
-
|
|
20
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
13
|
+
Dir[File.dirname(__FILE__) + '/support/**/*.rb'].each {|f| require f}
|
|
21
14
|
|
|
22
15
|
RSpec.configure do |config|
|
|
23
|
-
# Remove this line if you don't want RSpec's should and should_not
|
|
24
|
-
# methods or matchers
|
|
25
16
|
require 'rspec/expectations'
|
|
26
17
|
config.include RSpec::Matchers
|
|
27
|
-
|
|
28
|
-
# == Mock Framework
|
|
29
18
|
config.mock_with :rspec
|
|
30
19
|
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
RSpec.configure do |config|
|
|
2
|
+
config.around(:each, enable_caching: true) do |example|
|
|
3
|
+
ActionController::Base.perform_caching = true
|
|
4
|
+
old_cache_store = ActionController::Base.cache_store
|
|
5
|
+
ActionController::Base.cache_store = :memory_store
|
|
6
|
+
|
|
7
|
+
example.run
|
|
8
|
+
|
|
9
|
+
ActionController::Base.cache_store = old_cache_store
|
|
10
|
+
ActionController::Base.perform_caching = false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -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,15 +1,9 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: high_voltage
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
prerelease:
|
|
6
|
-
segments:
|
|
7
|
-
- 1
|
|
8
|
-
- 1
|
|
9
|
-
- 1
|
|
10
|
-
version: 1.1.1
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 2.0.0
|
|
11
5
|
platform: ruby
|
|
12
|
-
authors:
|
|
6
|
+
authors:
|
|
13
7
|
- Matt Jankowski
|
|
14
8
|
- Dan Croak
|
|
15
9
|
- Nick Quaranto
|
|
@@ -22,77 +16,85 @@ authors:
|
|
|
22
16
|
autorequire:
|
|
23
17
|
bindir: bin
|
|
24
18
|
cert_chain: []
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
hash: 3
|
|
35
|
-
segments:
|
|
36
|
-
- 0
|
|
37
|
-
version: "0"
|
|
38
|
-
requirement: *id001
|
|
19
|
+
date: 2013-10-05 00:00:00.000000000 Z
|
|
20
|
+
dependencies:
|
|
21
|
+
- !ruby/object:Gem::Dependency
|
|
22
|
+
name: activesupport
|
|
23
|
+
requirement: !ruby/object:Gem::Requirement
|
|
24
|
+
requirements:
|
|
25
|
+
- - '>='
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
version: 3.1.0
|
|
39
28
|
type: :development
|
|
40
29
|
prerelease: false
|
|
30
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
- - '>='
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: 3.1.0
|
|
35
|
+
- !ruby/object:Gem::Dependency
|
|
41
36
|
name: appraisal
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
- !ruby/object:Gem::Version
|
|
48
|
-
hash: 3
|
|
49
|
-
segments:
|
|
50
|
-
- 0
|
|
51
|
-
version: "0"
|
|
52
|
-
requirement: *id002
|
|
37
|
+
requirement: !ruby/object:Gem::Requirement
|
|
38
|
+
requirements:
|
|
39
|
+
- - '>='
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: '0'
|
|
53
42
|
type: :development
|
|
54
43
|
prerelease: false
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
version: 0.4.0
|
|
68
|
-
requirement: *id003
|
|
44
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
45
|
+
requirements:
|
|
46
|
+
- - '>='
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: '0'
|
|
49
|
+
- !ruby/object:Gem::Dependency
|
|
50
|
+
name: capybara
|
|
51
|
+
requirement: !ruby/object:Gem::Requirement
|
|
52
|
+
requirements:
|
|
53
|
+
- - '='
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: 2.0.3
|
|
69
56
|
type: :development
|
|
70
57
|
prerelease: false
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
58
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
59
|
+
requirements:
|
|
60
|
+
- - '='
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: 2.0.3
|
|
63
|
+
- !ruby/object:Gem::Dependency
|
|
64
|
+
name: pry-debugger
|
|
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
|
|
79
|
+
requirement: !ruby/object:Gem::Requirement
|
|
80
|
+
requirements:
|
|
81
|
+
- - '>='
|
|
82
|
+
- !ruby/object:Gem::Version
|
|
83
|
+
version: '0'
|
|
83
84
|
type: :development
|
|
84
85
|
prerelease: false
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
87
|
+
requirements:
|
|
88
|
+
- - '>='
|
|
89
|
+
- !ruby/object:Gem::Version
|
|
90
|
+
version: '0'
|
|
91
|
+
description: Fire in the disco. Fire in the ... taco bell.
|
|
92
|
+
email:
|
|
88
93
|
- support@thoughtbot.com
|
|
89
94
|
executables: []
|
|
90
|
-
|
|
91
95
|
extensions: []
|
|
92
|
-
|
|
93
96
|
extra_rdoc_files: []
|
|
94
|
-
|
|
95
|
-
files:
|
|
97
|
+
files:
|
|
96
98
|
- .gitignore
|
|
97
99
|
- .travis.yml
|
|
98
100
|
- Appraisals
|
|
@@ -100,21 +102,28 @@ files:
|
|
|
100
102
|
- Gemfile
|
|
101
103
|
- Gemfile.lock
|
|
102
104
|
- MIT-LICENSE
|
|
105
|
+
- NEWS.md
|
|
103
106
|
- README.md
|
|
104
107
|
- Rakefile
|
|
108
|
+
- app/controllers/concerns/high_voltage/static_page.rb
|
|
105
109
|
- app/controllers/high_voltage/pages_controller.rb
|
|
106
110
|
- config/routes.rb
|
|
107
|
-
- gemfiles/rails-3.0.10.gemfile
|
|
108
|
-
- gemfiles/rails-3.0.10.gemfile.lock
|
|
109
|
-
- gemfiles/rails-3.1.0.gemfile
|
|
110
|
-
- gemfiles/rails-3.1.0.gemfile.lock
|
|
111
111
|
- high_voltage.gemspec
|
|
112
112
|
- lib/high_voltage.rb
|
|
113
|
+
- lib/high_voltage/constraints/root_route.rb
|
|
113
114
|
- lib/high_voltage/engine.rb
|
|
115
|
+
- lib/high_voltage/page_finder.rb
|
|
116
|
+
- lib/high_voltage/route_drawers/default.rb
|
|
117
|
+
- lib/high_voltage/route_drawers/root.rb
|
|
114
118
|
- lib/high_voltage/version.rb
|
|
119
|
+
- spec/constraints/root_route_spec.rb
|
|
120
|
+
- spec/controllers/action_caching_controller_spec.rb
|
|
121
|
+
- spec/controllers/alternative_finder_controller_spec.rb
|
|
122
|
+
- spec/controllers/page_caching_controller_spec.rb
|
|
115
123
|
- spec/controllers/pages_controller_spec.rb
|
|
116
124
|
- spec/controllers/subclassed_pages_controller_spec.rb
|
|
117
125
|
- spec/dummy/Rakefile
|
|
126
|
+
- spec/dummy/app/controllers/alternative_finder_controller.rb
|
|
118
127
|
- spec/dummy/app/controllers/application_controller.rb
|
|
119
128
|
- spec/dummy/app/controllers/subclassed_pages_controller.rb
|
|
120
129
|
- spec/dummy/app/helpers/application_helper.rb
|
|
@@ -124,9 +133,13 @@ files:
|
|
|
124
133
|
- spec/dummy/app/views/other_pages/also_dir/also_nested.html.erb
|
|
125
134
|
- spec/dummy/app/views/other_pages/also_exists.html.erb
|
|
126
135
|
- spec/dummy/app/views/other_pages/also_exists_but_references_nonexistent_partial.html.erb
|
|
136
|
+
- spec/dummy/app/views/pages/also_dir/also_nested.html.erb
|
|
137
|
+
- spec/dummy/app/views/pages/also_exists.html.erb
|
|
138
|
+
- spec/dummy/app/views/pages/also_exists_but_references_nonexistent_partial.html.erb
|
|
127
139
|
- spec/dummy/app/views/pages/dir/nested.html.erb
|
|
128
140
|
- spec/dummy/app/views/pages/exists.html.erb
|
|
129
141
|
- spec/dummy/app/views/pages/exists_but_references_nonexistent_partial.html.erb
|
|
142
|
+
- spec/dummy/app/views/pages/rot13.html.erb
|
|
130
143
|
- spec/dummy/config.ru
|
|
131
144
|
- spec/dummy/config/application.rb
|
|
132
145
|
- spec/dummy/config/boot.rb
|
|
@@ -137,6 +150,7 @@ files:
|
|
|
137
150
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
|
138
151
|
- spec/dummy/config/initializers/inflections.rb
|
|
139
152
|
- spec/dummy/config/initializers/mime_types.rb
|
|
153
|
+
- spec/dummy/config/initializers/secret_key_base.rb
|
|
140
154
|
- spec/dummy/config/initializers/secret_token.rb
|
|
141
155
|
- spec/dummy/config/initializers/session_store.rb
|
|
142
156
|
- spec/dummy/config/locales/en.yml
|
|
@@ -153,47 +167,47 @@ files:
|
|
|
153
167
|
- spec/dummy/public/javascripts/rails.js
|
|
154
168
|
- spec/dummy/public/stylesheets/.gitkeep
|
|
155
169
|
- spec/dummy/script/rails
|
|
170
|
+
- spec/high_voltage/page_finder_spec.rb
|
|
156
171
|
- spec/high_voltage_spec.rb
|
|
157
172
|
- spec/integration/navigation_spec.rb
|
|
173
|
+
- spec/minimal_spec_helper.rb
|
|
158
174
|
- spec/routing/routes_spec.rb
|
|
159
175
|
- spec/spec_helper.rb
|
|
176
|
+
- spec/support/caching.rb
|
|
177
|
+
- spec/support/concern_reload.rb
|
|
160
178
|
homepage: http://github.com/thoughtbot/high_voltage
|
|
161
|
-
licenses:
|
|
162
|
-
|
|
179
|
+
licenses:
|
|
180
|
+
- MIT
|
|
181
|
+
metadata: {}
|
|
163
182
|
post_install_message:
|
|
164
183
|
rdoc_options: []
|
|
165
|
-
|
|
166
|
-
require_paths:
|
|
184
|
+
require_paths:
|
|
167
185
|
- lib
|
|
168
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
none: false
|
|
179
|
-
requirements:
|
|
180
|
-
- - ">="
|
|
181
|
-
- !ruby/object:Gem::Version
|
|
182
|
-
hash: 3
|
|
183
|
-
segments:
|
|
184
|
-
- 0
|
|
185
|
-
version: "0"
|
|
186
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
187
|
+
requirements:
|
|
188
|
+
- - '>='
|
|
189
|
+
- !ruby/object:Gem::Version
|
|
190
|
+
version: '0'
|
|
191
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
|
+
requirements:
|
|
193
|
+
- - '>='
|
|
194
|
+
- !ruby/object:Gem::Version
|
|
195
|
+
version: '0'
|
|
186
196
|
requirements: []
|
|
187
|
-
|
|
188
197
|
rubyforge_project:
|
|
189
|
-
rubygems_version:
|
|
198
|
+
rubygems_version: 2.0.0
|
|
190
199
|
signing_key:
|
|
191
|
-
specification_version:
|
|
200
|
+
specification_version: 4
|
|
192
201
|
summary: Simple static page rendering controller
|
|
193
|
-
test_files:
|
|
202
|
+
test_files:
|
|
203
|
+
- spec/constraints/root_route_spec.rb
|
|
204
|
+
- spec/controllers/action_caching_controller_spec.rb
|
|
205
|
+
- spec/controllers/alternative_finder_controller_spec.rb
|
|
206
|
+
- spec/controllers/page_caching_controller_spec.rb
|
|
194
207
|
- spec/controllers/pages_controller_spec.rb
|
|
195
208
|
- spec/controllers/subclassed_pages_controller_spec.rb
|
|
196
209
|
- spec/dummy/Rakefile
|
|
210
|
+
- spec/dummy/app/controllers/alternative_finder_controller.rb
|
|
197
211
|
- spec/dummy/app/controllers/application_controller.rb
|
|
198
212
|
- spec/dummy/app/controllers/subclassed_pages_controller.rb
|
|
199
213
|
- spec/dummy/app/helpers/application_helper.rb
|
|
@@ -203,9 +217,13 @@ test_files:
|
|
|
203
217
|
- spec/dummy/app/views/other_pages/also_dir/also_nested.html.erb
|
|
204
218
|
- spec/dummy/app/views/other_pages/also_exists.html.erb
|
|
205
219
|
- spec/dummy/app/views/other_pages/also_exists_but_references_nonexistent_partial.html.erb
|
|
220
|
+
- spec/dummy/app/views/pages/also_dir/also_nested.html.erb
|
|
221
|
+
- spec/dummy/app/views/pages/also_exists.html.erb
|
|
222
|
+
- spec/dummy/app/views/pages/also_exists_but_references_nonexistent_partial.html.erb
|
|
206
223
|
- spec/dummy/app/views/pages/dir/nested.html.erb
|
|
207
224
|
- spec/dummy/app/views/pages/exists.html.erb
|
|
208
225
|
- spec/dummy/app/views/pages/exists_but_references_nonexistent_partial.html.erb
|
|
226
|
+
- spec/dummy/app/views/pages/rot13.html.erb
|
|
209
227
|
- spec/dummy/config.ru
|
|
210
228
|
- spec/dummy/config/application.rb
|
|
211
229
|
- spec/dummy/config/boot.rb
|
|
@@ -216,6 +234,7 @@ test_files:
|
|
|
216
234
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
|
217
235
|
- spec/dummy/config/initializers/inflections.rb
|
|
218
236
|
- spec/dummy/config/initializers/mime_types.rb
|
|
237
|
+
- spec/dummy/config/initializers/secret_key_base.rb
|
|
219
238
|
- spec/dummy/config/initializers/secret_token.rb
|
|
220
239
|
- spec/dummy/config/initializers/session_store.rb
|
|
221
240
|
- spec/dummy/config/locales/en.yml
|
|
@@ -232,7 +251,11 @@ test_files:
|
|
|
232
251
|
- spec/dummy/public/javascripts/rails.js
|
|
233
252
|
- spec/dummy/public/stylesheets/.gitkeep
|
|
234
253
|
- spec/dummy/script/rails
|
|
254
|
+
- spec/high_voltage/page_finder_spec.rb
|
|
235
255
|
- spec/high_voltage_spec.rb
|
|
236
256
|
- spec/integration/navigation_spec.rb
|
|
257
|
+
- spec/minimal_spec_helper.rb
|
|
237
258
|
- spec/routing/routes_spec.rb
|
|
238
259
|
- spec/spec_helper.rb
|
|
260
|
+
- spec/support/caching.rb
|
|
261
|
+
- spec/support/concern_reload.rb
|