sidekiq-pauzer 5.1.0 → 5.2.0

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: c5f31ae5cfdfd5dd4e693e42c0bb82fbef4012cf9289772542f32131d996ecf7
4
- data.tar.gz: 9bf1d72ce135955e7887b0926df8b83e6e3333e2c86f7ba1f7070c1277a4c6fd
3
+ metadata.gz: 98787fef3e8c9b2177b4d60ddff1c6f5cd9183bd574581606b545f3415073b8f
4
+ data.tar.gz: b9d2a052d852cf0b44d07bafd4162dbe76170d14586614a5fe7b5123d39e6513
5
5
  SHA512:
6
- metadata.gz: 3c7d00653876ac75e9cf299ad49152d8818380de5c18e670f023dfa5ffa07c9dd2b2755a8cfab71a9cb37e7b7d46d4e119653b314425ef8ffb57c1ffaa87414c
7
- data.tar.gz: 89ab9cc7e4b0b90b4e3fa1b54b6a8e50577f52738faf0b96030edadc5fdddc1f6fd170b49aaf32be88a3538c31136404ee31576bf258ed2c7896584b189061cc
6
+ metadata.gz: ba93ae7964585e0a89692ba06143704c52d45854ae51df91e7ff3cbe6596cae3ad1e58f505b352bf2f5abc35e4e9854c3a54294d7dbb5f6862698d34fb92057b
7
+ data.tar.gz: 978230c92240e7762db583e1854bcecdaa61496167ffb14d5f92dffcff655bb618566919a915b3c26e94ca2daba0ecd482a6da94d5ae67f6847903ba038ee632
data/README.adoc CHANGED
@@ -77,35 +77,38 @@ NOTE: If you are using custom Sidekiq views path, then you will need to call
77
77
  (after requiring `sidekiq/pauzer/web`): `Sidekiq::Pauzer::Web.unpatch_views!`.
78
78
 
79
79
 
80
- == Supported Ruby Versions
81
-
82
- This library aims to support and is tested against the following Ruby versions:
83
-
84
- * Ruby 3.0.x
85
- * Ruby 3.1.x
86
- * Ruby 3.2.x
80
+ == Compatibility
81
+
82
+ This library aims to support and is tested against:
83
+
84
+ * https://www.ruby-lang.org[Ruby]
85
+ ** MRI 3.0.x
86
+ ** MRI 3.1.x
87
+ ** MRI 3.2.x
88
+ ** MRI 3.3.x
89
+ * https://github.com/sidekiq/sidekiq[Sidekiq]
90
+ ** 7.2.x
91
+ ** 7.3.x
92
+ * https://redis.io[Redis]
93
+ ** 6.2.x
94
+ ** 7.0.x
95
+ ** 7.2.x
87
96
 
88
97
  If something doesn't work on one of these versions, it's a bug.
89
98
 
90
- This library may inadvertently work (or seem to work) on other Ruby versions,
91
- however support will only be provided for the versions listed above.
99
+ This library may inadvertently work (or seem to work) on other Ruby, Redis, and
100
+ Sidekiq versions, however support will only be provided for the versions listed
101
+ above.
92
102
 
93
- If you would like this library to support another Ruby version or
94
- implementation, you may volunteer to be a maintainer. Being a maintainer
95
- entails making sure all tests run and pass on that implementation. When
96
- something breaks on your implementation, you will be responsible for providing
97
- patches in a timely fashion. If critical issues for a particular implementation
98
- exist at the time of a major release, support for that Ruby version may be
103
+ If you would like this library to support another Ruby, Redis, or Sidekiq
104
+ version, you may volunteer to be a maintainer. Being a maintainer entails making
105
+ sure all tests run and pass on that implementation. When something breaks on
106
+ your implementation, you will be responsible for providing patches in a timely
107
+ fashion. If critical issues for a particular implementation exist at the time of
108
+ a major release, support for that Ruby, Redis, and/or Sidekiq version may be
99
109
  dropped.
100
110
 
101
111
 
102
- == Supported Sidekiq Versions
103
-
104
- This library aims to support and work with following Sidekiq versions:
105
-
106
- * Sidekiq 7.2.x
107
-
108
-
109
112
  == Development
110
113
 
111
114
  bundle install
@@ -14,9 +14,8 @@ module Sidekiq
14
14
  # @param refresh_rate [Float]
15
15
  # @param repository [Repository]
16
16
  def initialize(refresh_rate, repository:)
17
- @names = [].freeze
18
17
  @refresher = Concurrent::TimerTask.new(execution_interval: refresh_rate, run_now: true) do
19
- @names = repository.to_a.freeze
18
+ repository.to_a.freeze
20
19
  end
21
20
  end
22
21
 
@@ -31,7 +30,7 @@ module Sidekiq
31
30
  return to_enum __method__ unless block
32
31
 
33
32
  start_refresher unless refresher_running?
34
- @names.each(&block)
33
+ @refresher.value&.each(&block)
35
34
 
36
35
  self
37
36
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sidekiq
4
4
  module Pauzer
5
- VERSION = "5.1.0"
5
+ VERSION = "5.2.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-pauzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Zapparov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-10 00:00:00.000000000 Z
11
+ date: 2024-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -64,9 +64,9 @@ licenses:
64
64
  - MIT
65
65
  metadata:
66
66
  homepage_uri: https://github.com/ixti/sidekiq-pauzer
67
- source_code_uri: https://github.com/ixti/sidekiq-pauzer/tree/v5.1.0
67
+ source_code_uri: https://github.com/ixti/sidekiq-pauzer/tree/v5.2.0
68
68
  bug_tracker_uri: https://github.com/ixti/sidekiq-pauzer/issues
69
- changelog_uri: https://github.com/ixti/sidekiq-pauzer/blob/v5.1.0/CHANGES.md
69
+ changelog_uri: https://github.com/ixti/sidekiq-pauzer/blob/v5.2.0/CHANGES.md
70
70
  rubygems_mfa_required: 'true'
71
71
  post_install_message:
72
72
  rdoc_options: []
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubygems_version: 3.4.10
86
+ rubygems_version: 3.5.22
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: Enhance Sidekiq with queue pausing