sidekiq-limit_fetch 3.3.1 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/ci.yml +42 -0
  3. data/Appraisals +35 -0
  4. data/CHANGELOG.md +22 -0
  5. data/LICENSE +22 -0
  6. data/README.md +52 -51
  7. data/demo/Gemfile +0 -2
  8. data/demo/Rakefile +1 -1
  9. data/gemfiles/sidekiq_5.0.gemfile +7 -0
  10. data/gemfiles/sidekiq_5.0.gemfile.lock +57 -0
  11. data/gemfiles/sidekiq_5.1.gemfile +7 -0
  12. data/gemfiles/sidekiq_5.1.gemfile.lock +57 -0
  13. data/gemfiles/sidekiq_5.2.gemfile +7 -0
  14. data/gemfiles/sidekiq_5.2.gemfile.lock +56 -0
  15. data/gemfiles/sidekiq_6.0.gemfile +7 -0
  16. data/gemfiles/sidekiq_6.0.gemfile.lock +56 -0
  17. data/gemfiles/sidekiq_6.1.gemfile +7 -0
  18. data/gemfiles/sidekiq_6.1.gemfile.lock +53 -0
  19. data/gemfiles/sidekiq_6.2.gemfile +7 -0
  20. data/gemfiles/sidekiq_6.2.gemfile.lock +53 -0
  21. data/gemfiles/sidekiq_6.3.gemfile +7 -0
  22. data/gemfiles/sidekiq_6.3.gemfile.lock +53 -0
  23. data/gemfiles/sidekiq_6.4.gemfile +7 -0
  24. data/gemfiles/sidekiq_6.4.gemfile.lock +53 -0
  25. data/gemfiles/sidekiq_master.gemfile +7 -0
  26. data/gemfiles/sidekiq_master.gemfile.lock +58 -0
  27. data/lib/sidekiq/extensions/queue.rb +2 -1
  28. data/lib/sidekiq/limit_fetch/global/monitor.rb +7 -7
  29. data/lib/sidekiq/limit_fetch/global/semaphore.rb +8 -0
  30. data/lib/sidekiq/limit_fetch/instances.rb +4 -0
  31. data/lib/sidekiq/limit_fetch/queues.rb +85 -26
  32. data/lib/sidekiq/limit_fetch.rb +19 -4
  33. data/sidekiq-limit_fetch.gemspec +11 -8
  34. data/spec/sidekiq/limit_fetch/queues_spec.rb +23 -12
  35. data/spec/sidekiq/limit_fetch_spec.rb +1 -1
  36. data/spec/spec_helper.rb +7 -7
  37. metadata +62 -12
  38. data/.travis.yml +0 -10
  39. data/LICENSE.txt +0 -22
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-limit_fetch
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.1
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
+ - Dean Perry
7
8
  - brainopia
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-10-12 00:00:00.000000000 Z
12
+ date: 2022-03-29 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: sidekiq
@@ -24,6 +25,20 @@ dependencies:
24
25
  - - ">="
25
26
  - !ruby/object:Gem::Version
26
27
  version: '4'
28
+ - !ruby/object:Gem::Dependency
29
+ name: redis
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 4.6.0
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 4.6.0
27
42
  - !ruby/object:Gem::Dependency
28
43
  name: redis-namespace
29
44
  requirement: !ruby/object:Gem::Requirement
@@ -44,6 +59,20 @@ dependencies:
44
59
  - - ">="
45
60
  - !ruby/object:Gem::Version
46
61
  version: 1.5.2
62
+ - !ruby/object:Gem::Dependency
63
+ name: appraisal
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ type: :development
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
47
76
  - !ruby/object:Gem::Dependency
48
77
  name: rspec
49
78
  requirement: !ruby/object:Gem::Requirement
@@ -72,19 +101,20 @@ dependencies:
72
101
  - - ">="
73
102
  - !ruby/object:Gem::Version
74
103
  version: '0'
75
- description: |2
76
- Sidekiq strategy to restrict number of workers
77
- which are able to run specified queues simultaneously.
78
- email: brainopia@evilmartians.com
104
+ description: Sidekiq strategy to restrict number of workers which are able to run
105
+ specified queues simultaneously.
106
+ email: dean@deanpcmad.com
79
107
  executables: []
80
108
  extensions: []
81
109
  extra_rdoc_files: []
82
110
  files:
111
+ - ".github/workflows/ci.yml"
83
112
  - ".gitignore"
84
113
  - ".rspec"
85
- - ".travis.yml"
114
+ - Appraisals
115
+ - CHANGELOG.md
86
116
  - Gemfile
87
- - LICENSE.txt
117
+ - LICENSE
88
118
  - README.md
89
119
  - Rakefile
90
120
  - bench/compare.rb
@@ -100,6 +130,24 @@ files:
100
130
  - demo/config/boot.rb
101
131
  - demo/config/environment.rb
102
132
  - demo/config/environments/development.rb
133
+ - gemfiles/sidekiq_5.0.gemfile
134
+ - gemfiles/sidekiq_5.0.gemfile.lock
135
+ - gemfiles/sidekiq_5.1.gemfile
136
+ - gemfiles/sidekiq_5.1.gemfile.lock
137
+ - gemfiles/sidekiq_5.2.gemfile
138
+ - gemfiles/sidekiq_5.2.gemfile.lock
139
+ - gemfiles/sidekiq_6.0.gemfile
140
+ - gemfiles/sidekiq_6.0.gemfile.lock
141
+ - gemfiles/sidekiq_6.1.gemfile
142
+ - gemfiles/sidekiq_6.1.gemfile.lock
143
+ - gemfiles/sidekiq_6.2.gemfile
144
+ - gemfiles/sidekiq_6.2.gemfile.lock
145
+ - gemfiles/sidekiq_6.3.gemfile
146
+ - gemfiles/sidekiq_6.3.gemfile.lock
147
+ - gemfiles/sidekiq_6.4.gemfile
148
+ - gemfiles/sidekiq_6.4.gemfile.lock
149
+ - gemfiles/sidekiq_master.gemfile
150
+ - gemfiles/sidekiq_master.gemfile.lock
103
151
  - lib/sidekiq-limit_fetch.rb
104
152
  - lib/sidekiq/extensions/manager.rb
105
153
  - lib/sidekiq/extensions/queue.rb
@@ -117,10 +165,13 @@ files:
117
165
  - spec/sidekiq/limit_fetch/semaphore_spec.rb
118
166
  - spec/sidekiq/limit_fetch_spec.rb
119
167
  - spec/spec_helper.rb
120
- homepage: https://github.com/brainopia/sidekiq-limit_fetch
168
+ homepage: https://github.com/deanpcmad/sidekiq-limit_fetch
121
169
  licenses:
122
170
  - MIT
123
- metadata: {}
171
+ metadata:
172
+ homepage_uri: https://github.com/deanpcmad/sidekiq-limit_fetch
173
+ source_code_uri: https://github.com/deanpcmad/sidekiq-limit_fetch
174
+ changelog_uri: https://github.com/deanpcmad/sidekiq-limit_fetch/blob/master/CHANGELOG.md
124
175
  post_install_message:
125
176
  rdoc_options: []
126
177
  require_paths:
@@ -136,8 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
187
  - !ruby/object:Gem::Version
137
188
  version: '0'
138
189
  requirements: []
139
- rubyforge_project:
140
- rubygems_version: 2.5.1
190
+ rubygems_version: 3.2.22
141
191
  signing_key:
142
192
  specification_version: 4
143
193
  summary: Sidekiq strategy to support queue limits
data/.travis.yml DELETED
@@ -1,10 +0,0 @@
1
- language: ruby
2
- before_install:
3
- - gem install bundler
4
- - gem update bundler
5
- rvm:
6
- - 2.3.1
7
- - 2.2.5
8
- - jruby-head
9
- services:
10
- - redis-server
data/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2013 brainopia
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.