high_voltage 1.2.0 → 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 -2
- data/.travis.yml +5 -6
- data/Appraisals +14 -3
- data/Gemfile.lock +53 -67
- data/MIT-LICENSE +1 -1
- data/NEWS.md +23 -0
- data/README.md +201 -71
- data/Rakefile +11 -10
- data/app/controllers/concerns/high_voltage/static_page.rb +41 -0
- data/app/controllers/high_voltage/pages_controller.rb +1 -35
- 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 +56 -40
- 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 +119 -44
- data/gemfiles/rails-3.0.15.gemfile +0 -7
- data/gemfiles/rails-3.1.6.gemfile +0 -7
- data/gemfiles/rails-3.2.6.gemfile +0 -7
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
describe HighVoltage::PageFinder do
|
|
4
|
+
it 'produces the name of an existing template' do
|
|
5
|
+
find('existing').should eq 'pages/existing'
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
it 'produces the name of a nested template' do
|
|
9
|
+
find('dir/nested').should eq 'pages/dir/nested'
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
it 'uses a custom content path' do
|
|
13
|
+
with_content_path('other_pages/') do
|
|
14
|
+
find('also_exists').should eq 'other_pages/also_exists'
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
it 'exposes the content path' do
|
|
19
|
+
with_content_path('another_thing/') do
|
|
20
|
+
page_finder.content_path.should eq 'another_thing/'
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
it 'provides the page_id' do
|
|
25
|
+
subclass = Class.new(HighVoltage::PageFinder) do
|
|
26
|
+
def page_name
|
|
27
|
+
"the page is #{page_id}"
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
subclass.new('sweet page').page_name.should eq 'the page is sweet page'
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
private
|
|
35
|
+
|
|
36
|
+
def find(page_id)
|
|
37
|
+
page_finder(page_id).find
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def page_finder(page_id = 'whatever')
|
|
41
|
+
HighVoltage::PageFinder.new(page_id)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def with_content_path(path)
|
|
45
|
+
original_content_path = HighVoltage.content_path
|
|
46
|
+
HighVoltage.content_path = path
|
|
47
|
+
|
|
48
|
+
yield
|
|
49
|
+
|
|
50
|
+
HighVoltage.content_path = original_content_path
|
|
51
|
+
end
|
|
52
|
+
end
|
data/spec/high_voltage_spec.rb
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
require '
|
|
1
|
+
require 'minimal_spec_helper'
|
|
2
2
|
|
|
3
3
|
describe HighVoltage do
|
|
4
|
-
it
|
|
4
|
+
it 'should be valid' do
|
|
5
5
|
HighVoltage.should be_a(Module)
|
|
6
6
|
end
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
it 'should be loadable without preloading rails' do
|
|
9
|
+
expect { require 'high_voltage' }.not_to raise_error
|
|
10
|
+
end
|
|
11
|
+
end
|
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,8 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: high_voltage
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 2.0.0
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Matt Jankowski
|
|
@@ -17,73 +16,79 @@ authors:
|
|
|
17
16
|
autorequire:
|
|
18
17
|
bindir: bin
|
|
19
18
|
cert_chain: []
|
|
20
|
-
date:
|
|
19
|
+
date: 2013-10-05 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-debugger
|
|
72
65
|
requirement: !ruby/object:Gem::Requirement
|
|
73
|
-
none: false
|
|
74
66
|
requirements:
|
|
75
|
-
- -
|
|
67
|
+
- - '>='
|
|
76
68
|
- !ruby/object:Gem::Version
|
|
77
69
|
version: '0'
|
|
78
70
|
type: :development
|
|
79
71
|
prerelease: false
|
|
80
72
|
version_requirements: !ruby/object:Gem::Requirement
|
|
81
|
-
none: false
|
|
82
73
|
requirements:
|
|
83
|
-
- -
|
|
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
|
+
- - '>='
|
|
84
82
|
- !ruby/object:Gem::Version
|
|
85
83
|
version: '0'
|
|
86
|
-
|
|
84
|
+
type: :development
|
|
85
|
+
prerelease: false
|
|
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.
|
|
87
92
|
email:
|
|
88
93
|
- support@thoughtbot.com
|
|
89
94
|
executables: []
|
|
@@ -97,20 +102,28 @@ files:
|
|
|
97
102
|
- Gemfile
|
|
98
103
|
- Gemfile.lock
|
|
99
104
|
- MIT-LICENSE
|
|
105
|
+
- NEWS.md
|
|
100
106
|
- README.md
|
|
101
107
|
- Rakefile
|
|
108
|
+
- app/controllers/concerns/high_voltage/static_page.rb
|
|
102
109
|
- app/controllers/high_voltage/pages_controller.rb
|
|
103
110
|
- config/routes.rb
|
|
104
|
-
- gemfiles/rails-3.0.15.gemfile
|
|
105
|
-
- gemfiles/rails-3.1.6.gemfile
|
|
106
|
-
- gemfiles/rails-3.2.6.gemfile
|
|
107
111
|
- high_voltage.gemspec
|
|
108
112
|
- lib/high_voltage.rb
|
|
113
|
+
- lib/high_voltage/constraints/root_route.rb
|
|
109
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
|
|
110
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
|
|
111
123
|
- spec/controllers/pages_controller_spec.rb
|
|
112
124
|
- spec/controllers/subclassed_pages_controller_spec.rb
|
|
113
125
|
- spec/dummy/Rakefile
|
|
126
|
+
- spec/dummy/app/controllers/alternative_finder_controller.rb
|
|
114
127
|
- spec/dummy/app/controllers/application_controller.rb
|
|
115
128
|
- spec/dummy/app/controllers/subclassed_pages_controller.rb
|
|
116
129
|
- spec/dummy/app/helpers/application_helper.rb
|
|
@@ -120,9 +133,13 @@ files:
|
|
|
120
133
|
- spec/dummy/app/views/other_pages/also_dir/also_nested.html.erb
|
|
121
134
|
- spec/dummy/app/views/other_pages/also_exists.html.erb
|
|
122
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
|
|
123
139
|
- spec/dummy/app/views/pages/dir/nested.html.erb
|
|
124
140
|
- spec/dummy/app/views/pages/exists.html.erb
|
|
125
141
|
- spec/dummy/app/views/pages/exists_but_references_nonexistent_partial.html.erb
|
|
142
|
+
- spec/dummy/app/views/pages/rot13.html.erb
|
|
126
143
|
- spec/dummy/config.ru
|
|
127
144
|
- spec/dummy/config/application.rb
|
|
128
145
|
- spec/dummy/config/boot.rb
|
|
@@ -133,6 +150,7 @@ files:
|
|
|
133
150
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
|
134
151
|
- spec/dummy/config/initializers/inflections.rb
|
|
135
152
|
- spec/dummy/config/initializers/mime_types.rb
|
|
153
|
+
- spec/dummy/config/initializers/secret_key_base.rb
|
|
136
154
|
- spec/dummy/config/initializers/secret_token.rb
|
|
137
155
|
- spec/dummy/config/initializers/session_store.rb
|
|
138
156
|
- spec/dummy/config/locales/en.yml
|
|
@@ -149,38 +167,95 @@ files:
|
|
|
149
167
|
- spec/dummy/public/javascripts/rails.js
|
|
150
168
|
- spec/dummy/public/stylesheets/.gitkeep
|
|
151
169
|
- spec/dummy/script/rails
|
|
170
|
+
- spec/high_voltage/page_finder_spec.rb
|
|
152
171
|
- spec/high_voltage_spec.rb
|
|
153
172
|
- spec/integration/navigation_spec.rb
|
|
173
|
+
- spec/minimal_spec_helper.rb
|
|
154
174
|
- spec/routing/routes_spec.rb
|
|
155
175
|
- spec/spec_helper.rb
|
|
176
|
+
- spec/support/caching.rb
|
|
177
|
+
- spec/support/concern_reload.rb
|
|
156
178
|
homepage: http://github.com/thoughtbot/high_voltage
|
|
157
|
-
licenses:
|
|
179
|
+
licenses:
|
|
180
|
+
- MIT
|
|
181
|
+
metadata: {}
|
|
158
182
|
post_install_message:
|
|
159
183
|
rdoc_options: []
|
|
160
184
|
require_paths:
|
|
161
185
|
- lib
|
|
162
186
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
163
|
-
none: false
|
|
164
187
|
requirements:
|
|
165
|
-
- -
|
|
188
|
+
- - '>='
|
|
166
189
|
- !ruby/object:Gem::Version
|
|
167
190
|
version: '0'
|
|
168
|
-
segments:
|
|
169
|
-
- 0
|
|
170
|
-
hash: 2706060558663144713
|
|
171
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
|
-
none: false
|
|
173
192
|
requirements:
|
|
174
|
-
- -
|
|
193
|
+
- - '>='
|
|
175
194
|
- !ruby/object:Gem::Version
|
|
176
195
|
version: '0'
|
|
177
|
-
segments:
|
|
178
|
-
- 0
|
|
179
|
-
hash: 2706060558663144713
|
|
180
196
|
requirements: []
|
|
181
197
|
rubyforge_project:
|
|
182
|
-
rubygems_version:
|
|
198
|
+
rubygems_version: 2.0.0
|
|
183
199
|
signing_key:
|
|
184
|
-
specification_version:
|
|
200
|
+
specification_version: 4
|
|
185
201
|
summary: Simple static page rendering controller
|
|
186
|
-
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
|
|
207
|
+
- spec/controllers/pages_controller_spec.rb
|
|
208
|
+
- spec/controllers/subclassed_pages_controller_spec.rb
|
|
209
|
+
- spec/dummy/Rakefile
|
|
210
|
+
- spec/dummy/app/controllers/alternative_finder_controller.rb
|
|
211
|
+
- spec/dummy/app/controllers/application_controller.rb
|
|
212
|
+
- spec/dummy/app/controllers/subclassed_pages_controller.rb
|
|
213
|
+
- spec/dummy/app/helpers/application_helper.rb
|
|
214
|
+
- spec/dummy/app/views/layouts/alternate.html.erb
|
|
215
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
|
216
|
+
- spec/dummy/app/views/other/wrong.html.erb
|
|
217
|
+
- spec/dummy/app/views/other_pages/also_dir/also_nested.html.erb
|
|
218
|
+
- spec/dummy/app/views/other_pages/also_exists.html.erb
|
|
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
|
|
223
|
+
- spec/dummy/app/views/pages/dir/nested.html.erb
|
|
224
|
+
- spec/dummy/app/views/pages/exists.html.erb
|
|
225
|
+
- spec/dummy/app/views/pages/exists_but_references_nonexistent_partial.html.erb
|
|
226
|
+
- spec/dummy/app/views/pages/rot13.html.erb
|
|
227
|
+
- spec/dummy/config.ru
|
|
228
|
+
- spec/dummy/config/application.rb
|
|
229
|
+
- spec/dummy/config/boot.rb
|
|
230
|
+
- spec/dummy/config/environment.rb
|
|
231
|
+
- spec/dummy/config/environments/development.rb
|
|
232
|
+
- spec/dummy/config/environments/production.rb
|
|
233
|
+
- spec/dummy/config/environments/test.rb
|
|
234
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
|
235
|
+
- spec/dummy/config/initializers/inflections.rb
|
|
236
|
+
- spec/dummy/config/initializers/mime_types.rb
|
|
237
|
+
- spec/dummy/config/initializers/secret_key_base.rb
|
|
238
|
+
- spec/dummy/config/initializers/secret_token.rb
|
|
239
|
+
- spec/dummy/config/initializers/session_store.rb
|
|
240
|
+
- spec/dummy/config/locales/en.yml
|
|
241
|
+
- spec/dummy/config/routes.rb
|
|
242
|
+
- spec/dummy/public/404.html
|
|
243
|
+
- spec/dummy/public/422.html
|
|
244
|
+
- spec/dummy/public/500.html
|
|
245
|
+
- spec/dummy/public/favicon.ico
|
|
246
|
+
- spec/dummy/public/javascripts/application.js
|
|
247
|
+
- spec/dummy/public/javascripts/controls.js
|
|
248
|
+
- spec/dummy/public/javascripts/dragdrop.js
|
|
249
|
+
- spec/dummy/public/javascripts/effects.js
|
|
250
|
+
- spec/dummy/public/javascripts/prototype.js
|
|
251
|
+
- spec/dummy/public/javascripts/rails.js
|
|
252
|
+
- spec/dummy/public/stylesheets/.gitkeep
|
|
253
|
+
- spec/dummy/script/rails
|
|
254
|
+
- spec/high_voltage/page_finder_spec.rb
|
|
255
|
+
- spec/high_voltage_spec.rb
|
|
256
|
+
- spec/integration/navigation_spec.rb
|
|
257
|
+
- spec/minimal_spec_helper.rb
|
|
258
|
+
- spec/routing/routes_spec.rb
|
|
259
|
+
- spec/spec_helper.rb
|
|
260
|
+
- spec/support/caching.rb
|
|
261
|
+
- spec/support/concern_reload.rb
|