diff --git a/celluloid-redis.gemspec b/celluloid-redis.gemspec index a086127..13bbc27 100644 --- a/celluloid-redis.gemspec +++ b/celluloid-redis.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |spec| spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_runtime_dependency "redis" + spec.add_runtime_dependency "redis", "3.0.5" spec.add_runtime_dependency "celluloid-io", ">= 0.13.0.pre" spec.add_development_dependency "bundler", "~> 1.3" diff --git a/lib/celluloid/redis.rb b/lib/celluloid/redis.rb index e0ec131..4648b0e 100644 --- a/lib/celluloid/redis.rb +++ b/lib/celluloid/redis.rb @@ -1,4 +1,3 @@ require "redis" require "celluloid/redis/version" -require "celluloid/redis/redis_ext" \ No newline at end of file diff --git a/lib/celluloid/redis/redis_ext.rb b/lib/celluloid/redis/redis_ext.rb deleted file mode 100644 index 76a72f4..0000000 --- a/lib/celluloid/redis/redis_ext.rb +++ /dev/null @@ -1,28 +0,0 @@ -class Redis - class Client - # Well this is really sad. redis-rb does not provide extensible driver - # support. Instead they couple everything together though this method. - # This leaves us no choice but to monkeypatch - def _parse_driver(driver) - driver = driver.to_s if driver.is_a?(Symbol) - - if driver.kind_of?(String) - case driver - when "ruby" - require "redis/connection/ruby" - driver = Connection::Ruby - when "celluloid" - require "redis/connection/celluloid" - driver = Connection::Celluloid - when "hiredis" - require "redis/connection/hiredis" - driver = Connection::Hiredis - else - raise "Unknown driver: #{driver}" - end - end - - driver - end - end -end \ No newline at end of file