high_voltage 3.1.2 → 4.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 581dd84388af49331c96af5de2b55321fb5fc035083d9cfa55ef9f2c3c5dde5c
4
- data.tar.gz: b87ccea9df790246681fc54cf300c57293f8e0314a392707b2ae68db934a4b3d
3
+ metadata.gz: 91ff35242f17124a9ac47bd35976699a65a12a061c4c1b0457f1e3b3437a3f1f
4
+ data.tar.gz: fd4d4805e47aa84856772937932988b4221cfac822e76f14a8730b792666d70b
5
5
  SHA512:
6
- metadata.gz: 75fa3a267e8aea150876766e352a5541737474262b092c9280b6b3dd041c281ce3024f95386a9fd982a28674b6ab170f75f1d25b93128fdbcb15c0c946eaa225
7
- data.tar.gz: 161f722e7586267e94e14a225e5a075bab86334359eecd5c67faf057633fd9f5175d2c6b1c690e4681dde0f853b158733f1a21406a0f528f42fd788c6d6e424a
6
+ metadata.gz: db6f3dd6093bbd18d493b34987cd92332d86e1c668575ddea9870e6e42046a4c1ebf30faf3624da010eaa4418cc84d0217ec49d93e0ef8d028992f4fa722d434
7
+ data.tar.gz: 307057b03ca9d47364ff27f0d17ee0fa00636896e787317613ca49ecf521a9afb89c53c3d14bf7925ea46cb7c9bbf996163c097cbcbecefa3ad4b595df7da916
data/CHANGELOG.md CHANGED
@@ -1,95 +1,110 @@
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
+
3
17
  ## [3.1.2] - 2019-05-20
4
18
 
5
19
  ### Fixed
6
20
 
7
- + The previous release unintentionally included a `setup` script meant for
21
+ - The previous release unintentionally included a `setup` script meant for
8
22
  development only in the packaged gem. This has been removed.
9
23
 
10
24
  ## [3.1.1] - 2019-05-13
11
25
 
12
26
  ### Fixed
13
27
 
14
- + Fix UTF-8 encoding error being raised on page requests - [#273]
28
+ - Fix UTF-8 encoding error being raised on page requests - [#273]
15
29
 
16
30
  ## [3.1.0] - 2018-05-04
17
31
 
18
- + Fix bugs around finding pages via page_ids's that contain non-ASCII characters
19
- + Trailing slash is no longer required for finding pages
20
- + Some other improvements around page lookups
21
- + 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
22
36
  not require them.
23
- + Test against Rails 5, 5.1, 5.2
24
- + Test against Ruby 2.4, 2.5
37
+ - Test against Rails 5, 5.1, 5.2
38
+ - Test against Ruby 2.4, 2.5
25
39
 
26
40
  ## [3.0.0] - 2016-04-15
27
41
 
28
- + HighVoltage now supports Rails 5.0.0.beta3 and up.
29
- + Properly handle extensions in root route constraint requests.
30
- + 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.
31
45
 
32
46
  ## [2.4.0] - 2015-07-17
33
47
 
34
- + Retrieve a list of available static pages via `HighVoltage.page_ids`.
35
- + Properly handle page ids which are blank when being sanitized.
36
- + 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.
37
51
 
38
52
  ## [2.3.0] - 2015-04-17
39
53
 
40
- + Ruby 2.2 and Rails 4.2 testing
41
- + Raise InvalidPageIdError when visiting a page with invalid characters
42
- + 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
43
57
 
44
58
  ## [2.2.1] - 2014-07-23
45
59
 
46
- + Resolve issue with require statements for Rails 3.x projects
60
+ - Resolve issue with require statements for Rails 3.x projects
47
61
 
48
62
  ## [2.2.0] - 2014-06-24
49
63
 
50
- + Deprecate caching because page and action caching was removed in Rails 4
51
- + Refactor test suite to use rspec `expect` syntax consistently.
52
- + Added Rails 4.1 to test suite.
53
- + Remove Ruby 1.9.2 from test suite.
54
- + Remove Capybara from test suite.
55
- + 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
56
70
 
57
71
  ## [2.1.0] - 2013-12-30
58
72
 
59
- + Extract configuration options into a module
60
- + Add ability to configure whether layout is cached with action_caching
61
- + Add ability to configure a `home_page` for root routing to High Voltage
62
- + 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
63
77
 
64
78
  ## [2.0.0] - 2013-10-05
65
79
 
66
- + Extract PagesController into a module
67
- + Update README with module usage instructions
80
+ - Extract PagesController into a module
81
+ - Update README with module usage instructions
68
82
 
69
83
  ## [1.2.4] - 2013-07-19
70
84
 
71
- + Add page and action caching
72
- + Remove redundant link style `page_path(id: 'about')` from README
73
- + Clean up Appraisals for Travis-CI
74
- + 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
75
89
 
76
90
  ## [1.2.3] - 2013-07-04
77
91
 
78
- + Updates for Rails 4 compatibility.
79
- + Fix for Rails 4 circular dependency error.
80
- + 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`
81
95
 
82
96
  ## [1.2.2] - 2013-07-04
83
97
 
84
- + Bug fix for RootRoute constraint. Support haml, slim, etc.
85
- + README updated for root routes.
98
+ - Bug fix for RootRoute constraint. Support haml, slim, etc.
99
+ - README updated for root routes.
86
100
 
87
101
  ## [1.2.1] - 2013-10-30
88
102
 
89
- + Ability to disable HighVoltage routes.
90
- + New RootRoute constraint.
91
- + Updated README, with new TravisCI url.
103
+ - Ability to disable HighVoltage routes.
104
+ - New RootRoute constraint.
105
+ - Updated README, with new TravisCI url.
92
106
 
107
+ [4.0.0.rc1]: https://github.com/thoughtbot/high_voltage/compare/v3.1.2...4.0.0.rc1
93
108
  [3.1.2]: https://github.com/thoughtbot/high_voltage/compare/v3.1.1...v3.1.2
94
109
  [3.1.1]: https://github.com/thoughtbot/high_voltage/compare/v3.1.0...v3.1.1
95
110
  [3.1.0]: https://github.com/thoughtbot/high_voltage/compare/v3.0.0...v3.1.0
@@ -104,5 +119,4 @@
104
119
  [1.2.3]: https://github.com/thoughtbot/high_voltage/compare/v1.2.2...v1.2.3
105
120
  [1.2.2]: https://github.com/thoughtbot/high_voltage/compare/v1.2.1...v1.2.2
106
121
  [1.2.1]: https://github.com/thoughtbot/high_voltage/compare/v1.2.0...v1.2.1
107
-
108
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.2".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.2
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-20 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,14 +80,14 @@ 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
@@ -116,7 +116,7 @@ homepage: http://github.com/thoughtbot/high_voltage
116
116
  licenses:
117
117
  - MIT
118
118
  metadata: {}
119
- post_install_message:
119
+ post_install_message:
120
120
  rdoc_options: []
121
121
  require_paths:
122
122
  - lib
@@ -124,16 +124,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
125
  - - ">="
126
126
  - !ruby/object:Gem::Version
127
- version: '0'
127
+ version: '3.0'
128
128
  required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - ">="
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  requirements: []
134
- rubyforge_project:
135
- rubygems_version: 2.7.6.2
136
- signing_key:
134
+ rubygems_version: 3.5.6
135
+ signing_key:
137
136
  specification_version: 4
138
137
  summary: Simple static page rendering controller
139
138
  test_files: []