rambulance 3.0.0 → 3.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6572a6a2e77dbc135e1fb9bb830b6ef43af6e302b7ec0db304577f74a0cef088
4
- data.tar.gz: 9f1fc8a6204ef86c00525f4cfb9e71a80285a89e2f7b1b4aa82e6c10b56496b4
3
+ metadata.gz: 71f3781bf725a20d74a6f2d8d2320672072044e5ecee1aa4e4000739ef15581e
4
+ data.tar.gz: e6d8fac7b73d483f4033f15643d5e38d0f9643a21d843318087550979434cfb0
5
5
  SHA512:
6
- metadata.gz: cdd6de274dbe0607bba3a0c63bd24ca733bde12cc1cfde13f7eccc2cfa560d6dee2efca1ff444cd9e6445d9a15ba17234683c7a3ef7c7a957245fd40f80af8ed
7
- data.tar.gz: 660ce18b77d8e10a3d042cc34768c802e4069633e966d32f7e240162eddb5a359d1a533e06d78cbaf28e288f92a8b5e2c88055da0b947fc9c4d6bbcf42c0a32a
6
+ metadata.gz: c9f0f56788587ddc1057df037a3adf384e1ae1edd7613244d174f7c851ca22ddc056f118ea2489c1c5ca86aa20e724eee215457b6b118fe9b31a6ea0936cf532
7
+ data.tar.gz: 56c981eb197bb799e4a809c2a1477bfb5b60c5a24ea5a93d8972d3df92c9256552fe4962c016d29419599dd6bf911e48b75005c400d63015d04095d0a41ab89e
@@ -8,6 +8,7 @@ jobs:
8
8
  strategy:
9
9
  matrix:
10
10
  ruby_version:
11
+ - '3.3'
11
12
  - '3.2'
12
13
  - '3.1'
13
14
  - '3.0'
@@ -17,6 +18,7 @@ jobs:
17
18
  - 'jruby-9.3'
18
19
  - 'jruby-9.4'
19
20
  gemfile:
21
+ - gemfiles/rails_71.gemfile
20
22
  - gemfiles/rails_70.gemfile
21
23
  - gemfiles/rails_61.gemfile
22
24
  - gemfiles/rails_60.gemfile
@@ -25,6 +27,18 @@ jobs:
25
27
  - gemfiles/rails_50.gemfile
26
28
  - gemfiles/rails_42.gemfile
27
29
  exclude:
30
+ - ruby_version: '3.3'
31
+ gemfile: gemfiles/rails_61.gemfile
32
+ - ruby_version: '3.3'
33
+ gemfile: gemfiles/rails_60.gemfile
34
+ - ruby_version: '3.3'
35
+ gemfile: gemfiles/rails_52.gemfile
36
+ - ruby_version: '3.3'
37
+ gemfile: gemfiles/rails_51.gemfile
38
+ - ruby_version: '3.3'
39
+ gemfile: gemfiles/rails_50.gemfile
40
+ - ruby_version: '3.3'
41
+ gemfile: gemfiles/rails_42.gemfile
28
42
  - ruby_version: '3.2'
29
43
  gemfile: gemfiles/rails_61.gemfile
30
44
  - ruby_version: '3.2'
@@ -55,6 +69,8 @@ jobs:
55
69
  gemfile: gemfiles/rails_50.gemfile
56
70
  - ruby_version: '3.0'
57
71
  gemfile: gemfiles/rails_42.gemfile
72
+ - ruby_version: '2.7'
73
+ gemfile: gemfiles/rails_71.gemfile
58
74
  - ruby_version: '2.7'
59
75
  gemfile: gemfiles/rails_70.gemfile
60
76
  - ruby_version: '2.7'
@@ -65,12 +81,18 @@ jobs:
65
81
  gemfile: gemfiles/rails_50.gemfile
66
82
  - ruby_version: '2.7'
67
83
  gemfile: gemfiles/rails_42.gemfile
84
+ - ruby_version: '2.6'
85
+ gemfile: gemfiles/rails_71.gemfile
68
86
  - ruby_version: '2.6'
69
87
  gemfile: gemfiles/rails_70.gemfile
70
88
  - ruby_version: '2.6'
71
89
  gemfile: gemfiles/rails_42.gemfile
90
+ - ruby_version: '2.5'
91
+ gemfile: gemfiles/rails_71.gemfile
72
92
  - ruby_version: '2.5'
73
93
  gemfile: gemfiles/rails_70.gemfile
94
+ - ruby_version: 'jruby-9.3'
95
+ gemfile: gemfiles/rails_71.gemfile
74
96
  - ruby_version: 'jruby-9.3'
75
97
  gemfile: gemfiles/rails_70.gemfile
76
98
  - ruby_version: 'jruby-9.3'
@@ -112,7 +134,7 @@ jobs:
112
134
  - name: Set up Ruby
113
135
  uses: ruby/setup-ruby@v1
114
136
  with:
115
- ruby-version: 3.2
137
+ ruby-version: 3.3
116
138
  bundler-cache: true
117
139
  - run: bundle exec rake
118
140
 
@@ -126,7 +148,7 @@ jobs:
126
148
  - 'jruby-head'
127
149
  gemfile:
128
150
  - gemfiles/rails_edge.gemfile
129
- - gemfiles/rails_70.gemfile
151
+ - gemfiles/rails_71.gemfile
130
152
  runs-on: ubuntu-22.04
131
153
  env:
132
154
  BUNDLE_GEMFILE: ${{ matrix.gemfile }}
data/Appraisals CHANGED
@@ -44,9 +44,9 @@ appraise "rails_70" do
44
44
  end
45
45
 
46
46
  appraise "rails_71" do
47
- gem "activesupport", "~> 7.1.0.beta1"
48
- gem "actionpack", "~> 7.1.0.beta1"
49
- gem "railties", "~> 7.1.0.beta1"
47
+ gem "activesupport", "~> 7.1.0"
48
+ gem "actionpack", "~> 7.1.0"
49
+ gem "railties", "~> 7.1.0"
50
50
  end
51
51
 
52
52
  appraise "rails_edge" do
data/CHANGELOG.md CHANGED
@@ -1,12 +1,23 @@
1
- ## v3.0.0
1
+ ## v3.1.0
2
+
3
+ _<sup>released at 2024-01-04 10:04:32 UTC</sup>_
4
+
5
+ #### New Features
6
+
7
+ - The test helper is now compatible with Rails Edge (8.0) (#73, #75)
8
+ - Add support for Ruby 3.3 (#74)
9
+
10
+ ## [v3.0.0](https://github.com/yuki24/rambulance/tree/v3.0.0)
11
+
12
+ _<sup>released at 2023-09-22 14:47:24 UTC</sup>_
2
13
 
3
14
  #### New Features
4
15
 
5
- - Add support for Rails 7.1 (`be6f129d`)
16
+ - Add support for Rails 7.1 ([<tt>be6f129</tt>](https://github.com/yuki24/rambulance/commit/be6f129dd4c1d190e90a3036f7f1099028ef4a1e))
6
17
 
7
18
  #### Breaking Changes
8
19
 
9
- - Drop support for Ruby 2.3 and 2.4 (`c0d3439d`)
20
+ - Drop support for Ruby 2.3 and 2.4 ([<tt>c0d3439</tt>](https://github.com/yuki24/rambulance/commit/c0d3439d64552a88cb934d57bc57d2c06ff593c9))
10
21
 
11
22
  ## [v2.3.0](https://github.com/yuki24/rambulance/tree/v2.3.0)
12
23
 
data/README.md CHANGED
@@ -83,7 +83,7 @@ If you want to do some more things in a exceptions app, you can also write your
83
83
  $ rails g rambulance:exceptions_app
84
84
  ```
85
85
 
86
- It will generate your own custom exceptions app. You can use whatever techniques you want to use in controllers like `before_filter` and `flash[:notice] = "message..."` since it's a grandchild of `ActionController::Base`!
86
+ It will generate your own custom exceptions app. You can use most techniques you want to use in controllers like `before_filter` and rendering views since it's a grandchild of `ActionController::Base`! However there are still some restrictions, e.g. setting a flash notice works when rendering directly but not when redirecting because the ActionDispatch::Flash middleware is never hit.
87
87
 
88
88
  **Heavily customizing the exceptions app is strongly discouraged as there would be no guard against bugs that occur in the exceptions app.**
89
89
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activesupport", "~> 7.1.0.beta1"
6
- gem "actionpack", "~> 7.1.0.beta1"
7
- gem "railties", "~> 7.1.0.beta1"
5
+ gem "activesupport", "~> 7.1.0"
6
+ gem "actionpack", "~> 7.1.0"
7
+ gem "railties", "~> 7.1.0"
8
8
 
9
9
  gemspec path: "../"
@@ -28,7 +28,12 @@ module Rambulance #:nodoc:
28
28
  org_show_exceptions = Rails.application.env_config['action_dispatch.show_exceptions']
29
29
 
30
30
  Rails.application.env_config['action_dispatch.show_detailed_exceptions'] = !enabled
31
- Rails.application.env_config['action_dispatch.show_exceptions'] = enabled
31
+
32
+ if ActionDispatch::ExceptionWrapper.instance_methods.include?(:show?)
33
+ Rails.application.env_config['action_dispatch.show_exceptions'] = enabled ? :all : :none
34
+ else
35
+ Rails.application.env_config['action_dispatch.show_exceptions'] = enabled
36
+ end
32
37
 
33
38
  yield
34
39
  ensure
@@ -37,4 +42,3 @@ module Rambulance #:nodoc:
37
42
  end
38
43
  end
39
44
  end
40
-
@@ -1,3 +1,3 @@
1
1
  module Rambulance
2
- VERSION = "3.0.0"
2
+ VERSION = "3.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rambulance
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuki Nishijima
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-09-22 00:00:00.000000000 Z
12
+ date: 2024-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  - !ruby/object:Gem::Version
224
224
  version: '0'
225
225
  requirements: []
226
- rubygems_version: 3.4.19
226
+ rubygems_version: 3.4.22
227
227
  signing_key:
228
228
  specification_version: 4
229
229
  summary: Simple and safe way to dynamically generate error pages