sidekiq-unique-jobs 4.0.17 → 4.0.18

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 (87) hide show
  1. checksums.yaml +4 -4
  2. data/.dockerignore +4 -0
  3. data/.gitignore +1 -0
  4. data/.travis.yml +3 -3
  5. data/CHANGELOG.md +9 -0
  6. data/Gemfile +1 -0
  7. data/README.md +6 -3
  8. data/circle.yml +3 -6
  9. data/lib/sidekiq-unique-jobs.rb +4 -0
  10. data/lib/sidekiq_unique_jobs/cli.rb +2 -2
  11. data/lib/sidekiq_unique_jobs/lock/until_executed.rb +5 -1
  12. data/lib/sidekiq_unique_jobs/lock/while_executing.rb +3 -1
  13. data/lib/sidekiq_unique_jobs/script_mock.rb +68 -0
  14. data/lib/sidekiq_unique_jobs/scripts.rb +8 -5
  15. data/lib/sidekiq_unique_jobs/testing.rb +36 -0
  16. data/lib/sidekiq_unique_jobs/testing/sidekiq_overrides.rb +1 -1
  17. data/lib/sidekiq_unique_jobs/version.rb +1 -1
  18. data/rails_example/.env +12 -0
  19. data/rails_example/.rspec +2 -0
  20. data/rails_example/Gemfile +21 -7
  21. data/rails_example/app/channels/appearance_channel.rb +17 -0
  22. data/rails_example/app/channels/application_cable/channel.rb +4 -0
  23. data/rails_example/app/channels/application_cable/connection.rb +9 -0
  24. data/rails_example/app/channels/post_channel.rb +5 -0
  25. data/rails_example/app/controllers/work_controller.rb +8 -5
  26. data/rails_example/app/models/application_record.rb +3 -0
  27. data/rails_example/app/models/guest.rb +21 -0
  28. data/rails_example/app/models/post.rb +1 -1
  29. data/rails_example/app/workers/simple_worker.rb +5 -4
  30. data/rails_example/bin/check_or_setup_db +57 -0
  31. data/rails_example/bin/docker-setup +20 -0
  32. data/rails_example/bin/rails +1 -1
  33. data/rails_example/bin/setup +15 -10
  34. data/rails_example/bin/update +29 -0
  35. data/rails_example/cable.ru +6 -0
  36. data/rails_example/common-services.yml +50 -0
  37. data/rails_example/config/application.rb +5 -4
  38. data/rails_example/config/boot.rb +1 -1
  39. data/rails_example/config/cable.yml +9 -0
  40. data/rails_example/config/database.docker.yml +12 -0
  41. data/rails_example/config/database.yml +15 -22
  42. data/rails_example/config/environment.rb +1 -1
  43. data/rails_example/config/environments/development.rb +24 -11
  44. data/rails_example/config/environments/production.rb +24 -17
  45. data/rails_example/config/environments/test.rb +6 -6
  46. data/rails_example/config/initializers/application_controller_renderer.rb +6 -0
  47. data/rails_example/config/initializers/backtrace_silencers.rb +3 -2
  48. data/rails_example/config/initializers/cookies_serializer.rb +2 -0
  49. data/rails_example/config/initializers/new_framework_defaults.rb +23 -0
  50. data/rails_example/config/initializers/session_store.rb +1 -1
  51. data/rails_example/config/initializers/sidekiq.rb +2 -2
  52. data/rails_example/config/initializers/wrap_parameters.rb +2 -2
  53. data/rails_example/config/puma.rb +38 -0
  54. data/rails_example/config/routes.rb +2 -1
  55. data/rails_example/config/secrets.yml +3 -3
  56. data/rails_example/config/spring.rb +6 -0
  57. data/rails_example/db/migrate/20160724111322_create_posts.rb +12 -0
  58. data/rails_example/db/schema.rb +8 -4
  59. data/rails_example/dev-entrypoint.sh +55 -0
  60. data/rails_example/dev.env +12 -0
  61. data/rails_example/docker-compose.yml +90 -0
  62. data/rails_example/docker/rails.Dockerfile +27 -0
  63. data/rails_example/spec/controllers/work_controller_spec.rb +172 -0
  64. data/rails_example/spec/factories/posts.rb +8 -0
  65. data/rails_example/spec/models/post_spec.rb +4 -0
  66. data/rails_example/spec/rails_helper.rb +21 -0
  67. data/rails_example/spec/spec_helper.rb +20 -0
  68. data/rails_example/spec/support/sidekiq_meta.rb +12 -0
  69. data/rails_example/spec/workers/simple_worker_spec.rb +4 -0
  70. data/spec/jobs/my_unique_job.rb +7 -2
  71. data/spec/jobs/my_unique_job_with_filter_method.rb +17 -0
  72. data/spec/jobs/my_unique_job_with_filter_proc.rb +15 -0
  73. data/spec/jobs/notify_worker.rb +1 -1
  74. data/spec/lib/sidekiq_unique_jobs/client/middleware_spec.rb +34 -0
  75. data/spec/lib/sidekiq_unique_jobs/lock/until_and_while_executing_spec.rb +5 -1
  76. data/spec/lib/sidekiq_unique_jobs/lock/until_executed_spec.rb +5 -8
  77. data/spec/lib/sidekiq_unique_jobs/options_with_fallback_spec.rb +2 -1
  78. data/spec/lib/sidekiq_unique_jobs/script_mock_spec.rb +84 -0
  79. data/spec/lib/sidekiq_unique_jobs/scripts_spec.rb +4 -0
  80. data/spec/lib/sidekiq_unique_jobs/sidekiq_testing_enabled_spec.rb +7 -11
  81. data/spec/lib/sidekiq_unique_jobs/sidekiq_unique_ext_spec.rb +2 -1
  82. data/spec/spec_helper.rb +1 -2
  83. data/spec/support/sidekiq_meta.rb +16 -11
  84. metadata +39 -7
  85. data/rails_example/db/development.sqlite3 +0 -0
  86. data/rails_example/db/migrate/20151107231835_create_posts.rb +0 -10
  87. data/rails_example/db/test.sqlite3 +0 -0
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.17
4
+ version: 4.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-02 00:00:00.000000000 Z
11
+ date: 2016-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -117,6 +117,7 @@ extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
119
  - ".codeclimate.yml"
120
+ - ".dockerignore"
120
121
  - ".editorconfig"
121
122
  - ".fasterer.yml"
122
123
  - ".gitignore"
@@ -160,6 +161,7 @@ files:
160
161
  - lib/sidekiq_unique_jobs/normalizer.rb
161
162
  - lib/sidekiq_unique_jobs/options_with_fallback.rb
162
163
  - lib/sidekiq_unique_jobs/run_lock_failed.rb
164
+ - lib/sidekiq_unique_jobs/script_mock.rb
163
165
  - lib/sidekiq_unique_jobs/scripts.rb
164
166
  - lib/sidekiq_unique_jobs/server/middleware.rb
165
167
  - lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb
@@ -170,7 +172,9 @@ files:
170
172
  - lib/sidekiq_unique_jobs/unlockable.rb
171
173
  - lib/sidekiq_unique_jobs/util.rb
172
174
  - lib/sidekiq_unique_jobs/version.rb
175
+ - rails_example/.env
173
176
  - rails_example/.gitignore
177
+ - rails_example/.rspec
174
178
  - rails_example/Gemfile
175
179
  - rails_example/Procfile
176
180
  - rails_example/README.rdoc
@@ -178,47 +182,66 @@ files:
178
182
  - rails_example/app/assets/images/.keep
179
183
  - rails_example/app/assets/javascripts/application.js
180
184
  - rails_example/app/assets/stylesheets/application.css
185
+ - rails_example/app/channels/appearance_channel.rb
186
+ - rails_example/app/channels/application_cable/channel.rb
187
+ - rails_example/app/channels/application_cable/connection.rb
188
+ - rails_example/app/channels/post_channel.rb
181
189
  - rails_example/app/controllers/application_controller.rb
182
190
  - rails_example/app/controllers/concerns/.keep
183
191
  - rails_example/app/controllers/work_controller.rb
184
192
  - rails_example/app/helpers/application_helper.rb
185
193
  - rails_example/app/mailers/.keep
186
194
  - rails_example/app/models/.keep
195
+ - rails_example/app/models/application_record.rb
187
196
  - rails_example/app/models/concerns/.keep
197
+ - rails_example/app/models/guest.rb
188
198
  - rails_example/app/models/post.rb
189
199
  - rails_example/app/views/layouts/application.html.erb
190
200
  - rails_example/app/workers/simple_worker.rb
191
201
  - rails_example/app/workers/spawn_simple_worker.rb
192
202
  - rails_example/bin/bundle
203
+ - rails_example/bin/check_or_setup_db
204
+ - rails_example/bin/docker-setup
193
205
  - rails_example/bin/rails
194
206
  - rails_example/bin/rake
195
207
  - rails_example/bin/setup
208
+ - rails_example/bin/update
209
+ - rails_example/cable.ru
210
+ - rails_example/common-services.yml
196
211
  - rails_example/config.ru
197
212
  - rails_example/config/application.rb
198
213
  - rails_example/config/boot.rb
214
+ - rails_example/config/cable.yml
215
+ - rails_example/config/database.docker.yml
199
216
  - rails_example/config/database.yml
200
217
  - rails_example/config/environment.rb
201
218
  - rails_example/config/environments/development.rb
202
219
  - rails_example/config/environments/production.rb
203
220
  - rails_example/config/environments/test.rb
221
+ - rails_example/config/initializers/application_controller_renderer.rb
204
222
  - rails_example/config/initializers/assets.rb
205
223
  - rails_example/config/initializers/backtrace_silencers.rb
206
224
  - rails_example/config/initializers/cookies_serializer.rb
207
225
  - rails_example/config/initializers/filter_parameter_logging.rb
208
226
  - rails_example/config/initializers/inflections.rb
209
227
  - rails_example/config/initializers/mime_types.rb
228
+ - rails_example/config/initializers/new_framework_defaults.rb
210
229
  - rails_example/config/initializers/session_store.rb
211
230
  - rails_example/config/initializers/sidekiq.rb
212
231
  - rails_example/config/initializers/wrap_parameters.rb
213
232
  - rails_example/config/locales/en.yml
233
+ - rails_example/config/puma.rb
214
234
  - rails_example/config/routes.rb
215
235
  - rails_example/config/secrets.yml
216
236
  - rails_example/config/sidekiq.yml
217
- - rails_example/db/development.sqlite3
218
- - rails_example/db/migrate/20151107231835_create_posts.rb
237
+ - rails_example/config/spring.rb
238
+ - rails_example/db/migrate/20160724111322_create_posts.rb
219
239
  - rails_example/db/schema.rb
220
240
  - rails_example/db/seeds.rb
221
- - rails_example/db/test.sqlite3
241
+ - rails_example/dev-entrypoint.sh
242
+ - rails_example/dev.env
243
+ - rails_example/docker-compose.yml
244
+ - rails_example/docker/rails.Dockerfile
222
245
  - rails_example/lib/assets/.keep
223
246
  - rails_example/lib/tasks/.keep
224
247
  - rails_example/log/.keep
@@ -228,6 +251,13 @@ files:
228
251
  - rails_example/public/favicon.ico
229
252
  - rails_example/public/robots.txt
230
253
  - rails_example/simple.ru
254
+ - rails_example/spec/controllers/work_controller_spec.rb
255
+ - rails_example/spec/factories/posts.rb
256
+ - rails_example/spec/models/post_spec.rb
257
+ - rails_example/spec/rails_helper.rb
258
+ - rails_example/spec/spec_helper.rb
259
+ - rails_example/spec/support/sidekiq_meta.rb
260
+ - rails_example/spec/workers/simple_worker_spec.rb
231
261
  - rails_example/vendor/assets/javascripts/.keep
232
262
  - rails_example/vendor/assets/stylesheets/.keep
233
263
  - redis/acquire_lock.lua
@@ -246,6 +276,8 @@ files:
246
276
  - spec/jobs/main_job.rb
247
277
  - spec/jobs/my_job.rb
248
278
  - spec/jobs/my_unique_job.rb
279
+ - spec/jobs/my_unique_job_with_filter_method.rb
280
+ - spec/jobs/my_unique_job_with_filter_proc.rb
249
281
  - spec/jobs/notify_worker.rb
250
282
  - spec/jobs/plain_class.rb
251
283
  - spec/jobs/simple_worker.rb
@@ -269,6 +301,7 @@ files:
269
301
  - spec/lib/sidekiq_unique_jobs/options_with_fallback_spec.rb
270
302
  - spec/lib/sidekiq_unique_jobs/queue_lock_timeout_calculator_spec.rb
271
303
  - spec/lib/sidekiq_unique_jobs/run_lock_timeout_calculator_spec.rb
304
+ - spec/lib/sidekiq_unique_jobs/script_mock_spec.rb
272
305
  - spec/lib/sidekiq_unique_jobs/scripts_spec.rb
273
306
  - spec/lib/sidekiq_unique_jobs/server/middleware_spec.rb
274
307
  - spec/lib/sidekiq_unique_jobs/sidekiq_testing_enabled_spec.rb
@@ -304,9 +337,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
304
337
  version: '0'
305
338
  requirements: []
306
339
  rubyforge_project:
307
- rubygems_version: 2.4.5.1
340
+ rubygems_version: 2.5.1
308
341
  signing_key:
309
342
  specification_version: 4
310
343
  summary: The unique jobs that were removed from sidekiq
311
344
  test_files: []
312
- has_rdoc:
@@ -1,10 +0,0 @@
1
- class CreatePosts < ActiveRecord::Migration
2
- def change
3
- create_table :posts do |t|
4
- t.string :title
5
- t.text :body
6
-
7
- t.timestamps null: false
8
- end
9
- end
10
- end