diff --git a/CHANGELOG b/CHANGELOG index 635c8ec..43d6f8a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1 +1,14 @@ +DataFabric changelog + +v1.1.0 - 2008-11-22 + +- Cache connections so we don't have to reconnect constantly. (Justin Balthrop, Geni) +- Clean up logging API (not backwards-compatible) +- Verify wrapped connections automatically so cached mysql connections older than 8 hours + don't die due to timeout. +- Please note this version is not Rails 2.2-compatible. DataFabric 2.0 will be. + + +Detailed commit history: + http://github.com/fiveruns/data_fabric/commits/master diff --git a/Rakefile b/Rakefile index 9db4551..cd77e04 100644 --- a/Rakefile +++ b/Rakefile @@ -10,7 +10,7 @@ Echoe.new 'data_fabric' do |p| p.author = "Mike Perham" p.email = 'mperham@gmail.com' p.project = 'fiveruns' - p.summary = 'Sharding and replication support for ActiveRecord 2.x' + p.summary = 'Sharding and replication support for ActiveRecord 2.0 and 2.1' p.url = "http://github.com/fiveruns/data_fabric" p.dependencies = ['activerecord >=2.0.2'] p.development_dependencies = [] @@ -18,6 +18,8 @@ Echoe.new 'data_fabric' do |p| p.include_rakefile = true end +task :test => [:pretest] + task :pretest do setup(false) end @@ -45,7 +47,7 @@ def setup_connection require 'active_record' ActiveRecord::Base.configurations = load_database_yml ActiveRecord::Base.logger = Logger.new(STDOUT) - ActiveRecord::Base.logger.level = Logger::DEBUG + ActiveRecord::Base.logger.level = Logger::INFO end def using_connection(database_identifier, &block) diff --git a/lib/data_fabric.rb b/lib/data_fabric.rb index ade79eb..8ee8ba1 100644 --- a/lib/data_fabric.rb +++ b/lib/data_fabric.rb @@ -111,7 +111,6 @@ def data_fabric(options) raise ArgumentError, "data_fabric does not support ActiveRecord's allow_concurrency = true" if allow_concurrency DataFabric.log { "Creating data_fabric proxy for class #{name}" } end - alias :connection_topology :data_fabric # legacy end class StringProxy