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.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +64 -42
  3. data/CONTRIBUTING.md +43 -18
  4. data/README.md +22 -12
  5. data/lib/high_voltage/engine.rb +0 -7
  6. data/lib/high_voltage/version.rb +1 -1
  7. metadata +13 -109
  8. data/.gitignore +0 -7
  9. data/.travis.yml +0 -25
  10. data/Appraisals +0 -15
  11. data/Gemfile +0 -3
  12. data/Gemfile.lock +0 -114
  13. data/Rakefile +0 -24
  14. data/bin/setup +0 -12
  15. data/gemfiles/rails_4.2.gemfile +0 -7
  16. data/gemfiles/rails_5.0.gemfile +0 -8
  17. data/gemfiles/rails_5.1.gemfile +0 -8
  18. data/gemfiles/rails_5.2.gemfile +0 -8
  19. data/high_voltage.gemspec +0 -24
  20. data/spec/constraints/root_route_spec.rb +0 -29
  21. data/spec/controllers/alternative_finder_controller_spec.rb +0 -12
  22. data/spec/controllers/pages_controller_spec.rb +0 -113
  23. data/spec/controllers/subclassed_pages_controller_spec.rb +0 -34
  24. data/spec/fake_app.rb +0 -16
  25. data/spec/features/current_page_helper_spec.rb +0 -9
  26. data/spec/features/view_page_spec.rb +0 -9
  27. data/spec/fixtures/app/views/layouts/alternate.html.erb +0 -14
  28. data/spec/fixtures/app/views/layouts/application.html.erb +0 -14
  29. data/spec/fixtures/app/views/other/wrong.html.erb +0 -1
  30. data/spec/fixtures/app/views/other_pages/also_dir/also_nested.html.erb +0 -1
  31. data/spec/fixtures/app/views/other_pages/also_exists.html.erb +0 -1
  32. data/spec/fixtures/app/views/other_pages/also_exists_but_references_nonexistent_partial.html.erb +0 -2
  33. data/spec/fixtures/app/views/pages/_partial.html.erb +0 -1
  34. data/spec/fixtures/app/views/pages/about.html.erb +0 -1
  35. data/spec/fixtures/app/views/pages/also_dir/also_nested.html.erb +0 -1
  36. data/spec/fixtures/app/views/pages/also_exists.html.erb +0 -1
  37. data/spec/fixtures/app/views/pages/also_exists_but_references_nonexistent_partial.html.erb +0 -2
  38. data/spec/fixtures/app/views/pages/current_page_helper.html.erb +0 -1
  39. data/spec/fixtures/app/views/pages/dir/nested.html.erb +0 -1
  40. data/spec/fixtures/app/views/pages/exists.html.erb +0 -1
  41. data/spec/fixtures/app/views/pages/exists_but_references_nonexistent_partial.html.erb +0 -2
  42. data/spec/fixtures/app/views/pages/exists_without_html_extension.erb +0 -1
  43. data/spec/fixtures/app/views/pages/rot13.html.erb +0 -1
  44. data/spec/fixtures/app/views/pages/text.txt.erb +0 -1
  45. data/spec/fixtures/config/database.yml +0 -3
  46. data/spec/fixtures/config/routes.rb +0 -4
  47. data/spec/fixtures/public/pages/exists.html +0 -0
  48. data/spec/high_voltage/configuration_spec.rb +0 -31
  49. data/spec/high_voltage/page_collector_spec.rb +0 -40
  50. data/spec/high_voltage/page_finder_spec.rb +0 -98
  51. data/spec/high_voltage/page_spec.rb +0 -65
  52. data/spec/high_voltage_spec.rb +0 -11
  53. data/spec/integration/navigation_spec.rb +0 -7
  54. data/spec/minimal_spec_helper.rb +0 -5
  55. data/spec/requests/home_page_spec.rb +0 -13
  56. data/spec/routing/routes_spec.rb +0 -140
  57. data/spec/spec_helper.rb +0 -39
  58. data/spec/support/app/controllers/alternative_finder_controller.rb +0 -14
  59. data/spec/support/app/controllers/subclassed_pages_controller.rb +0 -3
  60. data/spec/support/http_method_shim.rb +0 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e5d4547d14d7066412de89e823fa98c24ba45337470092ee05873cbc7920dde
4
- data.tar.gz: 73e4c7f5894e6b96994a41fcfe3cb8473341619205189fa37045f157815a6cc8
3
+ metadata.gz: 91ff35242f17124a9ac47bd35976699a65a12a061c4c1b0457f1e3b3437a3f1f
4
+ data.tar.gz: fd4d4805e47aa84856772937932988b4221cfac822e76f14a8730b792666d70b
5
5
  SHA512:
6
- metadata.gz: cd3907451f6c54304d5f26715a4ac2c547fe69d38e76a9d79ceceb9bfa24245b21e7ea3aace18416b8642db1c4b960cb4437a8606aa3829f1440bc91d8be64f6
7
- data.tar.gz: aab4d1361c88d8fc98800ea57ce684711b1a16f0a61597c44d2c3c96efeac773fa2a025335c27341a2c3920855c30d867913eb6a664f9a365c25b341676044e2
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
- + Fix UTF-8 encoding error being raised on page requests - [#273]
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
- + Fix bugs around finding pages via page_ids's that contain non-ASCII characters
12
- + Trailing slash is no longer required for finding pages
13
- + Some other improvements around page lookups
14
- + Don't require format in extension for looking up page id's HAML and Slim do
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
- + Test against Rails 5, 5.1, 5.2
17
- + Test against Ruby 2.4, 2.5
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
- + HighVoltage now supports Rails 5.0.0.beta3 and up.
22
- + Properly handle extensions in root route constraint requests.
23
- + Removes caching in preparation for Rails 5.
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
- + Retrieve a list of available static pages via `HighVoltage.page_ids`.
28
- + Properly handle page ids which are blank when being sanitized.
29
- + Only provide deprecation warnings around caching when caching is enabled.
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
- + Ruby 2.2 and Rails 4.2 testing
34
- + Raise InvalidPageIdError when visiting a page with invalid characters
35
- + Code of Conduct added to Contributing guide
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
- + Resolve issue with require statements for Rails 3.x projects
60
+ - Resolve issue with require statements for Rails 3.x projects
40
61
 
41
62
  ## [2.2.0] - 2014-06-24
42
63
 
43
- + Deprecate caching because page and action caching was removed in Rails 4
44
- + Refactor test suite to use rspec `expect` syntax consistently.
45
- + Added Rails 4.1 to test suite.
46
- + Remove Ruby 1.9.2 from test suite.
47
- + Remove Capybara from test suite.
48
- + Support dependency injection for Rails engine to define routes on
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
- + Extract configuration options into a module
53
- + Add ability to configure whether layout is cached with action_caching
54
- + Add ability to configure a `home_page` for root routing to High Voltage
55
- + Update README with new block style config
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
- + Extract PagesController into a module
60
- + Update README with module usage instructions
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
- + Add page and action caching
65
- + Remove redundant link style `page_path(id: 'about')` from README
66
- + Clean up Appraisals for Travis-CI
67
- + Remove Ruby 1.8.7 from test suite
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
- + Updates for Rails 4 compatibility.
72
- + Fix for Rails 4 circular dependency error.
73
- + Add ability to load High Voltage outside of rails. Require `attribute_accessors`
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
- + Bug fix for RootRoute constraint. Support haml, slim, etc.
78
- + README updated for root routes.
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
- + Ability to disable HighVoltage routes.
83
- + New RootRoute constraint.
84
- + Updated README, with new TravisCI url.
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
- * Use Rails idioms and helpers
28
- * Include tests that fail without your code, and pass with it
29
- * Update the documentation, the surrounding one, examples elsewhere, guides,
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
- * Two spaces, no tabs.
35
- * No trailing whitespace. Blank lines should not have any space.
36
- * Prefer &&/|| over and/or.
37
- * MyClass.my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
38
- * a = b and not a=b.
39
- * Follow the conventions you see used in the source already.
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://travis-ci.org/thoughtbot/high_voltage.svg?branch=master)](https://travis-ci.org/thoughtbot/high_voltage) [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
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
- * You need authentication around the pages to make sure a user is signed in.
183
- * You need to render different layouts for different pages.
184
- * You need to render a partial from the `app/views/pages` directory.
185
- * You need to use your own Page resource and would like to use StaticPage resource for high voltage
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
- before_filter :authenticate
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-2018 thoughtbot. It is free software, and may
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](http://presskit.thoughtbot.com/images/thoughtbot-logo-for-readmes.svg)
386
+ ![thoughtbot](https://thoughtbot.com/thoughtbot-logo-for-readmes.svg)
380
387
 
381
- High Voltage is maintained and funded by thoughtbot, inc.
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 -->
@@ -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
@@ -1,3 +1,3 @@
1
1
  module HighVoltage
2
- VERSION = "3.1.1".freeze
2
+ VERSION = "4.0.0.rc1".freeze
3
3
  end
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: 3.1.1
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: 2019-05-14 00:00:00.000000000 Z
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: 3.1.0
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: 3.1.0
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: '3.5'
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: '3.5'
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
- rubyforge_project:
189
- rubygems_version: 2.7.6.2
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
@@ -1,7 +0,0 @@
1
- .bundle/
2
- log/*.log
3
- pkg/
4
- *.swp
5
- *.gem
6
- gemfiles/*.lock
7
- spec/fixtures/log/*.log
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
@@ -1,3 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec