db-charmer 1.9.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -13
- data/CHANGES +8 -0
- data/README.rdoc +6 -2
- data/lib/db_charmer.rb +4 -0
- data/lib/db_charmer/railtie.rb +9 -0
- data/lib/{tasks → db_charmer/tasks}/databases.rake +0 -0
- data/lib/db_charmer/version.rb +1 -1
- metadata +28 -26
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MmFiMTJhMjE0MTk2ZTIyOTJmYzZmMDZjZTUwZWI5OWIwZTY3YzE4MQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 81059e95eb8e7b86a8fc7bf843e4097f5037d18b
|
4
|
+
data.tar.gz: 92b50816221cc7b38c950b03f4f691d7dfa153dc
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
NWVhNzg3NjI3NDU4ZWM5ZjU2MDI5NzM4MzM4NDg4OWZhM2MyODFlNGIwNDBj
|
11
|
-
ZTAwMDJkMDEyNDY1OWI2Y2FkYzQ5MjMyNjBkODYxOTBjMTVhMmY=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZjIyOTNhZjIxYTc3YjM2ZTc2ZDY2NzJlMDAwODZlMzYxYTEyYzEyMjE2NzVj
|
14
|
-
NjMwMjQ0MDk0NzI2ZjM0OTE0Yjg0MzYzYTM4OGZlMGM2YmZlZjhiOTcwNGEy
|
15
|
-
ZTM3Y2EyOTIxZGQ5ZWJkZjhhYWU4NDQ4OGY2ZGE1YzczMmMwODI=
|
6
|
+
metadata.gz: 20981e007b5d8b45b4e9d375a7e86ade621b159bf9129899c60f0215ce6299cd648952d56298f52c30e1fa5f2a3f2cb08ca9a4b7651be180a00c0e1b2f976555
|
7
|
+
data.tar.gz: 4d9266336a51fbe178ae976b85f97485ab39757d5793e9e64d54d90803673239628dc1ef3e9ed606e39a9e80310dfdb71f43a0aabb6f7d1751b5b9e1534e052e
|
data/CHANGES
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
1.9.1 (2014-11-14):
|
2
|
+
|
3
|
+
The project has been suspended. No updates will be provided and no Rails versions
|
4
|
+
beyond 3.2.x will be supported.
|
5
|
+
|
6
|
+
For more information please check out this blog post: http://kovyrin.net/2014/11/14/dbcharmer-suspended/
|
7
|
+
|
8
|
+
----------------------------------------------------------------------------------------
|
1
9
|
1.9.0 (2013-10-09):
|
2
10
|
|
3
11
|
Most of the major changes in this version are related to our initial push towards making
|
data/README.rdoc
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
= WARNING: The Project Has Been Suspended
|
2
|
+
|
3
|
+
Please note, that this project has been suspended. No updates will be provided and no Rails versions
|
4
|
+
beyond 3.2.x will be supported. For more information please check out this blog post: http://kovyrin.net/2014/11/14/dbcharmer-suspended/
|
5
|
+
|
1
6
|
= DB Charmer - ActiveRecord Connection Magic Plugin
|
2
7
|
|
3
8
|
+DbCharmer+ is a simple yet powerful plugin for ActiveRecord that significantly extends its ability to work with
|
@@ -10,8 +15,7 @@ multiple databases and/or database servers. The major features we add to ActiveR
|
|
10
15
|
5. Multiple database migrations with very flexible query routing controls.
|
11
16
|
6. Simple database sharding functionality with multiple sharding methods (value, range, mapping table).
|
12
17
|
|
13
|
-
For more information on the project, you can check out our web site at http://
|
14
|
-
|
18
|
+
For more information on the project, you can check out our web site at http://kovyrin.github.io/db-charmer/.
|
15
19
|
|
16
20
|
== Installation
|
17
21
|
|
data/lib/db_charmer.rb
CHANGED
@@ -84,6 +84,10 @@ require 'db_charmer/connection_proxy'
|
|
84
84
|
require 'db_charmer/force_slave_reads'
|
85
85
|
require 'db_charmer/with_remapped_databases'
|
86
86
|
|
87
|
+
if DbCharmer.rails3?
|
88
|
+
require "db_charmer/railtie"
|
89
|
+
end
|
90
|
+
|
87
91
|
#---------------------------------------------------------------------------------------------------
|
88
92
|
# Add our custom class-level attributes to AR models
|
89
93
|
require 'db_charmer/active_record/class_attributes'
|
File without changes
|
data/lib/db_charmer/version.rb
CHANGED
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: db-charmer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleksiy Kovyrin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - <
|
17
|
+
- - "<"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 4.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - <
|
24
|
+
- - "<"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 4.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activerecord
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - <
|
31
|
+
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 4.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - <
|
38
|
+
- - "<"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 4.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: yard
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: actionpack
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
description: DbCharmer is a Rails plugin (and gem) that could be used to manage AR
|
@@ -90,6 +90,11 @@ extra_rdoc_files:
|
|
90
90
|
- LICENSE
|
91
91
|
- README.rdoc
|
92
92
|
files:
|
93
|
+
- CHANGES
|
94
|
+
- LICENSE
|
95
|
+
- README.rdoc
|
96
|
+
- init.rb
|
97
|
+
- lib/db_charmer.rb
|
93
98
|
- lib/db_charmer/action_controller/force_slave_reads.rb
|
94
99
|
- lib/db_charmer/active_record/association_preload.rb
|
95
100
|
- lib/db_charmer/active_record/class_attributes.rb
|
@@ -113,43 +118,40 @@ files:
|
|
113
118
|
- lib/db_charmer/rails31/active_record/migration/command_recorder.rb
|
114
119
|
- lib/db_charmer/rails31/active_record/preloader/association.rb
|
115
120
|
- lib/db_charmer/rails31/active_record/preloader/has_and_belongs_to_many.rb
|
121
|
+
- lib/db_charmer/railtie.rb
|
122
|
+
- lib/db_charmer/sharding.rb
|
116
123
|
- lib/db_charmer/sharding/connection.rb
|
124
|
+
- lib/db_charmer/sharding/method.rb
|
117
125
|
- lib/db_charmer/sharding/method/db_block_group_map.rb
|
118
126
|
- lib/db_charmer/sharding/method/db_block_map.rb
|
119
127
|
- lib/db_charmer/sharding/method/hash_map.rb
|
120
128
|
- lib/db_charmer/sharding/method/range.rb
|
121
|
-
- lib/db_charmer/sharding/method.rb
|
122
129
|
- lib/db_charmer/sharding/stub_connection.rb
|
123
|
-
- lib/db_charmer/
|
130
|
+
- lib/db_charmer/tasks/databases.rake
|
124
131
|
- lib/db_charmer/version.rb
|
125
132
|
- lib/db_charmer/with_remapped_databases.rb
|
126
|
-
|
127
|
-
|
128
|
-
-
|
129
|
-
- README.rdoc
|
130
|
-
- LICENSE
|
131
|
-
- CHANGES
|
132
|
-
homepage: http://dbcharmer.net
|
133
|
-
licenses: []
|
133
|
+
homepage: http://kovyrin.github.io/db-charmer/
|
134
|
+
licenses:
|
135
|
+
- MIT
|
134
136
|
metadata: {}
|
135
137
|
post_install_message:
|
136
138
|
rdoc_options:
|
137
|
-
- --charset=UTF-8
|
139
|
+
- "--charset=UTF-8"
|
138
140
|
require_paths:
|
139
141
|
- lib
|
140
142
|
required_ruby_version: !ruby/object:Gem::Requirement
|
141
143
|
requirements:
|
142
|
-
- -
|
144
|
+
- - ">="
|
143
145
|
- !ruby/object:Gem::Version
|
144
146
|
version: '0'
|
145
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
148
|
requirements:
|
147
|
-
- -
|
149
|
+
- - ">="
|
148
150
|
- !ruby/object:Gem::Version
|
149
151
|
version: '0'
|
150
152
|
requirements: []
|
151
153
|
rubyforge_project:
|
152
|
-
rubygems_version: 2.
|
154
|
+
rubygems_version: 2.2.2
|
153
155
|
signing_key:
|
154
156
|
specification_version: 4
|
155
157
|
summary: ActiveRecord Connections Magic (slaves, multiple connections, etc)
|