data_fabric 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,13 @@
1
1
  DataFabric changelog
2
2
 
3
+ v1.2.3 - 2008-02-05
4
+
5
+ - Release connections at the end of each Rails action. If you see 5 second
6
+ pauses in your application, it's because the connection pool is timing out
7
+ and releasing checked out connections.
8
+
9
+ - NB: DataFabric passes all tests against Rails 2.3.0.
10
+
3
11
  v1.2.2 - 2008-12-16
4
12
 
5
13
  - Fix multithreading issue with AR 2.2.
data/data_fabric.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{data_fabric}
5
- s.version = "1.2.2"
5
+ s.version = "1.2.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Mike Perham"]
9
- s.date = %q{2008-12-16}
9
+ s.date = %q{2009-02-05}
10
10
  s.description = %q{Sharding and replication support for ActiveRecord 2.x}
11
11
  s.email = %q{mperham@gmail.com}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "lib/data_fabric/ar20.rb", "lib/data_fabric/ar22.rb", "lib/data_fabric/version.rb", "lib/data_fabric.rb", "README.rdoc"]
data/example22/Rakefile CHANGED
@@ -37,6 +37,15 @@ namespace :db do
37
37
  end
38
38
  end
39
39
 
40
+ task :default => :test
41
+
42
+ task :test do
43
+ if !File.exist? 'vendor'
44
+ puts "You need to run `rake app:prepare`"
45
+ exit(1)
46
+ end
47
+ end
48
+
40
49
  namespace :app do
41
50
  task :prepare => [:clean, :copy_plugin, :migrate]
42
51
 
@@ -1,3 +1,12 @@
1
+
2
+ class ActiveRecord::ConnectionAdapters::ConnectionHandler
3
+ def clear_active_connections_with_data_fabric!
4
+ clear_active_connections_without_data_fabric!
5
+ DataFabric::ConnectionProxy.shard_pools.each_value { |pool| pool.release_connection }
6
+ end
7
+ alias_method_chain :clear_active_connections!, :data_fabric
8
+ end
9
+
1
10
  module DataFabric
2
11
  module Extensions
3
12
  def self.included(model)
@@ -1,5 +1,5 @@
1
1
  module DataFabric
2
2
  module Version
3
- STRING = "1.2.2"
3
+ STRING = "1.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_fabric
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Perham
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-16 00:00:00 -06:00
12
+ date: 2009-02-05 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies: []
15
15