err_merchant 0.6.0 → 0.7.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 +4 -4
- data/.github/workflows/ruby.yml +30 -0
- data/Gemfile +0 -4
- data/README.rdoc +4 -2
- data/app/controllers/err_merchant/errors_controller.rb +1 -0
- data/err_merchant.gemspec +2 -2
- data/lib/err_merchant/version.rb +1 -1
- metadata +12 -13
- data/.travis.yml +0 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06cd48be71775b09c9aa0f4e428f4df30d532bdfcf72434853fcf6dbced355ba
|
|
4
|
+
data.tar.gz: 756d2bed2eb493f17edc1c862f5f7c33842a26a88144947a8d88e9a1cc14a162
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: afcb515aeaca4ba0ccd2cb0edd827fbfcefaebaba4f3a302249910707277cd18ad7a8d58c621a650d62d0f49ba5ffa85979dc0f41695f29c3fb2486ca1f425d0
|
|
7
|
+
data.tar.gz: 7b354a0e0d581fb512589df9d8c207f2bba06e3a3850618624b0ff377e7a6487aed73f89c7d2aaa0fd00d53d11260e091b66da39646163968422fdbfd899aedb
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: RSpec
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ master ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ master ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
strategy:
|
|
12
|
+
fail-fast: false
|
|
13
|
+
matrix:
|
|
14
|
+
include:
|
|
15
|
+
- rails-version: 5.2.0
|
|
16
|
+
- rails-version: 6.0.0
|
|
17
|
+
- rails-version: 6.1.0
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v2
|
|
21
|
+
- uses: ruby/setup-ruby@v1
|
|
22
|
+
with:
|
|
23
|
+
ruby-version: 2.5
|
|
24
|
+
- run: bundle install
|
|
25
|
+
env:
|
|
26
|
+
RAILS_VERSION: ${{ matrix.rails-version }}
|
|
27
|
+
- run: bundle exec rspec spec
|
|
28
|
+
env:
|
|
29
|
+
RAILS_VERSION: ${{ matrix.rails-version }}
|
|
30
|
+
|
data/Gemfile
CHANGED
data/README.rdoc
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
= err_merchant
|
|
2
2
|
|
|
3
|
-
{<img src="https://secure.travis-ci.org/fschwahn/err_merchant.png" />}[http://travis-ci.org/fschwahn/err_merchant]
|
|
4
|
-
|
|
5
3
|
This is a very simple Rails Engine for replacing the standard (ugly) Rails exception pages with pages which are rendered in your layout.
|
|
6
4
|
|
|
7
5
|
== Installation
|
|
@@ -35,6 +33,10 @@ You can translate the error messages, by default they are the same as the standa
|
|
|
35
33
|
Please note that there are translations missing in development mode if you don't supply translations for your locale. In production however, +config.i18n.fallbacks+ is usually set to +true+, so the error messages for the default locale will be shown if the lookup is not successful.
|
|
36
34
|
|
|
37
35
|
== Changelog
|
|
36
|
+
=== 0.7.0 (2021-01-05)
|
|
37
|
+
* Disable CSRF in ErrorsController
|
|
38
|
+
* Drop support for rails < 5.2
|
|
39
|
+
|
|
38
40
|
=== 0.6.0 (2019-06-07)
|
|
39
41
|
* Relax version requirement for rails
|
|
40
42
|
* Drop support for rails < 5
|
|
@@ -2,6 +2,7 @@ class ErrMerchant::ErrorsController < ::ApplicationController
|
|
|
2
2
|
ErrMerchant.skip_filters.each do |filter_type, filters|
|
|
3
3
|
send(:"skip_#{filter_type}_action", *filters) if filters.any?
|
|
4
4
|
end
|
|
5
|
+
skip_forgery_protection(raise: false)
|
|
5
6
|
|
|
6
7
|
ERRORS = {
|
|
7
8
|
internal_server_error: 500,
|
data/err_merchant.gemspec
CHANGED
|
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
|
|
|
20
20
|
end
|
|
21
21
|
spec.require_paths = ["lib"]
|
|
22
22
|
|
|
23
|
-
spec.add_dependency 'rails', '>= 5.
|
|
24
|
-
spec.add_development_dependency 'rake'
|
|
23
|
+
spec.add_dependency 'rails', '>= 5.2', '< 6.2'
|
|
24
|
+
spec.add_development_dependency 'rake'
|
|
25
25
|
spec.add_development_dependency 'combustion'
|
|
26
26
|
spec.add_development_dependency 'sqlite3'
|
|
27
27
|
spec.add_development_dependency 'rspec-rails', '~> 3.0'
|
data/lib/err_merchant/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: err_merchant
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fabian Schwahn
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-01-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -16,34 +16,34 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '5.
|
|
19
|
+
version: '5.2'
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: '6.
|
|
22
|
+
version: '6.2'
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
26
|
requirements:
|
|
27
27
|
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: '5.
|
|
29
|
+
version: '5.2'
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: '6.
|
|
32
|
+
version: '6.2'
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: rake
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
|
-
- - "
|
|
37
|
+
- - ">="
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '
|
|
39
|
+
version: '0'
|
|
40
40
|
type: :development
|
|
41
41
|
prerelease: false
|
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
|
-
- - "
|
|
44
|
+
- - ">="
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: '
|
|
46
|
+
version: '0'
|
|
47
47
|
- !ruby/object:Gem::Dependency
|
|
48
48
|
name: combustion
|
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -107,8 +107,8 @@ executables: []
|
|
|
107
107
|
extensions: []
|
|
108
108
|
extra_rdoc_files: []
|
|
109
109
|
files:
|
|
110
|
+
- ".github/workflows/ruby.yml"
|
|
110
111
|
- ".gitignore"
|
|
111
|
-
- ".travis.yml"
|
|
112
112
|
- Gemfile
|
|
113
113
|
- MIT-LICENSE
|
|
114
114
|
- README.rdoc
|
|
@@ -141,8 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
141
141
|
- !ruby/object:Gem::Version
|
|
142
142
|
version: '0'
|
|
143
143
|
requirements: []
|
|
144
|
-
|
|
145
|
-
rubygems_version: 2.7.6.2
|
|
144
|
+
rubygems_version: 3.1.2
|
|
146
145
|
signing_key:
|
|
147
146
|
specification_version: 4
|
|
148
147
|
summary: Rails Engine for rendering error pages
|