-
Notifications
You must be signed in to change notification settings - Fork 0
/
potlock.gemspec
40 lines (34 loc) · 1.56 KB
/
potlock.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
# frozen_string_literal: true
require_relative "lib/potlock/version"
Gem::Specification.new do |spec|
spec.name = "potlock"
spec.version = Potlock::VERSION
spec.authors = ["Thibault Couraud"]
spec.email = ["thibault.couraud@potloc.com"]
spec.summary = "Distributed Read-Write lock using redis."
spec.description = "Potlock is redis based concurrent read-write lock distributed across processes."
spec.homepage = "https://github.com/potloc/potlock"
spec.license = "MIT"
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
spec.metadata = {
"allowed_push_host" => "https://rubygems.org",
"changelog_uri" => "#{spec.homepage}/blob/main/CHANGELOG.md",
"homepage_uri" => spec.homepage,
"rubygems_mfa_required" => "true",
"source_code_uri" => spec.homepage,
}
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(File.expand_path(__dir__)) do
`git ls-files -z`.split("\x0").reject do |f|
(f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
end
end
spec.require_paths = ["lib"]
spec.add_dependency "redlock", "~> 1.3"
spec.add_development_dependency "mock_redis", "~> 0.2"
spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "rubocop", "~> 1.7"
spec.add_development_dependency "rubocop-rspec", "~> 2.4"
end