eventboss 1.9.8 → 1.9.9
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/bundler_audit.yml +2 -2
- data/.github/workflows/publish_gem.yml +1 -1
- data/.github/workflows/rspec.yml +2 -2
- data/CHANGELOG.md +5 -0
- data/lib/eventboss/cli.rb +11 -0
- data/lib/eventboss/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c9bc3dee10dd3ee71827ff3f1e664064f6a08ba0a27d3901591abb5d5519ebfa
|
|
4
|
+
data.tar.gz: 624ecc46e585fd1456e04008b528d1f852820991464ace819d48efe271e352e6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4fd77a869314c810afc8c75aeb226f1d2a0c39b13f5a90bb465557673bfaa71ec44760e577102faf42da5ef503a31e4ceef964ef4a680a4052eb527fbd77d0a7
|
|
7
|
+
data.tar.gz: c2b43231b734e917cd44ae1d68807181f9ea71b6f520f6525cc04774082a1b12431d5bb3cca05e1e032ae91c7a2f75ef2400eb50792483dd58ad43a97f88e7ad
|
|
@@ -9,9 +9,9 @@ jobs:
|
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
strategy:
|
|
11
11
|
matrix:
|
|
12
|
-
ruby-version: ["3.
|
|
12
|
+
ruby-version: ["3.3", "3.4"]
|
|
13
13
|
steps:
|
|
14
|
-
- uses: actions/checkout@
|
|
14
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
15
15
|
- name: Set up Ruby
|
|
16
16
|
uses: ruby/setup-ruby@v1
|
|
17
17
|
with:
|
data/.github/workflows/rspec.yml
CHANGED
|
@@ -14,9 +14,9 @@ jobs:
|
|
|
14
14
|
runs-on: ubuntu-latest
|
|
15
15
|
strategy:
|
|
16
16
|
matrix:
|
|
17
|
-
ruby-version: ["3.
|
|
17
|
+
ruby-version: ["3.3", "3.4"]
|
|
18
18
|
steps:
|
|
19
|
-
- uses: actions/checkout@
|
|
19
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
20
20
|
- name: Set up Ruby
|
|
21
21
|
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby
|
|
22
22
|
uses: ruby/setup-ruby@v1
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
## [1.9.9]
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Exit cleanly on SIGTERM received during application boot, before the runner installs its graceful signal handling, so a shutdown mid-boot is no longer reported as a crash
|
|
12
|
+
|
|
8
13
|
## [1.9.8]
|
|
9
14
|
|
|
10
15
|
- Improve performance by reusing SNS client
|
data/lib/eventboss/cli.rb
CHANGED
|
@@ -30,6 +30,8 @@ module Eventboss
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
def run
|
|
33
|
+
setup_boot_signal_traps
|
|
34
|
+
|
|
33
35
|
boot_system
|
|
34
36
|
|
|
35
37
|
Eventboss.logger.info('Starting eventboss...')
|
|
@@ -39,6 +41,15 @@ module Eventboss
|
|
|
39
41
|
|
|
40
42
|
private
|
|
41
43
|
|
|
44
|
+
# Booting the application (e.g. loading Rails) can take long enough that a
|
|
45
|
+
# termination signal arrives before Runner installs its graceful signal
|
|
46
|
+
# handling. Without a handler the process dies non-gracefully and is
|
|
47
|
+
# reported as a crash. Until Runner takes over, exit cleanly on SIGTERM so
|
|
48
|
+
# a shutdown mid-boot is not treated as a failure.
|
|
49
|
+
def setup_boot_signal_traps
|
|
50
|
+
Signal.trap('SIGTERM') { exit 0 }
|
|
51
|
+
end
|
|
52
|
+
|
|
42
53
|
def boot_system
|
|
43
54
|
require 'rails'
|
|
44
55
|
if ::Rails::VERSION::MAJOR < 4
|
data/lib/eventboss/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eventboss
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.
|
|
4
|
+
version: 1.9.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- AirHelp
|
|
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
188
188
|
- !ruby/object:Gem::Version
|
|
189
189
|
version: '0'
|
|
190
190
|
requirements: []
|
|
191
|
-
rubygems_version:
|
|
191
|
+
rubygems_version: 4.0.16
|
|
192
192
|
specification_version: 4
|
|
193
193
|
summary: Eventboss Ruby Client.
|
|
194
194
|
test_files: []
|