patches 3.7.0 → 4.0.0

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: 895215b6ac8fa6eb09aea79add6efebcead371d5b50579d983b70eff79c58682
4
- data.tar.gz: aa05b38f701c0c525364d16f0f22dc7fde9b33c2a34aac240751e78b02d1c3d6
3
+ metadata.gz: 4d3cb95acebf22bd69de36b12b559515c6c2cf39160bfb6a135af5677ef90ad8
4
+ data.tar.gz: db396ae1486ff61282a2b363dd3fc3dceb3bdad6247ba4bce5ae409ccef939d8
5
5
  SHA512:
6
- metadata.gz: e454bd2d14b1cf02eca6fc4bd18d3732c83627032c0a6a2fb76dbf6c43d07da7ee6786f542c8f689290b75deedc48ea8fb1b8eeb0581363fd48e9719a3478e38
7
- data.tar.gz: a286831eb61b05d4fbdee99989247671307d3881433e293eacda3afc533b262d0d82d1cb6e098a0c3f4153b01891bd0e4ecece47f235ed36d09715ebb81e3c64
6
+ metadata.gz: 672d33b4552fbdcd038949290361b9da0cbc346e300811ee423ee5bf95069d6399c90b6eab06600706377a5070bc6e6012ebea6c26f5bafea523d44d0daf7806
7
+ data.tar.gz: 47452cd282ccaa753399e74eecd97bc7407514de7f09cb22ac30e7a5d1d6e9c1b6786d43572408442d69b70378517cfbbd2b5482a73684a1e0ea6672a0e59a2c
data/CHANGELOG.md CHANGED
@@ -6,7 +6,48 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- ## [3.7.0] - 2026-09-10
9
+ ## [4.0.0] - 2026-09-21
10
+
11
+ Removes everything 3.7.0 deprecated. Nothing here is a surprise if you upgraded
12
+ to 3.7.0 and cleared its warnings; see Upgrading from 3.x in README.md.
13
+
14
+ ### Breaking
15
+ - Ruby 3.2 and Rails 7.2 are the minimum, enforced by `required_ruby_version`
16
+ and `railties`/`activerecord >= 7.2`. Every combination CI verifies is now at
17
+ or above the floors, which was not true before
18
+ - `slack-notifier` is no longer a runtime dependency. `Patches::Notifier`
19
+ requires it inside a `begin`/`rescue`, so the `defined?(Slack)` guard it always
20
+ carried finally does something. Applications that set `config.use_slack` add
21
+ `gem 'slack-notifier'` themselves
22
+ - The Capistrano integration is removed - `require 'patches/capistrano'` and its
23
+ `patches:run` task. Invoke `bundle exec rake patches:run` from your deployment
24
+ process instead; `docs/usage.md` shows where
25
+ - The workers include `Sidekiq::Job` directly, so Sidekiq 6.3 or newer is
26
+ required when the integration is used. `Patches.sidekiq_job_module` and its
27
+ `Sidekiq::Worker` fallback are gone
28
+ - The install migration declares `ActiveRecord::Migration[7.2]` rather than
29
+ `[5.0]`. A fresh `patches_patches` therefore gets `datetime(6)` timestamp
30
+ columns, matching what a modern Rails schema uses, where `[5.0]`
31
+ compatibility produced `datetime` without precision. Existing installs are
32
+ untouched - they ran their own copy of the file long ago
33
+ - Rails is required rather than guarded for. `railties` and `activerecord` were
34
+ always hard dependencies and the gem ships an engine, so the `defined?(Rails)`
35
+ checks described a mode nobody used - one of them read `defined?(:Rails)`,
36
+ always truthy, unnoticed until 3.6.3. `lib/patches.rb` now requires `rails`,
37
+ because loading the engine without it fails
38
+
39
+ ### Removed
40
+ - The deprecation warnings 3.7.0 added, now that what they announced has
41
+ happened. `Patches.deprecator` itself stays - applications were told to
42
+ configure it - and its horizon points at the next major
43
+
44
+ ### Changed
45
+ - CI covers every combination the gemspec allows, 12 cells rather than a wider
46
+ range, plus a leg for each optional-integration state: Sidekiq 7.x and 8.x
47
+ with strict arguments on and off, Sidekiq absent, `slack-notifier` absent, and
48
+ neither installed - the last of which nothing covered before
49
+
50
+ ## [3.7.0] - 2026-09-17
10
51
 
11
52
  Declares dependencies the gem always relied on, and announces what 4.0 is
12
53
  expected to require. No public API changes and no version constraint moves, so
data/README.md CHANGED
@@ -56,25 +56,22 @@ deployment and the Capistrano task.
56
56
 
57
57
  ## Compatibility
58
58
 
59
- This release changes no version constraint: the gemspec still requires only
60
- `railties >= 3.2` and sets no Ruby floor, so anything that installed 3.6.2
61
- installs 3.6.3. The table is what CI verifies, which is narrower than what the
62
- gem permits - older Ruby and Rails are untested here, not blocked.
63
-
64
- | | Rails 7.1 | Rails 7.2 | Rails 8.0 | Rails 8.1 |
65
- |---|---|---|---|---|
66
- | **Ruby 3.0** | ✅ | | | |
67
- | **Ruby 3.1** | ✅ | ✅ | | |
68
- | **Ruby 3.2** | ✅ | ✅ | ✅ | ✅ |
69
- | **Ruby 3.3** | ✅ | ✅ | ✅ | ✅ |
70
- | **Ruby 3.4** | | ✅ | ✅ | ✅ |
71
- | **Ruby 4.0** | | ✅ | ✅ | ✅ |
72
-
73
- A blank cell is a pairing Rails itself does not support. Ruby 2.7 and Rails
74
- 6.1/7.0 are deliberately not exercised - they are well past upstream support -
75
- though the gem still installs and, as of this release, passes on them.
76
-
77
- Ruby 4.0 is newer than all of these Rails releases, so those cells record that
59
+ | | Minimum |
60
+ |---|---|
61
+ | Ruby | 3.2 |
62
+ | Rails | 7.2 |
63
+
64
+ Every combination the gemspec allows is verified on each push and pull request -
65
+ the floors and the matrix are the same set, which they were not before 4.0:
66
+
67
+ | | Rails 7.2 | Rails 8.0 | Rails 8.1 |
68
+ |---|---|---|---|
69
+ | **Ruby 3.2** | ✅ | ✅ | ✅ |
70
+ | **Ruby 3.3** | ✅ | ✅ | ✅ |
71
+ | **Ruby 3.4** | ✅ | ✅ | ✅ |
72
+ | **Ruby 4.0** | ✅ | ✅ | ✅ |
73
+
74
+ Ruby 4.0 is newer than all three Rails releases, so those cells record that
78
75
  Patches is verified on it, not that Rails claims support for it.
79
76
 
80
77
  ### Sidekiq
@@ -83,17 +80,21 @@ Sidekiq is an **optional** integration, not a runtime dependency: Patches runs
83
80
  each patch inline when Sidekiq is absent. Set `config.use_sidekiq = true` to run
84
81
  them in the background - see [docs/usage.md](docs/usage.md).
85
82
 
86
- The workers resolve their mixin at load time via `Patches.sidekiq_job_module`,
87
- preferring `Sidekiq::Job` (the name Sidekiq has used since 6.3) and falling back
88
- to `Sidekiq::Worker`, so older Sidekiq keeps working. CI covers each state a
89
- consumer can be in:
83
+ The workers include `Sidekiq::Job`, so Sidekiq 6.3 or newer is required when the
84
+ integration is used - 6.2 and earlier predate that constant. CI covers each
85
+ state a consumer can be in:
90
86
 
91
87
  | State | Covered by |
92
88
  |---|---|
93
89
  | Sidekiq not installed | A leg omitting the gem entirely, exercising the `defined?(Sidekiq)` guards |
94
90
  | Installed, strict arguments on | Sidekiq 7.x and 8.x at their default (`:raise`) |
95
91
  | Installed, strict arguments off | Sidekiq 7.x and 8.x with `Sidekiq.strict_args!(false)` |
96
- | Older Sidekiq | A 6.5 leg, plus a spec covering the `Sidekiq::Worker` fallback |
92
+
93
+ ### Slack
94
+
95
+ Slack notifications are optional and Patches does not install
96
+ `slack-notifier` - add `gem 'slack-notifier'` to your own Gemfile if you set
97
+ `config.use_slack`. CI runs a leg without it to keep that path honest.
97
98
 
98
99
  ### Running one combination locally
99
100
 
@@ -146,26 +147,23 @@ combination again, and delete `test.db` when switching between them: the suite
146
147
  creates `patches_patches` only when it is missing, so a database left by an
147
148
  earlier run can mask ordering problems.
148
149
 
149
- ## Deprecations
150
+ ## Upgrading from 3.x
150
151
 
151
- 3.7.0 introduces no breaking changes. It announces what 4.0 is expected to
152
- require, so the upgrade is uneventful. Each warning names its replacement and
153
- goes through the gem's own deprecator, which a host application can silence or
154
- redirect:
152
+ Everything 4.0 removes was deprecated in 3.7.0, so upgrade to that first and
153
+ clear its warnings - `Patches.deprecator.behavior = :raise` in an initializer
154
+ turns them into failures if you would rather find them that way.
155
155
 
156
- ```ruby
157
- Patches.deprecator.behavior = :silence # or :raise, :log, a lambda...
158
- ```
159
-
160
- | Deprecated | Replacement |
156
+ | Change | What to do |
161
157
  |---|---|
162
- | Relying on Patches to install `slack-notifier` | Add `gem 'slack-notifier'` to your Gemfile if you use `config.use_slack`. From 4.0 only applications that want it carry it |
163
- | `require 'patches/capistrano'` | Invoke `rake patches:run` from your deployment process. The Capistrano task is removed in 4.0 |
164
- | Sidekiq older than 6.3 | Any supported Sidekiq (7.x or 8.x). 4.0 is expected to include `Sidekiq::Job` directly instead of falling back to `Sidekiq::Worker` |
165
- | Ruby older than 3.2, Rails older than 7.2 | Ruby 3.2+ and Rails 7.2+. 4.0 is expected to raise the gemspec floors to these, which are higher than the range CI verifies today |
166
-
167
- Nothing is removed in this release, and the gemspec floors are unchanged, so
168
- anything that installed 3.6.x installs 3.7.0.
158
+ | Ruby 3.2 and Rails 7.2 are now the minimum | Upgrade, or stay on 3.7.x |
159
+ | `slack-notifier` is no longer a dependency | Add `gem 'slack-notifier'` to your Gemfile if you set `config.use_slack` |
160
+ | The Capistrano task is gone | Invoke `bundle exec rake patches:run` from your deployment process |
161
+ | The workers include `Sidekiq::Job` | Use Sidekiq 6.3 or newer - 7.x or 8.x are the supported lines |
162
+
163
+ Nothing else changed: patch classes, `Patches::Base`, the generator, the rake
164
+ tasks, the configuration and the `patches_patches` table are all as they were.
165
+ `Patches.deprecator` remains, so an initializer that configures it keeps
166
+ working.
169
167
 
170
168
  ## Development
171
169
 
@@ -1,4 +1,4 @@
1
- class CreatePatch < ActiveRecord::Migration[5.0]
1
+ class CreatePatch < ActiveRecord::Migration[7.2]
2
2
  def change
3
3
  create_table :patches_patches do |t|
4
4
  t.string :path, null: false
data/docs/usage.md CHANGED
@@ -22,9 +22,8 @@ bundle exec rake db:migrate
22
22
 
23
23
  ## Configuration
24
24
 
25
- > **Note.** From 4.0 Patches will not depend on `slack-notifier`, so only
26
- > applications using Slack carry it. If you set `config.use_slack`, add
27
- > `gem 'slack-notifier'` to your Gemfile.
25
+ > **Note.** Patches does not depend on `slack-notifier`. If you set
26
+ > `config.use_slack`, add `gem 'slack-notifier'` to your own Gemfile.
28
27
 
29
28
  If you would like to run the patches asynchronously, or would like them to notify
30
29
  your Slack channel when they fail or succeed, you need to set up
@@ -117,26 +116,18 @@ bundle exec rake patches:run
117
116
 
118
117
  Patches will only ever run once, patches will run in order of creation date.
119
118
 
120
- ### Capistrano
119
+ ### Running on deploy
121
120
 
122
- > **Deprecated.** `patches/capistrano` is removed in 4.0. Invoke
123
- > `rake patches:run` from your deployment process instead.
121
+ Invoke the rake task from your deployment process, after the application code is
122
+ in place:
124
123
 
125
- To run patches on deployment using Capistrano, edit your Capfile and add
126
-
127
- ```ruby
128
- require 'patches/capistrano'
129
124
  ```
130
-
131
- And then in your deploy.rb
132
-
133
- ```ruby
134
- after 'last_task_you_want_to_run' 'patches:run'
125
+ bundle exec rake patches:run
135
126
  ```
136
127
 
137
- If you are using sidekiq and restarting the sidekiq process on the box
138
- as a part of the deploy process, please make sure that the patches run task runs
139
- after sidekiq restarts, otherwise there is no guarentee the tasks will run.
128
+ If you use Sidekiq and restart it as part of the deploy, make sure the patches
129
+ task runs after Sidekiq restarts - otherwise there is no guarantee the jobs will
130
+ be picked up.
140
131
 
141
132
  ## File Download
142
133
 
@@ -1,5 +1,3 @@
1
- require 'patches/deprecation'
2
-
3
1
  module Patches
4
2
  class Config
5
3
  class << self
@@ -32,18 +30,6 @@ module Patches
32
30
  @sidekiq_queue = 'default'
33
31
  end
34
32
 
35
- # Warns only for applications that enable Slack, and only the first time
36
- # - an initializer that reloads, or configures twice, should not repeat
37
- # the notice.
38
- def use_slack=(enabled)
39
- if enabled && !@warned_about_slack_notifier
40
- @warned_about_slack_notifier = true
41
- Patches.warn_slack_notifier_dependency_removed_in_4_0
42
- end
43
-
44
- @use_slack = enabled
45
- end
46
-
47
33
  def sidekiq_options
48
34
  @sidekiq_options ||= { retry: false, queue: sidekiq_queue }
49
35
  end
@@ -2,47 +2,11 @@ require 'active_support/deprecation'
2
2
 
3
3
  module Patches
4
4
  # A gem-owned deprecator rather than ActiveSupport::Deprecation's singleton,
5
- # which Rails 7.1 deprecated and 8.0 removed. Host applications can silence or
6
- # redirect it: Patches.deprecator.behavior = :silence.
5
+ # which Rails 7.1 deprecated and 8.0 removed. Nothing is deprecated in 4.0 -
6
+ # everything 3.7.0 announced has been removed - but this stays: applications
7
+ # were told to configure it to silence those warnings, so removing it would
8
+ # break their initializers. The horizon is the next major.
7
9
  def self.deprecator
8
- @deprecator ||= ActiveSupport::Deprecation.new('4.0', 'patches')
9
- end
10
-
11
- # The floors 4.0 is expected to set. Deliberately higher than what CI verifies
12
- # today - Ruby 3.0 and Rails 7.1 still pass - so consumers on those versions
13
- # hear about it a release ahead rather than at upgrade time.
14
- MINIMUM_RUBY_IN_4_0 = '3.2'.freeze
15
- MINIMUM_RAILS_IN_4_0 = '7.2'.freeze
16
-
17
- def self.warn_slack_notifier_dependency_removed_in_4_0
18
- deprecator.warn(
19
- 'patches will stop depending on slack-notifier in 4.0, so that only ' \
20
- "applications using Slack carry it. Add gem 'slack-notifier' to your " \
21
- 'Gemfile to keep notifications working.'
22
- )
23
- end
24
-
25
- def self.warn_capistrano_support_removed_in_4_0
26
- deprecator.warn(
27
- 'patches/capistrano is deprecated and will be removed in 4.0. Invoke ' \
28
- '`rake patches:run` from your deployment process instead.'
29
- )
30
- end
31
-
32
- def self.warn_about_versions_dropped_in_4_0
33
- if Gem::Version.new(RUBY_VERSION) < Gem::Version.new(MINIMUM_RUBY_IN_4_0)
34
- deprecator.warn(
35
- "Ruby #{RUBY_VERSION} will not be supported by patches 4.0, which is " \
36
- "expected to require Ruby >= #{MINIMUM_RUBY_IN_4_0}."
37
- )
38
- end
39
-
40
- return unless defined?(::Rails::VERSION::STRING)
41
- return if Gem::Version.new(::Rails::VERSION::STRING) >= Gem::Version.new(MINIMUM_RAILS_IN_4_0)
42
-
43
- deprecator.warn(
44
- "Rails #{::Rails::VERSION::STRING} will not be supported by patches 4.0, " \
45
- "which is expected to require Rails >= #{MINIMUM_RAILS_IN_4_0}."
46
- )
10
+ @deprecator ||= ActiveSupport::Deprecation.new('5.0', 'patches')
47
11
  end
48
12
  end
@@ -3,14 +3,5 @@ require 'rails/engine'
3
3
  module Patches
4
4
  class Engine < Rails::Engine
5
5
  isolate_namespace Patches
6
-
7
- # After the application's own initializers, so that a host which sets
8
- # Patches.deprecator.behavior in config/initializers can actually silence
9
- # this. Warning at require time - which happens during Bundler.require,
10
- # before any initializer - meant the documented mechanism could not work.
11
- # It also means Rails::VERSION is always loaded by the time we look.
12
- initializer 'patches.version_deprecations', after: :load_config_initializers do
13
- Patches.warn_about_versions_dropped_in_4_0
14
- end
15
6
  end
16
7
  end
@@ -1,4 +1,12 @@
1
- require 'slack-notifier'
1
+ # Optional: an application that sets config.use_slack adds slack-notifier to its
2
+ # own Gemfile. Patches runs without it, and send_slack_message's `defined?(Slack)`
3
+ # guard - which could never be false while this require was unconditional - now
4
+ # does its job.
5
+ begin
6
+ require 'slack-notifier'
7
+ rescue LoadError
8
+ nil
9
+ end
2
10
 
3
11
  class Patches::Notifier
4
12
  class << self
@@ -28,7 +36,7 @@ class Patches::Notifier
28
36
  end
29
37
 
30
38
  def environment_prefix
31
- Rails.env.upcase if defined?(Rails)
39
+ Rails.env.upcase
32
40
  end
33
41
 
34
42
  def notification_suffix
@@ -1,8 +1,8 @@
1
1
  require 'active_support/core_ext/hash/keys'
2
- require 'patches/sidekiq_job'
2
+ require 'sidekiq'
3
3
 
4
4
  class Patches::TenantWorker
5
- include Patches.sidekiq_job_module
5
+ include Sidekiq::Job
6
6
  include Patches::TenantRunConcern
7
7
  include Patches::ApplicationVersionValidation
8
8
 
@@ -1,6 +1,6 @@
1
1
  module Patches
2
- MAJOR = 3
3
- MINOR = 7
2
+ MAJOR = 4
3
+ MINOR = 0
4
4
  PATCH = 0
5
5
  VERSION = [MAJOR, MINOR, PATCH].compact.join(".").freeze
6
6
  end
@@ -1,8 +1,8 @@
1
1
  require 'active_support/core_ext/hash/keys'
2
- require 'patches/sidekiq_job'
2
+ require 'sidekiq'
3
3
 
4
4
  class Patches::Worker
5
- include Patches.sidekiq_job_module
5
+ include Sidekiq::Job
6
6
  include Patches::ApplicationVersionValidation
7
7
 
8
8
  sidekiq_options Patches::Config.configuration.sidekiq_options
data/lib/patches.rb CHANGED
@@ -1,8 +1,15 @@
1
+ # railties and activerecord are hard dependencies, and the engine, the install
2
+ # migration and Patches.default_path all assume a Rails application. The gem
3
+ # used to guard on `defined?(Rails)` as though Rails were optional; one of those
4
+ # guards read `defined?(:Rails)`, which is always truthy, and went unnoticed for
5
+ # years - nobody was running this outside Rails.
6
+ require 'rails'
7
+
1
8
  require "patches/version"
2
9
 
3
10
  module Patches
4
11
  def self.default_path
5
- Rails.root.join('db/patches/') if defined?(Rails)
12
+ Rails.root.join('db/patches/')
6
13
  end
7
14
 
8
15
  def self.class_name(path)
@@ -24,9 +31,8 @@ require "patches/base"
24
31
  require "patches/config"
25
32
  require "patches/tenant_run_concern"
26
33
  require "patches/application_version_validation"
27
- require "patches/sidekiq_job" if defined?(Sidekiq)
28
34
  require "patches/tenant_worker" if defined?(Sidekiq)
29
- require "patches/engine" if defined?(Rails)
35
+ require "patches/engine"
30
36
  require "patches/patch"
31
37
  require "patches/pending"
32
38
  require "patches/runner"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patches
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ReadyTech
@@ -15,42 +15,28 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: '3.2'
18
+ version: '7.2'
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
- version: '3.2'
25
+ version: '7.2'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: activerecord
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: '3.2'
32
+ version: '7.2'
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '3.2'
40
- - !ruby/object:Gem::Dependency
41
- name: slack-notifier
42
- requirement: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: '0'
47
- type: :runtime
48
- prerelease: false
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: '0'
39
+ version: '7.2'
54
40
  - !ruby/object:Gem::Dependency
55
41
  name: bundler
56
42
  requirement: !ruby/object:Gem::Requirement
@@ -159,8 +145,6 @@ files:
159
145
  - lib/patches.rb
160
146
  - lib/patches/application_version_validation.rb
161
147
  - lib/patches/base.rb
162
- - lib/patches/capistrano.rb
163
- - lib/patches/capistrano/tasks.rake
164
148
  - lib/patches/config.rb
165
149
  - lib/patches/deprecation.rb
166
150
  - lib/patches/engine.rb
@@ -168,7 +152,6 @@ files:
168
152
  - lib/patches/patch.rb
169
153
  - lib/patches/pending.rb
170
154
  - lib/patches/runner.rb
171
- - lib/patches/sidekiq_job.rb
172
155
  - lib/patches/tenant_run_concern.rb
173
156
  - lib/patches/tenant_runner.rb
174
157
  - lib/patches/tenant_worker.rb
@@ -180,9 +163,9 @@ licenses:
180
163
  - MIT
181
164
  metadata:
182
165
  source_code_uri: https://github.com/rdytech/patches
183
- changelog_uri: https://github.com/rdytech/patches/blob/v3.7.0/CHANGELOG.md
166
+ changelog_uri: https://github.com/rdytech/patches/blob/v4.0.0/CHANGELOG.md
184
167
  bug_tracker_uri: https://github.com/rdytech/patches/issues
185
- documentation_uri: https://github.com/rdytech/patches/blob/v3.7.0/docs/usage.md
168
+ documentation_uri: https://github.com/rdytech/patches/blob/v4.0.0/docs/usage.md
186
169
  rdoc_options: []
187
170
  require_paths:
188
171
  - lib
@@ -190,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
190
173
  requirements:
191
174
  - - ">="
192
175
  - !ruby/object:Gem::Version
193
- version: '0'
176
+ version: '3.2'
194
177
  required_rubygems_version: !ruby/object:Gem::Requirement
195
178
  requirements:
196
179
  - - ">="
@@ -1,12 +0,0 @@
1
- namespace :patches do
2
- desc 'Runs rake patches:run'
3
- task :run do
4
- on primary fetch(:migration_role) do
5
- within release_path do
6
- with rails_env: fetch(:rails_env) do
7
- execute :rake, "patches:run"
8
- end
9
- end
10
- end
11
- end
12
- end
@@ -1,5 +0,0 @@
1
- require 'patches/deprecation'
2
-
3
- Patches.warn_capistrano_support_removed_in_4_0
4
-
5
- load File.expand_path("capistrano/tasks.rake", File.dirname(__FILE__))
@@ -1,18 +0,0 @@
1
- require 'sidekiq'
2
- require 'patches/deprecation'
3
-
4
- module Patches
5
- # Sidekiq renamed Sidekiq::Worker to Sidekiq::Job in 6.3 and still ships the
6
- # old name as a deprecated alias. Resolving it at include time keeps the
7
- # workers working on every Sidekiq this gem has ever supported, so the change
8
- # needs no version bump from consumers.
9
- def self.sidekiq_job_module
10
- return ::Sidekiq::Job if defined?(::Sidekiq::Job)
11
-
12
- deprecator.warn(
13
- 'Sidekiq older than 6.3 does not provide Sidekiq::Job; patches 4.0 is ' \
14
- 'expected to require it. Upgrade Sidekiq, which supports 7.x and 8.x.'
15
- )
16
- ::Sidekiq::Worker
17
- end
18
- end