eventboss 1.8.0 → 1.8.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: 96d1bb368bb5d3178aba2cf5a00bec49444f24e3a0b768d3128651d14947248e
4
- data.tar.gz: 98c2d5c2e7c64a629ef7ceedb31bfb74798c6a61d781fea22c52e36f132fd2b4
3
+ metadata.gz: e4628ccf4b64bbc755253aedf850c096998ed965231ac1464de4384872d2d1f1
4
+ data.tar.gz: cc0661659e16a84c8e5073fba547ca934038c8e769bdd5a06ad4c126511a4f4a
5
5
  SHA512:
6
- metadata.gz: c54b9a6375dc06ce7dd516513b5e09c0f8eda8c79e796694cb9fbceaa348bff1bc196e83d400f2355b323b85b344018b13c8194505c37773b04c7196d6d6c012
7
- data.tar.gz: a64d2636b7d9a8dbb910d85f36eedd873abdeb7b7b7aa078c19fcb67772d6de7f6dfc353117cf1b0ea84505c3f5aa5f87d48a4deb2c68beb504b4a6cfe24333c
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.0)
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.2.0)
14
- aws-partitions (1.568.0)
15
- aws-sdk-core (3.130.0)
16
- aws-eventstream (~> 1, >= 1.0.2)
17
- aws-partitions (~> 1, >= 1.525.0)
18
- aws-sigv4 (~> 1.1)
19
- jmespath (~> 1.0)
20
- aws-sdk-sns (1.53.0)
21
- aws-sdk-core (~> 3, >= 3.127.0)
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.51.0)
24
- aws-sdk-core (~> 3, >= 3.127.0)
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.4.0)
26
+ aws-sigv4 (1.8.0)
27
27
  aws-eventstream (~> 1, >= 1.0.2)
28
28
  diff-lcs (1.5.0)
29
- dotenv (2.7.6)
30
- jmespath (1.6.1)
29
+ dotenv (2.8.1)
30
+ jmespath (1.6.2)
31
31
  rake (13.0.6)
32
- rexml (3.2.5)
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
- ::Rollbar.error(exception, eventboss_context.merge(context))
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
@@ -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'
@@ -1,3 +1,3 @@
1
1
  module Eventboss
2
- VERSION = "1.8.0"
2
+ VERSION = "1.8.1"
3
3
  end
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.0
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: 2022-03-17 00:00:00.000000000 Z
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/verify.yml"
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.3.7
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