Permalink
Browse files

Merge pull request #56 from cheba/master

Bump connection_pool dep to ~> 0.9.0
  • Loading branch information...
2 parents 5f24164 + 149b45e commit 9edea0fcb8ca5cb4f1f97f40560ad08e98d95619 @mperham committed Jul 20, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 girl_friday.gemspec
  2. +1 −1 test/test_girl_friday_queue.rb
View
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
- s.add_dependency 'connection_pool', '~> 0.1.0'
+ s.add_dependency 'connection_pool', '~> 0.9.0'
s.add_development_dependency 'sinatra', '~> 1.3'
s.add_development_dependency 'rake'
end
@@ -125,7 +125,7 @@ def test_should_persist_with_redis_connection_pool
require 'redis'
require 'connection_pool'
pool = ConnectionPool.new(:size => 5, :timeout => 2){ Redis.new }
- pool.flushdb
+ pool.with_connection {|redis| redis.flushdb }
rescue LoadError
return puts "Skipping redis test, 'redis' gem not found: #{$!.message}"
rescue Errno::ECONNREFUSED

0 comments on commit 9edea0f

Please sign in to comment.