forked from sds/mock_redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_redis.gemspec
42 lines (35 loc) · 1.43 KB
/
mock_redis.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
$LOAD_PATH << File.expand_path('lib', __dir__)
require 'mock_redis/version'
Gem::Specification.new do |s|
s.name = 'mock_redis'
s.version = MockRedis::VERSION
s.license = 'MIT'
s.platform = Gem::Platform::RUBY
s.authors = ['Shane da Silva', 'Samuel Merritt']
s.email = ['[email protected]']
s.homepage = 'https://github.com/sds/mock_redis'
s.summary = 'Redis mock that just lives in memory; useful for testing.'
s.description = <<-MSG.strip.gsub(/\s+/, ' ')
Instantiate one with `redis = MockRedis.new` and treat it like you would a
normal Redis object. It supports all the usual Redis operations.
MSG
s.files = Dir.chdir(__dir__) do
`git ls-files -z`.split("\x0").select do |file|
file.start_with?('lib') || file.end_with?('.md')
end
end
s.metadata = {
'bug_tracker_uri' => "#{s.homepage}/issues",
'changelog_uri' => "#{s.homepage}/blob/v#{s.version}/CHANGELOG.md",
'documentation_uri' => "https://www.rubydoc.info/gems/#{s.name}/#{s.version}",
'homepage_uri' => s.homepage,
'source_code_uri' => "#{s.homepage}/tree/v#{s.version}",
}
s.require_paths = ['lib']
s.required_ruby_version = '>= 3.0'
s.add_development_dependency 'rake', '~> 13'
s.add_development_dependency 'redis', '~> 4.8.0'
s.add_development_dependency 'rspec', '~> 3.0'
s.add_development_dependency 'rspec-its', '~> 1.0'
s.add_development_dependency 'timecop', '~> 0.9.1'
end