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.
- checksums.yaml +5 -5
- data/.gitignore +8 -0
- data/.rubocop.yml +20 -13
- data/.simplecov +1 -1
- data/.travis.yml +30 -20
- data/Appraisals +10 -2
- data/CHANGELOG.md +33 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +13 -12
- data/LICENSE.txt +21 -0
- data/README.md +48 -4
- data/Rakefile +0 -1
- data/bin/bench +1 -1
- data/lib/sidekiq/simulator.rb +4 -10
- data/lib/sidekiq-unique-jobs.rb +16 -6
- data/lib/sidekiq_unique_jobs/cli.rb +14 -12
- data/lib/sidekiq_unique_jobs/client/middleware.rb +2 -0
- data/lib/sidekiq_unique_jobs/config.rb +2 -0
- data/lib/sidekiq_unique_jobs/constants.rb +20 -17
- data/lib/sidekiq_unique_jobs/core_ext.rb +18 -0
- data/lib/sidekiq_unique_jobs/lock/until_and_while_executing.rb +2 -0
- data/lib/sidekiq_unique_jobs/lock/until_executed.rb +4 -5
- data/lib/sidekiq_unique_jobs/lock/until_executing.rb +2 -0
- data/lib/sidekiq_unique_jobs/lock/until_timeout.rb +2 -0
- data/lib/sidekiq_unique_jobs/lock/while_executing.rb +10 -9
- data/lib/sidekiq_unique_jobs/lock.rb +2 -0
- data/lib/sidekiq_unique_jobs/middleware.rb +2 -0
- data/lib/sidekiq_unique_jobs/normalizer.rb +3 -1
- data/lib/sidekiq_unique_jobs/options_with_fallback.rb +22 -3
- data/lib/sidekiq_unique_jobs/run_lock_failed.rb +2 -0
- data/lib/sidekiq_unique_jobs/script_mock.rb +16 -15
- data/lib/sidekiq_unique_jobs/scripts/acquire_lock.rb +2 -0
- data/lib/sidekiq_unique_jobs/scripts/release_lock.rb +2 -0
- data/lib/sidekiq_unique_jobs/scripts.rb +17 -12
- data/lib/sidekiq_unique_jobs/server/middleware.rb +2 -0
- data/lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb +4 -14
- data/lib/sidekiq_unique_jobs/testing/sidekiq_overrides.rb +2 -0
- data/lib/sidekiq_unique_jobs/testing.rb +4 -2
- data/lib/sidekiq_unique_jobs/timeout_calculator.rb +2 -0
- data/lib/sidekiq_unique_jobs/unique_args.rb +27 -14
- data/lib/sidekiq_unique_jobs/unlockable.rb +6 -6
- data/lib/sidekiq_unique_jobs/util.rb +34 -14
- data/lib/sidekiq_unique_jobs/version.rb +3 -1
- data/redis/acquire_lock.lua +1 -1
- data/sidekiq-unique-jobs.gemspec +27 -23
- metadata +44 -212
- data/LICENSE +0 -13
- data/circle.yml +0 -41
- data/gemfiles/sidekiq_4.0.gemfile +0 -22
- data/gemfiles/sidekiq_4.1.gemfile +0 -22
- data/gemfiles/sidekiq_4.2.gemfile +0 -22
- data/gemfiles/sidekiq_5.0.gemfile +0 -22
- data/gemfiles/sidekiq_develop.gemfile +0 -22
- data/rails_example/.env +0 -12
- data/rails_example/.env.test +0 -12
- data/rails_example/.gitignore +0 -13
- data/rails_example/.rspec +0 -2
- data/rails_example/Gemfile +0 -38
- data/rails_example/Procfile +0 -2
- data/rails_example/README.rdoc +0 -28
- data/rails_example/Rakefile +0 -6
- data/rails_example/app/assets/images/.keep +0 -0
- data/rails_example/app/assets/javascripts/application.js +0 -16
- data/rails_example/app/assets/stylesheets/application.css +0 -15
- data/rails_example/app/channels/appearance_channel.rb +0 -17
- data/rails_example/app/channels/application_cable/channel.rb +0 -4
- data/rails_example/app/channels/application_cable/connection.rb +0 -9
- data/rails_example/app/channels/post_channel.rb +0 -5
- data/rails_example/app/controllers/application_controller.rb +0 -5
- data/rails_example/app/controllers/concerns/.keep +0 -0
- data/rails_example/app/controllers/work_controller.rb +0 -39
- data/rails_example/app/helpers/application_helper.rb +0 -2
- data/rails_example/app/mailers/.keep +0 -0
- data/rails_example/app/models/.keep +0 -0
- data/rails_example/app/models/application_record.rb +0 -3
- data/rails_example/app/models/concerns/.keep +0 -0
- data/rails_example/app/models/guest.rb +0 -18
- data/rails_example/app/models/post.rb +0 -2
- data/rails_example/app/views/layouts/application.html.erb +0 -15
- data/rails_example/app/workers/simple_worker.rb +0 -15
- data/rails_example/app/workers/slow_until_executing_worker.rb +0 -15
- data/rails_example/app/workers/spawn_simple_worker.rb +0 -10
- data/rails_example/app/workers/while_executing_worker.rb +0 -12
- data/rails_example/app/workers/without_args_worker.rb +0 -16
- data/rails_example/app/workers/without_argument_worker.rb +0 -12
- data/rails_example/bin/bundle +0 -3
- data/rails_example/bin/check_or_setup_db +0 -56
- data/rails_example/bin/docker-setup +0 -20
- data/rails_example/bin/rails +0 -4
- data/rails_example/bin/rake +0 -4
- data/rails_example/bin/setup +0 -34
- data/rails_example/bin/update +0 -29
- data/rails_example/cable.ru +0 -6
- data/rails_example/common-services.yml +0 -52
- data/rails_example/config/application.rb +0 -27
- data/rails_example/config/boot.rb +0 -3
- data/rails_example/config/cable.yml +0 -9
- data/rails_example/config/database.docker.yml +0 -12
- data/rails_example/config/database.yml +0 -19
- data/rails_example/config/environment.rb +0 -5
- data/rails_example/config/environments/development.rb +0 -54
- data/rails_example/config/environments/production.rb +0 -86
- data/rails_example/config/environments/test.rb +0 -42
- data/rails_example/config/initializers/application_controller_renderer.rb +0 -6
- data/rails_example/config/initializers/assets.rb +0 -11
- data/rails_example/config/initializers/backtrace_silencers.rb +0 -9
- data/rails_example/config/initializers/cookies_serializer.rb +0 -5
- data/rails_example/config/initializers/filter_parameter_logging.rb +0 -4
- data/rails_example/config/initializers/inflections.rb +0 -16
- data/rails_example/config/initializers/mime_types.rb +0 -4
- data/rails_example/config/initializers/new_framework_defaults.rb +0 -23
- data/rails_example/config/initializers/session_store.rb +0 -3
- data/rails_example/config/initializers/sidekiq.rb +0 -13
- data/rails_example/config/initializers/wrap_parameters.rb +0 -14
- data/rails_example/config/locales/en.yml +0 -23
- data/rails_example/config/puma.rb +0 -38
- data/rails_example/config/routes.rb +0 -8
- data/rails_example/config/secrets.yml +0 -22
- data/rails_example/config/sidekiq.yml +0 -6
- data/rails_example/config/spring.rb +0 -6
- data/rails_example/config.ru +0 -4
- data/rails_example/db/migrate/20160724111322_create_posts.rb +0 -12
- data/rails_example/db/schema.rb +0 -25
- data/rails_example/db/seeds.rb +0 -7
- data/rails_example/dev-entrypoint.sh +0 -55
- data/rails_example/dev.env +0 -12
- data/rails_example/docker/rails.Dockerfile +0 -27
- data/rails_example/docker-compose.yml +0 -71
- data/rails_example/lib/assets/.keep +0 -0
- data/rails_example/lib/tasks/.keep +0 -0
- data/rails_example/log/.keep +0 -0
- data/rails_example/public/404.html +0 -67
- data/rails_example/public/422.html +0 -67
- data/rails_example/public/500.html +0 -66
- data/rails_example/public/favicon.ico +0 -0
- data/rails_example/public/robots.txt +0 -5
- data/rails_example/simple.ru +0 -12
- data/rails_example/spec/controllers/work_controller_mock_spec.rb +0 -91
- data/rails_example/spec/controllers/work_controller_spec.rb +0 -77
- data/rails_example/spec/factories/posts.rb +0 -8
- data/rails_example/spec/models/post_spec.rb +0 -4
- data/rails_example/spec/rails_helper.rb +0 -20
- data/rails_example/spec/spec_helper.rb +0 -20
- data/rails_example/spec/support/sidekiq_meta.rb +0 -12
- data/rails_example/spec/workers/simple_worker_spec.rb +0 -4
- data/rails_example/vendor/assets/javascripts/.keep +0 -0
- data/rails_example/vendor/assets/stylesheets/.keep +0 -0
- data/spec/jobs/another_unique_job.rb +0 -13
- data/spec/jobs/custom_queue_job.rb +0 -5
- data/spec/jobs/custom_queue_job_with_filter_method.rb +0 -7
- data/spec/jobs/custom_queue_job_with_filter_proc.rb +0 -10
- data/spec/jobs/expiring_job.rb +0 -4
- data/spec/jobs/inline_worker.rb +0 -8
- data/spec/jobs/just_a_worker.rb +0 -7
- data/spec/jobs/long_running_job.rb +0 -6
- data/spec/jobs/main_job.rb +0 -7
- data/spec/jobs/my_job.rb +0 -12
- data/spec/jobs/my_unique_job.rb +0 -11
- data/spec/jobs/my_unique_job_with_filter_method.rb +0 -17
- data/spec/jobs/my_unique_job_with_filter_proc.rb +0 -15
- data/spec/jobs/notify_worker.rb +0 -10
- data/spec/jobs/plain_class.rb +0 -3
- data/spec/jobs/simple_worker.rb +0 -11
- data/spec/jobs/spawn_simple_worker.rb +0 -8
- data/spec/jobs/test_class.rb +0 -3
- data/spec/jobs/unique_job_with_conditional_parameter.rb +0 -14
- data/spec/jobs/unique_job_with_filter_method.rb +0 -18
- data/spec/jobs/unique_job_with_nil_unique_args.rb +0 -16
- data/spec/jobs/unique_job_with_no_unique_args_method.rb +0 -12
- data/spec/jobs/unique_job_withthout_unique_args_parameter.rb +0 -14
- data/spec/jobs/unique_on_all_queues_job.rb +0 -13
- data/spec/jobs/until_and_while_executing_job.rb +0 -7
- data/spec/jobs/until_executed_job.rb +0 -17
- data/spec/jobs/until_executing_job.rb +0 -7
- data/spec/jobs/until_global_timeout_job.rb +0 -8
- data/spec/jobs/until_timeout_job.rb +0 -8
- data/spec/jobs/while_executing_job.rb +0 -12
- data/spec/jobs/without_argument_job.rb +0 -9
- data/spec/lib/sidekiq_unique_jobs/cli_spec.rb +0 -183
- data/spec/lib/sidekiq_unique_jobs/client/middleware_spec.rb +0 -316
- data/spec/lib/sidekiq_unique_jobs/config_spec.rb +0 -84
- data/spec/lib/sidekiq_unique_jobs/core_ext_spec.rb +0 -25
- data/spec/lib/sidekiq_unique_jobs/lock/until_and_while_executing_spec.rb +0 -42
- data/spec/lib/sidekiq_unique_jobs/lock/until_executed_spec.rb +0 -37
- data/spec/lib/sidekiq_unique_jobs/lock/until_timeout_spec.rb +0 -26
- data/spec/lib/sidekiq_unique_jobs/lock/while_executing_spec.rb +0 -86
- data/spec/lib/sidekiq_unique_jobs/normalizer_spec.rb +0 -21
- data/spec/lib/sidekiq_unique_jobs/options_with_fallback_spec.rb +0 -113
- data/spec/lib/sidekiq_unique_jobs/queue_lock_timeout_calculator_spec.rb +0 -47
- data/spec/lib/sidekiq_unique_jobs/run_lock_timeout_calculator_spec.rb +0 -36
- data/spec/lib/sidekiq_unique_jobs/script_mock_spec.rb +0 -88
- data/spec/lib/sidekiq_unique_jobs/scripts/acquire_lock_spec.rb +0 -50
- data/spec/lib/sidekiq_unique_jobs/scripts/release_lock_spec.rb +0 -41
- data/spec/lib/sidekiq_unique_jobs/scripts_spec.rb +0 -68
- data/spec/lib/sidekiq_unique_jobs/server/middleware_spec.rb +0 -78
- data/spec/lib/sidekiq_unique_jobs/sidekiq_testing_enabled_spec.rb +0 -164
- data/spec/lib/sidekiq_unique_jobs/sidekiq_unique_ext_spec.rb +0 -75
- data/spec/lib/sidekiq_unique_jobs/sidekiq_unique_jobs_spec.rb +0 -41
- data/spec/lib/sidekiq_unique_jobs/timeout_calculator_spec.rb +0 -70
- data/spec/lib/sidekiq_unique_jobs/unique_args_spec.rb +0 -257
- data/spec/lib/sidekiq_unique_jobs/unlockable_spec.rb +0 -37
- data/spec/lib/sidekiq_unique_jobs/util_spec.rb +0 -81
- data/spec/spec_helper.rb +0 -92
- data/spec/support/matchers/redis_matchers.rb +0 -29
- data/spec/support/ruby_meta.rb +0 -17
- data/spec/support/sidekiq_meta.rb +0 -30
- data/spec/support/unique_macros.rb +0 -71
data/sidekiq-unique-jobs.gemspec
CHANGED
@@ -1,28 +1,32 @@
|
|
1
|
-
#
|
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 |
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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.
|
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:
|
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:
|
34
|
+
name: concurrent-ruby
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - ">="
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
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:
|
46
|
+
version: 1.0.2
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
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: :
|
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:
|
62
|
+
name: rspec
|
71
63
|
requirement: !ruby/object:Gem::Requirement
|
72
64
|
requirements:
|
73
|
-
- - "
|
65
|
+
- - "~>"
|
74
66
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
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: '
|
74
|
+
version: '3.1'
|
83
75
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
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:
|
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:
|
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:
|
118
|
+
name: gem-release
|
127
119
|
requirement: !ruby/object:Gem::Requirement
|
128
120
|
requirements:
|
129
121
|
- - "~>"
|
130
122
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
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:
|
139
|
-
description:
|
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
|
-
-
|
196
|
+
- MIT
|
364
197
|
metadata: {}
|
365
|
-
post_install_message:
|
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.
|
214
|
+
rubygems_version: 2.7.7
|
383
215
|
signing_key:
|
384
216
|
specification_version: 4
|
385
|
-
summary:
|
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
|
data/rails_example/.env.test
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=postgres
|
9
|
-
DB_PASSWORD=3x4mpl3
|
10
|
-
DB_POOL=25
|
11
|
-
DB_TIMEOUT=5000
|
12
|
-
DB_REAPING_FREQUENCY=10
|
data/rails_example/.gitignore
DELETED
@@ -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