openstax_rescue_from 4.1.0 → 4.2.1

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: 9163a3a8cb7a7a6baad57ca29a8d81e7ad0364babd83c49effa32a2bb9e2b3d3
4
- data.tar.gz: 3bb60e52fa77a815c6b28b66bffcc43b6b7199d69fdf4813958710ae2f2df6c6
3
+ metadata.gz: ec7e531f87626b3a0350e50d5dbaf70d3cedeecc3ead54e8e105d666e10bfb83
4
+ data.tar.gz: 015355dbb7bee67cddf2c96e02f368a993d787913488692605c4b894757dfa8e
5
5
  SHA512:
6
- metadata.gz: 64f22d8daaf77a2e3a2aa118a329939bbe5e309ab5f30f0f6b7e72a28ee6204e6569009b47c50687bc9907f45649385369ef8e7b2fff5945c89a6767f912d2c8
7
- data.tar.gz: b36c2d0ae5250ff5c2d302721533d80517975b9048ade2bd616fb01fd19eb09cea7c7f2c19fbb1dd79b496d3105d51e0e2c689dc9d1f65a4868b1c3fc2257e5f
6
+ metadata.gz: fcf93a6ba12f2cc75dc3856b0b81726950b1ca2240acbf161a8d6c7c209bae7aa93dc5d02ba3c6846ca75a8147344c1e01eb97617a4bef1def2c1255d58e34b0
7
+ data.tar.gz: 693f1ad77e81262bd7e2a8c80a64342efcd308c31f4362d315ba4e23ba3468bddd99da45845685098f99b9894d315d06b05f9cf709ee08d0d45ef37b473a5908
@@ -7,19 +7,12 @@ on:
7
7
  jobs:
8
8
  tests:
9
9
  timeout-minutes: 30
10
- runs-on: ubuntu-18.04
10
+ runs-on: ubuntu-24.04
11
11
  steps:
12
12
  - uses: actions/checkout@v2
13
- - uses: actions/setup-ruby@v1
13
+ - uses: ruby/setup-ruby@v1
14
14
  with:
15
- ruby-version: 2.6
16
- - uses: actions/cache@v2
17
- with:
18
- path: vendor/bundle
19
- key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
20
- restore-keys: |
21
- ${{ runner.os }}-gems-
22
- - name: Setup
23
- run: bundle install
15
+ ruby-version: 3.0
16
+ bundler-cache: true
24
17
  - name: Test
25
18
  run: bundle exec rake spec
@@ -16,4 +16,6 @@ module OpenStax
16
16
  end
17
17
  end
18
18
 
19
- ActiveJob::Base.send :include, OpenStax::RescueFrom::BackgroundJob
19
+ ActiveSupport.on_load(:active_job) do
20
+ ActiveJob::Base.send :include, OpenStax::RescueFrom::BackgroundJob
21
+ end
@@ -40,4 +40,6 @@ module OpenStax
40
40
  end
41
41
  end
42
42
 
43
- ActionController::Base.send :include, OpenStax::RescueFrom::Controller
43
+ ActiveSupport.on_load(:action_controller_base) do
44
+ ActionController::Base.send :include, OpenStax::RescueFrom::Controller
45
+ end
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module RescueFrom
3
- VERSION = '4.1.0'
3
+ VERSION = '4.2.1'
4
4
  end
5
5
  end
@@ -17,4 +17,6 @@ module OpenStax
17
17
  end
18
18
  end
19
19
 
20
- ActionView::Base.send :include, OpenStax::RescueFrom::ViewHelpers
20
+ ActiveSupport.on_load(:action_view) do
21
+ ActionView::Base.send :include, OpenStax::RescueFrom::ViewHelpers
22
+ end
@@ -139,13 +139,15 @@ module OpenStax
139
139
  end
140
140
 
141
141
  def log_system_error(proxy)
142
- if notifies_for?(proxy.name)
143
- logger = Logger.new(proxy)
144
- logger.record_system_error!
145
- end
142
+ return unless notifies_for?(proxy.name)
143
+
144
+ logger = Logger.new(proxy)
145
+ logger.record_system_error!
146
146
  end
147
147
 
148
148
  def log_background_system_error(proxy)
149
+ return unless notifies_for?(proxy.name)
150
+
149
151
  logger = Logger.new(proxy)
150
152
  logger.record_system_error!('A background job exception occurred')
151
153
  end
@@ -4,29 +4,29 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'openstax/rescue_from/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "openstax_rescue_from"
7
+ spec.name = 'openstax_rescue_from'
8
8
  spec.version = OpenStax::RescueFrom::VERSION
9
- spec.authors = ["JP Slavinsky", "Joe Sak"]
10
- spec.email = ["jps@kindlinglabs.com", "joe@avant-gardelabs.com"]
9
+ spec.authors = ['JP Slavinsky', 'Joe Sak']
10
+ spec.email = ['jps@kindlinglabs.com', 'joe@avant-gardelabs.com']
11
11
 
12
- spec.summary = "Common exception `rescue_from` handling for OpenStax sites."
13
- spec.homepage = "https://github.com/openstax/rescue_from"
14
- spec.license = "MIT"
12
+ spec.summary = 'Common exception `rescue_from` handling for OpenStax sites.'
13
+ spec.homepage = 'https://github.com/openstax/rescue_from'
14
+ spec.license = 'MIT'
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(/spec\//) }
17
- spec.bindir = "bin"
18
- spec.executables = ["console", "setup"]
19
- spec.require_paths = ["lib"]
17
+ spec.bindir = 'bin'
18
+ spec.executables = ['console', 'setup']
19
+ spec.require_paths = ['lib']
20
20
 
21
21
  spec.required_ruby_version = '>= 2.0'
22
22
 
23
- spec.add_dependency "rails", '>= 3.1', '< 7.0'
23
+ spec.add_dependency 'rails', '>= 3.1', '< 7.0'
24
24
 
25
- spec.add_development_dependency "bundler"
26
- spec.add_development_dependency "sqlite3"
27
- spec.add_development_dependency "listen"
28
- spec.add_development_dependency "rspec-rails"
29
- spec.add_development_dependency "rails-controller-testing"
30
- spec.add_development_dependency "database_cleaner"
31
- spec.add_development_dependency "exception_notification"
25
+ spec.add_development_dependency 'bundler'
26
+ spec.add_development_dependency 'sqlite3', '~> 1.4'
27
+ spec.add_development_dependency 'listen'
28
+ spec.add_development_dependency 'rspec-rails'
29
+ spec.add_development_dependency 'rails-controller-testing'
30
+ spec.add_development_dependency 'database_cleaner'
31
+ spec.add_development_dependency 'exception_notification'
32
32
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_rescue_from
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Slavinsky
8
8
  - Joe Sak
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-02-01 00:00:00.000000000 Z
12
+ date: 2024-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -49,16 +49,16 @@ dependencies:
49
49
  name: sqlite3
50
50
  requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '1.4'
55
55
  type: :development
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '1.4'
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: listen
64
64
  requirement: !ruby/object:Gem::Requirement
@@ -129,7 +129,7 @@ dependencies:
129
129
  - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
- description:
132
+ description:
133
133
  email:
134
134
  - jps@kindlinglabs.com
135
135
  - joe@avant-gardelabs.com
@@ -173,7 +173,7 @@ homepage: https://github.com/openstax/rescue_from
173
173
  licenses:
174
174
  - MIT
175
175
  metadata: {}
176
- post_install_message:
176
+ post_install_message:
177
177
  rdoc_options: []
178
178
  require_paths:
179
179
  - lib
@@ -188,8 +188,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0'
190
190
  requirements: []
191
- rubygems_version: 3.2.7
192
- signing_key:
191
+ rubygems_version: 3.5.21
192
+ signing_key:
193
193
  specification_version: 4
194
194
  summary: Common exception `rescue_from` handling for OpenStax sites.
195
195
  test_files: []