-
Notifications
You must be signed in to change notification settings - Fork 67
/
redis-sentinel.gemspec
32 lines (28 loc) · 1.49 KB
/
redis-sentinel.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
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'redis-sentinel/version'
Gem::Specification.new do |gem|
gem.name = "redis-sentinel"
gem.version = Redis::Sentinel::VERSION
gem.authors = ["Richard Huang"]
gem.email = ["flyerhzm@gmail.com"]
gem.description = %q{another redis automatic master/slave failover solution for ruby by using built-in redis sentinel}
gem.summary = %q{another redis automatic master/slave failover solution for ruby by using built-in redis sentinel}
gem.homepage = "https://github.com/flyerhzm/redis-sentinel"
gem.files = `git ls-files`.split($/)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
# Sentinel support was added to the `redis` gem in 3.2.0. This gem is purely
# incompatible with that version and will behave very improperly by forcing a
# connection to Redis on localhost:6379 regardless of the host that Redis
# Sentinel gave it. In my tests 3.1.0 works, but you should upgrade to
# `redis` 3.2.0+ without `redis-sentinel` instead.
gem.add_dependency "redis", '< 3.2.0'
gem.add_development_dependency "rake"
gem.add_development_dependency "rspec"
gem.add_development_dependency "eventmachine"
gem.add_development_dependency "em-synchrony"
gem.add_development_dependency "hiredis"
end