sidekiq-unique-jobs 5.0.2 → 5.0.11

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 (207) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +8 -0
  3. data/.rubocop.yml +20 -13
  4. data/.simplecov +1 -1
  5. data/.travis.yml +30 -20
  6. data/Appraisals +10 -2
  7. data/CHANGELOG.md +33 -0
  8. data/CODE_OF_CONDUCT.md +74 -0
  9. data/Gemfile +13 -12
  10. data/LICENSE.txt +21 -0
  11. data/README.md +48 -4
  12. data/Rakefile +0 -1
  13. data/bin/bench +1 -1
  14. data/lib/sidekiq/simulator.rb +4 -10
  15. data/lib/sidekiq-unique-jobs.rb +16 -6
  16. data/lib/sidekiq_unique_jobs/cli.rb +14 -12
  17. data/lib/sidekiq_unique_jobs/client/middleware.rb +2 -0
  18. data/lib/sidekiq_unique_jobs/config.rb +2 -0
  19. data/lib/sidekiq_unique_jobs/constants.rb +20 -17
  20. data/lib/sidekiq_unique_jobs/core_ext.rb +18 -0
  21. data/lib/sidekiq_unique_jobs/lock/until_and_while_executing.rb +2 -0
  22. data/lib/sidekiq_unique_jobs/lock/until_executed.rb +4 -5
  23. data/lib/sidekiq_unique_jobs/lock/until_executing.rb +2 -0
  24. data/lib/sidekiq_unique_jobs/lock/until_timeout.rb +2 -0
  25. data/lib/sidekiq_unique_jobs/lock/while_executing.rb +10 -9
  26. data/lib/sidekiq_unique_jobs/lock.rb +2 -0
  27. data/lib/sidekiq_unique_jobs/middleware.rb +2 -0
  28. data/lib/sidekiq_unique_jobs/normalizer.rb +3 -1
  29. data/lib/sidekiq_unique_jobs/options_with_fallback.rb +22 -3
  30. data/lib/sidekiq_unique_jobs/run_lock_failed.rb +2 -0
  31. data/lib/sidekiq_unique_jobs/script_mock.rb +16 -15
  32. data/lib/sidekiq_unique_jobs/scripts/acquire_lock.rb +2 -0
  33. data/lib/sidekiq_unique_jobs/scripts/release_lock.rb +2 -0
  34. data/lib/sidekiq_unique_jobs/scripts.rb +17 -12
  35. data/lib/sidekiq_unique_jobs/server/middleware.rb +2 -0
  36. data/lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb +4 -14
  37. data/lib/sidekiq_unique_jobs/testing/sidekiq_overrides.rb +2 -0
  38. data/lib/sidekiq_unique_jobs/testing.rb +4 -2
  39. data/lib/sidekiq_unique_jobs/timeout_calculator.rb +2 -0
  40. data/lib/sidekiq_unique_jobs/unique_args.rb +27 -14
  41. data/lib/sidekiq_unique_jobs/unlockable.rb +6 -6
  42. data/lib/sidekiq_unique_jobs/util.rb +34 -14
  43. data/lib/sidekiq_unique_jobs/version.rb +3 -1
  44. data/redis/acquire_lock.lua +1 -1
  45. data/sidekiq-unique-jobs.gemspec +27 -23
  46. metadata +44 -212
  47. data/LICENSE +0 -13
  48. data/circle.yml +0 -41
  49. data/gemfiles/sidekiq_4.0.gemfile +0 -22
  50. data/gemfiles/sidekiq_4.1.gemfile +0 -22
  51. data/gemfiles/sidekiq_4.2.gemfile +0 -22
  52. data/gemfiles/sidekiq_5.0.gemfile +0 -22
  53. data/gemfiles/sidekiq_develop.gemfile +0 -22
  54. data/rails_example/.env +0 -12
  55. data/rails_example/.env.test +0 -12
  56. data/rails_example/.gitignore +0 -13
  57. data/rails_example/.rspec +0 -2
  58. data/rails_example/Gemfile +0 -38
  59. data/rails_example/Procfile +0 -2
  60. data/rails_example/README.rdoc +0 -28
  61. data/rails_example/Rakefile +0 -6
  62. data/rails_example/app/assets/images/.keep +0 -0
  63. data/rails_example/app/assets/javascripts/application.js +0 -16
  64. data/rails_example/app/assets/stylesheets/application.css +0 -15
  65. data/rails_example/app/channels/appearance_channel.rb +0 -17
  66. data/rails_example/app/channels/application_cable/channel.rb +0 -4
  67. data/rails_example/app/channels/application_cable/connection.rb +0 -9
  68. data/rails_example/app/channels/post_channel.rb +0 -5
  69. data/rails_example/app/controllers/application_controller.rb +0 -5
  70. data/rails_example/app/controllers/concerns/.keep +0 -0
  71. data/rails_example/app/controllers/work_controller.rb +0 -39
  72. data/rails_example/app/helpers/application_helper.rb +0 -2
  73. data/rails_example/app/mailers/.keep +0 -0
  74. data/rails_example/app/models/.keep +0 -0
  75. data/rails_example/app/models/application_record.rb +0 -3
  76. data/rails_example/app/models/concerns/.keep +0 -0
  77. data/rails_example/app/models/guest.rb +0 -18
  78. data/rails_example/app/models/post.rb +0 -2
  79. data/rails_example/app/views/layouts/application.html.erb +0 -15
  80. data/rails_example/app/workers/simple_worker.rb +0 -15
  81. data/rails_example/app/workers/slow_until_executing_worker.rb +0 -15
  82. data/rails_example/app/workers/spawn_simple_worker.rb +0 -10
  83. data/rails_example/app/workers/while_executing_worker.rb +0 -12
  84. data/rails_example/app/workers/without_args_worker.rb +0 -16
  85. data/rails_example/app/workers/without_argument_worker.rb +0 -12
  86. data/rails_example/bin/bundle +0 -3
  87. data/rails_example/bin/check_or_setup_db +0 -56
  88. data/rails_example/bin/docker-setup +0 -20
  89. data/rails_example/bin/rails +0 -4
  90. data/rails_example/bin/rake +0 -4
  91. data/rails_example/bin/setup +0 -34
  92. data/rails_example/bin/update +0 -29
  93. data/rails_example/cable.ru +0 -6
  94. data/rails_example/common-services.yml +0 -52
  95. data/rails_example/config/application.rb +0 -27
  96. data/rails_example/config/boot.rb +0 -3
  97. data/rails_example/config/cable.yml +0 -9
  98. data/rails_example/config/database.docker.yml +0 -12
  99. data/rails_example/config/database.yml +0 -19
  100. data/rails_example/config/environment.rb +0 -5
  101. data/rails_example/config/environments/development.rb +0 -54
  102. data/rails_example/config/environments/production.rb +0 -86
  103. data/rails_example/config/environments/test.rb +0 -42
  104. data/rails_example/config/initializers/application_controller_renderer.rb +0 -6
  105. data/rails_example/config/initializers/assets.rb +0 -11
  106. data/rails_example/config/initializers/backtrace_silencers.rb +0 -9
  107. data/rails_example/config/initializers/cookies_serializer.rb +0 -5
  108. data/rails_example/config/initializers/filter_parameter_logging.rb +0 -4
  109. data/rails_example/config/initializers/inflections.rb +0 -16
  110. data/rails_example/config/initializers/mime_types.rb +0 -4
  111. data/rails_example/config/initializers/new_framework_defaults.rb +0 -23
  112. data/rails_example/config/initializers/session_store.rb +0 -3
  113. data/rails_example/config/initializers/sidekiq.rb +0 -13
  114. data/rails_example/config/initializers/wrap_parameters.rb +0 -14
  115. data/rails_example/config/locales/en.yml +0 -23
  116. data/rails_example/config/puma.rb +0 -38
  117. data/rails_example/config/routes.rb +0 -8
  118. data/rails_example/config/secrets.yml +0 -22
  119. data/rails_example/config/sidekiq.yml +0 -6
  120. data/rails_example/config/spring.rb +0 -6
  121. data/rails_example/config.ru +0 -4
  122. data/rails_example/db/migrate/20160724111322_create_posts.rb +0 -12
  123. data/rails_example/db/schema.rb +0 -25
  124. data/rails_example/db/seeds.rb +0 -7
  125. data/rails_example/dev-entrypoint.sh +0 -55
  126. data/rails_example/dev.env +0 -12
  127. data/rails_example/docker/rails.Dockerfile +0 -27
  128. data/rails_example/docker-compose.yml +0 -71
  129. data/rails_example/lib/assets/.keep +0 -0
  130. data/rails_example/lib/tasks/.keep +0 -0
  131. data/rails_example/log/.keep +0 -0
  132. data/rails_example/public/404.html +0 -67
  133. data/rails_example/public/422.html +0 -67
  134. data/rails_example/public/500.html +0 -66
  135. data/rails_example/public/favicon.ico +0 -0
  136. data/rails_example/public/robots.txt +0 -5
  137. data/rails_example/simple.ru +0 -12
  138. data/rails_example/spec/controllers/work_controller_mock_spec.rb +0 -91
  139. data/rails_example/spec/controllers/work_controller_spec.rb +0 -77
  140. data/rails_example/spec/factories/posts.rb +0 -8
  141. data/rails_example/spec/models/post_spec.rb +0 -4
  142. data/rails_example/spec/rails_helper.rb +0 -20
  143. data/rails_example/spec/spec_helper.rb +0 -20
  144. data/rails_example/spec/support/sidekiq_meta.rb +0 -12
  145. data/rails_example/spec/workers/simple_worker_spec.rb +0 -4
  146. data/rails_example/vendor/assets/javascripts/.keep +0 -0
  147. data/rails_example/vendor/assets/stylesheets/.keep +0 -0
  148. data/spec/jobs/another_unique_job.rb +0 -13
  149. data/spec/jobs/custom_queue_job.rb +0 -5
  150. data/spec/jobs/custom_queue_job_with_filter_method.rb +0 -7
  151. data/spec/jobs/custom_queue_job_with_filter_proc.rb +0 -10
  152. data/spec/jobs/expiring_job.rb +0 -4
  153. data/spec/jobs/inline_worker.rb +0 -8
  154. data/spec/jobs/just_a_worker.rb +0 -7
  155. data/spec/jobs/long_running_job.rb +0 -6
  156. data/spec/jobs/main_job.rb +0 -7
  157. data/spec/jobs/my_job.rb +0 -12
  158. data/spec/jobs/my_unique_job.rb +0 -11
  159. data/spec/jobs/my_unique_job_with_filter_method.rb +0 -17
  160. data/spec/jobs/my_unique_job_with_filter_proc.rb +0 -15
  161. data/spec/jobs/notify_worker.rb +0 -10
  162. data/spec/jobs/plain_class.rb +0 -3
  163. data/spec/jobs/simple_worker.rb +0 -11
  164. data/spec/jobs/spawn_simple_worker.rb +0 -8
  165. data/spec/jobs/test_class.rb +0 -3
  166. data/spec/jobs/unique_job_with_conditional_parameter.rb +0 -14
  167. data/spec/jobs/unique_job_with_filter_method.rb +0 -18
  168. data/spec/jobs/unique_job_with_nil_unique_args.rb +0 -16
  169. data/spec/jobs/unique_job_with_no_unique_args_method.rb +0 -12
  170. data/spec/jobs/unique_job_withthout_unique_args_parameter.rb +0 -14
  171. data/spec/jobs/unique_on_all_queues_job.rb +0 -13
  172. data/spec/jobs/until_and_while_executing_job.rb +0 -7
  173. data/spec/jobs/until_executed_job.rb +0 -17
  174. data/spec/jobs/until_executing_job.rb +0 -7
  175. data/spec/jobs/until_global_timeout_job.rb +0 -8
  176. data/spec/jobs/until_timeout_job.rb +0 -8
  177. data/spec/jobs/while_executing_job.rb +0 -12
  178. data/spec/jobs/without_argument_job.rb +0 -9
  179. data/spec/lib/sidekiq_unique_jobs/cli_spec.rb +0 -183
  180. data/spec/lib/sidekiq_unique_jobs/client/middleware_spec.rb +0 -316
  181. data/spec/lib/sidekiq_unique_jobs/config_spec.rb +0 -84
  182. data/spec/lib/sidekiq_unique_jobs/core_ext_spec.rb +0 -25
  183. data/spec/lib/sidekiq_unique_jobs/lock/until_and_while_executing_spec.rb +0 -42
  184. data/spec/lib/sidekiq_unique_jobs/lock/until_executed_spec.rb +0 -37
  185. data/spec/lib/sidekiq_unique_jobs/lock/until_timeout_spec.rb +0 -26
  186. data/spec/lib/sidekiq_unique_jobs/lock/while_executing_spec.rb +0 -86
  187. data/spec/lib/sidekiq_unique_jobs/normalizer_spec.rb +0 -21
  188. data/spec/lib/sidekiq_unique_jobs/options_with_fallback_spec.rb +0 -113
  189. data/spec/lib/sidekiq_unique_jobs/queue_lock_timeout_calculator_spec.rb +0 -47
  190. data/spec/lib/sidekiq_unique_jobs/run_lock_timeout_calculator_spec.rb +0 -36
  191. data/spec/lib/sidekiq_unique_jobs/script_mock_spec.rb +0 -88
  192. data/spec/lib/sidekiq_unique_jobs/scripts/acquire_lock_spec.rb +0 -50
  193. data/spec/lib/sidekiq_unique_jobs/scripts/release_lock_spec.rb +0 -41
  194. data/spec/lib/sidekiq_unique_jobs/scripts_spec.rb +0 -68
  195. data/spec/lib/sidekiq_unique_jobs/server/middleware_spec.rb +0 -78
  196. data/spec/lib/sidekiq_unique_jobs/sidekiq_testing_enabled_spec.rb +0 -164
  197. data/spec/lib/sidekiq_unique_jobs/sidekiq_unique_ext_spec.rb +0 -75
  198. data/spec/lib/sidekiq_unique_jobs/sidekiq_unique_jobs_spec.rb +0 -41
  199. data/spec/lib/sidekiq_unique_jobs/timeout_calculator_spec.rb +0 -70
  200. data/spec/lib/sidekiq_unique_jobs/unique_args_spec.rb +0 -257
  201. data/spec/lib/sidekiq_unique_jobs/unlockable_spec.rb +0 -37
  202. data/spec/lib/sidekiq_unique_jobs/util_spec.rb +0 -81
  203. data/spec/spec_helper.rb +0 -92
  204. data/spec/support/matchers/redis_matchers.rb +0 -29
  205. data/spec/support/ruby_meta.rb +0 -17
  206. data/spec/support/sidekiq_meta.rb +0 -30
  207. data/spec/support/unique_macros.rb +0 -71
@@ -1,28 +1,32 @@
1
- # rubocop:disable Style/FileName
1
+ # frozen_string_literal: true
2
2
 
3
3
  require File.expand_path('../lib/sidekiq_unique_jobs/version', __FILE__)
4
4
 
5
- Gem::Specification.new do |gem|
6
- gem.authors = ['Mikael Henriksson']
7
- gem.email = ['mikael@zoolutions.se']
8
- gem.description = gem.summary = 'The unique jobs that were removed from sidekiq'
9
- gem.homepage = 'https://github.com/mhenrixon/sidekiq-unique-jobs'
10
- gem.license = 'WTFPL-2.0'
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'sidekiq-unique-jobs'
7
+ spec.version = SidekiqUniqueJobs::VERSION
8
+ spec.authors = ['Mikael Henriksson']
9
+ spec.email = ['mikael@zoolutions.se']
11
10
 
12
- gem.executables = %w[jobs]
13
- gem.files = `git ls-files`.split("\n")
14
- gem.test_files = `git ls-files -- test/*`.split("\n")
15
- gem.name = 'sidekiq-unique-jobs'
16
- gem.require_paths = ['lib']
17
- gem.post_install_message = 'WARNING: VERSION 4.0.0 HAS BREAKING CHANGES! Please see Readme for info'
18
- gem.version = SidekiqUniqueJobs::VERSION
19
- gem.add_dependency 'sidekiq', '>= 4.0'
20
- gem.add_dependency 'thor', '>= 0'
21
- gem.add_development_dependency 'rspec', '~> 3.1'
22
- gem.add_development_dependency 'rake'
23
- gem.add_development_dependency 'timecop'
24
- gem.add_development_dependency 'yard'
25
- gem.add_development_dependency 'gem-release'
26
- gem.add_development_dependency 'aruba'
27
- gem.add_development_dependency 'codeclimate-test-reporter', '~> 1.0.0'
11
+ spec.summary = 'Uniqueness for Sidekiq Jobs'
12
+ spec.description = 'Handles various types of unique jobs for Sidekiq'
13
+ spec.homepage = 'https://github.com/mhenrixon/sidekiq-unique-jobs'
14
+ spec.license = 'MIT'
15
+
16
+ spec.bindir = 'bin'
17
+ spec.executables = %w[jobs]
18
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
+ f.match(%r{^(test|spec|features|gemfiles|pkg|rails_example|tmp)/})
20
+ end
21
+
22
+ spec.require_paths = ['lib']
23
+ spec.add_dependency 'sidekiq', '>= 4.0', '< 6.0'
24
+ spec.add_dependency 'concurrent-ruby', '>= 1.0.2'
25
+ spec.add_dependency 'thor', '~> 0'
26
+
27
+ spec.add_development_dependency 'rspec', '~> 3.1'
28
+ spec.add_development_dependency 'rake', '~> 12.0'
29
+ spec.add_development_dependency 'timecop', '~> 0.8'
30
+ spec.add_development_dependency 'yard', '~> 0.9'
31
+ spec.add_development_dependency 'gem-release', '~> 0.7'
28
32
  end
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: 5.0.2
4
+ version: 5.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-17 00:00:00.000000000 Z
11
+ date: 2018-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '6.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,119 +27,108 @@ dependencies:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '4.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '6.0'
27
33
  - !ruby/object:Gem::Dependency
28
- name: thor
34
+ name: concurrent-ruby
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - ">="
32
38
  - !ruby/object:Gem::Version
33
- version: '0'
39
+ version: 1.0.2
34
40
  type: :runtime
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
44
  - - ">="
39
45
  - !ruby/object:Gem::Version
40
- version: '0'
46
+ version: 1.0.2
41
47
  - !ruby/object:Gem::Dependency
42
- name: rspec
48
+ name: thor
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
51
  - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '3.1'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '3.1'
55
- - !ruby/object:Gem::Dependency
56
- name: rake
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
52
  - !ruby/object:Gem::Version
61
53
  version: '0'
62
- type: :development
54
+ type: :runtime
63
55
  prerelease: false
64
56
  version_requirements: !ruby/object:Gem::Requirement
65
57
  requirements:
66
- - - ">="
58
+ - - "~>"
67
59
  - !ruby/object:Gem::Version
68
60
  version: '0'
69
61
  - !ruby/object:Gem::Dependency
70
- name: timecop
62
+ name: rspec
71
63
  requirement: !ruby/object:Gem::Requirement
72
64
  requirements:
73
- - - ">="
65
+ - - "~>"
74
66
  - !ruby/object:Gem::Version
75
- version: '0'
67
+ version: '3.1'
76
68
  type: :development
77
69
  prerelease: false
78
70
  version_requirements: !ruby/object:Gem::Requirement
79
71
  requirements:
80
- - - ">="
72
+ - - "~>"
81
73
  - !ruby/object:Gem::Version
82
- version: '0'
74
+ version: '3.1'
83
75
  - !ruby/object:Gem::Dependency
84
- name: yard
76
+ name: rake
85
77
  requirement: !ruby/object:Gem::Requirement
86
78
  requirements:
87
- - - ">="
79
+ - - "~>"
88
80
  - !ruby/object:Gem::Version
89
- version: '0'
81
+ version: '12.0'
90
82
  type: :development
91
83
  prerelease: false
92
84
  version_requirements: !ruby/object:Gem::Requirement
93
85
  requirements:
94
- - - ">="
86
+ - - "~>"
95
87
  - !ruby/object:Gem::Version
96
- version: '0'
88
+ version: '12.0'
97
89
  - !ruby/object:Gem::Dependency
98
- name: gem-release
90
+ name: timecop
99
91
  requirement: !ruby/object:Gem::Requirement
100
92
  requirements:
101
- - - ">="
93
+ - - "~>"
102
94
  - !ruby/object:Gem::Version
103
- version: '0'
95
+ version: '0.8'
104
96
  type: :development
105
97
  prerelease: false
106
98
  version_requirements: !ruby/object:Gem::Requirement
107
99
  requirements:
108
- - - ">="
100
+ - - "~>"
109
101
  - !ruby/object:Gem::Version
110
- version: '0'
102
+ version: '0.8'
111
103
  - !ruby/object:Gem::Dependency
112
- name: aruba
104
+ name: yard
113
105
  requirement: !ruby/object:Gem::Requirement
114
106
  requirements:
115
- - - ">="
107
+ - - "~>"
116
108
  - !ruby/object:Gem::Version
117
- version: '0'
109
+ version: '0.9'
118
110
  type: :development
119
111
  prerelease: false
120
112
  version_requirements: !ruby/object:Gem::Requirement
121
113
  requirements:
122
- - - ">="
114
+ - - "~>"
123
115
  - !ruby/object:Gem::Version
124
- version: '0'
116
+ version: '0.9'
125
117
  - !ruby/object:Gem::Dependency
126
- name: codeclimate-test-reporter
118
+ name: gem-release
127
119
  requirement: !ruby/object:Gem::Requirement
128
120
  requirements:
129
121
  - - "~>"
130
122
  - !ruby/object:Gem::Version
131
- version: 1.0.0
123
+ version: '0.7'
132
124
  type: :development
133
125
  prerelease: false
134
126
  version_requirements: !ruby/object:Gem::Requirement
135
127
  requirements:
136
128
  - - "~>"
137
129
  - !ruby/object:Gem::Version
138
- version: 1.0.0
139
- description: The unique jobs that were removed from sidekiq
130
+ version: '0.7'
131
+ description: Handles various types of unique jobs for Sidekiq
140
132
  email:
141
133
  - mikael@zoolutions.se
142
134
  executables:
@@ -158,18 +150,13 @@ files:
158
150
  - ".travis.yml"
159
151
  - Appraisals
160
152
  - CHANGELOG.md
153
+ - CODE_OF_CONDUCT.md
161
154
  - Gemfile
162
- - LICENSE
155
+ - LICENSE.txt
163
156
  - README.md
164
157
  - Rakefile
165
158
  - bin/bench
166
159
  - bin/jobs
167
- - circle.yml
168
- - gemfiles/sidekiq_4.0.gemfile
169
- - gemfiles/sidekiq_4.1.gemfile
170
- - gemfiles/sidekiq_4.2.gemfile
171
- - gemfiles/sidekiq_5.0.gemfile
172
- - gemfiles/sidekiq_develop.gemfile
173
160
  - lib/sidekiq-unique-jobs.rb
174
161
  - lib/sidekiq/simulator.rb
175
162
  - lib/sidekiq_unique_jobs/cli.rb
@@ -200,170 +187,15 @@ files:
200
187
  - lib/sidekiq_unique_jobs/unlockable.rb
201
188
  - lib/sidekiq_unique_jobs/util.rb
202
189
  - lib/sidekiq_unique_jobs/version.rb
203
- - rails_example/.env
204
- - rails_example/.env.test
205
- - rails_example/.gitignore
206
- - rails_example/.rspec
207
- - rails_example/Gemfile
208
- - rails_example/Procfile
209
- - rails_example/README.rdoc
210
- - rails_example/Rakefile
211
- - rails_example/app/assets/images/.keep
212
- - rails_example/app/assets/javascripts/application.js
213
- - rails_example/app/assets/stylesheets/application.css
214
- - rails_example/app/channels/appearance_channel.rb
215
- - rails_example/app/channels/application_cable/channel.rb
216
- - rails_example/app/channels/application_cable/connection.rb
217
- - rails_example/app/channels/post_channel.rb
218
- - rails_example/app/controllers/application_controller.rb
219
- - rails_example/app/controllers/concerns/.keep
220
- - rails_example/app/controllers/work_controller.rb
221
- - rails_example/app/helpers/application_helper.rb
222
- - rails_example/app/mailers/.keep
223
- - rails_example/app/models/.keep
224
- - rails_example/app/models/application_record.rb
225
- - rails_example/app/models/concerns/.keep
226
- - rails_example/app/models/guest.rb
227
- - rails_example/app/models/post.rb
228
- - rails_example/app/views/layouts/application.html.erb
229
- - rails_example/app/workers/simple_worker.rb
230
- - rails_example/app/workers/slow_until_executing_worker.rb
231
- - rails_example/app/workers/spawn_simple_worker.rb
232
- - rails_example/app/workers/while_executing_worker.rb
233
- - rails_example/app/workers/without_args_worker.rb
234
- - rails_example/app/workers/without_argument_worker.rb
235
- - rails_example/bin/bundle
236
- - rails_example/bin/check_or_setup_db
237
- - rails_example/bin/docker-setup
238
- - rails_example/bin/rails
239
- - rails_example/bin/rake
240
- - rails_example/bin/setup
241
- - rails_example/bin/update
242
- - rails_example/cable.ru
243
- - rails_example/common-services.yml
244
- - rails_example/config.ru
245
- - rails_example/config/application.rb
246
- - rails_example/config/boot.rb
247
- - rails_example/config/cable.yml
248
- - rails_example/config/database.docker.yml
249
- - rails_example/config/database.yml
250
- - rails_example/config/environment.rb
251
- - rails_example/config/environments/development.rb
252
- - rails_example/config/environments/production.rb
253
- - rails_example/config/environments/test.rb
254
- - rails_example/config/initializers/application_controller_renderer.rb
255
- - rails_example/config/initializers/assets.rb
256
- - rails_example/config/initializers/backtrace_silencers.rb
257
- - rails_example/config/initializers/cookies_serializer.rb
258
- - rails_example/config/initializers/filter_parameter_logging.rb
259
- - rails_example/config/initializers/inflections.rb
260
- - rails_example/config/initializers/mime_types.rb
261
- - rails_example/config/initializers/new_framework_defaults.rb
262
- - rails_example/config/initializers/session_store.rb
263
- - rails_example/config/initializers/sidekiq.rb
264
- - rails_example/config/initializers/wrap_parameters.rb
265
- - rails_example/config/locales/en.yml
266
- - rails_example/config/puma.rb
267
- - rails_example/config/routes.rb
268
- - rails_example/config/secrets.yml
269
- - rails_example/config/sidekiq.yml
270
- - rails_example/config/spring.rb
271
- - rails_example/db/migrate/20160724111322_create_posts.rb
272
- - rails_example/db/schema.rb
273
- - rails_example/db/seeds.rb
274
- - rails_example/dev-entrypoint.sh
275
- - rails_example/dev.env
276
- - rails_example/docker-compose.yml
277
- - rails_example/docker/rails.Dockerfile
278
- - rails_example/lib/assets/.keep
279
- - rails_example/lib/tasks/.keep
280
- - rails_example/log/.keep
281
- - rails_example/public/404.html
282
- - rails_example/public/422.html
283
- - rails_example/public/500.html
284
- - rails_example/public/favicon.ico
285
- - rails_example/public/robots.txt
286
- - rails_example/simple.ru
287
- - rails_example/spec/controllers/work_controller_mock_spec.rb
288
- - rails_example/spec/controllers/work_controller_spec.rb
289
- - rails_example/spec/factories/posts.rb
290
- - rails_example/spec/models/post_spec.rb
291
- - rails_example/spec/rails_helper.rb
292
- - rails_example/spec/spec_helper.rb
293
- - rails_example/spec/support/sidekiq_meta.rb
294
- - rails_example/spec/workers/simple_worker_spec.rb
295
- - rails_example/vendor/assets/javascripts/.keep
296
- - rails_example/vendor/assets/stylesheets/.keep
297
190
  - redis/acquire_lock.lua
298
191
  - redis/release_lock.lua
299
192
  - redis/synchronize.lua
300
193
  - sidekiq-unique-jobs.gemspec
301
- - spec/jobs/another_unique_job.rb
302
- - spec/jobs/custom_queue_job.rb
303
- - spec/jobs/custom_queue_job_with_filter_method.rb
304
- - spec/jobs/custom_queue_job_with_filter_proc.rb
305
- - spec/jobs/expiring_job.rb
306
- - spec/jobs/inline_worker.rb
307
- - spec/jobs/just_a_worker.rb
308
- - spec/jobs/long_running_job.rb
309
- - spec/jobs/main_job.rb
310
- - spec/jobs/my_job.rb
311
- - spec/jobs/my_unique_job.rb
312
- - spec/jobs/my_unique_job_with_filter_method.rb
313
- - spec/jobs/my_unique_job_with_filter_proc.rb
314
- - spec/jobs/notify_worker.rb
315
- - spec/jobs/plain_class.rb
316
- - spec/jobs/simple_worker.rb
317
- - spec/jobs/spawn_simple_worker.rb
318
- - spec/jobs/test_class.rb
319
- - spec/jobs/unique_job_with_conditional_parameter.rb
320
- - spec/jobs/unique_job_with_filter_method.rb
321
- - spec/jobs/unique_job_with_nil_unique_args.rb
322
- - spec/jobs/unique_job_with_no_unique_args_method.rb
323
- - spec/jobs/unique_job_withthout_unique_args_parameter.rb
324
- - spec/jobs/unique_on_all_queues_job.rb
325
- - spec/jobs/until_and_while_executing_job.rb
326
- - spec/jobs/until_executed_job.rb
327
- - spec/jobs/until_executing_job.rb
328
- - spec/jobs/until_global_timeout_job.rb
329
- - spec/jobs/until_timeout_job.rb
330
- - spec/jobs/while_executing_job.rb
331
- - spec/jobs/without_argument_job.rb
332
- - spec/lib/sidekiq_unique_jobs/cli_spec.rb
333
- - spec/lib/sidekiq_unique_jobs/client/middleware_spec.rb
334
- - spec/lib/sidekiq_unique_jobs/config_spec.rb
335
- - spec/lib/sidekiq_unique_jobs/core_ext_spec.rb
336
- - spec/lib/sidekiq_unique_jobs/lock/until_and_while_executing_spec.rb
337
- - spec/lib/sidekiq_unique_jobs/lock/until_executed_spec.rb
338
- - spec/lib/sidekiq_unique_jobs/lock/until_timeout_spec.rb
339
- - spec/lib/sidekiq_unique_jobs/lock/while_executing_spec.rb
340
- - spec/lib/sidekiq_unique_jobs/normalizer_spec.rb
341
- - spec/lib/sidekiq_unique_jobs/options_with_fallback_spec.rb
342
- - spec/lib/sidekiq_unique_jobs/queue_lock_timeout_calculator_spec.rb
343
- - spec/lib/sidekiq_unique_jobs/run_lock_timeout_calculator_spec.rb
344
- - spec/lib/sidekiq_unique_jobs/script_mock_spec.rb
345
- - spec/lib/sidekiq_unique_jobs/scripts/acquire_lock_spec.rb
346
- - spec/lib/sidekiq_unique_jobs/scripts/release_lock_spec.rb
347
- - spec/lib/sidekiq_unique_jobs/scripts_spec.rb
348
- - spec/lib/sidekiq_unique_jobs/server/middleware_spec.rb
349
- - spec/lib/sidekiq_unique_jobs/sidekiq_testing_enabled_spec.rb
350
- - spec/lib/sidekiq_unique_jobs/sidekiq_unique_ext_spec.rb
351
- - spec/lib/sidekiq_unique_jobs/sidekiq_unique_jobs_spec.rb
352
- - spec/lib/sidekiq_unique_jobs/timeout_calculator_spec.rb
353
- - spec/lib/sidekiq_unique_jobs/unique_args_spec.rb
354
- - spec/lib/sidekiq_unique_jobs/unlockable_spec.rb
355
- - spec/lib/sidekiq_unique_jobs/util_spec.rb
356
- - spec/spec_helper.rb
357
- - spec/support/matchers/redis_matchers.rb
358
- - spec/support/ruby_meta.rb
359
- - spec/support/sidekiq_meta.rb
360
- - spec/support/unique_macros.rb
361
194
  homepage: https://github.com/mhenrixon/sidekiq-unique-jobs
362
195
  licenses:
363
- - WTFPL-2.0
196
+ - MIT
364
197
  metadata: {}
365
- post_install_message: 'WARNING: VERSION 4.0.0 HAS BREAKING CHANGES! Please see Readme
366
- for info'
198
+ post_install_message:
367
199
  rdoc_options: []
368
200
  require_paths:
369
201
  - lib
@@ -379,8 +211,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
379
211
  version: '0'
380
212
  requirements: []
381
213
  rubyforge_project:
382
- rubygems_version: 2.6.11
214
+ rubygems_version: 2.7.7
383
215
  signing_key:
384
216
  specification_version: 4
385
- summary: The unique jobs that were removed from sidekiq
217
+ summary: Uniqueness for Sidekiq Jobs
386
218
  test_files: []
data/LICENSE DELETED
@@ -1,13 +0,0 @@
1
- DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2
- Version 2, December 2004
3
-
4
- Copyright (C) 2015 Mikael Henriksson <mikael@zoolutions.se>
5
-
6
- Everyone is permitted to copy and distribute verbatim or modified
7
- copies of this license document, and changing it is allowed as long
8
- as the name is changed.
9
-
10
- DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12
-
13
- 0. You just DO WHAT THE FUCK YOU WANT TO.
data/circle.yml DELETED
@@ -1,41 +0,0 @@
1
- machine:
2
- ruby:
3
- version:
4
- 2.3.0
5
- java:
6
- version: oraclejdk8
7
- environment:
8
- JRUBY_OPTS: '-J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -X-C -Xcompile.invokedynamic=false --1.9 -J-Xmx1g'
9
-
10
- dependencies:
11
- pre:
12
- - rvm install jruby-9.0.0.0
13
- - rvm install jruby-1.7
14
- - rvm install rbx-2
15
- - rvm install 2.0.0
16
- - rvm install 2.1.7
17
- - rvm install 2.2.3
18
- override:
19
- - rvm-exec jruby-9.0.0.0 bundle install
20
- - rvm-exec jruby-1.7 bundle install
21
- - rvm-exec rbx-2 bundle install
22
- - rvm-exec 2.0.0 bundle install
23
- - rvm-exec 2.1.8 bundle install
24
- - rvm-exec 2.2.4 bundle install
25
- - rvm-exec jruby-9.0.0.0 bundle exec appraisal install
26
- - rvm-exec jruby-1.7 bundle exec appraisal install
27
- - rvm-exec rbx-2 bundle exec appraisal install
28
- - rvm-exec 2.0.0 bundle exec appraisal install
29
- - rvm-exec 2.1.7 bundle exec appraisal install
30
- - rvm-exec 2.2.3 bundle exec appraisal install
31
- - rvm-exec 2.3.0 bundle exec appraisal install
32
-
33
- test:
34
- override:
35
- - rvm-exec jruby-9.0.0.0 bundle exec appraisal rspec
36
- - rvm-exec jruby-1.7 bundle exec appraisal rspec
37
- - rvm-exec rbx-2 bundle exec appraisal rspec
38
- - rvm-exec 2.0.0 bundle exec appraisal rspec
39
- - rvm-exec 2.1.7 bundle exec appraisal rspec
40
- - rvm-exec 2.2.3 bundle exec appraisal rspec
41
- - rvm-exec 2.3.0 bundle exec appraisal rspec
@@ -1,22 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal", "~> 2.0.0"
6
- gem "rspec-its", :require => false
7
- gem "rspec-wait", :require => false
8
- gem "sidekiq", "~> 4.0.0"
9
-
10
- platforms :mri_24 do
11
- gem "benchmark-ips", :require => false
12
- gem "codeclimate-test-reporter", :require => false
13
- gem "fasterer", :require => false
14
- gem "memory_profiler", :require => false
15
- gem "mock_redis", :require => false
16
- gem "pry-byebug", :require => false
17
- gem "rubocop", :require => false
18
- gem "simplecov-json", :require => false
19
- gem "travis", :require => false
20
- end
21
-
22
- gemspec :path => "../"
@@ -1,22 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal", "~> 2.0.0"
6
- gem "rspec-its", :require => false
7
- gem "rspec-wait", :require => false
8
- gem "sidekiq", "~> 4.1.0"
9
-
10
- platforms :mri_24 do
11
- gem "benchmark-ips", :require => false
12
- gem "codeclimate-test-reporter", :require => false
13
- gem "fasterer", :require => false
14
- gem "memory_profiler", :require => false
15
- gem "mock_redis", :require => false
16
- gem "pry-byebug", :require => false
17
- gem "rubocop", :require => false
18
- gem "simplecov-json", :require => false
19
- gem "travis", :require => false
20
- end
21
-
22
- gemspec :path => "../"
@@ -1,22 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal", "~> 2.0.0"
6
- gem "rspec-its", :require => false
7
- gem "rspec-wait", :require => false
8
- gem "sidekiq", "~> 4.2.0"
9
-
10
- platforms :mri_24 do
11
- gem "benchmark-ips", :require => false
12
- gem "codeclimate-test-reporter", :require => false
13
- gem "fasterer", :require => false
14
- gem "memory_profiler", :require => false
15
- gem "mock_redis", :require => false
16
- gem "pry-byebug", :require => false
17
- gem "rubocop", :require => false
18
- gem "simplecov-json", :require => false
19
- gem "travis", :require => false
20
- end
21
-
22
- gemspec :path => "../"
@@ -1,22 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal", "~> 2.0.0"
6
- gem "rspec-its", :require => false
7
- gem "rspec-wait", :require => false
8
- gem "sidekiq", ">= 5.0.0.beta", "< 6"
9
-
10
- platforms :mri_24 do
11
- gem "benchmark-ips", :require => false
12
- gem "codeclimate-test-reporter", :require => false
13
- gem "fasterer", :require => false
14
- gem "memory_profiler", :require => false
15
- gem "mock_redis", :require => false
16
- gem "pry-byebug", :require => false
17
- gem "rubocop", :require => false
18
- gem "simplecov-json", :require => false
19
- gem "travis", :require => false
20
- end
21
-
22
- gemspec :path => "../"
@@ -1,22 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal", "~> 2.0.0"
6
- gem "rspec-its", :require => false
7
- gem "rspec-wait", :require => false
8
- gem "sidekiq", :github => "mperham/sidekiq"
9
-
10
- platforms :mri_24 do
11
- gem "benchmark-ips", :require => false
12
- gem "codeclimate-test-reporter", :require => false
13
- gem "fasterer", :require => false
14
- gem "memory_profiler", :require => false
15
- gem "mock_redis", :require => false
16
- gem "pry-byebug", :require => false
17
- gem "rubocop", :require => false
18
- gem "simplecov-json", :require => false
19
- gem "travis", :require => false
20
- end
21
-
22
- gemspec :path => "../"
data/rails_example/.env DELETED
@@ -1,12 +0,0 @@
1
- SECRET_KEY_BASE=10167c7f7654ed02b3557b05b88ece1866a9748a2e8e064016f76cb74ddae38264f7403ba65f301d63c21d770e0ee2ac6906f245e904b3b140d12297f67e0db1
2
- APP_DOMAIN=localhost
3
- APP_WEB_URL=http://localhost:3000
4
- APP_CABLE_URL=ws://localhost:28080
5
- WEB_CONSOLE_WHITELISTED_IPS=127.0.0.1 ::1 127.0.0.0/8 ::1
6
- DB_HOST=localhost
7
- DB_PORT=5432
8
- DB_USERNAME=mhenrixon
9
- DB_PASSWORD=
10
- DB_POOL=25
11
- DB_TIMEOUT=5000
12
- DB_REAPING_FREQUENCY=10
@@ -1,12 +0,0 @@
1
- SECRET_KEY_BASE=10167c7f7654ed02b3557b05b88ece1866a9748a2e8e064016f76cb74ddae38264f7403ba65f301d63c21d770e0ee2ac6906f245e904b3b140d12297f67e0db1
2
- APP_DOMAIN=localhost
3
- APP_WEB_URL=http://localhost:3000
4
- APP_CABLE_URL=ws://localhost:28080
5
- WEB_CONSOLE_WHITELISTED_IPS=127.0.0.1 ::1 127.0.0.0/8 ::1
6
- DB_HOST=localhost
7
- DB_PORT=5432
8
- DB_USERNAME=postgres
9
- DB_PASSWORD=3x4mpl3
10
- DB_POOL=25
11
- DB_TIMEOUT=5000
12
- DB_REAPING_FREQUENCY=10
@@ -1,13 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile '~/.gitignore_global'
6
-
7
- # Ignore bundler config.
8
- /.bundle
9
-
10
- # Ignore all logfiles and tempfiles.
11
- /log/*
12
- !/log/.keep
13
- /tmp
data/rails_example/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --color
2
- --order random