sidekiq-unique-jobs 4.0.8 → 4.0.9

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sidekiq-unique-jobs might be problematic. Click here for more details.

Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/.fasterer.yml +23 -0
  3. data/.rubocop.yml +2 -1
  4. data/CHANGELOG.md +12 -1
  5. data/Gemfile +4 -3
  6. data/README.md +22 -5
  7. data/bin/jobs +6 -0
  8. data/gemfiles/sidekiq_2.15.gemfile +5 -5
  9. data/gemfiles/sidekiq_2.16.gemfile +5 -5
  10. data/gemfiles/sidekiq_2.17.gemfile +3 -2
  11. data/gemfiles/sidekiq_3.0.gemfile +3 -2
  12. data/gemfiles/sidekiq_3.1.gemfile +3 -2
  13. data/gemfiles/sidekiq_3.2.gemfile +3 -2
  14. data/gemfiles/sidekiq_3.3.gemfile +3 -2
  15. data/gemfiles/sidekiq_develop.gemfile +3 -2
  16. data/lib/sidekiq-unique-jobs.rb +13 -8
  17. data/lib/sidekiq/simulator.rb +75 -0
  18. data/lib/sidekiq_unique_jobs/cli.rb +34 -0
  19. data/lib/sidekiq_unique_jobs/lock/until_timeout.rb +5 -2
  20. data/lib/sidekiq_unique_jobs/lock/while_executing.rb +2 -3
  21. data/lib/sidekiq_unique_jobs/middleware.rb +5 -0
  22. data/lib/sidekiq_unique_jobs/scripts.rb +3 -7
  23. data/lib/sidekiq_unique_jobs/util.rb +77 -0
  24. data/lib/sidekiq_unique_jobs/version.rb +1 -1
  25. data/rails_example/.gitignore +13 -0
  26. data/rails_example/Gemfile +20 -0
  27. data/rails_example/Procfile +2 -0
  28. data/rails_example/README.rdoc +28 -0
  29. data/rails_example/Rakefile +6 -0
  30. data/rails_example/app/assets/images/.keep +0 -0
  31. data/rails_example/app/assets/javascripts/application.js +16 -0
  32. data/rails_example/app/assets/stylesheets/application.css +15 -0
  33. data/rails_example/app/controllers/application_controller.rb +5 -0
  34. data/rails_example/app/controllers/concerns/.keep +0 -0
  35. data/rails_example/app/controllers/work_controller.rb +10 -0
  36. data/rails_example/app/helpers/application_helper.rb +2 -0
  37. data/rails_example/app/mailers/.keep +0 -0
  38. data/rails_example/app/models/.keep +0 -0
  39. data/rails_example/app/models/concerns/.keep +0 -0
  40. data/rails_example/app/models/post.rb +2 -0
  41. data/rails_example/app/views/layouts/application.html.erb +15 -0
  42. data/rails_example/app/workers/simple_worker.rb +11 -0
  43. data/rails_example/app/workers/spawn_simple_worker.rb +7 -0
  44. data/rails_example/bin/bundle +3 -0
  45. data/rails_example/bin/rails +4 -0
  46. data/rails_example/bin/rake +4 -0
  47. data/rails_example/bin/setup +29 -0
  48. data/rails_example/config.ru +4 -0
  49. data/rails_example/config/application.rb +26 -0
  50. data/rails_example/config/boot.rb +3 -0
  51. data/rails_example/config/database.yml +26 -0
  52. data/rails_example/config/environment.rb +5 -0
  53. data/rails_example/config/environments/development.rb +41 -0
  54. data/rails_example/config/environments/production.rb +79 -0
  55. data/rails_example/config/environments/test.rb +42 -0
  56. data/rails_example/config/initializers/assets.rb +11 -0
  57. data/rails_example/config/initializers/backtrace_silencers.rb +8 -0
  58. data/rails_example/config/initializers/cookies_serializer.rb +3 -0
  59. data/rails_example/config/initializers/filter_parameter_logging.rb +4 -0
  60. data/rails_example/config/initializers/inflections.rb +16 -0
  61. data/rails_example/config/initializers/mime_types.rb +4 -0
  62. data/rails_example/config/initializers/session_store.rb +3 -0
  63. data/rails_example/config/initializers/sidekiq.rb +13 -0
  64. data/rails_example/config/initializers/wrap_parameters.rb +14 -0
  65. data/rails_example/config/locales/en.yml +23 -0
  66. data/rails_example/config/routes.rb +5 -0
  67. data/rails_example/config/secrets.yml +22 -0
  68. data/rails_example/config/sidekiq.yml +6 -0
  69. data/rails_example/db/development.sqlite3 +0 -0
  70. data/rails_example/db/migrate/20151107231835_create_posts.rb +10 -0
  71. data/rails_example/db/schema.rb +21 -0
  72. data/rails_example/db/seeds.rb +7 -0
  73. data/rails_example/db/test.sqlite3 +0 -0
  74. data/rails_example/lib/assets/.keep +0 -0
  75. data/rails_example/lib/tasks/.keep +0 -0
  76. data/rails_example/log/.keep +0 -0
  77. data/rails_example/public/404.html +67 -0
  78. data/rails_example/public/422.html +67 -0
  79. data/rails_example/public/500.html +66 -0
  80. data/rails_example/public/favicon.ico +0 -0
  81. data/rails_example/public/robots.txt +5 -0
  82. data/rails_example/simple.ru +12 -0
  83. data/rails_example/vendor/assets/javascripts/.keep +0 -0
  84. data/rails_example/vendor/assets/stylesheets/.keep +0 -0
  85. data/sidekiq-unique-jobs.gemspec +4 -2
  86. data/spec/celluloid_with_fallback.rb +9 -8
  87. data/spec/jobs/simple_worker.rb +11 -0
  88. data/spec/jobs/spawn_simple_worker.rb +8 -0
  89. data/spec/lib/sidekiq_unique_jobs/client/middleware_spec.rb +53 -1
  90. data/spec/lib/sidekiq_unique_jobs/lock/until_timeout_spec.rb +26 -0
  91. data/spec/lib/sidekiq_unique_jobs/options_with_fallback_spec.rb +58 -3
  92. data/spec/lib/sidekiq_unique_jobs/sidekiq_unique_jobs_spec.rb +6 -1
  93. data/spec/lib/sidekiq_unique_jobs/unique_args_spec.rb +2 -3
  94. data/spec/lib/sidekiq_unique_jobs/util_spec.rb +53 -0
  95. data/spec/spec_helper.rb +1 -0
  96. metadata +105 -6
@@ -24,6 +24,7 @@ require 'sidekiq_unique_jobs/testing'
24
24
  require 'timecop'
25
25
 
26
26
  require 'rspec-sidekiq'
27
+ require 'sidekiq/simulator'
27
28
 
28
29
  Sidekiq::Testing.disable!
29
30
  Sidekiq.logger.level = "Logger::#{ENV.fetch('LOGLEVEL') { 'error' }.upcase}".constantize
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-unique-jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.8
4
+ version: 4.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-31 00:00:00.000000000 Z
11
+ date: 2015-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -24,20 +24,34 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: thor
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rspec
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: 3.1.0
47
+ version: '3.1'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: 3.1.0
54
+ version: '3.1'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -94,14 +108,30 @@ dependencies:
94
108
  - - ">="
95
109
  - !ruby/object:Gem::Version
96
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: yard
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
97
125
  description: The unique jobs that were removed from sidekiq
98
126
  email:
99
127
  - mikael@zoolutions.se
100
- executables: []
128
+ executables:
129
+ - jobs
101
130
  extensions: []
102
131
  extra_rdoc_files: []
103
132
  files:
104
133
  - ".editorconfig"
134
+ - ".fasterer.yml"
105
135
  - ".gitignore"
106
136
  - ".rspec"
107
137
  - ".rubocop.yml"
@@ -113,6 +143,7 @@ files:
113
143
  - LICENSE
114
144
  - README.md
115
145
  - Rakefile
146
+ - bin/jobs
116
147
  - circle.yml
117
148
  - gemfiles/sidekiq_2.15.gemfile
118
149
  - gemfiles/sidekiq_2.16.gemfile
@@ -123,6 +154,8 @@ files:
123
154
  - gemfiles/sidekiq_3.3.gemfile
124
155
  - gemfiles/sidekiq_develop.gemfile
125
156
  - lib/sidekiq-unique-jobs.rb
157
+ - lib/sidekiq/simulator.rb
158
+ - lib/sidekiq_unique_jobs/cli.rb
126
159
  - lib/sidekiq_unique_jobs/client/middleware.rb
127
160
  - lib/sidekiq_unique_jobs/config.rb
128
161
  - lib/sidekiq_unique_jobs/constants.rb
@@ -145,7 +178,68 @@ files:
145
178
  - lib/sidekiq_unique_jobs/timeout_calculator.rb
146
179
  - lib/sidekiq_unique_jobs/unique_args.rb
147
180
  - lib/sidekiq_unique_jobs/unlockable.rb
181
+ - lib/sidekiq_unique_jobs/util.rb
148
182
  - lib/sidekiq_unique_jobs/version.rb
183
+ - rails_example/.gitignore
184
+ - rails_example/Gemfile
185
+ - rails_example/Procfile
186
+ - rails_example/README.rdoc
187
+ - rails_example/Rakefile
188
+ - rails_example/app/assets/images/.keep
189
+ - rails_example/app/assets/javascripts/application.js
190
+ - rails_example/app/assets/stylesheets/application.css
191
+ - rails_example/app/controllers/application_controller.rb
192
+ - rails_example/app/controllers/concerns/.keep
193
+ - rails_example/app/controllers/work_controller.rb
194
+ - rails_example/app/helpers/application_helper.rb
195
+ - rails_example/app/mailers/.keep
196
+ - rails_example/app/models/.keep
197
+ - rails_example/app/models/concerns/.keep
198
+ - rails_example/app/models/post.rb
199
+ - rails_example/app/views/layouts/application.html.erb
200
+ - rails_example/app/workers/simple_worker.rb
201
+ - rails_example/app/workers/spawn_simple_worker.rb
202
+ - rails_example/bin/bundle
203
+ - rails_example/bin/rails
204
+ - rails_example/bin/rake
205
+ - rails_example/bin/setup
206
+ - rails_example/config.ru
207
+ - rails_example/config/application.rb
208
+ - rails_example/config/boot.rb
209
+ - rails_example/config/database.yml
210
+ - rails_example/config/environment.rb
211
+ - rails_example/config/environments/development.rb
212
+ - rails_example/config/environments/production.rb
213
+ - rails_example/config/environments/test.rb
214
+ - rails_example/config/initializers/assets.rb
215
+ - rails_example/config/initializers/backtrace_silencers.rb
216
+ - rails_example/config/initializers/cookies_serializer.rb
217
+ - rails_example/config/initializers/filter_parameter_logging.rb
218
+ - rails_example/config/initializers/inflections.rb
219
+ - rails_example/config/initializers/mime_types.rb
220
+ - rails_example/config/initializers/session_store.rb
221
+ - rails_example/config/initializers/sidekiq.rb
222
+ - rails_example/config/initializers/wrap_parameters.rb
223
+ - rails_example/config/locales/en.yml
224
+ - rails_example/config/routes.rb
225
+ - rails_example/config/secrets.yml
226
+ - rails_example/config/sidekiq.yml
227
+ - rails_example/db/development.sqlite3
228
+ - rails_example/db/migrate/20151107231835_create_posts.rb
229
+ - rails_example/db/schema.rb
230
+ - rails_example/db/seeds.rb
231
+ - rails_example/db/test.sqlite3
232
+ - rails_example/lib/assets/.keep
233
+ - rails_example/lib/tasks/.keep
234
+ - rails_example/log/.keep
235
+ - rails_example/public/404.html
236
+ - rails_example/public/422.html
237
+ - rails_example/public/500.html
238
+ - rails_example/public/favicon.ico
239
+ - rails_example/public/robots.txt
240
+ - rails_example/simple.ru
241
+ - rails_example/vendor/assets/javascripts/.keep
242
+ - rails_example/vendor/assets/stylesheets/.keep
149
243
  - redis/aquire_lock.lua
150
244
  - redis/release_lock.lua
151
245
  - redis/synchronize.lua
@@ -162,6 +256,8 @@ files:
162
256
  - spec/jobs/my_job.rb
163
257
  - spec/jobs/my_unique_job.rb
164
258
  - spec/jobs/plain_class.rb
259
+ - spec/jobs/simple_worker.rb
260
+ - spec/jobs/spawn_simple_worker.rb
165
261
  - spec/jobs/test_class.rb
166
262
  - spec/jobs/unique_job_with_filter_method.rb
167
263
  - spec/jobs/unique_on_all_queues_job.rb
@@ -175,6 +271,7 @@ files:
175
271
  - spec/lib/sidekiq_unique_jobs/core_ext_spec.rb
176
272
  - spec/lib/sidekiq_unique_jobs/lock/until_and_while_executing_spec.rb
177
273
  - spec/lib/sidekiq_unique_jobs/lock/until_executed_spec.rb
274
+ - spec/lib/sidekiq_unique_jobs/lock/until_timeout_spec.rb
178
275
  - spec/lib/sidekiq_unique_jobs/lock/while_executing_spec.rb
179
276
  - spec/lib/sidekiq_unique_jobs/normalizer_spec.rb
180
277
  - spec/lib/sidekiq_unique_jobs/options_with_fallback_spec.rb
@@ -185,6 +282,7 @@ files:
185
282
  - spec/lib/sidekiq_unique_jobs/sidekiq_unique_jobs_spec.rb
186
283
  - spec/lib/sidekiq_unique_jobs/timeout_calculator_spec.rb
187
284
  - spec/lib/sidekiq_unique_jobs/unique_args_spec.rb
285
+ - spec/lib/sidekiq_unique_jobs/util_spec.rb
188
286
  - spec/spec_helper.rb
189
287
  - spec/support/matchers/redis_matchers.rb
190
288
  - spec/support/ruby_meta.rb
@@ -211,8 +309,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
309
  version: '0'
212
310
  requirements: []
213
311
  rubyforge_project:
214
- rubygems_version: 2.4.5.1
312
+ rubygems_version: 2.4.8
215
313
  signing_key:
216
314
  specification_version: 4
217
315
  summary: The unique jobs that were removed from sidekiq
218
316
  test_files: []
317
+ has_rdoc: