sidekiq_publisher 1.7.1 → 1.8.0.rc0

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: fad335b6e2f541d0b15fb3ba8ca2094700636bf9db012acd1e90f1a6f25dcb8c
4
- data.tar.gz: 8a27ea4780c067005505aef5871cf0adeccfe1559df8ce40149f6427a693d6d9
3
+ metadata.gz: 5e164c321e567b1b58344c77cfb0dbb9889e1fbc6ec7440a02c3c6460290d73a
4
+ data.tar.gz: f7c13b3cc7e994df855b0de0aeeab9a34b68accd1a4ae1d50485f907ccfdd05c
5
5
  SHA512:
6
- metadata.gz: 529af1f68db640954806bb7afb5331d744aaf81b4e076029becb365eabaa6e9eae905ab4bf60fd77cba00d6cd84b4096fb4e8f8686a0ada8bb4ddc17908bfb47
7
- data.tar.gz: f62d7210ffd44cdfc9a428e2213255b30446e54199aea45b11d959295ef46bcfb04c3b13afe786e184cdd3c456be0f540ef48efde09b08072c58b083ac81e4c0
6
+ metadata.gz: 0eb8e48640b4afc46d9f5e55c77e691dd391a6fbdace88f5704acc899ee82699f6dfbe5038ed426a46bb4bbf73bd377cd6b89a1e58c148961347bdb61f3bcf80
7
+ data.tar.gz: bc3fbdacdc63d7217ed17222acdb4b8e67cb02f21d15c931e16c866ba3ae46913c6afbc777b1c7f09a4c8bc49e1314e854ec55e3014fd9fc71943bdd3ba05b20
data/Appraisals CHANGED
@@ -52,3 +52,21 @@ appraise "rails-6.0-sidekiq-6.1" do
52
52
  gem "activesupport", "~> 6.0.0"
53
53
  gem "sidekiq", "~> 6.1.0"
54
54
  end
55
+
56
+ appraise "rails-6.1-sidekiq-5.2" do
57
+ gem "activejob", "~> 6.1.0"
58
+ gem "activesupport", "~> 6.1.0"
59
+ gem "sidekiq", "~> 5.2.0"
60
+ end
61
+
62
+ appraise "rails-6.1-sidekiq-6.0" do
63
+ gem "activejob", "~> 6.1.0"
64
+ gem "activesupport", "~> 6.1.0"
65
+ gem "sidekiq", "~> 6.0.1"
66
+ end
67
+
68
+ appraise "rails-6.1-sidekiq-6.1" do
69
+ gem "activejob", "~> 6.1.0"
70
+ gem "activesupport", "~> 6.1.0"
71
+ gem "sidekiq", "~> 6.1.0"
72
+ end
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # sidekiq_publisher
2
2
 
3
+ ## v1.8.0 (unreleased)
4
+ - Extend support to Rails 6.1.
5
+
3
6
  ## v1.7.1
4
7
  - Gracefully handle database connection errors in ReportUnpublishedCount by attempting to reconnect.
5
8
 
data/README.md CHANGED
@@ -136,6 +136,21 @@ class MyJob < ApplicationJob
136
136
  end
137
137
  ```
138
138
 
139
+ #### ActiveJob Exception Reporting
140
+
141
+ Many exception monitoring service (e.g. Sentry, Airbrake, Honeybadger, etc) already provide basic integration support for `Sidekiq`.
142
+ These integration should also work with `SidekiqPublisher`.
143
+ However, you may need to explicitly include
144
+ `ActiveJob::QueueAdapters::SidekiqPublisherAdapter` as a compatible adapter for this to work properly.
145
+
146
+ Alternatively, you can manually report the exception:
147
+
148
+ ```ruby
149
+ retry_on SomeError, attempts: 10 do |_job, exception|
150
+ Raven.capture_exception(exception, extra: { custom: :foo }) # Reporting using the Sentry gem
151
+ end
152
+ ```
153
+
139
154
  ### SidekiqPublisher::Worker
140
155
 
141
156
  Sidekiq workers are usually defined by including `Sidekiq::Worker` in a class.
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activejob", "~> 6.1.0"
6
+ gem "activesupport", "~> 6.1.0"
7
+ gem "sidekiq", "~> 5.2.0"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activejob", "~> 6.1.0"
6
+ gem "activesupport", "~> 6.1.0"
7
+ gem "sidekiq", "~> 6.0.1"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activejob", "~> 6.1.0"
6
+ gem "activesupport", "~> 6.1.0"
7
+ gem "sidekiq", "~> 6.1.0"
8
+
9
+ gemspec path: "../"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SidekiqPublisher
4
- VERSION = "1.7.1"
4
+ VERSION = "1.8.0.rc0"
5
5
  end
@@ -58,6 +58,6 @@ Gem::Specification.new do |spec|
58
58
  spec.add_development_dependency "simplecov", "< 0.18"
59
59
 
60
60
  spec.add_runtime_dependency "activerecord-postgres_pub_sub", ">= 0.4.0"
61
- spec.add_runtime_dependency "activesupport", ">= 5.1", "< 6.1"
61
+ spec.add_runtime_dependency "activesupport", ">= 5.1", "< 6.2"
62
62
  spec.add_runtime_dependency "sidekiq", ">= 5.0.4", "< 7.0"
63
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq_publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.8.0.rc0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ezCater, Inc
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-09 00:00:00.000000000 Z
11
+ date: 2021-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob
@@ -243,7 +243,7 @@ dependencies:
243
243
  version: '5.1'
244
244
  - - "<"
245
245
  - !ruby/object:Gem::Version
246
- version: '6.1'
246
+ version: '6.2'
247
247
  type: :runtime
248
248
  prerelease: false
249
249
  version_requirements: !ruby/object:Gem::Requirement
@@ -253,7 +253,7 @@ dependencies:
253
253
  version: '5.1'
254
254
  - - "<"
255
255
  - !ruby/object:Gem::Version
256
- version: '6.1'
256
+ version: '6.2'
257
257
  - !ruby/object:Gem::Dependency
258
258
  name: sidekiq
259
259
  requirement: !ruby/object:Gem::Requirement
@@ -300,6 +300,9 @@ files:
300
300
  - gemfiles/rails_6.0_sidekiq_5.2.gemfile
301
301
  - gemfiles/rails_6.0_sidekiq_6.0.gemfile
302
302
  - gemfiles/rails_6.0_sidekiq_6.1.gemfile
303
+ - gemfiles/rails_6.1_sidekiq_5.2.gemfile
304
+ - gemfiles/rails_6.1_sidekiq_6.0.gemfile
305
+ - gemfiles/rails_6.1_sidekiq_6.1.gemfile
303
306
  - lib/active_job/queue_adapters/sidekiq_publisher_adapter.rb
304
307
  - lib/generators/sidekiq_publisher/install_generator.rb
305
308
  - lib/generators/sidekiq_publisher/templates/create_sidekiq_publisher_jobs.rb
@@ -325,7 +328,7 @@ licenses:
325
328
  - MIT
326
329
  metadata:
327
330
  allowed_push_host: https://rubygems.org
328
- post_install_message:
331
+ post_install_message:
329
332
  rdoc_options: []
330
333
  require_paths:
331
334
  - lib
@@ -336,13 +339,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
336
339
  version: '0'
337
340
  required_rubygems_version: !ruby/object:Gem::Requirement
338
341
  requirements:
339
- - - ">="
342
+ - - ">"
340
343
  - !ruby/object:Gem::Version
341
- version: '0'
344
+ version: 1.3.1
342
345
  requirements: []
343
- rubyforge_project:
346
+ rubyforge_project:
344
347
  rubygems_version: 2.7.6.2
345
- signing_key:
348
+ signing_key:
346
349
  specification_version: 4
347
350
  summary: Publisher for enqueuing jobs to Sidekiq
348
351
  test_files: []