activerecord_partitioning 0.0.9 → 0.1.0
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 +15 -0
- data/lib/activerecord_partitioning.rb +2 -1
- metadata +62 -82
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MjhhMzJlZGEyNzI2ZWQ5MDQyODVlZmM4NjQ2MmIzNTNlNTM1ZGFhMg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MDgwYjM2YmQyZmMyODdmZmI3NjRjNmYyOTBlNDk1Mzk3NTNkYjNlNA==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NDU2MTkwMjRjZGM4OGZlZWI0MGY1NWNjMDA1M2NkN2E3MDU3OWY5NjMwNjVi
|
10
|
+
ZWE1ZTljOWEwZDVjZmI3ZjU3ZGE2MzhjMjM4MDUxNTJjZjVlNTFlODU4YmM2
|
11
|
+
YTQxOTE1YmM3NGYxOWUyNDg3MzE2NTE2ZDQ3MzczMTBhOWZjN2I=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MzA2NWFkYzAxNjg1OGVhZTQzZTk3MTExMzcwMGZjYzcyZDI1YTNlYzIzZTJh
|
14
|
+
MTBiY2Q3ZjZmNzQ2YTI0YzVkNThmZWU1YjE0MjI3ODhhMTIzNzMzZTBkMmM5
|
15
|
+
MGYyMmQ3OGRlYWY2ZWQzZmJiOGI4NGQzZDk0YzY4ZWVjODNhZWU=
|
@@ -10,8 +10,9 @@ module ActiveRecordPartitioning
|
|
10
10
|
ActiveRecord::Base.connection_handler = ActiveRecord::ConnectionAdapters::ConnectionHandler.new(new_pools)
|
11
11
|
end
|
12
12
|
|
13
|
-
def
|
13
|
+
def reset
|
14
14
|
self.default_config = nil
|
15
|
+
ActiveRecord::Base.clear_active_connections!
|
15
16
|
ActiveRecord::Base.connection_handler = ActiveRecord::ConnectionAdapters::ConnectionHandler.new
|
16
17
|
end
|
17
18
|
|
metadata
CHANGED
@@ -1,113 +1,93 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord_partitioning
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 9
|
10
|
-
version: 0.0.9
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Xiao Li
|
14
8
|
- sdqali
|
15
9
|
autorequire:
|
16
10
|
bindir: bin
|
17
11
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-10-12 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: activerecord
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
- - "="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 39
|
30
|
-
segments:
|
31
|
-
- 2
|
32
|
-
- 3
|
33
|
-
- 18
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - '='
|
19
|
+
- !ruby/object:Gem::Version
|
34
20
|
version: 2.3.18
|
35
21
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: rake
|
39
22
|
prerelease: false
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - '='
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 2.3.18
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ! '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
49
35
|
type: :development
|
50
|
-
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: sqlite3
|
53
36
|
prerelease: false
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ! '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: sqlite3
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ! '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
63
49
|
type: :development
|
64
|
-
|
65
|
-
|
66
|
-
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
description: An ActiveRecord ConnectionPools class supports switching connection pool
|
57
|
+
by database config instead of ActiveRecord model class name
|
58
|
+
email:
|
67
59
|
- swing1979@gmail.com
|
68
60
|
- sadiqalikm@gmail.com
|
69
61
|
executables: []
|
70
|
-
|
71
62
|
extensions: []
|
72
|
-
|
73
63
|
extra_rdoc_files: []
|
74
|
-
|
75
|
-
files:
|
64
|
+
files:
|
76
65
|
- README.md
|
77
66
|
- lib/activerecord_partitioning/connection_pools.rb
|
78
67
|
- lib/activerecord_partitioning.rb
|
79
68
|
homepage: https://github.com/ThoughtWorksStudios/activerecord_partitioning
|
80
|
-
licenses:
|
69
|
+
licenses:
|
81
70
|
- MIT
|
71
|
+
metadata: {}
|
82
72
|
post_install_message:
|
83
73
|
rdoc_options: []
|
84
|
-
|
85
|
-
require_paths:
|
74
|
+
require_paths:
|
86
75
|
- lib
|
87
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ">="
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
hash: 3
|
102
|
-
segments:
|
103
|
-
- 0
|
104
|
-
version: "0"
|
76
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
105
86
|
requirements: []
|
106
|
-
|
107
87
|
rubyforge_project:
|
108
|
-
rubygems_version:
|
88
|
+
rubygems_version: 2.0.6
|
109
89
|
signing_key:
|
110
|
-
specification_version:
|
111
|
-
summary: An ActiveRecord ConnectionPools class supports switching connection pool
|
90
|
+
specification_version: 4
|
91
|
+
summary: An ActiveRecord ConnectionPools class supports switching connection pool
|
92
|
+
by database config instead of ActiveRecord model class name
|
112
93
|
test_files: []
|
113
|
-
|