switchman 1.2.10 → 1.2.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/switchman/shard.rb +2 -2
  3. data/lib/switchman/active_record/connection_handler.rb +18 -9
  4. data/lib/switchman/active_record/connection_pool.rb +3 -0
  5. data/lib/switchman/active_record/query_cache.rb +6 -1
  6. data/lib/switchman/active_record/query_methods.rb +1 -1
  7. data/lib/switchman/connection_pool_proxy.rb +1 -1
  8. data/lib/switchman/r_spec_helper.rb +73 -61
  9. data/lib/switchman/test_helper.rb +8 -2
  10. data/lib/switchman/version.rb +1 -1
  11. data/lib/tasks/switchman.rake +5 -0
  12. data/spec/dummy/config/database.yml +2 -4
  13. data/spec/dummy/config/environments/development.rb +0 -4
  14. data/spec/dummy/config/environments/test.rb +1 -1
  15. data/spec/dummy/db/schema.rb +12 -12
  16. data/spec/dummy/db/shard_120.sqlite3 +0 -0
  17. data/spec/dummy/db/shard_156.sqlite3 +0 -0
  18. data/spec/dummy/db/shard_193.sqlite3 +0 -0
  19. data/spec/dummy/db/shard_23.sqlite3 +0 -0
  20. data/spec/dummy/db/shard_234.sqlite3 +0 -0
  21. data/spec/dummy/db/shard_257.sqlite3 +0 -0
  22. data/spec/dummy/db/shard_277.sqlite3 +0 -0
  23. data/spec/dummy/db/shard_311.sqlite3 +0 -0
  24. data/spec/dummy/db/shard_324.sqlite3 +0 -0
  25. data/spec/dummy/db/shard_342.sqlite3 +0 -0
  26. data/spec/dummy/db/shard_375.sqlite3 +0 -0
  27. data/spec/dummy/db/shard_389.sqlite3 +0 -0
  28. data/spec/dummy/db/shard_428.sqlite3 +0 -0
  29. data/spec/dummy/db/shard_452.sqlite3 +0 -0
  30. data/spec/dummy/db/shard_462.sqlite3 +0 -0
  31. data/spec/dummy/db/shard_483.sqlite3 +0 -0
  32. data/spec/dummy/db/shard_508.sqlite3 +0 -0
  33. data/spec/dummy/db/shard_531.sqlite3 +0 -0
  34. data/spec/dummy/db/shard_554.sqlite3 +0 -0
  35. data/spec/dummy/db/shard_577.sqlite3 +0 -0
  36. data/spec/dummy/db/shard_58.sqlite3 +0 -0
  37. data/spec/dummy/db/shard_600.sqlite3 +0 -0
  38. data/spec/dummy/db/shard_623.sqlite3 +0 -0
  39. data/spec/dummy/db/shard_646.sqlite3 +0 -0
  40. data/spec/dummy/db/shard_668.sqlite3 +0 -0
  41. data/spec/dummy/db/shard_680.sqlite3 +0 -0
  42. data/spec/dummy/db/shard_708.sqlite3 +0 -0
  43. data/spec/dummy/db/shard_735.sqlite3 +0 -0
  44. data/spec/dummy/db/shard_753.sqlite3 +0 -0
  45. data/spec/dummy/db/shard_76.sqlite3 +0 -0
  46. data/spec/dummy/db/shard_802.sqlite3 +0 -0
  47. data/spec/dummy/db/test.sqlite3 +0 -0
  48. data/spec/dummy/log/development.log +7 -0
  49. data/spec/dummy/log/test.log +106293 -0
  50. data/spec/dummy/tmp/cache/313/970/shard%2F30 +1 -0
  51. data/spec/dummy/tmp/cache/316/980/shard%2F15 +1 -0
  52. data/spec/dummy/tmp/cache/317/9D0/shard%2F52 +1 -0
  53. data/spec/dummy/tmp/cache/31C/A40/shard%2F75 +1 -0
  54. data/spec/dummy/tmp/cache/345/E00/shard%2F500 +1 -0
  55. data/spec/dummy/tmp/cache/346/DF0/shard%2F321 +1 -0
  56. data/spec/dummy/tmp/cache/349/DE0/shard%2F126 +1 -0
  57. data/spec/dummy/tmp/cache/349/E10/shard%2F153 +0 -0
  58. data/spec/dummy/tmp/cache/349/E20/shard%2F243 +1 -0
  59. data/spec/dummy/tmp/cache/34A/E20/shard%2F154 +0 -0
  60. data/spec/dummy/tmp/cache/34A/E40/shard%2F172 +1 -0
  61. data/spec/dummy/tmp/cache/34A/E70/shard%2F523 +1 -0
  62. data/spec/dummy/tmp/cache/34A/EB0/shard%2F721 +1 -0
  63. data/spec/dummy/tmp/cache/34A/EC0/shard%2F730 +1 -0
  64. data/spec/dummy/tmp/cache/34B/E40/shard%2F245 +0 -0
  65. data/spec/dummy/tmp/cache/34B/E60/shard%2F425 +1 -0
  66. data/spec/dummy/tmp/cache/34B/EC0/shard%2F722 +1 -0
  67. data/spec/dummy/tmp/cache/34C/E50/shard%2F246 +0 -0
  68. data/spec/dummy/tmp/cache/34C/E80/shard%2F273 +1 -0
  69. data/spec/dummy/tmp/cache/34C/E90/shard%2F363 +0 -0
  70. data/spec/dummy/tmp/cache/34C/E90/shard%2F444 +1 -0
  71. data/spec/dummy/tmp/cache/34C/EA0/shard%2F615 +1 -0
  72. data/spec/dummy/tmp/cache/34C/F00/shard%2F750 +1 -0
  73. data/spec/dummy/tmp/cache/34D/E80/shard%2F265 +1 -0
  74. data/spec/dummy/tmp/cache/34D/ED0/shard%2F391 +1 -0
  75. data/spec/dummy/tmp/cache/34D/EE0/shard%2F724 +1 -0
  76. data/spec/dummy/tmp/cache/34E/ED0/shard%2F383 +1 -0
  77. data/spec/dummy/tmp/cache/34E/EF0/shard%2F725 +1 -0
  78. data/spec/dummy/tmp/cache/34E/F00/shard%2F653 +1 -0
  79. data/spec/dummy/tmp/cache/34F/EE0/shard%2F546 +1 -0
  80. data/spec/dummy/tmp/cache/34F/F00/shard%2F807 +1 -0
  81. data/spec/dummy/tmp/cache/34F/F30/shard%2F672 +1 -0
  82. data/spec/dummy/tmp/cache/350/EA0/shard%2F178 +1 -0
  83. data/spec/dummy/tmp/cache/350/EB0/shard%2F349 +1 -0
  84. data/spec/dummy/tmp/cache/350/F00/shard%2F718 +0 -0
  85. data/spec/dummy/tmp/cache/350/F40/shard%2F592 +1 -0
  86. data/spec/dummy/tmp/cache/351/F00/shard%2F386 +0 -0
  87. data/spec/dummy/tmp/cache/351/F10/shard%2F638 +1 -0
  88. data/spec/dummy/tmp/cache/351/F10/shard%2F719 +0 -0
  89. data/spec/dummy/tmp/cache/352/F10/shard%2F387 +0 -0
  90. data/spec/dummy/tmp/cache/352/F10/shard%2F468 +1 -0
  91. data/spec/dummy/tmp/cache/352/F30/shard%2F729 +1 -0
  92. data/spec/dummy/tmp/cache/353/F10/shard%2F298 +1 -0
  93. data/spec/dummy/tmp/cache/353/F50/shard%2F739 +1 -0
  94. data/spec/dummy/tmp/cache/354/F50/shard%2F569 +1 -0
  95. data/spec/dummy/tmp/cache/354/F80/shard%2F677 +1 -0
  96. data/spec/dummy/tmp/cache/354/F90/shard%2F767 +1 -0
  97. data/spec/dummy/tmp/cache/358/FE0/shard%2F699 +1 -0
  98. data/spec/dummy/tmp/cache/3A5/EA0/shard%2F10004 +1 -0
  99. data/spec/dummy/tmp/cache/3A6/F40/shard%2F10410 +1 -0
  100. data/spec/dummy/tmp/cache/3A7/F30/shard%2F10231 +1 -0
  101. data/spec/dummy/tmp/cache/3A8/F90/shard%2F10520 +1 -0
  102. data/spec/dummy/tmp/cache/3A9/F40/shard%2F10062 +1 -0
  103. data/spec/dummy/tmp/cache/3A9/F80/shard%2F10341 +1 -0
  104. data/spec/dummy/tmp/cache/3AA/F10/shard%2F10027 +1 -0
  105. data/spec/dummy/tmp/cache/3AA/F10/shard%2F10108 +1 -0
  106. data/spec/dummy/tmp/cache/3AA/FB0/shard%2F10441 +1 -0
  107. data/spec/dummy/tmp/cache/3AA/FC0/shard%2F10612 +1 -0
  108. data/spec/dummy/tmp/cache/3AB/010/shard%2F10730 +1 -0
  109. data/spec/dummy/tmp/cache/3AB/F70/shard%2F10154 +1 -0
  110. data/spec/dummy/tmp/cache/3AC/020/shard%2F10650 +1 -0
  111. data/spec/dummy/tmp/cache/3AC/FC0/shard%2F10272 +1 -0
  112. data/spec/dummy/tmp/cache/3AD/000/shard%2F10543 +1 -0
  113. data/spec/dummy/tmp/cache/3AD/F50/shard%2F10039 +1 -0
  114. data/spec/dummy/tmp/cache/3AD/F90/shard%2F10318 +1 -0
  115. data/spec/dummy/tmp/cache/3AD/FA0/shard%2F10246 +1 -0
  116. data/spec/dummy/tmp/cache/3AE/060/shard%2F10751 +1 -0
  117. data/spec/dummy/tmp/cache/3AE/FF0/shard%2F10364 +1 -0
  118. data/spec/dummy/tmp/cache/3AF/030/shard%2F10635 +1 -0
  119. data/spec/dummy/tmp/cache/3B0/FE0/shard%2F10177 +1 -0
  120. data/spec/dummy/tmp/cache/3B1/030/shard%2F10295 +1 -0
  121. data/spec/dummy/tmp/cache/3B1/040/shard%2F10466 +1 -0
  122. data/spec/dummy/tmp/cache/3B1/090/shard%2F10673 +1 -0
  123. data/spec/dummy/tmp/cache/3B2/070/shard%2F10566 +1 -0
  124. data/spec/dummy/tmp/cache/3B3/060/shard%2F10387 +1 -0
  125. data/spec/dummy/tmp/cache/3B5/0B0/shard%2F10497 +1 -0
  126. data/spec/dummy/tmp/cache/3B6/100/shard%2F10696 +1 -0
  127. data/spec/dummy/tmp/cache/3B7/0E0/shard%2F10589 +1 -0
  128. data/spec/dummy/tmp/cache/3BA/160/shard%2F10799 +1 -0
  129. data/spec/lib/action_controller/caching_spec.rb +4 -4
  130. data/spec/lib/active_record/abstract_adapter_spec.rb +1 -1
  131. data/spec/lib/active_record/association_spec.rb +83 -67
  132. data/spec/lib/active_record/attribute_methods_spec.rb +29 -29
  133. data/spec/lib/active_record/base_spec.rb +20 -20
  134. data/spec/lib/active_record/calculations_spec.rb +79 -59
  135. data/spec/lib/active_record/connection_handler_spec.rb +14 -14
  136. data/spec/lib/active_record/connection_pool_spec.rb +7 -7
  137. data/spec/lib/active_record/finder_methods_spec.rb +8 -8
  138. data/spec/lib/active_record/query_cache_spec.rb +38 -38
  139. data/spec/lib/active_record/query_methods_spec.rb +45 -45
  140. data/spec/lib/active_record/relation_spec.rb +8 -8
  141. data/spec/lib/active_record/spawn_methods_spec.rb +11 -11
  142. data/spec/lib/connection_pool_proxy_spec.rb +2 -2
  143. data/spec/lib/database_server_spec.rb +37 -37
  144. data/spec/lib/default_shard_spec.rb +3 -3
  145. data/spec/lib/r_spec_helper_spec.rb +33 -7
  146. data/spec/lib/rails_spec.rb +5 -5
  147. data/spec/lib/shackles_spec.rb +35 -35
  148. data/spec/models/shard_spec.rb +104 -104
  149. data/spec/spec_helper.rb +1 -1
  150. metadata +254 -29
@@ -2,7 +2,6 @@
2
2
  ENV["RAILS_ENV"] ||= 'test'
3
3
  require File.expand_path("../dummy/config/environment", __FILE__)
4
4
  require 'rspec/rails'
5
- require 'rspec/autorun'
6
5
 
7
6
  require_dependency 'switchman/r_spec_helper'
8
7
 
@@ -14,6 +13,7 @@ RSpec.configure do |config|
14
13
  # ## Mock Framework
15
14
  config.mock_with :mocha
16
15
 
16
+ config.infer_spec_type_from_file_location!
17
17
  # If you're not using ActiveRecord, or you'd prefer not to run each of your
18
18
  # examples within a transaction, remove the following line or assign false
19
19
  # instead of true.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: switchman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.10
4
+ version: 1.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
@@ -10,116 +10,116 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-07-14 00:00:00.000000000 Z
13
+ date: 2014-07-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '>='
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
21
  version: '3.2'
22
- - - <
22
+ - - "<"
23
23
  - !ruby/object:Gem::Version
24
24
  version: '4.2'
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
- - - '>='
29
+ - - ">="
30
30
  - !ruby/object:Gem::Version
31
31
  version: '3.2'
32
- - - <
32
+ - - "<"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '4.2'
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: activerecord
37
37
  requirement: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '3.2'
42
- - - <
42
+ - - "<"
43
43
  - !ruby/object:Gem::Version
44
44
  version: '4.2'
45
45
  type: :runtime
46
46
  prerelease: false
47
47
  version_requirements: !ruby/object:Gem::Requirement
48
48
  requirements:
49
- - - '>='
49
+ - - ">="
50
50
  - !ruby/object:Gem::Version
51
51
  version: '3.2'
52
- - - <
52
+ - - "<"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '4.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: shackles
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: 1.0.5
62
62
  type: :runtime
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: 1.0.5
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mysql2
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0.3'
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.3'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pg
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec-rails
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '2.0'
103
+ version: '3.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '2.0'
110
+ version: '3.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: sqlite3
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  description: Sharding
@@ -129,9 +129,11 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
+ - Rakefile
132
133
  - app/models/switchman/shard.rb
133
134
  - db/migrate/20130328212039_create_switchman_shards.rb
134
135
  - db/migrate/20130328224244_create_default_shard.rb
136
+ - lib/switchman.rb
135
137
  - lib/switchman/action_controller/caching.rb
136
138
  - lib/switchman/active_record/abstract_adapter.rb
137
139
  - lib/switchman/active_record/association.rb
@@ -158,15 +160,15 @@ files:
158
160
  - lib/switchman/sharded_instrumenter.rb
159
161
  - lib/switchman/test_helper.rb
160
162
  - lib/switchman/version.rb
161
- - lib/switchman.rb
162
163
  - lib/tasks/switchman.rake
163
- - Rakefile
164
+ - spec/dummy/Rakefile
164
165
  - spec/dummy/app/models/appendage.rb
165
166
  - spec/dummy/app/models/digit.rb
166
167
  - spec/dummy/app/models/feature.rb
167
168
  - spec/dummy/app/models/mirror_user.rb
168
169
  - spec/dummy/app/models/root.rb
169
170
  - spec/dummy/app/models/user.rb
171
+ - spec/dummy/config.ru
170
172
  - spec/dummy/config/application.rb
171
173
  - spec/dummy/config/boot.rb
172
174
  - spec/dummy/config/database.yml
@@ -180,7 +182,6 @@ files:
180
182
  - spec/dummy/config/initializers/session_store.rb
181
183
  - spec/dummy/config/initializers/wrap_parameters.rb
182
184
  - spec/dummy/config/routes.rb
183
- - spec/dummy/config.ru
184
185
  - spec/dummy/db/development.sqlite3
185
186
  - spec/dummy/db/migrate/20130403132607_create_users.rb
186
187
  - spec/dummy/db/migrate/20130411202442_create_appendages.rb
@@ -190,9 +191,120 @@ files:
190
191
  - spec/dummy/db/migrate/20140123154135_add_parent_id_to_users.rb
191
192
  - spec/dummy/db/migrate/20140219183820_create_roots.rb
192
193
  - spec/dummy/db/schema.rb
194
+ - spec/dummy/db/shard_120.sqlite3
195
+ - spec/dummy/db/shard_156.sqlite3
196
+ - spec/dummy/db/shard_193.sqlite3
197
+ - spec/dummy/db/shard_23.sqlite3
198
+ - spec/dummy/db/shard_234.sqlite3
199
+ - spec/dummy/db/shard_257.sqlite3
200
+ - spec/dummy/db/shard_277.sqlite3
201
+ - spec/dummy/db/shard_311.sqlite3
202
+ - spec/dummy/db/shard_324.sqlite3
203
+ - spec/dummy/db/shard_342.sqlite3
204
+ - spec/dummy/db/shard_375.sqlite3
205
+ - spec/dummy/db/shard_389.sqlite3
206
+ - spec/dummy/db/shard_428.sqlite3
207
+ - spec/dummy/db/shard_452.sqlite3
208
+ - spec/dummy/db/shard_462.sqlite3
209
+ - spec/dummy/db/shard_483.sqlite3
210
+ - spec/dummy/db/shard_508.sqlite3
211
+ - spec/dummy/db/shard_531.sqlite3
212
+ - spec/dummy/db/shard_554.sqlite3
213
+ - spec/dummy/db/shard_577.sqlite3
214
+ - spec/dummy/db/shard_58.sqlite3
215
+ - spec/dummy/db/shard_600.sqlite3
216
+ - spec/dummy/db/shard_623.sqlite3
217
+ - spec/dummy/db/shard_646.sqlite3
218
+ - spec/dummy/db/shard_668.sqlite3
219
+ - spec/dummy/db/shard_680.sqlite3
220
+ - spec/dummy/db/shard_708.sqlite3
221
+ - spec/dummy/db/shard_735.sqlite3
222
+ - spec/dummy/db/shard_753.sqlite3
223
+ - spec/dummy/db/shard_76.sqlite3
224
+ - spec/dummy/db/shard_802.sqlite3
225
+ - spec/dummy/db/test.sqlite3
193
226
  - spec/dummy/log/development.log
194
- - spec/dummy/Rakefile
227
+ - spec/dummy/log/test.log
195
228
  - spec/dummy/script/rails
229
+ - spec/dummy/tmp/cache/313/970/shard%2F30
230
+ - spec/dummy/tmp/cache/316/980/shard%2F15
231
+ - spec/dummy/tmp/cache/317/9D0/shard%2F52
232
+ - spec/dummy/tmp/cache/31C/A40/shard%2F75
233
+ - spec/dummy/tmp/cache/345/E00/shard%2F500
234
+ - spec/dummy/tmp/cache/346/DF0/shard%2F321
235
+ - spec/dummy/tmp/cache/349/DE0/shard%2F126
236
+ - spec/dummy/tmp/cache/349/E10/shard%2F153
237
+ - spec/dummy/tmp/cache/349/E20/shard%2F243
238
+ - spec/dummy/tmp/cache/34A/E20/shard%2F154
239
+ - spec/dummy/tmp/cache/34A/E40/shard%2F172
240
+ - spec/dummy/tmp/cache/34A/E70/shard%2F523
241
+ - spec/dummy/tmp/cache/34A/EB0/shard%2F721
242
+ - spec/dummy/tmp/cache/34A/EC0/shard%2F730
243
+ - spec/dummy/tmp/cache/34B/E40/shard%2F245
244
+ - spec/dummy/tmp/cache/34B/E60/shard%2F425
245
+ - spec/dummy/tmp/cache/34B/EC0/shard%2F722
246
+ - spec/dummy/tmp/cache/34C/E50/shard%2F246
247
+ - spec/dummy/tmp/cache/34C/E80/shard%2F273
248
+ - spec/dummy/tmp/cache/34C/E90/shard%2F363
249
+ - spec/dummy/tmp/cache/34C/E90/shard%2F444
250
+ - spec/dummy/tmp/cache/34C/EA0/shard%2F615
251
+ - spec/dummy/tmp/cache/34C/F00/shard%2F750
252
+ - spec/dummy/tmp/cache/34D/E80/shard%2F265
253
+ - spec/dummy/tmp/cache/34D/ED0/shard%2F391
254
+ - spec/dummy/tmp/cache/34D/EE0/shard%2F724
255
+ - spec/dummy/tmp/cache/34E/ED0/shard%2F383
256
+ - spec/dummy/tmp/cache/34E/EF0/shard%2F725
257
+ - spec/dummy/tmp/cache/34E/F00/shard%2F653
258
+ - spec/dummy/tmp/cache/34F/EE0/shard%2F546
259
+ - spec/dummy/tmp/cache/34F/F00/shard%2F807
260
+ - spec/dummy/tmp/cache/34F/F30/shard%2F672
261
+ - spec/dummy/tmp/cache/350/EA0/shard%2F178
262
+ - spec/dummy/tmp/cache/350/EB0/shard%2F349
263
+ - spec/dummy/tmp/cache/350/F00/shard%2F718
264
+ - spec/dummy/tmp/cache/350/F40/shard%2F592
265
+ - spec/dummy/tmp/cache/351/F00/shard%2F386
266
+ - spec/dummy/tmp/cache/351/F10/shard%2F638
267
+ - spec/dummy/tmp/cache/351/F10/shard%2F719
268
+ - spec/dummy/tmp/cache/352/F10/shard%2F387
269
+ - spec/dummy/tmp/cache/352/F10/shard%2F468
270
+ - spec/dummy/tmp/cache/352/F30/shard%2F729
271
+ - spec/dummy/tmp/cache/353/F10/shard%2F298
272
+ - spec/dummy/tmp/cache/353/F50/shard%2F739
273
+ - spec/dummy/tmp/cache/354/F50/shard%2F569
274
+ - spec/dummy/tmp/cache/354/F80/shard%2F677
275
+ - spec/dummy/tmp/cache/354/F90/shard%2F767
276
+ - spec/dummy/tmp/cache/358/FE0/shard%2F699
277
+ - spec/dummy/tmp/cache/3A5/EA0/shard%2F10004
278
+ - spec/dummy/tmp/cache/3A6/F40/shard%2F10410
279
+ - spec/dummy/tmp/cache/3A7/F30/shard%2F10231
280
+ - spec/dummy/tmp/cache/3A8/F90/shard%2F10520
281
+ - spec/dummy/tmp/cache/3A9/F40/shard%2F10062
282
+ - spec/dummy/tmp/cache/3A9/F80/shard%2F10341
283
+ - spec/dummy/tmp/cache/3AA/F10/shard%2F10027
284
+ - spec/dummy/tmp/cache/3AA/F10/shard%2F10108
285
+ - spec/dummy/tmp/cache/3AA/FB0/shard%2F10441
286
+ - spec/dummy/tmp/cache/3AA/FC0/shard%2F10612
287
+ - spec/dummy/tmp/cache/3AB/010/shard%2F10730
288
+ - spec/dummy/tmp/cache/3AB/F70/shard%2F10154
289
+ - spec/dummy/tmp/cache/3AC/020/shard%2F10650
290
+ - spec/dummy/tmp/cache/3AC/FC0/shard%2F10272
291
+ - spec/dummy/tmp/cache/3AD/000/shard%2F10543
292
+ - spec/dummy/tmp/cache/3AD/F50/shard%2F10039
293
+ - spec/dummy/tmp/cache/3AD/F90/shard%2F10318
294
+ - spec/dummy/tmp/cache/3AD/FA0/shard%2F10246
295
+ - spec/dummy/tmp/cache/3AE/060/shard%2F10751
296
+ - spec/dummy/tmp/cache/3AE/FF0/shard%2F10364
297
+ - spec/dummy/tmp/cache/3AF/030/shard%2F10635
298
+ - spec/dummy/tmp/cache/3B0/FE0/shard%2F10177
299
+ - spec/dummy/tmp/cache/3B1/030/shard%2F10295
300
+ - spec/dummy/tmp/cache/3B1/040/shard%2F10466
301
+ - spec/dummy/tmp/cache/3B1/090/shard%2F10673
302
+ - spec/dummy/tmp/cache/3B2/070/shard%2F10566
303
+ - spec/dummy/tmp/cache/3B3/060/shard%2F10387
304
+ - spec/dummy/tmp/cache/3B5/0B0/shard%2F10497
305
+ - spec/dummy/tmp/cache/3B6/100/shard%2F10696
306
+ - spec/dummy/tmp/cache/3B7/0E0/shard%2F10589
307
+ - spec/dummy/tmp/cache/3BA/160/shard%2F10799
196
308
  - spec/lib/action_controller/caching_spec.rb
197
309
  - spec/lib/active_record/abstract_adapter_spec.rb
198
310
  - spec/lib/active_record/association_spec.rb
@@ -224,17 +336,17 @@ require_paths:
224
336
  - lib
225
337
  required_ruby_version: !ruby/object:Gem::Requirement
226
338
  requirements:
227
- - - '>='
339
+ - - ">="
228
340
  - !ruby/object:Gem::Version
229
341
  version: '0'
230
342
  required_rubygems_version: !ruby/object:Gem::Requirement
231
343
  requirements:
232
- - - '>='
344
+ - - ">="
233
345
  - !ruby/object:Gem::Version
234
346
  version: '0'
235
347
  requirements: []
236
348
  rubyforge_project:
237
- rubygems_version: 2.0.14
349
+ rubygems_version: 2.3.0
238
350
  signing_key:
239
351
  specification_version: 4
240
352
  summary: Rails 3 sharding magic
@@ -268,9 +380,121 @@ test_files:
268
380
  - spec/dummy/db/migrate/20140123154135_add_parent_id_to_users.rb
269
381
  - spec/dummy/db/migrate/20140219183820_create_roots.rb
270
382
  - spec/dummy/db/schema.rb
383
+ - spec/dummy/db/shard_120.sqlite3
384
+ - spec/dummy/db/shard_156.sqlite3
385
+ - spec/dummy/db/shard_193.sqlite3
386
+ - spec/dummy/db/shard_23.sqlite3
387
+ - spec/dummy/db/shard_234.sqlite3
388
+ - spec/dummy/db/shard_257.sqlite3
389
+ - spec/dummy/db/shard_277.sqlite3
390
+ - spec/dummy/db/shard_311.sqlite3
391
+ - spec/dummy/db/shard_324.sqlite3
392
+ - spec/dummy/db/shard_342.sqlite3
393
+ - spec/dummy/db/shard_375.sqlite3
394
+ - spec/dummy/db/shard_389.sqlite3
395
+ - spec/dummy/db/shard_428.sqlite3
396
+ - spec/dummy/db/shard_452.sqlite3
397
+ - spec/dummy/db/shard_462.sqlite3
398
+ - spec/dummy/db/shard_483.sqlite3
399
+ - spec/dummy/db/shard_508.sqlite3
400
+ - spec/dummy/db/shard_531.sqlite3
401
+ - spec/dummy/db/shard_554.sqlite3
402
+ - spec/dummy/db/shard_577.sqlite3
403
+ - spec/dummy/db/shard_58.sqlite3
404
+ - spec/dummy/db/shard_600.sqlite3
405
+ - spec/dummy/db/shard_623.sqlite3
406
+ - spec/dummy/db/shard_646.sqlite3
407
+ - spec/dummy/db/shard_668.sqlite3
408
+ - spec/dummy/db/shard_680.sqlite3
409
+ - spec/dummy/db/shard_708.sqlite3
410
+ - spec/dummy/db/shard_735.sqlite3
411
+ - spec/dummy/db/shard_753.sqlite3
412
+ - spec/dummy/db/shard_76.sqlite3
413
+ - spec/dummy/db/shard_802.sqlite3
414
+ - spec/dummy/db/test.sqlite3
271
415
  - spec/dummy/log/development.log
416
+ - spec/dummy/log/test.log
272
417
  - spec/dummy/Rakefile
273
418
  - spec/dummy/script/rails
419
+ - spec/dummy/tmp/cache/313/970/shard%2F30
420
+ - spec/dummy/tmp/cache/316/980/shard%2F15
421
+ - spec/dummy/tmp/cache/317/9D0/shard%2F52
422
+ - spec/dummy/tmp/cache/31C/A40/shard%2F75
423
+ - spec/dummy/tmp/cache/345/E00/shard%2F500
424
+ - spec/dummy/tmp/cache/346/DF0/shard%2F321
425
+ - spec/dummy/tmp/cache/349/DE0/shard%2F126
426
+ - spec/dummy/tmp/cache/349/E10/shard%2F153
427
+ - spec/dummy/tmp/cache/349/E20/shard%2F243
428
+ - spec/dummy/tmp/cache/34A/E20/shard%2F154
429
+ - spec/dummy/tmp/cache/34A/E40/shard%2F172
430
+ - spec/dummy/tmp/cache/34A/E70/shard%2F523
431
+ - spec/dummy/tmp/cache/34A/EB0/shard%2F721
432
+ - spec/dummy/tmp/cache/34A/EC0/shard%2F730
433
+ - spec/dummy/tmp/cache/34B/E40/shard%2F245
434
+ - spec/dummy/tmp/cache/34B/E60/shard%2F425
435
+ - spec/dummy/tmp/cache/34B/EC0/shard%2F722
436
+ - spec/dummy/tmp/cache/34C/E50/shard%2F246
437
+ - spec/dummy/tmp/cache/34C/E80/shard%2F273
438
+ - spec/dummy/tmp/cache/34C/E90/shard%2F363
439
+ - spec/dummy/tmp/cache/34C/E90/shard%2F444
440
+ - spec/dummy/tmp/cache/34C/EA0/shard%2F615
441
+ - spec/dummy/tmp/cache/34C/F00/shard%2F750
442
+ - spec/dummy/tmp/cache/34D/E80/shard%2F265
443
+ - spec/dummy/tmp/cache/34D/ED0/shard%2F391
444
+ - spec/dummy/tmp/cache/34D/EE0/shard%2F724
445
+ - spec/dummy/tmp/cache/34E/ED0/shard%2F383
446
+ - spec/dummy/tmp/cache/34E/EF0/shard%2F725
447
+ - spec/dummy/tmp/cache/34E/F00/shard%2F653
448
+ - spec/dummy/tmp/cache/34F/EE0/shard%2F546
449
+ - spec/dummy/tmp/cache/34F/F00/shard%2F807
450
+ - spec/dummy/tmp/cache/34F/F30/shard%2F672
451
+ - spec/dummy/tmp/cache/350/EA0/shard%2F178
452
+ - spec/dummy/tmp/cache/350/EB0/shard%2F349
453
+ - spec/dummy/tmp/cache/350/F00/shard%2F718
454
+ - spec/dummy/tmp/cache/350/F40/shard%2F592
455
+ - spec/dummy/tmp/cache/351/F00/shard%2F386
456
+ - spec/dummy/tmp/cache/351/F10/shard%2F638
457
+ - spec/dummy/tmp/cache/351/F10/shard%2F719
458
+ - spec/dummy/tmp/cache/352/F10/shard%2F387
459
+ - spec/dummy/tmp/cache/352/F10/shard%2F468
460
+ - spec/dummy/tmp/cache/352/F30/shard%2F729
461
+ - spec/dummy/tmp/cache/353/F10/shard%2F298
462
+ - spec/dummy/tmp/cache/353/F50/shard%2F739
463
+ - spec/dummy/tmp/cache/354/F50/shard%2F569
464
+ - spec/dummy/tmp/cache/354/F80/shard%2F677
465
+ - spec/dummy/tmp/cache/354/F90/shard%2F767
466
+ - spec/dummy/tmp/cache/358/FE0/shard%2F699
467
+ - spec/dummy/tmp/cache/3A5/EA0/shard%2F10004
468
+ - spec/dummy/tmp/cache/3A6/F40/shard%2F10410
469
+ - spec/dummy/tmp/cache/3A7/F30/shard%2F10231
470
+ - spec/dummy/tmp/cache/3A8/F90/shard%2F10520
471
+ - spec/dummy/tmp/cache/3A9/F40/shard%2F10062
472
+ - spec/dummy/tmp/cache/3A9/F80/shard%2F10341
473
+ - spec/dummy/tmp/cache/3AA/F10/shard%2F10027
474
+ - spec/dummy/tmp/cache/3AA/F10/shard%2F10108
475
+ - spec/dummy/tmp/cache/3AA/FB0/shard%2F10441
476
+ - spec/dummy/tmp/cache/3AA/FC0/shard%2F10612
477
+ - spec/dummy/tmp/cache/3AB/010/shard%2F10730
478
+ - spec/dummy/tmp/cache/3AB/F70/shard%2F10154
479
+ - spec/dummy/tmp/cache/3AC/020/shard%2F10650
480
+ - spec/dummy/tmp/cache/3AC/FC0/shard%2F10272
481
+ - spec/dummy/tmp/cache/3AD/000/shard%2F10543
482
+ - spec/dummy/tmp/cache/3AD/F50/shard%2F10039
483
+ - spec/dummy/tmp/cache/3AD/F90/shard%2F10318
484
+ - spec/dummy/tmp/cache/3AD/FA0/shard%2F10246
485
+ - spec/dummy/tmp/cache/3AE/060/shard%2F10751
486
+ - spec/dummy/tmp/cache/3AE/FF0/shard%2F10364
487
+ - spec/dummy/tmp/cache/3AF/030/shard%2F10635
488
+ - spec/dummy/tmp/cache/3B0/FE0/shard%2F10177
489
+ - spec/dummy/tmp/cache/3B1/030/shard%2F10295
490
+ - spec/dummy/tmp/cache/3B1/040/shard%2F10466
491
+ - spec/dummy/tmp/cache/3B1/090/shard%2F10673
492
+ - spec/dummy/tmp/cache/3B2/070/shard%2F10566
493
+ - spec/dummy/tmp/cache/3B3/060/shard%2F10387
494
+ - spec/dummy/tmp/cache/3B5/0B0/shard%2F10497
495
+ - spec/dummy/tmp/cache/3B6/100/shard%2F10696
496
+ - spec/dummy/tmp/cache/3B7/0E0/shard%2F10589
497
+ - spec/dummy/tmp/cache/3BA/160/shard%2F10799
274
498
  - spec/lib/action_controller/caching_spec.rb
275
499
  - spec/lib/active_record/abstract_adapter_spec.rb
276
500
  - spec/lib/active_record/association_spec.rb
@@ -292,3 +516,4 @@ test_files:
292
516
  - spec/lib/shackles_spec.rb
293
517
  - spec/models/shard_spec.rb
294
518
  - spec/spec_helper.rb
519
+ has_rdoc: