-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathredis-throttle.gemspec
43 lines (34 loc) · 1.43 KB
/
redis-throttle.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
# frozen_string_literal: true
require_relative "./lib/redis/throttle/version"
Gem::Specification.new do |spec|
spec.name = "redis-throttle"
spec.version = Redis::Throttle::VERSION
spec.authors = ["Alexey Zapparov"]
spec.email = ["[email protected]"]
spec.summary = "Redis based rate limit and concurrency throttling."
spec.homepage = "https://gitlab.com/ixti/redis-throttle"
spec.license = "MIT"
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "#{spec.homepage}/tree/v#{spec.version}"
spec.metadata["bug_tracker_uri"] = "#{spec.homepage}/issues"
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/v#{spec.version}/CHANGES.md"
spec.metadata["rubygems_mfa_required"] = "true"
# XXX: `jruby` container images lacks of `git` and we don't need `spec.files` to run rspec suite.
spec.files =
if ENV["CI"]
[]
else
Dir.chdir(__dir__) do
`git ls-files -z`.split("\x0").select do |f|
"LICENSE.txt" == f || f.start_with?("lib/")
end
end
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.required_ruby_version = ">= 2.6"
spec.add_runtime_dependency "concurrent-ruby", ">= 1.1.9"
spec.add_runtime_dependency "redis", "~> 4.0"
spec.add_development_dependency "bundler"
end