high_voltage 3.1.1 → 4.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +64 -42
- data/CONTRIBUTING.md +43 -18
- data/README.md +22 -12
- data/lib/high_voltage/engine.rb +0 -7
- data/lib/high_voltage/version.rb +1 -1
- metadata +13 -109
- data/.gitignore +0 -7
- data/.travis.yml +0 -25
- data/Appraisals +0 -15
- data/Gemfile +0 -3
- data/Gemfile.lock +0 -114
- data/Rakefile +0 -24
- data/bin/setup +0 -12
- data/gemfiles/rails_4.2.gemfile +0 -7
- data/gemfiles/rails_5.0.gemfile +0 -8
- data/gemfiles/rails_5.1.gemfile +0 -8
- data/gemfiles/rails_5.2.gemfile +0 -8
- data/high_voltage.gemspec +0 -24
- data/spec/constraints/root_route_spec.rb +0 -29
- data/spec/controllers/alternative_finder_controller_spec.rb +0 -12
- data/spec/controllers/pages_controller_spec.rb +0 -113
- data/spec/controllers/subclassed_pages_controller_spec.rb +0 -34
- data/spec/fake_app.rb +0 -16
- data/spec/features/current_page_helper_spec.rb +0 -9
- data/spec/features/view_page_spec.rb +0 -9
- data/spec/fixtures/app/views/layouts/alternate.html.erb +0 -14
- data/spec/fixtures/app/views/layouts/application.html.erb +0 -14
- data/spec/fixtures/app/views/other/wrong.html.erb +0 -1
- data/spec/fixtures/app/views/other_pages/also_dir/also_nested.html.erb +0 -1
- data/spec/fixtures/app/views/other_pages/also_exists.html.erb +0 -1
- data/spec/fixtures/app/views/other_pages/also_exists_but_references_nonexistent_partial.html.erb +0 -2
- data/spec/fixtures/app/views/pages/_partial.html.erb +0 -1
- data/spec/fixtures/app/views/pages/about.html.erb +0 -1
- data/spec/fixtures/app/views/pages/also_dir/also_nested.html.erb +0 -1
- data/spec/fixtures/app/views/pages/also_exists.html.erb +0 -1
- data/spec/fixtures/app/views/pages/also_exists_but_references_nonexistent_partial.html.erb +0 -2
- data/spec/fixtures/app/views/pages/current_page_helper.html.erb +0 -1
- data/spec/fixtures/app/views/pages/dir/nested.html.erb +0 -1
- data/spec/fixtures/app/views/pages/exists.html.erb +0 -1
- data/spec/fixtures/app/views/pages/exists_but_references_nonexistent_partial.html.erb +0 -2
- data/spec/fixtures/app/views/pages/exists_without_html_extension.erb +0 -1
- data/spec/fixtures/app/views/pages/rot13.html.erb +0 -1
- data/spec/fixtures/app/views/pages/text.txt.erb +0 -1
- data/spec/fixtures/config/database.yml +0 -3
- data/spec/fixtures/config/routes.rb +0 -4
- data/spec/fixtures/public/pages/exists.html +0 -0
- data/spec/high_voltage/configuration_spec.rb +0 -31
- data/spec/high_voltage/page_collector_spec.rb +0 -40
- data/spec/high_voltage/page_finder_spec.rb +0 -98
- data/spec/high_voltage/page_spec.rb +0 -65
- data/spec/high_voltage_spec.rb +0 -11
- data/spec/integration/navigation_spec.rb +0 -7
- data/spec/minimal_spec_helper.rb +0 -5
- data/spec/requests/home_page_spec.rb +0 -13
- data/spec/routing/routes_spec.rb +0 -140
- data/spec/spec_helper.rb +0 -39
- data/spec/support/app/controllers/alternative_finder_controller.rb +0 -14
- data/spec/support/app/controllers/subclassed_pages_controller.rb +0 -3
- data/spec/support/http_method_shim.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91ff35242f17124a9ac47bd35976699a65a12a061c4c1b0457f1e3b3437a3f1f
|
4
|
+
data.tar.gz: fd4d4805e47aa84856772937932988b4221cfac822e76f14a8730b792666d70b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db6f3dd6093bbd18d493b34987cd92332d86e1c668575ddea9870e6e42046a4c1ebf30faf3624da010eaa4418cc84d0217ec49d93e0ef8d028992f4fa722d434
|
7
|
+
data.tar.gz: 307057b03ca9d47364ff27f0d17ee0fa00636896e787317613ca49ecf521a9afb89c53c3d14bf7925ea46cb7c9bbf996163c097cbcbecefa3ad4b595df7da916
|
data/CHANGELOG.md
CHANGED
@@ -1,88 +1,111 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [4.0.0.rc1] - 2024-03-25
|
4
|
+
|
5
|
+
This is a release candidate. Please report any [issues](https://github.com/thoughtbot/high_voltage/issues/new) you might encounter when installing this version.
|
6
|
+
|
7
|
+
This project is in maintenance-mode. We’re not actively adding new features, but we’ll fix bugs and keep it up to date, and compatible with the latest Ruby and Rails versions.
|
8
|
+
|
9
|
+
Main changes:
|
10
|
+
|
11
|
+
- Remove support for EOL'd Rails version 4.2
|
12
|
+
- Remove support for EOL'd Rails versions 5.x
|
13
|
+
- Remove support for Travis CI and replaced with Github Actions
|
14
|
+
- Add support for Rails 7.1
|
15
|
+
- Add Ruby's minimum version required to >= 3.0
|
16
|
+
|
17
|
+
## [3.1.2] - 2019-05-20
|
18
|
+
|
19
|
+
### Fixed
|
20
|
+
|
21
|
+
- The previous release unintentionally included a `setup` script meant for
|
22
|
+
development only in the packaged gem. This has been removed.
|
23
|
+
|
3
24
|
## [3.1.1] - 2019-05-13
|
4
25
|
|
5
26
|
### Fixed
|
6
27
|
|
7
|
-
|
28
|
+
- Fix UTF-8 encoding error being raised on page requests - [#273]
|
8
29
|
|
9
30
|
## [3.1.0] - 2018-05-04
|
10
31
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
32
|
+
- Fix bugs around finding pages via page_ids's that contain non-ASCII characters
|
33
|
+
- Trailing slash is no longer required for finding pages
|
34
|
+
- Some other improvements around page lookups
|
35
|
+
- Don't require format in extension for looking up page id's HAML and Slim do
|
15
36
|
not require them.
|
16
|
-
|
17
|
-
|
37
|
+
- Test against Rails 5, 5.1, 5.2
|
38
|
+
- Test against Ruby 2.4, 2.5
|
18
39
|
|
19
40
|
## [3.0.0] - 2016-04-15
|
20
41
|
|
21
|
-
|
22
|
-
|
23
|
-
|
42
|
+
- HighVoltage now supports Rails 5.0.0.beta3 and up.
|
43
|
+
- Properly handle extensions in root route constraint requests.
|
44
|
+
- Removes caching in preparation for Rails 5.
|
24
45
|
|
25
46
|
## [2.4.0] - 2015-07-17
|
26
47
|
|
27
|
-
|
28
|
-
|
29
|
-
|
48
|
+
- Retrieve a list of available static pages via `HighVoltage.page_ids`.
|
49
|
+
- Properly handle page ids which are blank when being sanitized.
|
50
|
+
- Only provide deprecation warnings around caching when caching is enabled.
|
30
51
|
|
31
52
|
## [2.3.0] - 2015-04-17
|
32
53
|
|
33
|
-
|
34
|
-
|
35
|
-
|
54
|
+
- Ruby 2.2 and Rails 4.2 testing
|
55
|
+
- Raise InvalidPageIdError when visiting a page with invalid characters
|
56
|
+
- Code of Conduct added to Contributing guide
|
36
57
|
|
37
58
|
## [2.2.1] - 2014-07-23
|
38
59
|
|
39
|
-
|
60
|
+
- Resolve issue with require statements for Rails 3.x projects
|
40
61
|
|
41
62
|
## [2.2.0] - 2014-06-24
|
42
63
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
64
|
+
- Deprecate caching because page and action caching was removed in Rails 4
|
65
|
+
- Refactor test suite to use rspec `expect` syntax consistently.
|
66
|
+
- Added Rails 4.1 to test suite.
|
67
|
+
- Remove Ruby 1.9.2 from test suite.
|
68
|
+
- Remove Capybara from test suite.
|
69
|
+
- Support dependency injection for Rails engine to define routes on
|
49
70
|
|
50
71
|
## [2.1.0] - 2013-12-30
|
51
72
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
73
|
+
- Extract configuration options into a module
|
74
|
+
- Add ability to configure whether layout is cached with action_caching
|
75
|
+
- Add ability to configure a `home_page` for root routing to High Voltage
|
76
|
+
- Update README with new block style config
|
56
77
|
|
57
78
|
## [2.0.0] - 2013-10-05
|
58
79
|
|
59
|
-
|
60
|
-
|
80
|
+
- Extract PagesController into a module
|
81
|
+
- Update README with module usage instructions
|
61
82
|
|
62
83
|
## [1.2.4] - 2013-07-19
|
63
84
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
85
|
+
- Add page and action caching
|
86
|
+
- Remove redundant link style `page_path(id: 'about')` from README
|
87
|
+
- Clean up Appraisals for Travis-CI
|
88
|
+
- Remove Ruby 1.8.7 from test suite
|
68
89
|
|
69
90
|
## [1.2.3] - 2013-07-04
|
70
91
|
|
71
|
-
|
72
|
-
|
73
|
-
|
92
|
+
- Updates for Rails 4 compatibility.
|
93
|
+
- Fix for Rails 4 circular dependency error.
|
94
|
+
- Add ability to load High Voltage outside of rails. Require `attribute_accessors`
|
74
95
|
|
75
96
|
## [1.2.2] - 2013-07-04
|
76
97
|
|
77
|
-
|
78
|
-
|
98
|
+
- Bug fix for RootRoute constraint. Support haml, slim, etc.
|
99
|
+
- README updated for root routes.
|
79
100
|
|
80
101
|
## [1.2.1] - 2013-10-30
|
81
102
|
|
82
|
-
|
83
|
-
|
84
|
-
|
103
|
+
- Ability to disable HighVoltage routes.
|
104
|
+
- New RootRoute constraint.
|
105
|
+
- Updated README, with new TravisCI url.
|
85
106
|
|
107
|
+
[4.0.0.rc1]: https://github.com/thoughtbot/high_voltage/compare/v3.1.2...4.0.0.rc1
|
108
|
+
[3.1.2]: https://github.com/thoughtbot/high_voltage/compare/v3.1.1...v3.1.2
|
86
109
|
[3.1.1]: https://github.com/thoughtbot/high_voltage/compare/v3.1.0...v3.1.1
|
87
110
|
[3.1.0]: https://github.com/thoughtbot/high_voltage/compare/v3.0.0...v3.1.0
|
88
111
|
[3.0.0]: https://github.com/thoughtbot/high_voltage/compare/v2.4.0...v3.0.0
|
@@ -96,5 +119,4 @@
|
|
96
119
|
[1.2.3]: https://github.com/thoughtbot/high_voltage/compare/v1.2.2...v1.2.3
|
97
120
|
[1.2.2]: https://github.com/thoughtbot/high_voltage/compare/v1.2.1...v1.2.2
|
98
121
|
[1.2.1]: https://github.com/thoughtbot/high_voltage/compare/v1.2.0...v1.2.1
|
99
|
-
|
100
122
|
[#273]: https://github.com/thoughtbot/high_voltage/pull/273
|
data/CONTRIBUTING.md
CHANGED
@@ -1,22 +1,47 @@
|
|
1
|
+
# Contributing Guide
|
2
|
+
|
3
|
+
## Code of Conduct
|
4
|
+
|
5
|
+
We welcome pull requests from everyone. By participating in this project, you
|
6
|
+
agree to abide by the thoughtbot [code of conduct].
|
7
|
+
|
8
|
+
Note that this project is in maintenance-mode. We’re not actively adding new features. Bug
|
9
|
+
fixes and other contributions to keep it compatible with the latest Ruby and Rails versions
|
10
|
+
are welcomed.
|
11
|
+
|
12
|
+
We expect everyone to follow the code of conduct anywhere in thoughtbot's
|
13
|
+
project codebases, issue trackers, chat-rooms, and mailing lists.
|
14
|
+
|
15
|
+
[code of conduct]: https://thoughtbot.com/open-source-code-of-conduct
|
16
|
+
|
17
|
+
### Running the application locally
|
18
|
+
|
19
|
+
```sh
|
20
|
+
bundle
|
21
|
+
```
|
22
|
+
|
23
|
+
Run the tests:
|
24
|
+
|
25
|
+
```sh
|
26
|
+
bundle exec rake
|
27
|
+
```
|
28
|
+
|
29
|
+
## Opening a PR
|
30
|
+
|
1
31
|
We love pull requests from everyone. By participating in this project, you
|
2
32
|
agree to abide by the thoughtbot [code of conduct].
|
3
33
|
|
4
34
|
[code of conduct]: https://thoughtbot.com/open-source-code-of-conduct
|
5
35
|
|
6
36
|
1. Fork the repo.
|
7
|
-
|
8
37
|
2. Run the tests. We only take pull requests with passing tests, and it's great
|
9
|
-
to know that you have a clean slate: `bundle && rake`
|
10
|
-
|
38
|
+
to know that you have a clean slate: `bundle && rake`
|
11
39
|
3. Add a test for your change. Only refactoring and documentation changes
|
12
|
-
require no new tests. If you are adding functionality or fixing a bug, we need
|
13
|
-
a test!
|
14
|
-
|
40
|
+
require no new tests. If you are adding functionality or fixing a bug, we need
|
41
|
+
a test!
|
15
42
|
4. Make the test pass.
|
16
|
-
|
17
43
|
5. Push to your fork and submit a pull request.
|
18
44
|
|
19
|
-
|
20
45
|
At this point you're waiting on us. We like to at least comment on, if not
|
21
46
|
accept, pull requests within three business days (and, typically, one business
|
22
47
|
day). We may suggest some changes or improvements or alternatives.
|
@@ -24,18 +49,18 @@ day). We may suggest some changes or improvements or alternatives.
|
|
24
49
|
Some things that will increase the chance that your pull request is accepted,
|
25
50
|
taken straight from the Ruby on Rails guide:
|
26
51
|
|
27
|
-
|
28
|
-
|
29
|
-
|
52
|
+
- Use Rails idioms and helpers
|
53
|
+
- Include tests that fail without your code, and pass with it
|
54
|
+
- Update the documentation, the surrounding one, examples elsewhere, guides,
|
30
55
|
whatever is affected by your contribution
|
31
56
|
|
32
|
-
Syntax
|
57
|
+
### Syntax
|
33
58
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
59
|
+
- Two spaces, no tabs.
|
60
|
+
- No trailing whitespace. Blank lines should not have any space.
|
61
|
+
- Prefer &&/|| over and/or.
|
62
|
+
- MyClass.my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
63
|
+
- a = b and not a=b.
|
64
|
+
- Follow the conventions you see used in the source already.
|
40
65
|
|
41
66
|
And in case we didn't emphasize it enough: we love tests!
|
data/README.md
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
# High Voltage [![Build Status](https://
|
1
|
+
# High Voltage [![Build Status](https://github.com/thoughtbot/high_voltage/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/thoughtbot/high_voltage/actions) [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
|
2
|
+
|
3
|
+
> [!NOTE]
|
4
|
+
> `high_voltage` is in maintenance-mode. We’re not actively adding new features,
|
5
|
+
but we’ll fix bugs and keep it up to date, and compatible with the latest Ruby
|
6
|
+
and Rails versions.
|
2
7
|
|
3
8
|
Rails engine for static pages.
|
4
9
|
|
@@ -10,16 +15,16 @@ Yeah, like "About us", "Directions", marketing pages, etc.
|
|
10
15
|
|
11
16
|
## Installation
|
12
17
|
|
13
|
-
There are two ways to install High Voltage.
|
18
|
+
There are two ways to install High Voltage.
|
14
19
|
|
15
|
-
You can run:
|
20
|
+
You can run:
|
16
21
|
|
17
22
|
$ gem install high_voltage
|
18
23
|
|
19
24
|
Or you can include in your Gemfile:
|
20
25
|
|
21
26
|
```ruby
|
22
|
-
gem 'high_voltage', '~> 3.1'
|
27
|
+
gem 'high_voltage', '~> 3.1.2'
|
23
28
|
```
|
24
29
|
|
25
30
|
## Usage
|
@@ -152,6 +157,7 @@ Then print the contents of `:title` into the layout:
|
|
152
157
|
# app/views/layouts/application.html.erb
|
153
158
|
<title><%= yield(:page_title) %></title>
|
154
159
|
```
|
160
|
+
|
155
161
|
#### Content path
|
156
162
|
|
157
163
|
High Voltage uses a default path and folder of 'pages', i.e. 'url.com/pages/contact',
|
@@ -179,10 +185,10 @@ HighVoltage controller as described [below](#override).
|
|
179
185
|
|
180
186
|
Most common reasons to override?
|
181
187
|
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
188
|
+
- You need authentication around the pages to make sure a user is signed in.
|
189
|
+
- You need to render different layouts for different pages.
|
190
|
+
- You need to render a partial from the `app/views/pages` directory.
|
191
|
+
- You need to use your own Page resource and would like to use StaticPage resource for high voltage
|
186
192
|
|
187
193
|
Create a `PagesController` of your own:
|
188
194
|
|
@@ -214,7 +220,7 @@ Then modify new `PagesController` to include the High Voltage static page concer
|
|
214
220
|
class PagesController < ApplicationController
|
215
221
|
include HighVoltage::StaticPage
|
216
222
|
|
217
|
-
|
223
|
+
before_action :authenticate
|
218
224
|
layout :layout_for_page
|
219
225
|
|
220
226
|
private
|
@@ -369,16 +375,17 @@ Thank you, [contributors]!
|
|
369
375
|
|
370
376
|
## License
|
371
377
|
|
372
|
-
High Voltage is copyright © 2009
|
378
|
+
High Voltage is copyright © 2009 thoughtbot. It is free software, and may
|
373
379
|
be redistributed under the terms specified in the [`LICENSE`] file.
|
374
380
|
|
375
381
|
[`LICENSE`]: /MIT-LICENSE
|
376
382
|
|
383
|
+
<!-- START /templates/footer.md -->
|
377
384
|
## About thoughtbot
|
378
385
|
|
379
|
-
![thoughtbot](
|
386
|
+
![thoughtbot](https://thoughtbot.com/thoughtbot-logo-for-readmes.svg)
|
380
387
|
|
381
|
-
|
388
|
+
This repo is maintained and funded by thoughtbot, inc.
|
382
389
|
The names and logos for thoughtbot are trademarks of thoughtbot, inc.
|
383
390
|
|
384
391
|
We love open source software!
|
@@ -387,3 +394,6 @@ We are [available for hire][hire].
|
|
387
394
|
|
388
395
|
[community]: https://thoughtbot.com/community?utm_source=github
|
389
396
|
[hire]: https://thoughtbot.com/hire-us?utm_source=github
|
397
|
+
|
398
|
+
|
399
|
+
<!-- END /templates/footer.md -->
|
data/lib/high_voltage/engine.rb
CHANGED
@@ -11,12 +11,5 @@ module HighVoltage
|
|
11
11
|
app.paths.add(concerns_path)
|
12
12
|
end
|
13
13
|
end
|
14
|
-
|
15
|
-
initializer "Require for Rails 3" do |app|
|
16
|
-
if defined?(Rails) && Rails::VERSION::MAJOR == 3
|
17
|
-
require "concerns/high_voltage/static_page"
|
18
|
-
require "high_voltage/pages_controller"
|
19
|
-
end
|
20
|
-
end
|
21
14
|
end
|
22
15
|
end
|
data/lib/high_voltage/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: high_voltage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Jankowski
|
@@ -13,10 +13,10 @@ authors:
|
|
13
13
|
- Tammer Saleh
|
14
14
|
- Mike Burns
|
15
15
|
- Tristan Dunn
|
16
|
-
autorequire:
|
16
|
+
autorequire:
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
|
-
date:
|
19
|
+
date: 2024-03-25 00:00:00.000000000 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: activesupport
|
@@ -24,14 +24,14 @@ dependencies:
|
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: '6.0'
|
28
28
|
type: :development
|
29
29
|
prerelease: false
|
30
30
|
version_requirements: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: '6.0'
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: appraisal
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,41 +80,28 @@ dependencies:
|
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
83
|
+
version: 5.0.0
|
84
84
|
type: :development
|
85
85
|
prerelease: false
|
86
86
|
version_requirements: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
90
|
+
version: 5.0.0
|
91
91
|
description: Fire in the disco. Fire in the ... taco bell.
|
92
92
|
email:
|
93
93
|
- support@thoughtbot.com
|
94
|
-
executables:
|
95
|
-
- setup
|
94
|
+
executables: []
|
96
95
|
extensions: []
|
97
96
|
extra_rdoc_files: []
|
98
97
|
files:
|
99
|
-
- ".gitignore"
|
100
|
-
- ".travis.yml"
|
101
|
-
- Appraisals
|
102
98
|
- CHANGELOG.md
|
103
99
|
- CONTRIBUTING.md
|
104
|
-
- Gemfile
|
105
|
-
- Gemfile.lock
|
106
100
|
- MIT-LICENSE
|
107
101
|
- README.md
|
108
|
-
- Rakefile
|
109
102
|
- app/controllers/concerns/high_voltage/static_page.rb
|
110
103
|
- app/controllers/high_voltage/pages_controller.rb
|
111
|
-
- bin/setup
|
112
104
|
- config/routes.rb
|
113
|
-
- gemfiles/rails_4.2.gemfile
|
114
|
-
- gemfiles/rails_5.0.gemfile
|
115
|
-
- gemfiles/rails_5.1.gemfile
|
116
|
-
- gemfiles/rails_5.2.gemfile
|
117
|
-
- high_voltage.gemspec
|
118
105
|
- lib/high_voltage.rb
|
119
106
|
- lib/high_voltage/configuration.rb
|
120
107
|
- lib/high_voltage/constraints/root_route.rb
|
@@ -125,52 +112,11 @@ files:
|
|
125
112
|
- lib/high_voltage/route_drawers/default.rb
|
126
113
|
- lib/high_voltage/route_drawers/root.rb
|
127
114
|
- lib/high_voltage/version.rb
|
128
|
-
- spec/constraints/root_route_spec.rb
|
129
|
-
- spec/controllers/alternative_finder_controller_spec.rb
|
130
|
-
- spec/controllers/pages_controller_spec.rb
|
131
|
-
- spec/controllers/subclassed_pages_controller_spec.rb
|
132
|
-
- spec/fake_app.rb
|
133
|
-
- spec/features/current_page_helper_spec.rb
|
134
|
-
- spec/features/view_page_spec.rb
|
135
|
-
- spec/fixtures/app/views/layouts/alternate.html.erb
|
136
|
-
- spec/fixtures/app/views/layouts/application.html.erb
|
137
|
-
- spec/fixtures/app/views/other/wrong.html.erb
|
138
|
-
- spec/fixtures/app/views/other_pages/also_dir/also_nested.html.erb
|
139
|
-
- spec/fixtures/app/views/other_pages/also_exists.html.erb
|
140
|
-
- spec/fixtures/app/views/other_pages/also_exists_but_references_nonexistent_partial.html.erb
|
141
|
-
- spec/fixtures/app/views/pages/_partial.html.erb
|
142
|
-
- spec/fixtures/app/views/pages/about.html.erb
|
143
|
-
- spec/fixtures/app/views/pages/also_dir/also_nested.html.erb
|
144
|
-
- spec/fixtures/app/views/pages/also_exists.html.erb
|
145
|
-
- spec/fixtures/app/views/pages/also_exists_but_references_nonexistent_partial.html.erb
|
146
|
-
- spec/fixtures/app/views/pages/current_page_helper.html.erb
|
147
|
-
- spec/fixtures/app/views/pages/dir/nested.html.erb
|
148
|
-
- spec/fixtures/app/views/pages/exists.html.erb
|
149
|
-
- spec/fixtures/app/views/pages/exists_but_references_nonexistent_partial.html.erb
|
150
|
-
- spec/fixtures/app/views/pages/exists_without_html_extension.erb
|
151
|
-
- spec/fixtures/app/views/pages/rot13.html.erb
|
152
|
-
- spec/fixtures/app/views/pages/text.txt.erb
|
153
|
-
- spec/fixtures/config/database.yml
|
154
|
-
- spec/fixtures/config/routes.rb
|
155
|
-
- spec/fixtures/public/pages/exists.html
|
156
|
-
- spec/high_voltage/configuration_spec.rb
|
157
|
-
- spec/high_voltage/page_collector_spec.rb
|
158
|
-
- spec/high_voltage/page_finder_spec.rb
|
159
|
-
- spec/high_voltage/page_spec.rb
|
160
|
-
- spec/high_voltage_spec.rb
|
161
|
-
- spec/integration/navigation_spec.rb
|
162
|
-
- spec/minimal_spec_helper.rb
|
163
|
-
- spec/requests/home_page_spec.rb
|
164
|
-
- spec/routing/routes_spec.rb
|
165
|
-
- spec/spec_helper.rb
|
166
|
-
- spec/support/app/controllers/alternative_finder_controller.rb
|
167
|
-
- spec/support/app/controllers/subclassed_pages_controller.rb
|
168
|
-
- spec/support/http_method_shim.rb
|
169
115
|
homepage: http://github.com/thoughtbot/high_voltage
|
170
116
|
licenses:
|
171
117
|
- MIT
|
172
118
|
metadata: {}
|
173
|
-
post_install_message:
|
119
|
+
post_install_message:
|
174
120
|
rdoc_options: []
|
175
121
|
require_paths:
|
176
122
|
- lib
|
@@ -178,57 +124,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
178
124
|
requirements:
|
179
125
|
- - ">="
|
180
126
|
- !ruby/object:Gem::Version
|
181
|
-
version: '0'
|
127
|
+
version: '3.0'
|
182
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
129
|
requirements:
|
184
130
|
- - ">="
|
185
131
|
- !ruby/object:Gem::Version
|
186
132
|
version: '0'
|
187
133
|
requirements: []
|
188
|
-
|
189
|
-
|
190
|
-
signing_key:
|
134
|
+
rubygems_version: 3.5.6
|
135
|
+
signing_key:
|
191
136
|
specification_version: 4
|
192
137
|
summary: Simple static page rendering controller
|
193
|
-
test_files:
|
194
|
-
- spec/constraints/root_route_spec.rb
|
195
|
-
- spec/controllers/alternative_finder_controller_spec.rb
|
196
|
-
- spec/controllers/pages_controller_spec.rb
|
197
|
-
- spec/controllers/subclassed_pages_controller_spec.rb
|
198
|
-
- spec/fake_app.rb
|
199
|
-
- spec/features/current_page_helper_spec.rb
|
200
|
-
- spec/features/view_page_spec.rb
|
201
|
-
- spec/fixtures/app/views/layouts/alternate.html.erb
|
202
|
-
- spec/fixtures/app/views/layouts/application.html.erb
|
203
|
-
- spec/fixtures/app/views/other/wrong.html.erb
|
204
|
-
- spec/fixtures/app/views/other_pages/also_dir/also_nested.html.erb
|
205
|
-
- spec/fixtures/app/views/other_pages/also_exists.html.erb
|
206
|
-
- spec/fixtures/app/views/other_pages/also_exists_but_references_nonexistent_partial.html.erb
|
207
|
-
- spec/fixtures/app/views/pages/_partial.html.erb
|
208
|
-
- spec/fixtures/app/views/pages/about.html.erb
|
209
|
-
- spec/fixtures/app/views/pages/also_dir/also_nested.html.erb
|
210
|
-
- spec/fixtures/app/views/pages/also_exists.html.erb
|
211
|
-
- spec/fixtures/app/views/pages/also_exists_but_references_nonexistent_partial.html.erb
|
212
|
-
- spec/fixtures/app/views/pages/current_page_helper.html.erb
|
213
|
-
- spec/fixtures/app/views/pages/dir/nested.html.erb
|
214
|
-
- spec/fixtures/app/views/pages/exists.html.erb
|
215
|
-
- spec/fixtures/app/views/pages/exists_but_references_nonexistent_partial.html.erb
|
216
|
-
- spec/fixtures/app/views/pages/exists_without_html_extension.erb
|
217
|
-
- spec/fixtures/app/views/pages/rot13.html.erb
|
218
|
-
- spec/fixtures/app/views/pages/text.txt.erb
|
219
|
-
- spec/fixtures/config/database.yml
|
220
|
-
- spec/fixtures/config/routes.rb
|
221
|
-
- spec/fixtures/public/pages/exists.html
|
222
|
-
- spec/high_voltage/configuration_spec.rb
|
223
|
-
- spec/high_voltage/page_collector_spec.rb
|
224
|
-
- spec/high_voltage/page_finder_spec.rb
|
225
|
-
- spec/high_voltage/page_spec.rb
|
226
|
-
- spec/high_voltage_spec.rb
|
227
|
-
- spec/integration/navigation_spec.rb
|
228
|
-
- spec/minimal_spec_helper.rb
|
229
|
-
- spec/requests/home_page_spec.rb
|
230
|
-
- spec/routing/routes_spec.rb
|
231
|
-
- spec/spec_helper.rb
|
232
|
-
- spec/support/app/controllers/alternative_finder_controller.rb
|
233
|
-
- spec/support/app/controllers/subclassed_pages_controller.rb
|
234
|
-
- spec/support/http_method_shim.rb
|
138
|
+
test_files: []
|
data/.gitignore
DELETED
data/.travis.yml
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
branches:
|
2
|
-
only:
|
3
|
-
- "master"
|
4
|
-
gemfile:
|
5
|
-
- gemfiles/rails_4.2.gemfile
|
6
|
-
- gemfiles/rails_5.0.gemfile
|
7
|
-
- gemfiles/rails_5.1.gemfile
|
8
|
-
- gemfiles/rails_5.2.gemfile
|
9
|
-
install:
|
10
|
-
- "bin/setup"
|
11
|
-
language:
|
12
|
-
- ruby
|
13
|
-
rvm:
|
14
|
-
- 2.4.6
|
15
|
-
- 2.5.5
|
16
|
-
- 2.6.3
|
17
|
-
script: 'bundle exec rake spec'
|
18
|
-
notifications:
|
19
|
-
email: false
|
20
|
-
sudo: false
|
21
|
-
cache: bundler
|
22
|
-
matrix:
|
23
|
-
allow_failures:
|
24
|
-
- gemfile: gemfiles/rails_4.2.gemfile
|
25
|
-
rvm: 2.6.3
|
data/Appraisals
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
rails_versions = %w(
|
2
|
-
4.2
|
3
|
-
5.0
|
4
|
-
5.1
|
5
|
-
5.2
|
6
|
-
)
|
7
|
-
|
8
|
-
rails_versions.each do |version|
|
9
|
-
appraise "rails_#{version}" do
|
10
|
-
gem "rails", "~> #{version}.0"
|
11
|
-
if Gem::Version.new(version) >= Gem::Version.new("5.0")
|
12
|
-
gem "rails-controller-testing"
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
data/Gemfile
DELETED