eventboss 1.8.0 → 1.8.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 +4 -4
- data/.github/workflows/bundler_audit.yml +24 -0
- data/.github/workflows/rspec.yml +28 -0
- data/Gemfile.lock +16 -16
- data/docker-compose.test.yml +27 -0
- data/lib/eventboss/error_handlers/rollbar.rb +7 -1
- data/lib/eventboss/error_handlers/sentry.rb +17 -0
- data/lib/eventboss/extensions.rb +1 -0
- data/lib/eventboss/version.rb +1 -1
- metadata +7 -4
- data/.github/workflows/verify.yml +0 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4628ccf4b64bbc755253aedf850c096998ed965231ac1464de4384872d2d1f1
|
4
|
+
data.tar.gz: cc0661659e16a84c8e5073fba547ca934038c8e769bdd5a06ad4c126511a4f4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4e2ea1c6484a55a08b6a4067e94cd3171c4bc165930ec5475077263ccc7a898a96d5cef6917daf680483f61841d597b7c77019d783fcf11bf5a39b020dd5d29
|
7
|
+
data.tar.gz: 2198208804156ab4a6a99e2624a970c9d494c325e4648b3c53eec207f8ecbf2b0ce5cc5e5d932ca0531bb58410d2d595fa1b7250a39b48749085e8bdfcbf610b
|
@@ -0,0 +1,24 @@
|
|
1
|
+
name: Run Bundler Audit
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
|
6
|
+
jobs:
|
7
|
+
run-bundler_audit:
|
8
|
+
name: Run bundler audit
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
strategy:
|
11
|
+
matrix:
|
12
|
+
ruby-version: ["3.0"]
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
- name: Set up Ruby
|
16
|
+
uses: ruby/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
ruby-version: ${{ matrix.ruby-version }}
|
19
|
+
- name: Install bundle audit
|
20
|
+
run: gem install bundle-audit
|
21
|
+
- name: Update Ruby Advisory Database
|
22
|
+
run: bundle-audit update
|
23
|
+
- name: Run audit
|
24
|
+
run: bundle audit
|
@@ -0,0 +1,28 @@
|
|
1
|
+
name: Run RSpec tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
workflow_call:
|
5
|
+
workflow_dispatch:
|
6
|
+
pull_request:
|
7
|
+
|
8
|
+
env:
|
9
|
+
APPLICATION_NAME: eventboss
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
run-tests:
|
13
|
+
name: Run RSpec
|
14
|
+
runs-on: ubuntu-latest
|
15
|
+
strategy:
|
16
|
+
matrix:
|
17
|
+
ruby-version: ["3.0"]
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@v2
|
20
|
+
- name: Set up Ruby
|
21
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby
|
22
|
+
uses: ruby/setup-ruby@v1
|
23
|
+
with:
|
24
|
+
ruby-version: ${{ matrix.ruby-version }}
|
25
|
+
# runs 'bundle install' and caches installed gems automatically
|
26
|
+
bundler-cache: true
|
27
|
+
- name: Run tests
|
28
|
+
run: bundle exec rspec
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eventboss (1.8.
|
4
|
+
eventboss (1.8.1)
|
5
5
|
aws-sdk-sns (>= 1.1.0)
|
6
6
|
aws-sdk-sqs (>= 1.3.0)
|
7
7
|
dotenv (~> 2.1, >= 2.1.1)
|
@@ -10,26 +10,26 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
aws-eventstream (1.
|
14
|
-
aws-partitions (1.
|
15
|
-
aws-sdk-core (3.
|
16
|
-
aws-eventstream (~> 1, >= 1.0
|
17
|
-
aws-partitions (~> 1, >= 1.
|
18
|
-
aws-sigv4 (~> 1.
|
19
|
-
jmespath (~> 1.
|
20
|
-
aws-sdk-sns (1.
|
21
|
-
aws-sdk-core (~> 3, >= 3.
|
13
|
+
aws-eventstream (1.3.0)
|
14
|
+
aws-partitions (1.894.0)
|
15
|
+
aws-sdk-core (3.191.3)
|
16
|
+
aws-eventstream (~> 1, >= 1.3.0)
|
17
|
+
aws-partitions (~> 1, >= 1.651.0)
|
18
|
+
aws-sigv4 (~> 1.8)
|
19
|
+
jmespath (~> 1, >= 1.6.1)
|
20
|
+
aws-sdk-sns (1.72.0)
|
21
|
+
aws-sdk-core (~> 3, >= 3.191.0)
|
22
22
|
aws-sigv4 (~> 1.1)
|
23
|
-
aws-sdk-sqs (1.
|
24
|
-
aws-sdk-core (~> 3, >= 3.
|
23
|
+
aws-sdk-sqs (1.70.0)
|
24
|
+
aws-sdk-core (~> 3, >= 3.191.0)
|
25
25
|
aws-sigv4 (~> 1.1)
|
26
|
-
aws-sigv4 (1.
|
26
|
+
aws-sigv4 (1.8.0)
|
27
27
|
aws-eventstream (~> 1, >= 1.0.2)
|
28
28
|
diff-lcs (1.5.0)
|
29
|
-
dotenv (2.
|
30
|
-
jmespath (1.6.
|
29
|
+
dotenv (2.8.1)
|
30
|
+
jmespath (1.6.2)
|
31
31
|
rake (13.0.6)
|
32
|
-
rexml (3.2.
|
32
|
+
rexml (3.2.6)
|
33
33
|
rspec (3.11.0)
|
34
34
|
rspec-core (~> 3.11.0)
|
35
35
|
rspec-expectations (~> 3.11.0)
|
@@ -0,0 +1,27 @@
|
|
1
|
+
version: '2'
|
2
|
+
services:
|
3
|
+
web:
|
4
|
+
build:
|
5
|
+
context: .
|
6
|
+
dockerfile: Dockerfile-test
|
7
|
+
env_file:
|
8
|
+
- .env.example
|
9
|
+
volumes:
|
10
|
+
- tmp:/usr/src/app/tmp
|
11
|
+
- log:/usr/src/app/log
|
12
|
+
pronto:
|
13
|
+
build:
|
14
|
+
context: .
|
15
|
+
dockerfile: Dockerfile-test
|
16
|
+
volumes:
|
17
|
+
- .:/usr/src/app
|
18
|
+
entrypoint: ""
|
19
|
+
command: bash -c "bundle exec pronto run -f github_status text -c origin/master"
|
20
|
+
environment:
|
21
|
+
GITHUB_ACCESS_TOKEN: ${GITHUB_ACCESS_TOKEN}
|
22
|
+
RACK_ENV: test
|
23
|
+
RAILS_ENV: test
|
24
|
+
|
25
|
+
volumes:
|
26
|
+
log:
|
27
|
+
tmp:
|
@@ -4,7 +4,13 @@ module Eventboss
|
|
4
4
|
def call(exception, context = {})
|
5
5
|
eventboss_context = { component: 'eventboss' }
|
6
6
|
eventboss_context[:action] = context[:processor].class.to_s if context[:processor]
|
7
|
-
|
7
|
+
|
8
|
+
default_options = { use_exception_level_filters: true }
|
9
|
+
|
10
|
+
::Rollbar.error(
|
11
|
+
exception,
|
12
|
+
context.merge(eventboss_context, default_options)
|
13
|
+
)
|
8
14
|
end
|
9
15
|
end
|
10
16
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Eventboss
|
2
|
+
module ErrorHandlers
|
3
|
+
class Sentry
|
4
|
+
def call(exception, context = {})
|
5
|
+
eventboss_context = { component: 'eventboss' }
|
6
|
+
eventboss_context[:action] = context[:processor].class.to_s if context[:processor]
|
7
|
+
|
8
|
+
::Sentry.with_scope do |scope|
|
9
|
+
scope.set_tags(
|
10
|
+
context.merge(eventboss_context)
|
11
|
+
)
|
12
|
+
::Sentry.capture_exception(exception)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/eventboss/extensions.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'eventboss/error_handlers/logger'
|
2
2
|
require 'eventboss/error_handlers/airbrake'
|
3
3
|
require 'eventboss/error_handlers/rollbar'
|
4
|
+
require 'eventboss/error_handlers/sentry'
|
4
5
|
require 'eventboss/error_handlers/db_connection_drop_handler'
|
5
6
|
require 'eventboss/error_handlers/db_connection_not_established_handler'
|
6
7
|
require 'eventboss/error_handlers/non_existent_queue_handler'
|
data/lib/eventboss/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eventboss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AirHelp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-sqs
|
@@ -122,7 +122,8 @@ executables:
|
|
122
122
|
extensions: []
|
123
123
|
extra_rdoc_files: []
|
124
124
|
files:
|
125
|
-
- ".github/workflows/
|
125
|
+
- ".github/workflows/bundler_audit.yml"
|
126
|
+
- ".github/workflows/rspec.yml"
|
126
127
|
- ".gitignore"
|
127
128
|
- ".rspec"
|
128
129
|
- ".travis.yml"
|
@@ -134,6 +135,7 @@ files:
|
|
134
135
|
- README.md
|
135
136
|
- Rakefile
|
136
137
|
- bin/eventboss
|
138
|
+
- docker-compose.test.yml
|
137
139
|
- eventboss.gemspec
|
138
140
|
- lib/eventboss.rb
|
139
141
|
- lib/eventboss/cli.rb
|
@@ -145,6 +147,7 @@ files:
|
|
145
147
|
- lib/eventboss/error_handlers/logger.rb
|
146
148
|
- lib/eventboss/error_handlers/non_existent_queue_handler.rb
|
147
149
|
- lib/eventboss/error_handlers/rollbar.rb
|
150
|
+
- lib/eventboss/error_handlers/sentry.rb
|
148
151
|
- lib/eventboss/extensions.rb
|
149
152
|
- lib/eventboss/fetcher.rb
|
150
153
|
- lib/eventboss/instrumentation.rb
|
@@ -188,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
191
|
- !ruby/object:Gem::Version
|
189
192
|
version: '0'
|
190
193
|
requirements: []
|
191
|
-
rubygems_version: 3.
|
194
|
+
rubygems_version: 3.5.5
|
192
195
|
signing_key:
|
193
196
|
specification_version: 4
|
194
197
|
summary: Eventboss Ruby Client.
|
@@ -1,40 +0,0 @@
|
|
1
|
-
name: Verify
|
2
|
-
# Source: https://github.com/actions/setup-ruby
|
3
|
-
|
4
|
-
on:
|
5
|
-
push:
|
6
|
-
branches: [master]
|
7
|
-
pull_request:
|
8
|
-
branches: [master]
|
9
|
-
|
10
|
-
jobs:
|
11
|
-
test:
|
12
|
-
runs-on: ubuntu-latest
|
13
|
-
strategy:
|
14
|
-
matrix:
|
15
|
-
ruby-version: ["2.6", "2.7", "3.0"]
|
16
|
-
steps:
|
17
|
-
- uses: actions/checkout@v2
|
18
|
-
- name: Set up Ruby
|
19
|
-
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby
|
20
|
-
uses: ruby/setup-ruby@v1
|
21
|
-
with:
|
22
|
-
ruby-version: ${{ matrix.ruby-version }}
|
23
|
-
# runs 'bundle install' and caches installed gems automatically
|
24
|
-
bundler-cache: true
|
25
|
-
- name: Run tests
|
26
|
-
run: bundle exec rspec
|
27
|
-
audit:
|
28
|
-
runs-on: ubuntu-latest
|
29
|
-
steps:
|
30
|
-
- uses: actions/checkout@v2
|
31
|
-
- name: Set up Ruby
|
32
|
-
uses: ruby/setup-ruby@v1
|
33
|
-
with:
|
34
|
-
ruby-version: "3.0"
|
35
|
-
- name: Install bundle audit
|
36
|
-
run: gem install bundle-audit
|
37
|
-
- name: Update Ruby Advisory Database
|
38
|
-
run: bundle-audit update
|
39
|
-
- name: Run audit
|
40
|
-
run: bundle audit
|