high_voltage 3.1.0 → 3.1.1
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 +5 -5
- data/.travis.yml +12 -26
- data/Appraisals +13 -4
- data/{NEWS.md → CHANGELOG.md} +48 -12
- data/Gemfile.lock +60 -66
- data/README.md +9 -2
- data/bin/setup +12 -0
- data/gemfiles/{rails4.2.gemfile → rails_4.2.gemfile} +1 -1
- data/gemfiles/{rails5.0.gemfile → rails_5.0.gemfile} +2 -1
- data/gemfiles/{rails5.1.gemfile → rails_5.1.gemfile} +2 -1
- data/gemfiles/{rails5.2.gemfile → rails_5.2.gemfile} +2 -1
- data/high_voltage.gemspec +0 -1
- data/lib/high_voltage/page_finder.rb +2 -0
- data/lib/high_voltage/version.rb +1 -1
- data/spec/high_voltage/page_finder_spec.rb +5 -0
- metadata +11 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 5e5d4547d14d7066412de89e823fa98c24ba45337470092ee05873cbc7920dde
|
|
4
|
+
data.tar.gz: 73e4c7f5894e6b96994a41fcfe3cb8473341619205189fa37045f157815a6cc8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd3907451f6c54304d5f26715a4ac2c547fe69d38e76a9d79ceceb9bfa24245b21e7ea3aace18416b8642db1c4b960cb4437a8606aa3829f1440bc91d8be64f6
|
|
7
|
+
data.tar.gz: aab4d1361c88d8fc98800ea57ce684711b1a16f0a61597c44d2c3c96efeac773fa2a025335c27341a2c3920855c30d867913eb6a664f9a365c25b341676044e2
|
data/.travis.yml
CHANGED
|
@@ -2,38 +2,24 @@ branches:
|
|
|
2
2
|
only:
|
|
3
3
|
- "master"
|
|
4
4
|
gemfile:
|
|
5
|
-
- gemfiles/
|
|
6
|
-
- gemfiles/
|
|
7
|
-
- gemfiles/
|
|
8
|
-
- gemfiles/
|
|
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
9
|
install:
|
|
10
|
-
-
|
|
10
|
+
- "bin/setup"
|
|
11
11
|
language:
|
|
12
12
|
- ruby
|
|
13
13
|
rvm:
|
|
14
|
-
- 2.
|
|
15
|
-
- 2.
|
|
16
|
-
- 2.
|
|
17
|
-
- 2.3.6
|
|
18
|
-
- 2.4.3
|
|
19
|
-
- 2.5.0
|
|
20
|
-
matrix:
|
|
21
|
-
exclude:
|
|
22
|
-
- rvm: 2.0.0-p648
|
|
23
|
-
gemfile: gemfiles/rails5.0.gemfile
|
|
24
|
-
- rvm: 2.0.0-p648
|
|
25
|
-
gemfile: gemfiles/rails5.1.gemfile
|
|
26
|
-
- rvm: 2.0.0-p648
|
|
27
|
-
gemfile: gemfiles/rails5.2.gemfile
|
|
28
|
-
- rvm: 2.1.10
|
|
29
|
-
gemfile: gemfiles/rails5.0.gemfile
|
|
30
|
-
- rvm: 2.1.10
|
|
31
|
-
gemfile: gemfiles/rails5.1.gemfile
|
|
32
|
-
- rvm: 2.1.10
|
|
33
|
-
gemfile: gemfiles/rails5.2.gemfile
|
|
34
|
-
|
|
14
|
+
- 2.4.6
|
|
15
|
+
- 2.5.5
|
|
16
|
+
- 2.6.3
|
|
35
17
|
script: 'bundle exec rake spec'
|
|
36
18
|
notifications:
|
|
37
19
|
email: false
|
|
38
20
|
sudo: false
|
|
39
21
|
cache: bundler
|
|
22
|
+
matrix:
|
|
23
|
+
allow_failures:
|
|
24
|
+
- gemfile: gemfiles/rails_4.2.gemfile
|
|
25
|
+
rvm: 2.6.3
|
data/Appraisals
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
rails_versions =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
5
14
|
end
|
|
6
15
|
end
|
data/{NEWS.md → CHANGELOG.md}
RENAMED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [3.1.1] - 2019-05-13
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
+ Fix UTF-8 encoding error being raised on page requests - [#273]
|
|
8
|
+
|
|
9
|
+
## [3.1.0] - 2018-05-04
|
|
10
|
+
|
|
2
11
|
+ Fix bugs around finding pages via page_ids's that contain non-ASCII characters
|
|
3
12
|
+ Trailing slash is no longer required for finding pages
|
|
4
13
|
+ Some other improvements around page lookups
|
|
@@ -7,25 +16,30 @@ New for 3.1.0
|
|
|
7
16
|
+ Test against Rails 5, 5.1, 5.2
|
|
8
17
|
+ Test against Ruby 2.4, 2.5
|
|
9
18
|
|
|
10
|
-
|
|
19
|
+
## [3.0.0] - 2016-04-15
|
|
20
|
+
|
|
11
21
|
+ HighVoltage now supports Rails 5.0.0.beta3 and up.
|
|
12
22
|
+ Properly handle extensions in root route constraint requests.
|
|
13
23
|
+ Removes caching in preparation for Rails 5.
|
|
14
24
|
|
|
15
|
-
|
|
25
|
+
## [2.4.0] - 2015-07-17
|
|
26
|
+
|
|
16
27
|
+ Retrieve a list of available static pages via `HighVoltage.page_ids`.
|
|
17
28
|
+ Properly handle page ids which are blank when being sanitized.
|
|
18
29
|
+ Only provide deprecation warnings around caching when caching is enabled.
|
|
19
30
|
|
|
20
|
-
|
|
31
|
+
## [2.3.0] - 2015-04-17
|
|
32
|
+
|
|
21
33
|
+ Ruby 2.2 and Rails 4.2 testing
|
|
22
34
|
+ Raise InvalidPageIdError when visiting a page with invalid characters
|
|
23
35
|
+ Code of Conduct added to Contributing guide
|
|
24
36
|
|
|
25
|
-
|
|
37
|
+
## [2.2.1] - 2014-07-23
|
|
38
|
+
|
|
26
39
|
+ Resolve issue with require statements for Rails 3.x projects
|
|
27
40
|
|
|
28
|
-
|
|
41
|
+
## [2.2.0] - 2014-06-24
|
|
42
|
+
|
|
29
43
|
+ Deprecate caching because page and action caching was removed in Rails 4
|
|
30
44
|
+ Refactor test suite to use rspec `expect` syntax consistently.
|
|
31
45
|
+ Added Rails 4.1 to test suite.
|
|
@@ -33,32 +47,54 @@ New for 2.2.0:
|
|
|
33
47
|
+ Remove Capybara from test suite.
|
|
34
48
|
+ Support dependency injection for Rails engine to define routes on
|
|
35
49
|
|
|
36
|
-
|
|
50
|
+
## [2.1.0] - 2013-12-30
|
|
51
|
+
|
|
37
52
|
+ Extract configuration options into a module
|
|
38
53
|
+ Add ability to configure whether layout is cached with action_caching
|
|
39
54
|
+ Add ability to configure a `home_page` for root routing to High Voltage
|
|
40
55
|
+ Update README with new block style config
|
|
41
56
|
|
|
42
|
-
|
|
57
|
+
## [2.0.0] - 2013-10-05
|
|
58
|
+
|
|
43
59
|
+ Extract PagesController into a module
|
|
44
60
|
+ Update README with module usage instructions
|
|
45
61
|
|
|
46
|
-
|
|
62
|
+
## [1.2.4] - 2013-07-19
|
|
63
|
+
|
|
47
64
|
+ Add page and action caching
|
|
48
65
|
+ Remove redundant link style `page_path(id: 'about')` from README
|
|
49
66
|
+ Clean up Appraisals for Travis-CI
|
|
50
67
|
+ Remove Ruby 1.8.7 from test suite
|
|
51
68
|
|
|
52
|
-
|
|
69
|
+
## [1.2.3] - 2013-07-04
|
|
70
|
+
|
|
53
71
|
+ Updates for Rails 4 compatibility.
|
|
54
72
|
+ Fix for Rails 4 circular dependency error.
|
|
55
73
|
+ Add ability to load High Voltage outside of rails. Require `attribute_accessors`
|
|
56
74
|
|
|
57
|
-
|
|
75
|
+
## [1.2.2] - 2013-07-04
|
|
76
|
+
|
|
58
77
|
+ Bug fix for RootRoute constraint. Support haml, slim, etc.
|
|
59
78
|
+ README updated for root routes.
|
|
60
79
|
|
|
61
|
-
|
|
80
|
+
## [1.2.1] - 2013-10-30
|
|
81
|
+
|
|
62
82
|
+ Ability to disable HighVoltage routes.
|
|
63
83
|
+ New RootRoute constraint.
|
|
64
84
|
+ Updated README, with new TravisCI url.
|
|
85
|
+
|
|
86
|
+
[3.1.1]: https://github.com/thoughtbot/high_voltage/compare/v3.1.0...v3.1.1
|
|
87
|
+
[3.1.0]: https://github.com/thoughtbot/high_voltage/compare/v3.0.0...v3.1.0
|
|
88
|
+
[3.0.0]: https://github.com/thoughtbot/high_voltage/compare/v2.4.0...v3.0.0
|
|
89
|
+
[2.4.0]: https://github.com/thoughtbot/high_voltage/compare/v2.3.0...v2.4.0
|
|
90
|
+
[2.3.0]: https://github.com/thoughtbot/high_voltage/compare/v2.2.1...v2.3.0
|
|
91
|
+
[2.2.1]: https://github.com/thoughtbot/high_voltage/compare/v2.2.0...v2.2.1
|
|
92
|
+
[2.2.0]: https://github.com/thoughtbot/high_voltage/compare/v2.1.0...v2.2.0
|
|
93
|
+
[2.1.0]: https://github.com/thoughtbot/high_voltage/compare/v2.0.0...v2.1.0
|
|
94
|
+
[2.0.0]: https://github.com/thoughtbot/high_voltage/compare/v1.2.4...v2.0.0
|
|
95
|
+
[1.2.4]: https://github.com/thoughtbot/high_voltage/compare/v1.2.3...v1.2.4
|
|
96
|
+
[1.2.3]: https://github.com/thoughtbot/high_voltage/compare/v1.2.2...v1.2.3
|
|
97
|
+
[1.2.2]: https://github.com/thoughtbot/high_voltage/compare/v1.2.1...v1.2.2
|
|
98
|
+
[1.2.1]: https://github.com/thoughtbot/high_voltage/compare/v1.2.0...v1.2.1
|
|
99
|
+
|
|
100
|
+
[#273]: https://github.com/thoughtbot/high_voltage/pull/273
|
data/Gemfile.lock
CHANGED
|
@@ -1,108 +1,103 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
high_voltage (3.1.
|
|
4
|
+
high_voltage (3.1.1)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
-
actionpack (5.
|
|
10
|
-
actionview (= 5.
|
|
11
|
-
activesupport (= 5.
|
|
9
|
+
actionpack (5.2.3)
|
|
10
|
+
actionview (= 5.2.3)
|
|
11
|
+
activesupport (= 5.2.3)
|
|
12
12
|
rack (~> 2.0)
|
|
13
|
-
rack-test (
|
|
13
|
+
rack-test (>= 0.6.3)
|
|
14
14
|
rails-dom-testing (~> 2.0)
|
|
15
15
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
16
|
-
actionview (5.
|
|
17
|
-
activesupport (= 5.
|
|
16
|
+
actionview (5.2.3)
|
|
17
|
+
activesupport (= 5.2.3)
|
|
18
18
|
builder (~> 3.1)
|
|
19
19
|
erubi (~> 1.4)
|
|
20
20
|
rails-dom-testing (~> 2.0)
|
|
21
21
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
|
22
|
-
activesupport (5.
|
|
22
|
+
activesupport (5.2.3)
|
|
23
23
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
24
|
-
i18n (
|
|
24
|
+
i18n (>= 0.7, < 2)
|
|
25
25
|
minitest (~> 5.1)
|
|
26
26
|
tzinfo (~> 1.1)
|
|
27
|
-
addressable (2.
|
|
28
|
-
public_suffix (
|
|
29
|
-
appraisal (
|
|
27
|
+
addressable (2.6.0)
|
|
28
|
+
public_suffix (>= 2.0.2, < 4.0)
|
|
29
|
+
appraisal (2.2.0)
|
|
30
30
|
bundler
|
|
31
31
|
rake
|
|
32
32
|
thor (>= 0.14.0)
|
|
33
33
|
builder (3.2.3)
|
|
34
|
-
capybara (
|
|
34
|
+
capybara (3.19.1)
|
|
35
35
|
addressable
|
|
36
|
-
|
|
37
|
-
nokogiri (
|
|
38
|
-
rack (>= 1.
|
|
39
|
-
rack-test (>= 0.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
mini_mime (>= 0.1.3)
|
|
37
|
+
nokogiri (~> 1.8)
|
|
38
|
+
rack (>= 1.6.0)
|
|
39
|
+
rack-test (>= 0.6.3)
|
|
40
|
+
regexp_parser (~> 1.2)
|
|
41
|
+
xpath (~> 3.2)
|
|
42
|
+
coderay (1.1.2)
|
|
43
|
+
concurrent-ruby (1.1.5)
|
|
43
44
|
crass (1.0.4)
|
|
44
45
|
diff-lcs (1.3)
|
|
45
|
-
erubi (1.
|
|
46
|
-
i18n (
|
|
47
|
-
|
|
46
|
+
erubi (1.8.0)
|
|
47
|
+
i18n (1.6.0)
|
|
48
|
+
concurrent-ruby (~> 1.0)
|
|
49
|
+
loofah (2.2.3)
|
|
48
50
|
crass (~> 1.0.2)
|
|
49
51
|
nokogiri (>= 1.5.9)
|
|
50
|
-
method_source (0.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
mini_portile2 (~> 2.3.0)
|
|
58
|
-
pry (0.10.1)
|
|
52
|
+
method_source (0.9.2)
|
|
53
|
+
mini_mime (1.0.1)
|
|
54
|
+
mini_portile2 (2.4.0)
|
|
55
|
+
minitest (5.11.3)
|
|
56
|
+
nokogiri (1.10.3)
|
|
57
|
+
mini_portile2 (~> 2.4.0)
|
|
58
|
+
pry (0.12.2)
|
|
59
59
|
coderay (~> 1.1.0)
|
|
60
|
-
method_source (~> 0.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
rack (
|
|
64
|
-
|
|
65
|
-
rack (>= 1.0)
|
|
66
|
-
rails-controller-testing (1.0.2)
|
|
67
|
-
actionpack (~> 5.x, >= 5.0.1)
|
|
68
|
-
actionview (~> 5.x, >= 5.0.1)
|
|
69
|
-
activesupport (~> 5.x)
|
|
60
|
+
method_source (~> 0.9.0)
|
|
61
|
+
public_suffix (3.0.3)
|
|
62
|
+
rack (2.0.7)
|
|
63
|
+
rack-test (1.1.0)
|
|
64
|
+
rack (>= 1.0, < 3)
|
|
70
65
|
rails-dom-testing (2.0.3)
|
|
71
66
|
activesupport (>= 4.2.0)
|
|
72
67
|
nokogiri (>= 1.6)
|
|
73
68
|
rails-html-sanitizer (1.0.4)
|
|
74
69
|
loofah (~> 2.2, >= 2.2.2)
|
|
75
|
-
railties (5.
|
|
76
|
-
actionpack (= 5.
|
|
77
|
-
activesupport (= 5.
|
|
70
|
+
railties (5.2.3)
|
|
71
|
+
actionpack (= 5.2.3)
|
|
72
|
+
activesupport (= 5.2.3)
|
|
78
73
|
method_source
|
|
79
74
|
rake (>= 0.8.7)
|
|
80
|
-
thor (>= 0.
|
|
81
|
-
rake (12.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
75
|
+
thor (>= 0.19.0, < 2.0)
|
|
76
|
+
rake (12.3.2)
|
|
77
|
+
regexp_parser (1.4.0)
|
|
78
|
+
rspec-core (3.8.0)
|
|
79
|
+
rspec-support (~> 3.8.0)
|
|
80
|
+
rspec-expectations (3.8.3)
|
|
85
81
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
86
|
-
rspec-support (~> 3.
|
|
87
|
-
rspec-mocks (3.
|
|
82
|
+
rspec-support (~> 3.8.0)
|
|
83
|
+
rspec-mocks (3.8.0)
|
|
88
84
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
89
|
-
rspec-support (~> 3.
|
|
90
|
-
rspec-rails (3.
|
|
85
|
+
rspec-support (~> 3.8.0)
|
|
86
|
+
rspec-rails (3.8.2)
|
|
91
87
|
actionpack (>= 3.0)
|
|
92
88
|
activesupport (>= 3.0)
|
|
93
89
|
railties (>= 3.0)
|
|
94
|
-
rspec-core (~> 3.
|
|
95
|
-
rspec-expectations (~> 3.
|
|
96
|
-
rspec-mocks (~> 3.
|
|
97
|
-
rspec-support (~> 3.
|
|
98
|
-
rspec-support (3.
|
|
99
|
-
|
|
100
|
-
thor (0.19.4)
|
|
90
|
+
rspec-core (~> 3.8.0)
|
|
91
|
+
rspec-expectations (~> 3.8.0)
|
|
92
|
+
rspec-mocks (~> 3.8.0)
|
|
93
|
+
rspec-support (~> 3.8.0)
|
|
94
|
+
rspec-support (3.8.0)
|
|
95
|
+
thor (0.20.3)
|
|
101
96
|
thread_safe (0.3.6)
|
|
102
|
-
tzinfo (1.2.
|
|
97
|
+
tzinfo (1.2.5)
|
|
103
98
|
thread_safe (~> 0.1)
|
|
104
|
-
xpath (2.
|
|
105
|
-
nokogiri (~> 1.
|
|
99
|
+
xpath (3.2.0)
|
|
100
|
+
nokogiri (~> 1.8)
|
|
106
101
|
|
|
107
102
|
PLATFORMS
|
|
108
103
|
ruby
|
|
@@ -113,8 +108,7 @@ DEPENDENCIES
|
|
|
113
108
|
capybara
|
|
114
109
|
high_voltage!
|
|
115
110
|
pry
|
|
116
|
-
rails-controller-testing
|
|
117
111
|
rspec-rails (~> 3.5)
|
|
118
112
|
|
|
119
113
|
BUNDLED WITH
|
|
120
|
-
1.
|
|
114
|
+
1.17.3
|
data/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# High Voltage [](https://travis-ci.org/thoughtbot/high_voltage)
|
|
1
|
+
# High Voltage [](https://travis-ci.org/thoughtbot/high_voltage) [](https://houndci.com)
|
|
2
2
|
|
|
3
3
|
Rails engine for static pages.
|
|
4
4
|
|
|
5
|
-
... but be careful. [Danger!](
|
|
5
|
+
... but be careful. [Danger!](https://www.youtube.com/watch?v=R-FxmoVM7X4)
|
|
6
6
|
|
|
7
7
|
## Static pages?
|
|
8
8
|
|
|
@@ -182,6 +182,7 @@ Most common reasons to override?
|
|
|
182
182
|
* You need authentication around the pages to make sure a user is signed in.
|
|
183
183
|
* You need to render different layouts for different pages.
|
|
184
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
|
|
185
186
|
|
|
186
187
|
Create a `PagesController` of your own:
|
|
187
188
|
|
|
@@ -238,6 +239,12 @@ HighVoltage.configure do |config|
|
|
|
238
239
|
end
|
|
239
240
|
```
|
|
240
241
|
|
|
242
|
+
To use StaticPage resource, turn off routing and use this route:
|
|
243
|
+
|
|
244
|
+
```ruby
|
|
245
|
+
get "/static_pages/*id" => 'high_voltage/pages#show', as: :static_page, format: false
|
|
246
|
+
```
|
|
247
|
+
|
|
241
248
|
## Custom finding
|
|
242
249
|
|
|
243
250
|
You can further control the algorithm used to find pages by overriding
|
data/bin/setup
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
set -e
|
|
4
|
+
|
|
5
|
+
# Install required gems, including Appraisal, which helps us test against
|
|
6
|
+
# multiple Rails versions
|
|
7
|
+
gem install bundler --version 1.17.3
|
|
8
|
+
bundle _1.17.3_ check || bundle _1.17.3_ install
|
|
9
|
+
|
|
10
|
+
if [ -z "$CI" ]; then
|
|
11
|
+
bundle exec appraisal install
|
|
12
|
+
fi
|
data/high_voltage.gemspec
CHANGED
|
@@ -20,6 +20,5 @@ Gem::Specification.new do |s|
|
|
|
20
20
|
s.add_development_dependency('appraisal')
|
|
21
21
|
s.add_development_dependency('capybara')
|
|
22
22
|
s.add_development_dependency('pry')
|
|
23
|
-
s.add_development_dependency('rails-controller-testing')
|
|
24
23
|
s.add_development_dependency('rspec-rails', '~> 3.5')
|
|
25
24
|
end
|
data/lib/high_voltage/version.rb
CHANGED
|
@@ -70,6 +70,11 @@ describe HighVoltage::PageFinder do
|
|
|
70
70
|
expect { find("dummy/../../secret") }.
|
|
71
71
|
to raise_error HighVoltage::InvalidPageIdError
|
|
72
72
|
end
|
|
73
|
+
|
|
74
|
+
it "throws an exception if invalid byte sequence in page_id" do
|
|
75
|
+
expect { find("\xD0½\xA8\xCEļ\xFE\xBC\xD0.zip") }.
|
|
76
|
+
to raise_error HighVoltage::InvalidPageIdError
|
|
77
|
+
end
|
|
73
78
|
end
|
|
74
79
|
|
|
75
80
|
private
|
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.
|
|
4
|
+
version: 3.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Jankowski
|
|
@@ -16,7 +16,7 @@ authors:
|
|
|
16
16
|
autorequire:
|
|
17
17
|
bindir: bin
|
|
18
18
|
cert_chain: []
|
|
19
|
-
date:
|
|
19
|
+
date: 2019-05-14 00:00:00.000000000 Z
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
22
22
|
name: activesupport
|
|
@@ -74,20 +74,6 @@ dependencies:
|
|
|
74
74
|
- - ">="
|
|
75
75
|
- !ruby/object:Gem::Version
|
|
76
76
|
version: '0'
|
|
77
|
-
- !ruby/object:Gem::Dependency
|
|
78
|
-
name: rails-controller-testing
|
|
79
|
-
requirement: !ruby/object:Gem::Requirement
|
|
80
|
-
requirements:
|
|
81
|
-
- - ">="
|
|
82
|
-
- !ruby/object:Gem::Version
|
|
83
|
-
version: '0'
|
|
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
77
|
- !ruby/object:Gem::Dependency
|
|
92
78
|
name: rspec-rails
|
|
93
79
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -105,27 +91,29 @@ dependencies:
|
|
|
105
91
|
description: Fire in the disco. Fire in the ... taco bell.
|
|
106
92
|
email:
|
|
107
93
|
- support@thoughtbot.com
|
|
108
|
-
executables:
|
|
94
|
+
executables:
|
|
95
|
+
- setup
|
|
109
96
|
extensions: []
|
|
110
97
|
extra_rdoc_files: []
|
|
111
98
|
files:
|
|
112
99
|
- ".gitignore"
|
|
113
100
|
- ".travis.yml"
|
|
114
101
|
- Appraisals
|
|
102
|
+
- CHANGELOG.md
|
|
115
103
|
- CONTRIBUTING.md
|
|
116
104
|
- Gemfile
|
|
117
105
|
- Gemfile.lock
|
|
118
106
|
- MIT-LICENSE
|
|
119
|
-
- NEWS.md
|
|
120
107
|
- README.md
|
|
121
108
|
- Rakefile
|
|
122
109
|
- app/controllers/concerns/high_voltage/static_page.rb
|
|
123
110
|
- app/controllers/high_voltage/pages_controller.rb
|
|
111
|
+
- bin/setup
|
|
124
112
|
- config/routes.rb
|
|
125
|
-
- gemfiles/
|
|
126
|
-
- gemfiles/
|
|
127
|
-
- gemfiles/
|
|
128
|
-
- gemfiles/
|
|
113
|
+
- gemfiles/rails_4.2.gemfile
|
|
114
|
+
- gemfiles/rails_5.0.gemfile
|
|
115
|
+
- gemfiles/rails_5.1.gemfile
|
|
116
|
+
- gemfiles/rails_5.2.gemfile
|
|
129
117
|
- high_voltage.gemspec
|
|
130
118
|
- lib/high_voltage.rb
|
|
131
119
|
- lib/high_voltage/configuration.rb
|
|
@@ -198,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
198
186
|
version: '0'
|
|
199
187
|
requirements: []
|
|
200
188
|
rubyforge_project:
|
|
201
|
-
rubygems_version: 2.6.
|
|
189
|
+
rubygems_version: 2.7.6.2
|
|
202
190
|
signing_key:
|
|
203
191
|
specification_version: 4
|
|
204
192
|
summary: Simple static page rendering controller
|