forked from mhenrixon/sidekiq-unique-jobs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidekiq-unique-jobs.gemspec
77 lines (62 loc) · 2.81 KB
/
sidekiq-unique-jobs.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# frozen_string_literal: true
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "sidekiq_unique_jobs/version"
Gem::Specification.new do |spec|
spec.name = "sidekiq-unique-jobs"
spec.version = SidekiqUniqueJobs::VERSION
spec.authors = ["Mikael Henriksson"]
spec.email = ["[email protected]"]
spec.homepage = "https://mhenrixon.github.io/sidekiq-unique-jobs"
spec.license = "MIT"
spec.summary = <<~SUMMARY
Sidekiq middleware that prevents duplicates jobs
SUMMARY
spec.description = <<~DESCRIPTION
Prevents simultaneous Sidekiq jobs with the same unique arguments to run.
Highly configurable to suite your specific needs.
DESCRIPTION
raise "RubyGems 2.0 or newer is required to protect against public gem pushes." unless spec.respond_to?(:metadata)
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["bug_tracker_uri"] = "https://github.com/mhenrixon/sidekiq-unique-jobs/issues"
spec.metadata["documentation_uri"] = "https://mhenrixon.github.io/sidekiq-unique-jobs"
spec.metadata["source_code_uri"] = "https://github.com/mhenrixon/sidekiq-unique-jobs"
spec.metadata["changelog_uri"] = "https://github.com/mhenrixon/sidekiq-unique-jobs/CHANGELOG.md"
spec.post_install_message = <<~POST_INSTALL
This version deprecated the configuration options:
- default_lock_ttl
- default_lock_ttl=
- default_lock_timeout
- default_lock_timeout=
The new methods to use are:
- lock_ttl
- lock_ttl=
- lock_timeout
- lock_timeout=
POST_INSTALL
spec.bindir = "bin"
spec.executables = %w[uniquejobs]
spec.files = Dir.chdir(File.expand_path(__dir__)) do
`git ls-files -z`.split("\x0").select do |file|
file.match(%r{^(lib/*|bin/uniquejobs|README|LICENSE|CHANGELOG)})
end
end
spec.require_paths = ["lib"]
spec.required_ruby_version = ">= 2.5.0"
spec.add_dependency "brpoplpush-redis_script", "> 0.0.0", "<= 2.0.0"
spec.add_dependency "concurrent-ruby", "~> 1.0", ">= 1.0.5"
spec.add_dependency "sidekiq", ">= 4.0", "< 7.0"
spec.add_dependency "thor", ">= 0.20", "< 2.0"
spec.add_development_dependency "bundler", "~> 2.1"
spec.add_development_dependency "rack-test", ">= 1.0", "< 2.0"
spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "rspec", "~> 3.9"
spec.add_development_dependency "sinatra", ">= 2.0", "< 3.0"
spec.add_development_dependency "timecop", "~> 0.9"
# ===== Documentation =====
spec.add_development_dependency "github-markup", "~> 3.0"
spec.add_development_dependency "github_changelog_generator", "~> 1.14"
spec.add_development_dependency "yard", "~> 0.9.18"
# ===== Release Management =====
spec.add_development_dependency "gem-release", "~> 2.0"
end