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
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: /Users/jferris/Source/high_voltage
|
|
3
|
-
specs:
|
|
4
|
-
high_voltage (1.1.1)
|
|
5
|
-
|
|
6
|
-
GEM
|
|
7
|
-
remote: http://rubygems.org/
|
|
8
|
-
specs:
|
|
9
|
-
abstract (1.0.0)
|
|
10
|
-
actionmailer (3.0.10)
|
|
11
|
-
actionpack (= 3.0.10)
|
|
12
|
-
mail (~> 2.2.19)
|
|
13
|
-
actionpack (3.0.10)
|
|
14
|
-
activemodel (= 3.0.10)
|
|
15
|
-
activesupport (= 3.0.10)
|
|
16
|
-
builder (~> 2.1.2)
|
|
17
|
-
erubis (~> 2.6.6)
|
|
18
|
-
i18n (~> 0.5.0)
|
|
19
|
-
rack (~> 1.2.1)
|
|
20
|
-
rack-mount (~> 0.6.14)
|
|
21
|
-
rack-test (~> 0.5.7)
|
|
22
|
-
tzinfo (~> 0.3.23)
|
|
23
|
-
activemodel (3.0.10)
|
|
24
|
-
activesupport (= 3.0.10)
|
|
25
|
-
builder (~> 2.1.2)
|
|
26
|
-
i18n (~> 0.5.0)
|
|
27
|
-
activerecord (3.0.10)
|
|
28
|
-
activemodel (= 3.0.10)
|
|
29
|
-
activesupport (= 3.0.10)
|
|
30
|
-
arel (~> 2.0.10)
|
|
31
|
-
tzinfo (~> 0.3.23)
|
|
32
|
-
activeresource (3.0.10)
|
|
33
|
-
activemodel (= 3.0.10)
|
|
34
|
-
activesupport (= 3.0.10)
|
|
35
|
-
activesupport (3.0.10)
|
|
36
|
-
appraisal (0.3.8)
|
|
37
|
-
bundler
|
|
38
|
-
rake
|
|
39
|
-
arel (2.0.10)
|
|
40
|
-
builder (2.1.2)
|
|
41
|
-
capybara (1.1.0)
|
|
42
|
-
mime-types (>= 1.16)
|
|
43
|
-
nokogiri (>= 1.3.3)
|
|
44
|
-
rack (>= 1.0.0)
|
|
45
|
-
rack-test (>= 0.5.4)
|
|
46
|
-
selenium-webdriver (~> 2.0)
|
|
47
|
-
xpath (~> 0.1.4)
|
|
48
|
-
childprocess (0.2.2)
|
|
49
|
-
ffi (~> 1.0.6)
|
|
50
|
-
diff-lcs (1.1.3)
|
|
51
|
-
erubis (2.6.6)
|
|
52
|
-
abstract (>= 1.0.0)
|
|
53
|
-
ffi (1.0.9)
|
|
54
|
-
i18n (0.5.0)
|
|
55
|
-
json_pure (1.5.4)
|
|
56
|
-
spruz (~> 0.2.8)
|
|
57
|
-
mail (2.2.19)
|
|
58
|
-
activesupport (>= 2.3.6)
|
|
59
|
-
i18n (>= 0.4.0)
|
|
60
|
-
mime-types (~> 1.16)
|
|
61
|
-
treetop (~> 1.4.8)
|
|
62
|
-
mime-types (1.16)
|
|
63
|
-
nokogiri (1.5.0)
|
|
64
|
-
polyglot (0.3.2)
|
|
65
|
-
rack (1.2.3)
|
|
66
|
-
rack-mount (0.6.14)
|
|
67
|
-
rack (>= 1.0.0)
|
|
68
|
-
rack-test (0.5.7)
|
|
69
|
-
rack (>= 1.0)
|
|
70
|
-
rails (3.0.10)
|
|
71
|
-
actionmailer (= 3.0.10)
|
|
72
|
-
actionpack (= 3.0.10)
|
|
73
|
-
activerecord (= 3.0.10)
|
|
74
|
-
activeresource (= 3.0.10)
|
|
75
|
-
activesupport (= 3.0.10)
|
|
76
|
-
bundler (~> 1.0)
|
|
77
|
-
railties (= 3.0.10)
|
|
78
|
-
railties (3.0.10)
|
|
79
|
-
actionpack (= 3.0.10)
|
|
80
|
-
activesupport (= 3.0.10)
|
|
81
|
-
rake (>= 0.8.7)
|
|
82
|
-
rdoc (~> 3.4)
|
|
83
|
-
thor (~> 0.14.4)
|
|
84
|
-
rake (0.9.2)
|
|
85
|
-
rdoc (3.9.4)
|
|
86
|
-
rspec (2.6.0)
|
|
87
|
-
rspec-core (~> 2.6.0)
|
|
88
|
-
rspec-expectations (~> 2.6.0)
|
|
89
|
-
rspec-mocks (~> 2.6.0)
|
|
90
|
-
rspec-core (2.6.4)
|
|
91
|
-
rspec-expectations (2.6.0)
|
|
92
|
-
diff-lcs (~> 1.1.2)
|
|
93
|
-
rspec-mocks (2.6.0)
|
|
94
|
-
rspec-rails (2.6.1)
|
|
95
|
-
actionpack (~> 3.0)
|
|
96
|
-
activesupport (~> 3.0)
|
|
97
|
-
railties (~> 3.0)
|
|
98
|
-
rspec (~> 2.6.0)
|
|
99
|
-
rubyzip (0.9.4)
|
|
100
|
-
selenium-webdriver (2.5.0)
|
|
101
|
-
childprocess (>= 0.2.1)
|
|
102
|
-
ffi (>= 1.0.7)
|
|
103
|
-
json_pure
|
|
104
|
-
rubyzip
|
|
105
|
-
spruz (0.2.13)
|
|
106
|
-
sqlite3 (1.3.4)
|
|
107
|
-
thor (0.14.6)
|
|
108
|
-
treetop (1.4.10)
|
|
109
|
-
polyglot
|
|
110
|
-
polyglot (>= 0.3.1)
|
|
111
|
-
tzinfo (0.3.29)
|
|
112
|
-
xpath (0.1.4)
|
|
113
|
-
nokogiri (~> 1.3)
|
|
114
|
-
|
|
115
|
-
PLATFORMS
|
|
116
|
-
ruby
|
|
117
|
-
|
|
118
|
-
DEPENDENCIES
|
|
119
|
-
appraisal
|
|
120
|
-
capybara (>= 0.4.0)
|
|
121
|
-
high_voltage!
|
|
122
|
-
rails (= 3.0.10)
|
|
123
|
-
rspec-rails
|
|
124
|
-
sqlite3
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: /Users/jferris/Source/high_voltage
|
|
3
|
-
specs:
|
|
4
|
-
high_voltage (1.1.1)
|
|
5
|
-
|
|
6
|
-
GEM
|
|
7
|
-
remote: http://rubygems.org/
|
|
8
|
-
specs:
|
|
9
|
-
actionmailer (3.1.0)
|
|
10
|
-
actionpack (= 3.1.0)
|
|
11
|
-
mail (~> 2.3.0)
|
|
12
|
-
actionpack (3.1.0)
|
|
13
|
-
activemodel (= 3.1.0)
|
|
14
|
-
activesupport (= 3.1.0)
|
|
15
|
-
builder (~> 3.0.0)
|
|
16
|
-
erubis (~> 2.7.0)
|
|
17
|
-
i18n (~> 0.6)
|
|
18
|
-
rack (~> 1.3.2)
|
|
19
|
-
rack-cache (~> 1.0.3)
|
|
20
|
-
rack-mount (~> 0.8.2)
|
|
21
|
-
rack-test (~> 0.6.1)
|
|
22
|
-
sprockets (~> 2.0.0)
|
|
23
|
-
activemodel (3.1.0)
|
|
24
|
-
activesupport (= 3.1.0)
|
|
25
|
-
bcrypt-ruby (~> 3.0.0)
|
|
26
|
-
builder (~> 3.0.0)
|
|
27
|
-
i18n (~> 0.6)
|
|
28
|
-
activerecord (3.1.0)
|
|
29
|
-
activemodel (= 3.1.0)
|
|
30
|
-
activesupport (= 3.1.0)
|
|
31
|
-
arel (~> 2.2.1)
|
|
32
|
-
tzinfo (~> 0.3.29)
|
|
33
|
-
activeresource (3.1.0)
|
|
34
|
-
activemodel (= 3.1.0)
|
|
35
|
-
activesupport (= 3.1.0)
|
|
36
|
-
activesupport (3.1.0)
|
|
37
|
-
multi_json (~> 1.0)
|
|
38
|
-
appraisal (0.3.8)
|
|
39
|
-
bundler
|
|
40
|
-
rake
|
|
41
|
-
arel (2.2.1)
|
|
42
|
-
bcrypt-ruby (3.0.0)
|
|
43
|
-
builder (3.0.0)
|
|
44
|
-
capybara (1.1.0)
|
|
45
|
-
mime-types (>= 1.16)
|
|
46
|
-
nokogiri (>= 1.3.3)
|
|
47
|
-
rack (>= 1.0.0)
|
|
48
|
-
rack-test (>= 0.5.4)
|
|
49
|
-
selenium-webdriver (~> 2.0)
|
|
50
|
-
xpath (~> 0.1.4)
|
|
51
|
-
childprocess (0.2.2)
|
|
52
|
-
ffi (~> 1.0.6)
|
|
53
|
-
diff-lcs (1.1.3)
|
|
54
|
-
erubis (2.7.0)
|
|
55
|
-
ffi (1.0.9)
|
|
56
|
-
hike (1.2.1)
|
|
57
|
-
i18n (0.6.0)
|
|
58
|
-
json_pure (1.5.4)
|
|
59
|
-
spruz (~> 0.2.8)
|
|
60
|
-
mail (2.3.0)
|
|
61
|
-
i18n (>= 0.4.0)
|
|
62
|
-
mime-types (~> 1.16)
|
|
63
|
-
treetop (~> 1.4.8)
|
|
64
|
-
mime-types (1.16)
|
|
65
|
-
multi_json (1.0.3)
|
|
66
|
-
nokogiri (1.5.0)
|
|
67
|
-
polyglot (0.3.2)
|
|
68
|
-
rack (1.3.2)
|
|
69
|
-
rack-cache (1.0.3)
|
|
70
|
-
rack (>= 0.4)
|
|
71
|
-
rack-mount (0.8.3)
|
|
72
|
-
rack (>= 1.0.0)
|
|
73
|
-
rack-ssl (1.3.2)
|
|
74
|
-
rack
|
|
75
|
-
rack-test (0.6.1)
|
|
76
|
-
rack (>= 1.0)
|
|
77
|
-
rails (3.1.0)
|
|
78
|
-
actionmailer (= 3.1.0)
|
|
79
|
-
actionpack (= 3.1.0)
|
|
80
|
-
activerecord (= 3.1.0)
|
|
81
|
-
activeresource (= 3.1.0)
|
|
82
|
-
activesupport (= 3.1.0)
|
|
83
|
-
bundler (~> 1.0)
|
|
84
|
-
railties (= 3.1.0)
|
|
85
|
-
railties (3.1.0)
|
|
86
|
-
actionpack (= 3.1.0)
|
|
87
|
-
activesupport (= 3.1.0)
|
|
88
|
-
rack-ssl (~> 1.3.2)
|
|
89
|
-
rake (>= 0.8.7)
|
|
90
|
-
rdoc (~> 3.4)
|
|
91
|
-
thor (~> 0.14.6)
|
|
92
|
-
rake (0.9.2)
|
|
93
|
-
rdoc (3.9.4)
|
|
94
|
-
rspec (2.6.0)
|
|
95
|
-
rspec-core (~> 2.6.0)
|
|
96
|
-
rspec-expectations (~> 2.6.0)
|
|
97
|
-
rspec-mocks (~> 2.6.0)
|
|
98
|
-
rspec-core (2.6.4)
|
|
99
|
-
rspec-expectations (2.6.0)
|
|
100
|
-
diff-lcs (~> 1.1.2)
|
|
101
|
-
rspec-mocks (2.6.0)
|
|
102
|
-
rspec-rails (2.6.1)
|
|
103
|
-
actionpack (~> 3.0)
|
|
104
|
-
activesupport (~> 3.0)
|
|
105
|
-
railties (~> 3.0)
|
|
106
|
-
rspec (~> 2.6.0)
|
|
107
|
-
rubyzip (0.9.4)
|
|
108
|
-
selenium-webdriver (2.5.0)
|
|
109
|
-
childprocess (>= 0.2.1)
|
|
110
|
-
ffi (>= 1.0.7)
|
|
111
|
-
json_pure
|
|
112
|
-
rubyzip
|
|
113
|
-
sprockets (2.0.0)
|
|
114
|
-
hike (~> 1.2)
|
|
115
|
-
rack (~> 1.0)
|
|
116
|
-
tilt (~> 1.1, != 1.3.0)
|
|
117
|
-
spruz (0.2.13)
|
|
118
|
-
sqlite3 (1.3.4)
|
|
119
|
-
thor (0.14.6)
|
|
120
|
-
tilt (1.3.3)
|
|
121
|
-
treetop (1.4.10)
|
|
122
|
-
polyglot
|
|
123
|
-
polyglot (>= 0.3.1)
|
|
124
|
-
tzinfo (0.3.29)
|
|
125
|
-
xpath (0.1.4)
|
|
126
|
-
nokogiri (~> 1.3)
|
|
127
|
-
|
|
128
|
-
PLATFORMS
|
|
129
|
-
ruby
|
|
130
|
-
|
|
131
|
-
DEPENDENCIES
|
|
132
|
-
appraisal
|
|
133
|
-
capybara (>= 0.4.0)
|
|
134
|
-
high_voltage!
|
|
135
|
-
rails (= 3.1.0)
|
|
136
|
-
rspec-rails
|
|
137
|
-
sqlite3
|