rabbit_messaging 0.12.0 → 0.12.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: 7bc319672450b1eac69256139e858e4c2d3d1f26e3427d727bebd48713990b97
4
- data.tar.gz: 927a86a73c692dde6610000b62ef008e6eb1bbc9a425dac655f12d1f95d380f7
3
+ metadata.gz: dca68fa90fcf90bd527ddee510fb310b1a4fdf5cdeceb6c94d0cc46bf2fe8a02
4
+ data.tar.gz: 301d2325d4101516a1e64fd5b27297f67c56d5c0c6f0eaebfb77a9169c91cdbe
5
5
  SHA512:
6
- metadata.gz: fb7d00985eb4964c6e1588591ed61d024b78a273b571dde4a3cccabfe8c4aeb798b45aec8290dc86eb3e140afa076c9bf75d21344873fda8084e3465ad670235
7
- data.tar.gz: 943a61798405d733309df200bca51615fdc3653b4d546dfb2ef77a3642f02de413b2ce56af7f2b724d7f77b49e075198d0e540a891f71fbe108aa6cd096796f9
6
+ metadata.gz: adfbd28db124c1152477903d0605c09119dda144f97ffaf800c2d44e9d098d1bea56536e69851e02fde8217d42030f040466f0fdf590b338d99d7c3ae0a16178
7
+ data.tar.gz: 627a4071f33ebb53c661a46f043ec383ab09ad5bfbbf19c9a6e1a24af03aaefe150cd4f564719feac71ec27dca8fc6ea25d3398430f0f86ebe25a31cea0d4f58
@@ -15,8 +15,6 @@ jobs:
15
15
  with:
16
16
  ruby-version: "3.0"
17
17
  bundler-cache: true
18
- - name: Create log dir
19
- run: mkdir -p log
20
18
  - name: Run Linter
21
19
  run: bundle exec rubocop
22
20
  - name: Run audit
@@ -37,7 +35,7 @@ jobs:
37
35
  strategy:
38
36
  fail-fast: false
39
37
  matrix:
40
- ruby: ["2.5", "2.6", "2.7"]
38
+ ruby: ["2.6", "2.7", "3.0"]
41
39
  experimental: [false]
42
40
  include:
43
41
  - ruby: head
@@ -49,7 +47,5 @@ jobs:
49
47
  with:
50
48
  ruby-version: ${{ matrix.ruby }}
51
49
  bundler-cache: true
52
- - name: Create log dir
53
- run: mkdir -p log
54
50
  - name: Run specs
55
51
  run: bundle exec rspec
data/.gitignore CHANGED
@@ -7,5 +7,7 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  .ruby-version
10
- /log/
11
10
  *.gem
11
+
12
+ /log/*
13
+ !/log/.keep
data/Gemfile CHANGED
@@ -2,3 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
  gemspec
5
+
6
+ gem "rails", "~> 6.0" # Rails 7 requires Ruby >= 2.7
7
+ gem "sentry-ruby-core"
data/Gemfile.lock CHANGED
@@ -1,9 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rabbit_messaging (0.11.0)
4
+ rabbit_messaging (0.12.1)
5
5
  bunny (~> 2.0)
6
- exception_notification
7
6
  lamian
8
7
  rails (>= 5.2)
9
8
  sneakers (~> 2.0)
@@ -12,60 +11,60 @@ PATH
12
11
  GEM
13
12
  remote: https://rubygems.org/
14
13
  specs:
15
- actioncable (6.1.3.2)
16
- actionpack (= 6.1.3.2)
17
- activesupport (= 6.1.3.2)
14
+ actioncable (6.1.4.4)
15
+ actionpack (= 6.1.4.4)
16
+ activesupport (= 6.1.4.4)
18
17
  nio4r (~> 2.0)
19
18
  websocket-driver (>= 0.6.1)
20
- actionmailbox (6.1.3.2)
21
- actionpack (= 6.1.3.2)
22
- activejob (= 6.1.3.2)
23
- activerecord (= 6.1.3.2)
24
- activestorage (= 6.1.3.2)
25
- activesupport (= 6.1.3.2)
19
+ actionmailbox (6.1.4.4)
20
+ actionpack (= 6.1.4.4)
21
+ activejob (= 6.1.4.4)
22
+ activerecord (= 6.1.4.4)
23
+ activestorage (= 6.1.4.4)
24
+ activesupport (= 6.1.4.4)
26
25
  mail (>= 2.7.1)
27
- actionmailer (6.1.3.2)
28
- actionpack (= 6.1.3.2)
29
- actionview (= 6.1.3.2)
30
- activejob (= 6.1.3.2)
31
- activesupport (= 6.1.3.2)
26
+ actionmailer (6.1.4.4)
27
+ actionpack (= 6.1.4.4)
28
+ actionview (= 6.1.4.4)
29
+ activejob (= 6.1.4.4)
30
+ activesupport (= 6.1.4.4)
32
31
  mail (~> 2.5, >= 2.5.4)
33
32
  rails-dom-testing (~> 2.0)
34
- actionpack (6.1.3.2)
35
- actionview (= 6.1.3.2)
36
- activesupport (= 6.1.3.2)
33
+ actionpack (6.1.4.4)
34
+ actionview (= 6.1.4.4)
35
+ activesupport (= 6.1.4.4)
37
36
  rack (~> 2.0, >= 2.0.9)
38
37
  rack-test (>= 0.6.3)
39
38
  rails-dom-testing (~> 2.0)
40
39
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
41
- actiontext (6.1.3.2)
42
- actionpack (= 6.1.3.2)
43
- activerecord (= 6.1.3.2)
44
- activestorage (= 6.1.3.2)
45
- activesupport (= 6.1.3.2)
40
+ actiontext (6.1.4.4)
41
+ actionpack (= 6.1.4.4)
42
+ activerecord (= 6.1.4.4)
43
+ activestorage (= 6.1.4.4)
44
+ activesupport (= 6.1.4.4)
46
45
  nokogiri (>= 1.8.5)
47
- actionview (6.1.3.2)
48
- activesupport (= 6.1.3.2)
46
+ actionview (6.1.4.4)
47
+ activesupport (= 6.1.4.4)
49
48
  builder (~> 3.1)
50
49
  erubi (~> 1.4)
51
50
  rails-dom-testing (~> 2.0)
52
51
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
53
- activejob (6.1.3.2)
54
- activesupport (= 6.1.3.2)
52
+ activejob (6.1.4.4)
53
+ activesupport (= 6.1.4.4)
55
54
  globalid (>= 0.3.6)
56
- activemodel (6.1.3.2)
57
- activesupport (= 6.1.3.2)
58
- activerecord (6.1.3.2)
59
- activemodel (= 6.1.3.2)
60
- activesupport (= 6.1.3.2)
61
- activestorage (6.1.3.2)
62
- actionpack (= 6.1.3.2)
63
- activejob (= 6.1.3.2)
64
- activerecord (= 6.1.3.2)
65
- activesupport (= 6.1.3.2)
55
+ activemodel (6.1.4.4)
56
+ activesupport (= 6.1.4.4)
57
+ activerecord (6.1.4.4)
58
+ activemodel (= 6.1.4.4)
59
+ activesupport (= 6.1.4.4)
60
+ activestorage (6.1.4.4)
61
+ actionpack (= 6.1.4.4)
62
+ activejob (= 6.1.4.4)
63
+ activerecord (= 6.1.4.4)
64
+ activesupport (= 6.1.4.4)
66
65
  marcel (~> 1.0.0)
67
- mini_mime (~> 1.0.2)
68
- activesupport (6.1.3.2)
66
+ mini_mime (>= 1.1.0)
67
+ activesupport (6.1.4.4)
69
68
  concurrent-ruby (~> 1.0, >= 1.0.2)
70
69
  i18n (>= 1.6, < 2)
71
70
  minitest (>= 5.1)
@@ -74,81 +73,98 @@ GEM
74
73
  amq-protocol (2.3.2)
75
74
  ast (2.4.2)
76
75
  builder (3.2.4)
77
- bundler-audit (0.8.0)
76
+ bundler-audit (0.9.0.1)
78
77
  bundler (>= 1.2.0, < 3)
79
78
  thor (~> 1.0)
80
- bunny (2.18.0)
79
+ bunny (2.19.0)
81
80
  amq-protocol (~> 2.3, >= 2.3.1)
82
81
  sorted_set (~> 1, >= 1.0.2)
83
82
  coderay (1.1.3)
84
- concurrent-ruby (1.1.8)
83
+ concurrent-ruby (1.1.9)
85
84
  crass (1.0.6)
86
85
  diff-lcs (1.4.4)
87
86
  docile (1.4.0)
88
87
  erubi (1.10.0)
89
- exception_notification (4.4.3)
90
- actionmailer (>= 4.0, < 7)
91
- activesupport (>= 4.0, < 7)
92
- globalid (0.4.2)
93
- activesupport (>= 4.2.0)
94
- i18n (1.8.10)
88
+ faraday (1.8.0)
89
+ faraday-em_http (~> 1.0)
90
+ faraday-em_synchrony (~> 1.0)
91
+ faraday-excon (~> 1.1)
92
+ faraday-httpclient (~> 1.0.1)
93
+ faraday-net_http (~> 1.0)
94
+ faraday-net_http_persistent (~> 1.1)
95
+ faraday-patron (~> 1.0)
96
+ faraday-rack (~> 1.0)
97
+ multipart-post (>= 1.2, < 3)
98
+ ruby2_keywords (>= 0.0.4)
99
+ faraday-em_http (1.0.0)
100
+ faraday-em_synchrony (1.0.0)
101
+ faraday-excon (1.1.0)
102
+ faraday-httpclient (1.0.1)
103
+ faraday-net_http (1.0.1)
104
+ faraday-net_http_persistent (1.2.0)
105
+ faraday-patron (1.0.0)
106
+ faraday-rack (1.0.0)
107
+ globalid (1.0.0)
108
+ activesupport (>= 5.0)
109
+ i18n (1.8.11)
95
110
  concurrent-ruby (~> 1.0)
96
- lamian (1.2.0)
111
+ lamian (1.5.0)
97
112
  rails (>= 4.2)
98
- loofah (2.9.1)
113
+ loofah (2.13.0)
99
114
  crass (~> 1.0.2)
100
115
  nokogiri (>= 1.5.9)
101
116
  mail (2.7.1)
102
117
  mini_mime (>= 0.1.1)
103
- marcel (1.0.1)
118
+ marcel (1.0.2)
104
119
  method_source (1.0.0)
105
- mini_mime (1.0.3)
106
- mini_portile2 (2.5.1)
107
- minitest (5.14.4)
108
- nio4r (2.5.7)
109
- nokogiri (1.11.6)
110
- mini_portile2 (~> 2.5.0)
120
+ mini_mime (1.1.2)
121
+ mini_portile2 (2.6.1)
122
+ minitest (5.15.0)
123
+ multipart-post (2.1.1)
124
+ nio4r (2.5.8)
125
+ nokogiri (1.12.5)
126
+ mini_portile2 (~> 2.6.1)
111
127
  racc (~> 1.4)
112
- parallel (1.20.1)
113
- parser (3.0.1.1)
128
+ parallel (1.21.0)
129
+ parser (3.0.3.2)
114
130
  ast (~> 2.4.1)
115
131
  pry (0.14.1)
116
132
  coderay (~> 1.1)
117
133
  method_source (~> 1.0)
118
- racc (1.5.2)
134
+ racc (1.6.0)
119
135
  rack (2.2.3)
120
136
  rack-test (1.1.0)
121
137
  rack (>= 1.0, < 3)
122
- rails (6.1.3.2)
123
- actioncable (= 6.1.3.2)
124
- actionmailbox (= 6.1.3.2)
125
- actionmailer (= 6.1.3.2)
126
- actionpack (= 6.1.3.2)
127
- actiontext (= 6.1.3.2)
128
- actionview (= 6.1.3.2)
129
- activejob (= 6.1.3.2)
130
- activemodel (= 6.1.3.2)
131
- activerecord (= 6.1.3.2)
132
- activestorage (= 6.1.3.2)
133
- activesupport (= 6.1.3.2)
138
+ rails (6.1.4.4)
139
+ actioncable (= 6.1.4.4)
140
+ actionmailbox (= 6.1.4.4)
141
+ actionmailer (= 6.1.4.4)
142
+ actionpack (= 6.1.4.4)
143
+ actiontext (= 6.1.4.4)
144
+ actionview (= 6.1.4.4)
145
+ activejob (= 6.1.4.4)
146
+ activemodel (= 6.1.4.4)
147
+ activerecord (= 6.1.4.4)
148
+ activestorage (= 6.1.4.4)
149
+ activesupport (= 6.1.4.4)
134
150
  bundler (>= 1.15.0)
135
- railties (= 6.1.3.2)
151
+ railties (= 6.1.4.4)
136
152
  sprockets-rails (>= 2.0.0)
137
153
  rails-dom-testing (2.0.3)
138
154
  activesupport (>= 4.2.0)
139
155
  nokogiri (>= 1.6)
140
- rails-html-sanitizer (1.3.0)
156
+ rails-html-sanitizer (1.4.2)
141
157
  loofah (~> 2.3)
142
- railties (6.1.3.2)
143
- actionpack (= 6.1.3.2)
144
- activesupport (= 6.1.3.2)
158
+ railties (6.1.4.4)
159
+ actionpack (= 6.1.4.4)
160
+ activesupport (= 6.1.4.4)
145
161
  method_source
146
- rake (>= 0.8.7)
162
+ rake (>= 0.13)
147
163
  thor (~> 1.0)
148
164
  rainbow (3.0.0)
149
- rake (13.0.3)
165
+ rake (13.0.6)
150
166
  rbtree (0.4.4)
151
- regexp_parser (2.1.1)
167
+ regexp_parser (2.2.0)
152
168
  rexml (3.2.5)
153
169
  rspec (3.10.0)
154
170
  rspec-core (~> 3.10.0)
@@ -165,20 +181,20 @@ GEM
165
181
  rspec-mocks (3.10.2)
166
182
  diff-lcs (>= 1.2.0, < 2.0)
167
183
  rspec-support (~> 3.10.0)
168
- rspec-support (3.10.2)
169
- rubocop (1.11.0)
184
+ rspec-support (3.10.3)
185
+ rubocop (1.17.0)
170
186
  parallel (~> 1.10)
171
187
  parser (>= 3.0.0.0)
172
188
  rainbow (>= 2.2.2, < 4.0)
173
189
  regexp_parser (>= 1.8, < 3.0)
174
190
  rexml
175
- rubocop-ast (>= 1.2.0, < 2.0)
191
+ rubocop-ast (>= 1.7.0, < 2.0)
176
192
  ruby-progressbar (~> 1.7)
177
193
  unicode-display_width (>= 1.4.0, < 3.0)
178
- rubocop-ast (1.6.0)
194
+ rubocop-ast (1.15.0)
179
195
  parser (>= 3.0.1.1)
180
- rubocop-config-umbrellio (1.11.0.40)
181
- rubocop (= 1.11.0)
196
+ rubocop-config-umbrellio (1.17.0.53)
197
+ rubocop (= 1.17.0)
182
198
  rubocop-performance (= 1.10.0)
183
199
  rubocop-rails (= 2.9.1)
184
200
  rubocop-rake (= 0.5.1)
@@ -199,9 +215,13 @@ GEM
199
215
  rubocop-sequel (0.2.0)
200
216
  rubocop (~> 1.0)
201
217
  ruby-progressbar (1.11.0)
218
+ ruby2_keywords (0.0.5)
219
+ sentry-ruby-core (4.8.1)
220
+ concurrent-ruby
221
+ faraday
202
222
  serverengine (2.0.7)
203
223
  sigdump (~> 0.2.2)
204
- set (1.0.1)
224
+ set (1.0.2)
205
225
  sigdump (0.2.4)
206
226
  simplecov (0.21.2)
207
227
  docile (~> 1.1)
@@ -222,20 +242,20 @@ GEM
222
242
  sprockets (4.0.2)
223
243
  concurrent-ruby (~> 1.0)
224
244
  rack (> 1, < 3)
225
- sprockets-rails (3.2.2)
226
- actionpack (>= 4.0)
227
- activesupport (>= 4.0)
245
+ sprockets-rails (3.4.2)
246
+ actionpack (>= 5.2)
247
+ activesupport (>= 5.2)
228
248
  sprockets (>= 3.0.0)
229
249
  tainbox (2.1.2)
230
250
  activesupport
231
251
  thor (1.1.0)
232
252
  tzinfo (2.0.4)
233
253
  concurrent-ruby (~> 1.0)
234
- unicode-display_width (2.0.0)
235
- websocket-driver (0.7.4)
254
+ unicode-display_width (2.1.0)
255
+ websocket-driver (0.7.5)
236
256
  websocket-extensions (>= 0.1.0)
237
257
  websocket-extensions (0.1.5)
238
- zeitwerk (2.4.2)
258
+ zeitwerk (2.5.1)
239
259
 
240
260
  PLATFORMS
241
261
  ruby
@@ -245,10 +265,12 @@ DEPENDENCIES
245
265
  bundler-audit
246
266
  pry
247
267
  rabbit_messaging!
268
+ rails (~> 6.0)
248
269
  rake
249
270
  rspec
250
271
  rspec-its
251
272
  rubocop-config-umbrellio
273
+ sentry-ruby-core
252
274
  simplecov (>= 0.21)
253
275
  simplecov-lcov
254
276
 
data/README.md CHANGED
@@ -87,7 +87,7 @@ require "rabbit_messaging"
87
87
 
88
88
  * `exception_notifier` (`Proc`)
89
89
 
90
- By default, exceptions are reported using `ExceptionNotifier` (see exception_notification gem).
90
+ By default, exceptions are reported using `Sentry` (see [sentry gem](https://github.com/getsentry/sentry-ruby)).
91
91
  You can provide your own notifier like this:
92
92
 
93
93
  ```ruby
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rabbit
4
- VERSION = "0.12.0"
4
+ VERSION = "0.12.1"
5
5
  end
data/lib/rabbit.rb CHANGED
@@ -61,7 +61,7 @@ module Rabbit
61
61
  private
62
62
 
63
63
  def default_exception_notifier
64
- -> (e) { ExceptionNotifier.notify_exception(e) }
64
+ -> (e) { Sentry.capture_exception(e) }
65
65
  end
66
66
  end
67
67
 
data/log/.keep ADDED
File without changes
@@ -20,7 +20,6 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_runtime_dependency "bunny", "~> 2.0"
23
- spec.add_runtime_dependency "exception_notification"
24
23
  spec.add_runtime_dependency "lamian"
25
24
  spec.add_runtime_dependency "rails", ">= 5.2"
26
25
  spec.add_runtime_dependency "sneakers", "~> 2.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit_messaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Umbrellio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-08 00:00:00.000000000 Z
11
+ date: 2021-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
- - !ruby/object:Gem::Dependency
28
- name: exception_notification
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: lamian
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -259,6 +245,7 @@ files:
259
245
  - lib/rabbit/test_helpers.rb
260
246
  - lib/rabbit/version.rb
261
247
  - lib/rabbit_messaging.rb
248
+ - log/.keep
262
249
  - rabbit_messaging.gemspec
263
250
  homepage: https://github.com/umbrellio/rabbit_messaging
264
251
  licenses: []
@@ -278,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
278
265
  - !ruby/object:Gem::Version
279
266
  version: '0'
280
267
  requirements: []
281
- rubygems_version: 3.2.17
268
+ rubygems_version: 3.3.0
282
269
  signing_key:
283
270
  specification_version: 4
284
271
  summary: Rabbit (Rabbit Messaging)