db-charmer 1.6.7 → 1.6.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +1 -0
- data/VERSION +1 -1
- data/db-charmer.gemspec +2 -2
- data/lib/db_charmer.rb +3 -0
- metadata +25 -12
data/CHANGES
CHANGED
@@ -4,6 +4,7 @@ Changed the way we handle associations in on_db(:foo).find(:include) calls. Now
|
|
4
4
|
switch association's connection only if its default connection is the same as the
|
5
5
|
master model's connection (not more "table does not exist" problems I hope).
|
6
6
|
|
7
|
+
----------------------------------------------------------------------------------------
|
7
8
|
1.6.5 (2010-04-05):
|
8
9
|
|
9
10
|
Bugfix release: Fixed :connection vs :slave in db_magic behaviour. Model.on_master should
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.8
|
data/db-charmer.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{db-charmer}
|
8
|
-
s.version = "1.6.
|
8
|
+
s.version = "1.6.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Alexey Kovyrin"]
|
@@ -49,7 +49,7 @@ Gem::Specification.new do |s|
|
|
49
49
|
s.homepage = %q{http://github.com/kovyrin/db-charmer}
|
50
50
|
s.rdoc_options = ["--charset=UTF-8"]
|
51
51
|
s.require_paths = ["lib"]
|
52
|
-
s.rubygems_version = %q{1.3.
|
52
|
+
s.rubygems_version = %q{1.3.6}
|
53
53
|
s.summary = %q{ActiveRecord Connections Magic}
|
54
54
|
|
55
55
|
if s.respond_to? :specification_version then
|
data/lib/db_charmer.rb
CHANGED
@@ -125,6 +125,9 @@ ActiveRecord::Base.extend(DbCharmer::DbMagic::ClassMethods)
|
|
125
125
|
# Setup association preload magic
|
126
126
|
ActiveRecord::Base.extend(DbCharmer::AssociationPreload::ClassMethods)
|
127
127
|
|
128
|
+
# Open up really useful API method
|
129
|
+
ActiveRecord::AssociationPreload::ClassMethods.send(:public, :preload_associations)
|
130
|
+
|
128
131
|
class ActiveRecord::Base
|
129
132
|
class << self
|
130
133
|
def inherited_with_hijacking(subclass)
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: db-charmer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 6
|
8
|
+
- 8
|
9
|
+
version: 1.6.8
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Alexey Kovyrin
|
@@ -14,24 +19,30 @@ default_executable:
|
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: rails
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ">="
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 2
|
29
|
+
- 2
|
30
|
+
- 0
|
23
31
|
version: 2.2.0
|
24
|
-
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
25
34
|
- !ruby/object:Gem::Dependency
|
26
35
|
name: blankslate
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
38
|
requirements:
|
31
39
|
- - ">="
|
32
40
|
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 0
|
33
43
|
version: "0"
|
34
|
-
|
44
|
+
type: :runtime
|
45
|
+
version_requirements: *id002
|
35
46
|
description: ActiveRecord Connections Magic (slaves, multiple connections, etc)
|
36
47
|
email: alexey@kovyrin.net
|
37
48
|
executables: []
|
@@ -83,18 +94,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
83
94
|
requirements:
|
84
95
|
- - ">="
|
85
96
|
- !ruby/object:Gem::Version
|
97
|
+
segments:
|
98
|
+
- 0
|
86
99
|
version: "0"
|
87
|
-
version:
|
88
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
101
|
requirements:
|
90
102
|
- - ">="
|
91
103
|
- !ruby/object:Gem::Version
|
104
|
+
segments:
|
105
|
+
- 0
|
92
106
|
version: "0"
|
93
|
-
version:
|
94
107
|
requirements: []
|
95
108
|
|
96
109
|
rubyforge_project:
|
97
|
-
rubygems_version: 1.3.
|
110
|
+
rubygems_version: 1.3.6
|
98
111
|
signing_key:
|
99
112
|
specification_version: 3
|
100
113
|
summary: ActiveRecord Connections Magic
|