Permalink
Browse files

Bump connection_pool dep to ~> 0.9.0

  • Loading branch information...
1 parent 5f24164 commit 149b45e9b5b9e9f7227e3466fba09ffd213cde02 @pointlessone pointlessone 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
2 girl_friday.gemspec
@@ -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
View
2 test/test_girl_friday_queue.rb
@@ -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 149b45e

Please sign in to comment.