sidekiq_publisher 2.0.0 → 2.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbd6a68303b5c42905e58ee64d231331265fbbbdb11316470e5fa8e83966de7e
4
- data.tar.gz: 6773cbea5ae5010a4d9771d043b5210f65fe21d064097dfbbf76d0ed936ad3ac
3
+ metadata.gz: 35ad0d16467d78de77ede70a744b248a9dbe33d6f4ceec9c37df10c8478693d1
4
+ data.tar.gz: af3f7362bb2f539a1a8d4b506f8004fc9cdf9b9927685fc09fc49f74b569cf54
5
5
  SHA512:
6
- metadata.gz: af0eced6cc6b0343ae91ad8d8c80b6e02fd004aa95b1e3fa10fe2072656e737af195601c316c074a74be0012c7e00e21216f778017b227b44015a290211ee3c7
7
- data.tar.gz: 53127db49e7925d0878ebf65a61251c44d63ffc8abf4c3a7c79ffa2f0a0c2b510c8d177093a8a6a29eac29b56a0335551e20ed9327ff72d9681ada72afd88f55
6
+ metadata.gz: 549f8fd72294075b7f5cca99edcf2b6a2682210f1a494fcf9ce1639c91bd43f8139a269bc1045108de6c52820e5416277fdd04497a795ed5c123a5a2ae77f33c
7
+ data.tar.gz: 62f6cd338b10e13a82ab4421d55817df95f5d791ac83a5f2e2f4dbdae2327c69a0e09d7b914711d7216651294d30788d411d9ab0eb8208d78b941c6dd8da98ce
data/Appraisals CHANGED
@@ -30,6 +30,12 @@ appraise "rails-5.2-sidekiq-6.1" do
30
30
  gem "sidekiq", "~> 6.1.0"
31
31
  end
32
32
 
33
+ appraise "rails-5.2-sidekiq-6.2" do
34
+ gem "activejob", "~> 5.2.0"
35
+ gem "activesupport", "~> 5.2.0"
36
+ gem "sidekiq", "~> 6.2.0"
37
+ end
38
+
33
39
  appraise "rails-6.0-sidekiq-5.2" do
34
40
  gem "activejob", "~> 6.0.0"
35
41
  gem "activesupport", "~> 6.0.0"
@@ -48,6 +54,12 @@ appraise "rails-6.0-sidekiq-6.1" do
48
54
  gem "sidekiq", "~> 6.1.0"
49
55
  end
50
56
 
57
+ appraise "rails-6.0-sidekiq-6.2" do
58
+ gem "activejob", "~> 6.0.0"
59
+ gem "activesupport", "~> 6.0.0"
60
+ gem "sidekiq", "~> 6.2.0"
61
+ end
62
+
51
63
  appraise "rails-6.1-sidekiq-5.2" do
52
64
  gem "activejob", "~> 6.1.0"
53
65
  gem "activesupport", "~> 6.1.0"
@@ -65,3 +77,9 @@ appraise "rails-6.1-sidekiq-6.1" do
65
77
  gem "activesupport", "~> 6.1.0"
66
78
  gem "sidekiq", "~> 6.1.0"
67
79
  end
80
+
81
+ appraise "rails-6.1-sidekiq-6.2" do
82
+ gem "activejob", "~> 6.1.0"
83
+ gem "activesupport", "~> 6.1.0"
84
+ gem "sidekiq", "~> 6.2.0"
85
+ end
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # sidekiq_publisher
2
2
 
3
- ## v2.0.0 (unreleased)
3
+ ## 2.0.1
4
+ - Changing the `Job#args` validator to be a manual check instead of using the `exclusions` validator. This is to fix an issue introduced with rails 6.1 and the condition of `in: [nil]`. More details [here](https://github.com/rails/rails/issues/41051).
5
+
6
+ ## v2.0.0
4
7
  - Transition from defining a Railtie to becoming a Rails Engine
5
8
  [(#44)](https://github.com/ezcater/sidekiq_publisher/pull/44). This change was
6
9
  made to better support Ruby 3.0 and Rails 6.1. The change is *not* expected to
@@ -10,7 +10,11 @@ module SidekiqPublisher
10
10
  before_save :ensure_string_job_class
11
11
 
12
12
  validates :job_class, presence: true
13
- validates :args, exclusion: { in: [nil] }
13
+ # This exclusion rule currently has a bug in rails 6.1. For now, we will use a manual implementation
14
+ # Github Issue: https://github.com/rails/rails/issues/41051
15
+ # Possible PR: https://github.com/rails/rails/pull/41412
16
+ # validates :args, exclusion: { in: [nil] }
17
+ validate :args_not_nil
14
18
 
15
19
  scope :unpublished, -> { where(published_at: nil) }
16
20
  scope :published, -> { where.not(published_at: nil) }
@@ -54,6 +58,10 @@ module SidekiqPublisher
54
58
 
55
59
  private
56
60
 
61
+ def args_not_nil
62
+ errors.add(:args, "is reserved") if args.nil?
63
+ end
64
+
57
65
  def ensure_job_id
58
66
  self.job_id ||= self.class.generate_sidekiq_jid
59
67
  end
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activejob", "~> 5.2.0"
6
+ gem "activesupport", "~> 5.2.0"
7
+ gem "sidekiq", "~> 6.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.0.0"
6
+ gem "activesupport", "~> 6.0.0"
7
+ gem "sidekiq", "~> 6.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.2.0"
8
+
9
+ gemspec path: "../"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SidekiqPublisher
4
- VERSION = "2.0.0"
4
+ VERSION = "2.0.1"
5
5
  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: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ezCater, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-09 00:00:00.000000000 Z
11
+ date: 2021-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob
@@ -297,12 +297,15 @@ files:
297
297
  - gemfiles/rails_5.2_sidekiq_5.2.gemfile
298
298
  - gemfiles/rails_5.2_sidekiq_6.0.gemfile
299
299
  - gemfiles/rails_5.2_sidekiq_6.1.gemfile
300
+ - gemfiles/rails_5.2_sidekiq_6.2.gemfile
300
301
  - gemfiles/rails_6.0_sidekiq_5.2.gemfile
301
302
  - gemfiles/rails_6.0_sidekiq_6.0.gemfile
302
303
  - gemfiles/rails_6.0_sidekiq_6.1.gemfile
304
+ - gemfiles/rails_6.0_sidekiq_6.2.gemfile
303
305
  - gemfiles/rails_6.1_sidekiq_5.2.gemfile
304
306
  - gemfiles/rails_6.1_sidekiq_6.0.gemfile
305
307
  - gemfiles/rails_6.1_sidekiq_6.1.gemfile
308
+ - gemfiles/rails_6.1_sidekiq_6.2.gemfile
306
309
  - lib/active_job/queue_adapters/sidekiq_publisher_adapter.rb
307
310
  - lib/generators/sidekiq_publisher/install_generator.rb
308
311
  - lib/generators/sidekiq_publisher/templates/create_sidekiq_publisher_jobs.rb
@@ -342,7 +345,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
342
345
  - !ruby/object:Gem::Version
343
346
  version: '0'
344
347
  requirements: []
345
- rubygems_version: 3.1.4
348
+ rubygems_version: 3.0.3
346
349
  signing_key:
347
350
  specification_version: 4
348
351
  summary: Publisher for enqueuing jobs to Sidekiq