switchman 1.2.40 → 1.2.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/switchman/active_record/attribute_methods.rb +9 -0
- data/lib/switchman/active_record/connection_pool.rb +3 -1
- data/lib/switchman/database_server.rb +2 -2
- data/lib/switchman/version.rb +1 -1
- data/spec/dummy/log/test.log +1118 -0
- data/spec/models/shard_spec.rb +1 -0
- metadata +3 -39
- data/spec/dummy/tmp/cache/34A/EC0/shard%2F811 +0 -0
- data/spec/dummy/tmp/cache/34B/EE0/shard%2F740 +0 -0
- data/spec/dummy/tmp/cache/34D/EF0/shard%2F814 +0 -0
- data/spec/dummy/tmp/cache/34F/F20/shard%2F744 +0 -0
- data/spec/dummy/tmp/cache/34F/F30/shard%2F753 +0 -0
- data/spec/dummy/tmp/cache/34F/F40/shard%2F762 +0 -0
- data/spec/dummy/tmp/cache/34F/F60/shard%2F780 +0 -0
- data/spec/dummy/tmp/cache/350/F40/shard%2F754 +0 -0
- data/spec/dummy/tmp/cache/350/F50/shard%2F763 +0 -0
- data/spec/dummy/tmp/cache/350/F60/shard%2F772 +0 -0
- data/spec/dummy/tmp/cache/352/F40/shard%2F738 +0 -0
- data/spec/dummy/tmp/cache/352/F50/shard%2F747 +0 -0
- data/spec/dummy/tmp/cache/352/F60/shard%2F756 +0 -0
- data/spec/dummy/tmp/cache/353/F70/shard%2F757 +0 -0
- data/spec/dummy/tmp/cache/353/F90/shard%2F775 +0 -0
- data/spec/dummy/tmp/cache/354/FA0/shard%2F776 +0 -0
- data/spec/dummy/tmp/cache/355/F90/shard%2F759 +0 -1
- data/spec/dummy/tmp/cache/357/FF0/shard%2F797 +0 -0
data/spec/models/shard_spec.rb
CHANGED
@@ -270,6 +270,7 @@ module Switchman
|
|
270
270
|
connection = mock()
|
271
271
|
connection.stubs(:open_transactions).returns(0)
|
272
272
|
connection.expects(:current_schemas).returns(['canvas', 'public']).once
|
273
|
+
connection.expects(:schema_search_path).returns('canvas,public').once
|
273
274
|
connection.expects(:schema_search_path=).with(nil).once
|
274
275
|
connection.stubs(:shard).returns(Shard.default)
|
275
276
|
connection.expects(:shard=).with(shard)
|
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.
|
4
|
+
version: 1.2.41
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-09-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|
@@ -311,14 +311,12 @@ files:
|
|
311
311
|
- spec/dummy/tmp/cache/34A/E90/shard%2F541
|
312
312
|
- spec/dummy/tmp/cache/34A/E90/shard%2F703
|
313
313
|
- spec/dummy/tmp/cache/34A/EB0/shard%2F640
|
314
|
-
- spec/dummy/tmp/cache/34A/EC0/shard%2F811
|
315
314
|
- spec/dummy/tmp/cache/34B/E00/shard%2F128
|
316
315
|
- spec/dummy/tmp/cache/34B/E80/shard%2F281
|
317
316
|
- spec/dummy/tmp/cache/34B/E80/shard%2F443
|
318
317
|
- spec/dummy/tmp/cache/34B/E80/shard%2F605
|
319
318
|
- spec/dummy/tmp/cache/34B/E90/shard%2F614
|
320
319
|
- spec/dummy/tmp/cache/34B/ED0/shard%2F650
|
321
|
-
- spec/dummy/tmp/cache/34B/EE0/shard%2F740
|
322
320
|
- spec/dummy/tmp/cache/34B/EE0/shard%2F902
|
323
321
|
- spec/dummy/tmp/cache/34B/EF0/shard%2F911
|
324
322
|
- spec/dummy/tmp/cache/34C/E20/shard%2F138
|
@@ -341,7 +339,6 @@ files:
|
|
341
339
|
- spec/dummy/tmp/cache/34D/EB0/shard%2F535
|
342
340
|
- spec/dummy/tmp/cache/34D/EB0/shard%2F616
|
343
341
|
- spec/dummy/tmp/cache/34D/ED0/shard%2F715
|
344
|
-
- spec/dummy/tmp/cache/34D/EF0/shard%2F814
|
345
342
|
- spec/dummy/tmp/cache/34D/F30/shard%2F931
|
346
343
|
- spec/dummy/tmp/cache/34E/E60/shard%2F158
|
347
344
|
- spec/dummy/tmp/cache/34E/EB0/shard%2F608
|
@@ -358,24 +355,17 @@ files:
|
|
358
355
|
- spec/dummy/tmp/cache/34F/EE0/shard%2F465
|
359
356
|
- spec/dummy/tmp/cache/34F/F00/shard%2F645
|
360
357
|
- spec/dummy/tmp/cache/34F/F10/shard%2F573
|
361
|
-
- spec/dummy/tmp/cache/34F/F20/shard%2F744
|
362
358
|
- spec/dummy/tmp/cache/34F/F20/shard%2F906
|
363
|
-
- spec/dummy/tmp/cache/34F/F30/shard%2F753
|
364
359
|
- spec/dummy/tmp/cache/34F/F30/shard%2F834
|
365
|
-
- spec/dummy/tmp/cache/34F/F40/shard%2F762
|
366
360
|
- spec/dummy/tmp/cache/34F/F40/shard%2F924
|
367
361
|
- spec/dummy/tmp/cache/34F/F50/shard%2F852
|
368
|
-
- spec/dummy/tmp/cache/34F/F60/shard%2F780
|
369
362
|
- spec/dummy/tmp/cache/350/ED0/shard%2F529
|
370
363
|
- spec/dummy/tmp/cache/350/EE0/shard%2F538
|
371
364
|
- spec/dummy/tmp/cache/350/EE0/shard%2F619
|
372
365
|
- spec/dummy/tmp/cache/350/F00/shard%2F718
|
373
366
|
- spec/dummy/tmp/cache/350/F10/shard%2F646
|
374
367
|
- spec/dummy/tmp/cache/350/F30/shard%2F907
|
375
|
-
- spec/dummy/tmp/cache/350/F40/shard%2F754
|
376
|
-
- spec/dummy/tmp/cache/350/F50/shard%2F763
|
377
368
|
- spec/dummy/tmp/cache/350/F60/shard%2F691
|
378
|
-
- spec/dummy/tmp/cache/350/F60/shard%2F772
|
379
369
|
- spec/dummy/tmp/cache/350/F70/shard%2F862
|
380
370
|
- spec/dummy/tmp/cache/350/F90/shard%2F961
|
381
371
|
- spec/dummy/tmp/cache/351/EF0/shard%2F296
|
@@ -384,9 +374,6 @@ files:
|
|
384
374
|
- spec/dummy/tmp/cache/351/F50/shard%2F593
|
385
375
|
- spec/dummy/tmp/cache/352/F00/shard%2F297
|
386
376
|
- spec/dummy/tmp/cache/352/F30/shard%2F567
|
387
|
-
- spec/dummy/tmp/cache/352/F40/shard%2F738
|
388
|
-
- spec/dummy/tmp/cache/352/F50/shard%2F747
|
389
|
-
- spec/dummy/tmp/cache/352/F60/shard%2F756
|
390
377
|
- spec/dummy/tmp/cache/352/FA0/shard%2F873
|
391
378
|
- spec/dummy/tmp/cache/352/FB0/shard%2F882
|
392
379
|
- spec/dummy/tmp/cache/352/FC0/shard%2F972
|
@@ -394,8 +381,6 @@ files:
|
|
394
381
|
- spec/dummy/tmp/cache/353/F30/shard%2F478
|
395
382
|
- spec/dummy/tmp/cache/353/F30/shard%2F559
|
396
383
|
- spec/dummy/tmp/cache/353/F50/shard%2F496
|
397
|
-
- spec/dummy/tmp/cache/353/F70/shard%2F757
|
398
|
-
- spec/dummy/tmp/cache/353/F90/shard%2F775
|
399
384
|
- spec/dummy/tmp/cache/353/FA0/shard%2F865
|
400
385
|
- spec/dummy/tmp/cache/353/FB0/shard%2F955
|
401
386
|
- spec/dummy/tmp/cache/353/FE0/shard%2F982
|
@@ -404,10 +389,8 @@ files:
|
|
404
389
|
- spec/dummy/tmp/cache/354/F50/shard%2F569
|
405
390
|
- spec/dummy/tmp/cache/354/F70/shard%2F668
|
406
391
|
- spec/dummy/tmp/cache/354/F90/shard%2F848
|
407
|
-
- spec/dummy/tmp/cache/354/FA0/shard%2F776
|
408
392
|
- spec/dummy/tmp/cache/354/FB0/shard%2F866
|
409
393
|
- spec/dummy/tmp/cache/354/FC0/shard%2F956
|
410
|
-
- spec/dummy/tmp/cache/355/F90/shard%2F759
|
411
394
|
- spec/dummy/tmp/cache/355/FA0/shard%2F687
|
412
395
|
- spec/dummy/tmp/cache/355/FA0/shard%2F849
|
413
396
|
- spec/dummy/tmp/cache/355/FD0/shard%2F876
|
@@ -417,7 +400,6 @@ files:
|
|
417
400
|
- spec/dummy/tmp/cache/356/FD0/shard%2F868
|
418
401
|
- spec/dummy/tmp/cache/356/FE0/shard%2F958
|
419
402
|
- spec/dummy/tmp/cache/357/FB0/shard%2F599
|
420
|
-
- spec/dummy/tmp/cache/357/FF0/shard%2F797
|
421
403
|
- spec/dummy/tmp/cache/358/000/shard%2F879
|
422
404
|
- spec/dummy/tmp/cache/358/020/shard%2F897
|
423
405
|
- spec/dummy/tmp/cache/359/050/shard%2F997
|
@@ -1004,7 +986,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1004
986
|
version: '0'
|
1005
987
|
requirements: []
|
1006
988
|
rubyforge_project:
|
1007
|
-
rubygems_version: 2.
|
989
|
+
rubygems_version: 2.4.7
|
1008
990
|
signing_key:
|
1009
991
|
specification_version: 4
|
1010
992
|
summary: Rails 3 sharding magic
|
@@ -1141,14 +1123,12 @@ test_files:
|
|
1141
1123
|
- spec/dummy/tmp/cache/34A/E90/shard%2F541
|
1142
1124
|
- spec/dummy/tmp/cache/34A/E90/shard%2F703
|
1143
1125
|
- spec/dummy/tmp/cache/34A/EB0/shard%2F640
|
1144
|
-
- spec/dummy/tmp/cache/34A/EC0/shard%2F811
|
1145
1126
|
- spec/dummy/tmp/cache/34B/E00/shard%2F128
|
1146
1127
|
- spec/dummy/tmp/cache/34B/E80/shard%2F281
|
1147
1128
|
- spec/dummy/tmp/cache/34B/E80/shard%2F443
|
1148
1129
|
- spec/dummy/tmp/cache/34B/E80/shard%2F605
|
1149
1130
|
- spec/dummy/tmp/cache/34B/E90/shard%2F614
|
1150
1131
|
- spec/dummy/tmp/cache/34B/ED0/shard%2F650
|
1151
|
-
- spec/dummy/tmp/cache/34B/EE0/shard%2F740
|
1152
1132
|
- spec/dummy/tmp/cache/34B/EE0/shard%2F902
|
1153
1133
|
- spec/dummy/tmp/cache/34B/EF0/shard%2F911
|
1154
1134
|
- spec/dummy/tmp/cache/34C/E20/shard%2F138
|
@@ -1171,7 +1151,6 @@ test_files:
|
|
1171
1151
|
- spec/dummy/tmp/cache/34D/EB0/shard%2F535
|
1172
1152
|
- spec/dummy/tmp/cache/34D/EB0/shard%2F616
|
1173
1153
|
- spec/dummy/tmp/cache/34D/ED0/shard%2F715
|
1174
|
-
- spec/dummy/tmp/cache/34D/EF0/shard%2F814
|
1175
1154
|
- spec/dummy/tmp/cache/34D/F30/shard%2F931
|
1176
1155
|
- spec/dummy/tmp/cache/34E/E60/shard%2F158
|
1177
1156
|
- spec/dummy/tmp/cache/34E/EB0/shard%2F608
|
@@ -1188,24 +1167,17 @@ test_files:
|
|
1188
1167
|
- spec/dummy/tmp/cache/34F/EE0/shard%2F465
|
1189
1168
|
- spec/dummy/tmp/cache/34F/F00/shard%2F645
|
1190
1169
|
- spec/dummy/tmp/cache/34F/F10/shard%2F573
|
1191
|
-
- spec/dummy/tmp/cache/34F/F20/shard%2F744
|
1192
1170
|
- spec/dummy/tmp/cache/34F/F20/shard%2F906
|
1193
|
-
- spec/dummy/tmp/cache/34F/F30/shard%2F753
|
1194
1171
|
- spec/dummy/tmp/cache/34F/F30/shard%2F834
|
1195
|
-
- spec/dummy/tmp/cache/34F/F40/shard%2F762
|
1196
1172
|
- spec/dummy/tmp/cache/34F/F40/shard%2F924
|
1197
1173
|
- spec/dummy/tmp/cache/34F/F50/shard%2F852
|
1198
|
-
- spec/dummy/tmp/cache/34F/F60/shard%2F780
|
1199
1174
|
- spec/dummy/tmp/cache/350/ED0/shard%2F529
|
1200
1175
|
- spec/dummy/tmp/cache/350/EE0/shard%2F538
|
1201
1176
|
- spec/dummy/tmp/cache/350/EE0/shard%2F619
|
1202
1177
|
- spec/dummy/tmp/cache/350/F00/shard%2F718
|
1203
1178
|
- spec/dummy/tmp/cache/350/F10/shard%2F646
|
1204
1179
|
- spec/dummy/tmp/cache/350/F30/shard%2F907
|
1205
|
-
- spec/dummy/tmp/cache/350/F40/shard%2F754
|
1206
|
-
- spec/dummy/tmp/cache/350/F50/shard%2F763
|
1207
1180
|
- spec/dummy/tmp/cache/350/F60/shard%2F691
|
1208
|
-
- spec/dummy/tmp/cache/350/F60/shard%2F772
|
1209
1181
|
- spec/dummy/tmp/cache/350/F70/shard%2F862
|
1210
1182
|
- spec/dummy/tmp/cache/350/F90/shard%2F961
|
1211
1183
|
- spec/dummy/tmp/cache/351/EF0/shard%2F296
|
@@ -1214,9 +1186,6 @@ test_files:
|
|
1214
1186
|
- spec/dummy/tmp/cache/351/F50/shard%2F593
|
1215
1187
|
- spec/dummy/tmp/cache/352/F00/shard%2F297
|
1216
1188
|
- spec/dummy/tmp/cache/352/F30/shard%2F567
|
1217
|
-
- spec/dummy/tmp/cache/352/F40/shard%2F738
|
1218
|
-
- spec/dummy/tmp/cache/352/F50/shard%2F747
|
1219
|
-
- spec/dummy/tmp/cache/352/F60/shard%2F756
|
1220
1189
|
- spec/dummy/tmp/cache/352/FA0/shard%2F873
|
1221
1190
|
- spec/dummy/tmp/cache/352/FB0/shard%2F882
|
1222
1191
|
- spec/dummy/tmp/cache/352/FC0/shard%2F972
|
@@ -1224,8 +1193,6 @@ test_files:
|
|
1224
1193
|
- spec/dummy/tmp/cache/353/F30/shard%2F478
|
1225
1194
|
- spec/dummy/tmp/cache/353/F30/shard%2F559
|
1226
1195
|
- spec/dummy/tmp/cache/353/F50/shard%2F496
|
1227
|
-
- spec/dummy/tmp/cache/353/F70/shard%2F757
|
1228
|
-
- spec/dummy/tmp/cache/353/F90/shard%2F775
|
1229
1196
|
- spec/dummy/tmp/cache/353/FA0/shard%2F865
|
1230
1197
|
- spec/dummy/tmp/cache/353/FB0/shard%2F955
|
1231
1198
|
- spec/dummy/tmp/cache/353/FE0/shard%2F982
|
@@ -1234,10 +1201,8 @@ test_files:
|
|
1234
1201
|
- spec/dummy/tmp/cache/354/F50/shard%2F569
|
1235
1202
|
- spec/dummy/tmp/cache/354/F70/shard%2F668
|
1236
1203
|
- spec/dummy/tmp/cache/354/F90/shard%2F848
|
1237
|
-
- spec/dummy/tmp/cache/354/FA0/shard%2F776
|
1238
1204
|
- spec/dummy/tmp/cache/354/FB0/shard%2F866
|
1239
1205
|
- spec/dummy/tmp/cache/354/FC0/shard%2F956
|
1240
|
-
- spec/dummy/tmp/cache/355/F90/shard%2F759
|
1241
1206
|
- spec/dummy/tmp/cache/355/FA0/shard%2F687
|
1242
1207
|
- spec/dummy/tmp/cache/355/FA0/shard%2F849
|
1243
1208
|
- spec/dummy/tmp/cache/355/FD0/shard%2F876
|
@@ -1247,7 +1212,6 @@ test_files:
|
|
1247
1212
|
- spec/dummy/tmp/cache/356/FD0/shard%2F868
|
1248
1213
|
- spec/dummy/tmp/cache/356/FE0/shard%2F958
|
1249
1214
|
- spec/dummy/tmp/cache/357/FB0/shard%2F599
|
1250
|
-
- spec/dummy/tmp/cache/357/FF0/shard%2F797
|
1251
1215
|
- spec/dummy/tmp/cache/358/000/shard%2F879
|
1252
1216
|
- spec/dummy/tmp/cache/358/020/shard%2F897
|
1253
1217
|
- spec/dummy/tmp/cache/359/050/shard%2F997
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1392833319.473134:@value":nil
|
Binary file
|