switchman 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/switchman/version.rb +1 -1
- metadata +4 -1612
- data/lib/switchman/engine.rb~ +0 -203
- data/spec/dummy/Rakefile +0 -7
- data/spec/dummy/app/models/appendage.rb +0 -22
- data/spec/dummy/app/models/digit.rb +0 -7
- data/spec/dummy/app/models/face.rb +0 -3
- data/spec/dummy/app/models/feature.rb +0 -3
- data/spec/dummy/app/models/mirror_user.rb +0 -5
- data/spec/dummy/app/models/root.rb +0 -5
- data/spec/dummy/app/models/user.rb +0 -29
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/config/application.rb +0 -48
- data/spec/dummy/config/boot.rb +0 -10
- data/spec/dummy/config/database.yml +0 -21
- data/spec/dummy/config/database.yml.example +0 -25
- data/spec/dummy/config/database.yml.travis +0 -4
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -26
- data/spec/dummy/config/environments/production.rb +0 -66
- data/spec/dummy/config/environments/test.rb +0 -28
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/migrations_path.rb +0 -5
- data/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/spec/dummy/config/initializers/session_store.rb +0 -8
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/routes.rb +0 -8
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20130403132607_create_users.rb +0 -10
- data/spec/dummy/db/migrate/20130411202442_create_appendages.rb +0 -10
- data/spec/dummy/db/migrate/20130411202551_create_mirror_users.rb +0 -9
- data/spec/dummy/db/migrate/20131022202028_create_digits.rb +0 -10
- data/spec/dummy/db/migrate/20131206172923_create_features.rb +0 -12
- data/spec/dummy/db/migrate/20140123154135_add_parent_id_to_users.rb +0 -5
- data/spec/dummy/db/migrate/20140219183820_create_roots.rb +0 -9
- data/spec/dummy/db/migrate/20150618035859_add_dummy_foreign_key.rb +0 -5
- data/spec/dummy/db/migrate/20160122150718_create_faces.rb +0 -9
- data/spec/dummy/db/schema.rb +0 -74
- data/spec/dummy/db/shard_1006.sqlite3 +0 -0
- data/spec/dummy/db/shard_101.sqlite3 +0 -0
- data/spec/dummy/db/shard_1020.sqlite3 +0 -0
- data/spec/dummy/db/shard_1038.sqlite3 +0 -0
- data/spec/dummy/db/shard_1051.sqlite3 +0 -0
- data/spec/dummy/db/shard_1067.sqlite3 +0 -0
- data/spec/dummy/db/shard_1083.sqlite3 +0 -0
- data/spec/dummy/db/shard_1088.sqlite3 +0 -0
- data/spec/dummy/db/shard_1093.sqlite3 +0 -0
- data/spec/dummy/db/shard_1119.sqlite3 +0 -0
- data/spec/dummy/db/shard_1124.sqlite3 +0 -0
- data/spec/dummy/db/shard_1126.sqlite3 +0 -0
- data/spec/dummy/db/shard_1147.sqlite3 +0 -0
- data/spec/dummy/db/shard_1156.sqlite3 +0 -0
- data/spec/dummy/db/shard_117.sqlite3 +0 -0
- data/spec/dummy/db/shard_1173.sqlite3 +0 -0
- data/spec/dummy/db/shard_1186.sqlite3 +0 -0
- data/spec/dummy/db/shard_120.sqlite3 +0 -0
- data/spec/dummy/db/shard_1206.sqlite3 +0 -0
- data/spec/dummy/db/shard_1220.sqlite3 +0 -0
- data/spec/dummy/db/shard_1248.sqlite3 +0 -0
- data/spec/dummy/db/shard_1259.sqlite3 +0 -0
- data/spec/dummy/db/shard_1276.sqlite3 +0 -0
- data/spec/dummy/db/shard_1286.sqlite3 +0 -0
- data/spec/dummy/db/shard_1297.sqlite3 +0 -0
- data/spec/dummy/db/shard_1309.sqlite3 +0 -0
- data/spec/dummy/db/shard_1330.sqlite3 +0 -0
- data/spec/dummy/db/shard_1345.sqlite3 +0 -0
- data/spec/dummy/db/shard_1361.sqlite3 +0 -0
- data/spec/dummy/db/shard_1377.sqlite3 +0 -0
- data/spec/dummy/db/shard_1384.sqlite3 +0 -0
- data/spec/dummy/db/shard_1392.sqlite3 +0 -0
- data/spec/dummy/db/shard_1422.sqlite3 +0 -0
- data/spec/dummy/db/shard_143.sqlite3 +0 -0
- data/spec/dummy/db/shard_1446.sqlite3 +0 -0
- data/spec/dummy/db/shard_1463.sqlite3 +0 -0
- data/spec/dummy/db/shard_1481.sqlite3 +0 -0
- data/spec/dummy/db/shard_1493.sqlite3 +0 -0
- data/spec/dummy/db/shard_1508.sqlite3 +0 -0
- data/spec/dummy/db/shard_1517.sqlite3 +0 -0
- data/spec/dummy/db/shard_1528.sqlite3 +0 -0
- data/spec/dummy/db/shard_1542.sqlite3 +0 -0
- data/spec/dummy/db/shard_1553.sqlite3 +0 -0
- data/spec/dummy/db/shard_156.sqlite3 +0 -0
- data/spec/dummy/db/shard_1588.sqlite3 +0 -0
- data/spec/dummy/db/shard_1596.sqlite3 +0 -0
- data/spec/dummy/db/shard_1609.sqlite3 +0 -0
- data/spec/dummy/db/shard_1630.sqlite3 +0 -0
- data/spec/dummy/db/shard_1643.sqlite3 +0 -0
- data/spec/dummy/db/shard_1652.sqlite3 +0 -0
- data/spec/dummy/db/shard_1658.sqlite3 +0 -0
- data/spec/dummy/db/shard_1679.sqlite3 +0 -0
- data/spec/dummy/db/shard_17.sqlite3 +0 -0
- data/spec/dummy/db/shard_170.sqlite3 +0 -0
- data/spec/dummy/db/shard_1700.sqlite3 +0 -0
- data/spec/dummy/db/shard_1703.sqlite3 +0 -0
- data/spec/dummy/db/shard_1721.sqlite3 +0 -0
- data/spec/dummy/db/shard_1733.sqlite3 +0 -0
- data/spec/dummy/db/shard_1746.sqlite3 +0 -0
- data/spec/dummy/db/shard_1759.sqlite3 +0 -0
- data/spec/dummy/db/shard_1783.sqlite3 +0 -0
- data/spec/dummy/db/shard_1809.sqlite3 +0 -0
- data/spec/dummy/db/shard_1846.sqlite3 +0 -0
- data/spec/dummy/db/shard_1872.sqlite3 +0 -0
- data/spec/dummy/db/shard_1881.sqlite3 +0 -0
- data/spec/dummy/db/shard_19.sqlite3 +0 -0
- data/spec/dummy/db/shard_1906.sqlite3 +0 -0
- data/spec/dummy/db/shard_191.sqlite3 +0 -0
- data/spec/dummy/db/shard_193.sqlite3 +0 -0
- data/spec/dummy/db/shard_1934.sqlite3 +0 -0
- data/spec/dummy/db/shard_1981.sqlite3 +0 -0
- data/spec/dummy/db/shard_2.sqlite3 +0 -0
- data/spec/dummy/db/shard_2006.sqlite3 +0 -0
- data/spec/dummy/db/shard_2013.sqlite3 +0 -0
- data/spec/dummy/db/shard_2041.sqlite3 +0 -0
- data/spec/dummy/db/shard_206.sqlite3 +0 -0
- data/spec/dummy/db/shard_2086.sqlite3 +0 -0
- data/spec/dummy/db/shard_2097.sqlite3 +0 -0
- data/spec/dummy/db/shard_2132.sqlite3 +0 -0
- data/spec/dummy/db/shard_2158.sqlite3 +0 -0
- data/spec/dummy/db/shard_2193.sqlite3 +0 -0
- data/spec/dummy/db/shard_2203.sqlite3 +0 -0
- data/spec/dummy/db/shard_2256.sqlite3 +0 -0
- data/spec/dummy/db/shard_23.sqlite3 +0 -0
- data/spec/dummy/db/shard_2301.sqlite3 +0 -0
- data/spec/dummy/db/shard_2336.sqlite3 +0 -0
- data/spec/dummy/db/shard_234.sqlite3 +0 -0
- data/spec/dummy/db/shard_235.sqlite3 +0 -0
- data/spec/dummy/db/shard_2360.sqlite3 +0 -0
- data/spec/dummy/db/shard_2385.sqlite3 +0 -0
- data/spec/dummy/db/shard_2406.sqlite3 +0 -0
- data/spec/dummy/db/shard_2452.sqlite3 +0 -0
- data/spec/dummy/db/shard_2465.sqlite3 +0 -0
- data/spec/dummy/db/shard_248.sqlite3 +0 -0
- data/spec/dummy/db/shard_2507.sqlite3 +0 -0
- data/spec/dummy/db/shard_2515.sqlite3 +0 -0
- data/spec/dummy/db/shard_2557.sqlite3 +0 -0
- data/spec/dummy/db/shard_257.sqlite3 +0 -0
- data/spec/dummy/db/shard_2580.sqlite3 +0 -0
- data/spec/dummy/db/shard_2598.sqlite3 +0 -0
- data/spec/dummy/db/shard_2626.sqlite3 +0 -0
- data/spec/dummy/db/shard_2672.sqlite3 +0 -0
- data/spec/dummy/db/shard_2681.sqlite3 +0 -0
- data/spec/dummy/db/shard_270.sqlite3 +0 -0
- data/spec/dummy/db/shard_2754.sqlite3 +0 -0
- data/spec/dummy/db/shard_277.sqlite3 +0 -0
- data/spec/dummy/db/shard_2790.sqlite3 +0 -0
- data/spec/dummy/db/shard_2803.sqlite3 +0 -0
- data/spec/dummy/db/shard_2834.sqlite3 +0 -0
- data/spec/dummy/db/shard_2862.sqlite3 +0 -0
- data/spec/dummy/db/shard_2897.sqlite3 +0 -0
- data/spec/dummy/db/shard_2928.sqlite3 +0 -0
- data/spec/dummy/db/shard_2951.sqlite3 +0 -0
- data/spec/dummy/db/shard_2970.sqlite3 +0 -0
- data/spec/dummy/db/shard_3009.sqlite3 +0 -0
- data/spec/dummy/db/shard_304.sqlite3 +0 -0
- data/spec/dummy/db/shard_3046.sqlite3 +0 -0
- data/spec/dummy/db/shard_3071.sqlite3 +0 -0
- data/spec/dummy/db/shard_311.sqlite3 +0 -0
- data/spec/dummy/db/shard_3114.sqlite3 +0 -0
- data/spec/dummy/db/shard_3157.sqlite3 +0 -0
- data/spec/dummy/db/shard_3234.sqlite3 +0 -0
- data/spec/dummy/db/shard_324.sqlite3 +0 -0
- data/spec/dummy/db/shard_3288.sqlite3 +0 -0
- data/spec/dummy/db/shard_333.sqlite3 +0 -0
- data/spec/dummy/db/shard_3352.sqlite3 +0 -0
- data/spec/dummy/db/shard_3380.sqlite3 +0 -0
- data/spec/dummy/db/shard_342.sqlite3 +0 -0
- data/spec/dummy/db/shard_3424.sqlite3 +0 -0
- data/spec/dummy/db/shard_3442.sqlite3 +0 -0
- data/spec/dummy/db/shard_3460.sqlite3 +0 -0
- data/spec/dummy/db/shard_347.sqlite3 +0 -0
- data/spec/dummy/db/shard_3488.sqlite3 +0 -0
- data/spec/dummy/db/shard_35.sqlite3 +0 -0
- data/spec/dummy/db/shard_3524.sqlite3 +0 -0
- data/spec/dummy/db/shard_3554.sqlite3 +0 -0
- data/spec/dummy/db/shard_3594.sqlite3 +0 -0
- data/spec/dummy/db/shard_3611.sqlite3 +0 -0
- data/spec/dummy/db/shard_3639.sqlite3 +0 -0
- data/spec/dummy/db/shard_3661.sqlite3 +0 -0
- data/spec/dummy/db/shard_3689.sqlite3 +0 -0
- data/spec/dummy/db/shard_3749.sqlite3 +0 -0
- data/spec/dummy/db/shard_375.sqlite3 +0 -0
- data/spec/dummy/db/shard_3792.sqlite3 +0 -0
- data/spec/dummy/db/shard_3819.sqlite3 +0 -0
- data/spec/dummy/db/shard_385.sqlite3 +0 -0
- data/spec/dummy/db/shard_3866.sqlite3 +0 -0
- data/spec/dummy/db/shard_389.sqlite3 +0 -0
- data/spec/dummy/db/shard_3897.sqlite3 +0 -0
- data/spec/dummy/db/shard_3945.sqlite3 +0 -0
- data/spec/dummy/db/shard_3951.sqlite3 +0 -0
- data/spec/dummy/db/shard_4002.sqlite3 +0 -0
- data/spec/dummy/db/shard_405.sqlite3 +0 -0
- data/spec/dummy/db/shard_4083.sqlite3 +0 -0
- data/spec/dummy/db/shard_4119.sqlite3 +0 -0
- data/spec/dummy/db/shard_4153.sqlite3 +0 -0
- data/spec/dummy/db/shard_4184.sqlite3 +0 -0
- data/spec/dummy/db/shard_4198.sqlite3 +0 -0
- data/spec/dummy/db/shard_4245.sqlite3 +0 -0
- data/spec/dummy/db/shard_4252.sqlite3 +0 -0
- data/spec/dummy/db/shard_427.sqlite3 +0 -0
- data/spec/dummy/db/shard_4279.sqlite3 +0 -0
- data/spec/dummy/db/shard_428.sqlite3 +0 -0
- data/spec/dummy/db/shard_4326.sqlite3 +0 -0
- data/spec/dummy/db/shard_4338.sqlite3 +0 -0
- data/spec/dummy/db/shard_441.sqlite3 +0 -0
- data/spec/dummy/db/shard_4422.sqlite3 +0 -0
- data/spec/dummy/db/shard_452.sqlite3 +0 -0
- data/spec/dummy/db/shard_462.sqlite3 +0 -0
- data/spec/dummy/db/shard_472.sqlite3 +0 -0
- data/spec/dummy/db/shard_483.sqlite3 +0 -0
- data/spec/dummy/db/shard_49.sqlite3 +0 -0
- data/spec/dummy/db/shard_505.sqlite3 +0 -0
- data/spec/dummy/db/shard_508.sqlite3 +0 -0
- data/spec/dummy/db/shard_531.sqlite3 +0 -0
- data/spec/dummy/db/shard_554.sqlite3 +0 -0
- data/spec/dummy/db/shard_577.sqlite3 +0 -0
- data/spec/dummy/db/shard_58.sqlite3 +0 -0
- data/spec/dummy/db/shard_600.sqlite3 +0 -0
- data/spec/dummy/db/shard_623.sqlite3 +0 -0
- data/spec/dummy/db/shard_646.sqlite3 +0 -0
- data/spec/dummy/db/shard_668.sqlite3 +0 -0
- data/spec/dummy/db/shard_680.sqlite3 +0 -0
- data/spec/dummy/db/shard_698.sqlite3 +0 -0
- data/spec/dummy/db/shard_708.sqlite3 +0 -0
- data/spec/dummy/db/shard_727.sqlite3 +0 -0
- data/spec/dummy/db/shard_735.sqlite3 +0 -0
- data/spec/dummy/db/shard_74.sqlite3 +0 -0
- data/spec/dummy/db/shard_753.sqlite3 +0 -0
- data/spec/dummy/db/shard_76.sqlite3 +0 -0
- data/spec/dummy/db/shard_766.sqlite3 +0 -0
- data/spec/dummy/db/shard_778.sqlite3 +0 -0
- data/spec/dummy/db/shard_802.sqlite3 +0 -0
- data/spec/dummy/db/shard_818.sqlite3 +0 -0
- data/spec/dummy/db/shard_827.sqlite3 +0 -0
- data/spec/dummy/db/shard_869.sqlite3 +0 -0
- data/spec/dummy/db/shard_887.sqlite3 +0 -0
- data/spec/dummy/db/shard_895.sqlite3 +0 -0
- data/spec/dummy/db/shard_923.sqlite3 +0 -0
- data/spec/dummy/db/shard_930.sqlite3 +0 -0
- data/spec/dummy/db/shard_948.sqlite3 +0 -0
- data/spec/dummy/db/shard_953.sqlite3 +0 -0
- data/spec/dummy/db/shard_955.sqlite3 +0 -0
- data/spec/dummy/db/shard_982.sqlite3 +0 -0
- data/spec/dummy/db/shard_988.sqlite3 +0 -0
- data/spec/dummy/db/shard_989.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +0 -153
- data/spec/dummy/log/test.log +0 -108385
- data/spec/dummy/script/rails +0 -6
- data/spec/dummy/tmp/cache/2E3/840/shard%2F3 +0 -1
- data/spec/dummy/tmp/cache/2E4/850/shard%2F4 +0 -1
- data/spec/dummy/tmp/cache/2E8/890/shard%2F8 +0 -1
- data/spec/dummy/tmp/cache/314/980/shard%2F31 +0 -1
- data/spec/dummy/tmp/cache/315/990/shard%2F32 +0 -1
- data/spec/dummy/tmp/cache/316/9B0/shard%2F42 +0 -1
- data/spec/dummy/tmp/cache/316/9D0/shard%2F60 +0 -1
- data/spec/dummy/tmp/cache/318/9F0/shard%2F62 +0 -1
- data/spec/dummy/tmp/cache/318/A10/shard%2F80 +0 -1
- data/spec/dummy/tmp/cache/319/A20/shard%2F81 +0 -1
- data/spec/dummy/tmp/cache/31A/A20/shard%2F73 +0 -1
- data/spec/dummy/tmp/cache/31A/A40/shard%2F91 +0 -1
- data/spec/dummy/tmp/cache/31B/A30/shard%2F74 +0 -1
- data/spec/dummy/tmp/cache/31B/A40/shard%2F83 +0 -1
- data/spec/dummy/tmp/cache/31C/A30/shard%2F66 +0 -1
- data/spec/dummy/tmp/cache/31D/A40/shard%2F67 +0 -1
- data/spec/dummy/tmp/cache/31D/A50/shard%2F76 +0 -1
- data/spec/dummy/tmp/cache/31D/A70/shard%2F94 +0 -1
- data/spec/dummy/tmp/cache/31E/A40/shard%2F59 +0 -1
- data/spec/dummy/tmp/cache/31E/A80/shard%2F95 +0 -1
- data/spec/dummy/tmp/cache/31F/A60/shard%2F69 +0 -1
- data/spec/dummy/tmp/cache/31F/A80/shard%2F87 +0 -1
- data/spec/dummy/tmp/cache/320/A90/shard%2F88 +0 -1
- data/spec/dummy/tmp/cache/321/AB0/shard%2F98 +0 -1
- data/spec/dummy/tmp/cache/342/D50/shard%2F101 +0 -1
- data/spec/dummy/tmp/cache/343/D60/shard%2F102 +0 -1
- data/spec/dummy/tmp/cache/344/D80/shard%2F112 +0 -1
- data/spec/dummy/tmp/cache/344/DA0/shard%2F130 +0 -1
- data/spec/dummy/tmp/cache/344/DB0/shard%2F220 +0 -0
- data/spec/dummy/tmp/cache/345/DA0/shard%2F122 +0 -1
- data/spec/dummy/tmp/cache/345/DC0/shard%2F140 +0 -1
- data/spec/dummy/tmp/cache/345/DC0/shard%2F221 +0 -0
- data/spec/dummy/tmp/cache/346/D90/shard%2F105 +0 -1
- data/spec/dummy/tmp/cache/346/DB0/shard%2F123 +0 -1
- data/spec/dummy/tmp/cache/346/DE0/shard%2F150 +0 -1
- data/spec/dummy/tmp/cache/346/DE0/shard%2F231 +0 -1
- data/spec/dummy/tmp/cache/346/E10/shard%2F501 +0 -1
- data/spec/dummy/tmp/cache/347/DB0/shard%2F115 +0 -1
- data/spec/dummy/tmp/cache/347/DF0/shard%2F151 +0 -1
- data/spec/dummy/tmp/cache/348/DC0/shard%2F116 +0 -1
- data/spec/dummy/tmp/cache/348/DD0/shard%2F125 +0 -1
- data/spec/dummy/tmp/cache/348/DE0/shard%2F134 +0 -1
- data/spec/dummy/tmp/cache/348/DF0/shard%2F143 +0 -1
- data/spec/dummy/tmp/cache/348/E30/shard%2F422 +0 -1
- data/spec/dummy/tmp/cache/349/DC0/shard%2F108 +0 -1
- data/spec/dummy/tmp/cache/349/E00/shard%2F144 +0 -1
- data/spec/dummy/tmp/cache/349/E20/shard%2F243 +0 -0
- data/spec/dummy/tmp/cache/349/E40/shard%2F423 +0 -1
- data/spec/dummy/tmp/cache/34A/DD0/shard%2F109 +0 -1
- data/spec/dummy/tmp/cache/34A/DE0/shard%2F118 +0 -1
- data/spec/dummy/tmp/cache/34A/E00/shard%2F136 +0 -1
- data/spec/dummy/tmp/cache/34A/E00/shard%2F217 +0 -1
- data/spec/dummy/tmp/cache/34A/E20/shard%2F154 +0 -1
- data/spec/dummy/tmp/cache/34A/E20/shard%2F316 +0 -1
- data/spec/dummy/tmp/cache/34A/E30/shard%2F244 +0 -0
- data/spec/dummy/tmp/cache/34A/E30/shard%2F325 +0 -1
- data/spec/dummy/tmp/cache/34A/E90/shard%2F460 +0 -0
- data/spec/dummy/tmp/cache/34A/EC0/shard%2F730 +0 -1
- data/spec/dummy/tmp/cache/34B/E10/shard%2F137 +0 -1
- data/spec/dummy/tmp/cache/34B/E40/shard%2F245 +0 -1
- data/spec/dummy/tmp/cache/34B/E60/shard%2F344 +0 -1
- data/spec/dummy/tmp/cache/34B/E60/shard%2F425 +0 -1
- data/spec/dummy/tmp/cache/34B/E70/shard%2F434 +0 -1
- data/spec/dummy/tmp/cache/34C/E10/shard%2F129 +0 -1
- data/spec/dummy/tmp/cache/34C/E30/shard%2F147 +0 -1
- data/spec/dummy/tmp/cache/34C/E40/shard%2F156 +0 -1
- data/spec/dummy/tmp/cache/34C/E80/shard%2F354 +0 -1
- data/spec/dummy/tmp/cache/34C/EA0/shard%2F453 +0 -1
- data/spec/dummy/tmp/cache/34C/EF0/shard%2F822 +0 -0
- data/spec/dummy/tmp/cache/34D/E60/shard%2F409 +0 -1
- data/spec/dummy/tmp/cache/34D/EC0/shard%2F382 +0 -1
- data/spec/dummy/tmp/cache/34D/EE0/shard%2F724 +0 -1
- data/spec/dummy/tmp/cache/34E/EA0/shard%2F437 +0 -1
- data/spec/dummy/tmp/cache/34E/EF0/shard%2F806 +0 -1
- data/spec/dummy/tmp/cache/34F/EB0/shard%2F438 +0 -1
- data/spec/dummy/tmp/cache/34F/EC0/shard%2F285 +0 -1
- data/spec/dummy/tmp/cache/34F/F20/shard%2F744 +0 -0
- data/spec/dummy/tmp/cache/350/EF0/shard%2F466 +0 -1
- data/spec/dummy/tmp/cache/350/F30/shard%2F907 +0 -1
- data/spec/dummy/tmp/cache/351/EC0/shard%2F188 +0 -1
- data/spec/dummy/tmp/cache/351/EE0/shard%2F368 +0 -1
- data/spec/dummy/tmp/cache/351/F50/shard%2F917 +0 -0
- data/spec/dummy/tmp/cache/351/F60/shard%2F926 +0 -0
- data/spec/dummy/tmp/cache/351/F70/shard%2F935 +0 -1
- data/spec/dummy/tmp/cache/351/FB0/shard%2F971 +0 -1
- data/spec/dummy/tmp/cache/352/EF0/shard%2F369 +0 -1
- data/spec/dummy/tmp/cache/352/F70/shard%2F927 +0 -0
- data/spec/dummy/tmp/cache/352/F80/shard%2F693 +0 -1
- data/spec/dummy/tmp/cache/352/F90/shard%2F864 +0 -1
- data/spec/dummy/tmp/cache/353/F70/shard%2F838 +0 -1
- data/spec/dummy/tmp/cache/354/FA0/shard%2F776 +0 -1
- data/spec/dummy/tmp/cache/354/FF0/shard%2F983 +0 -1
- data/spec/dummy/tmp/cache/355/F90/shard%2F759 +0 -1
- data/spec/dummy/tmp/cache/357/FF0/shard%2F878 +0 -1
- data/spec/dummy/tmp/cache/374/490/shard%2F1012 +0 -1
- data/spec/dummy/tmp/cache/374/4C0/shard%2F2011 +0 -1
- data/spec/dummy/tmp/cache/376/500/shard%2F1140 +0 -1
- data/spec/dummy/tmp/cache/376/510/shard%2F1230 +0 -0
- data/spec/dummy/tmp/cache/376/550/shard%2F3210 +0 -1
- data/spec/dummy/tmp/cache/377/510/shard%2F1222 +0 -0
- data/spec/dummy/tmp/cache/377/540/shard%2F2221 +0 -1
- data/spec/dummy/tmp/cache/377/560/shard%2F3211 +0 -1
- data/spec/dummy/tmp/cache/378/510/shard%2F2105 +0 -1
- data/spec/dummy/tmp/cache/378/570/shard%2F3050 +0 -1
- data/spec/dummy/tmp/cache/378/590/shard%2F4040 +0 -1
- data/spec/dummy/tmp/cache/379/4F0/shard%2F1107 +0 -1
- data/spec/dummy/tmp/cache/379/540/shard%2F3015 +0 -1
- data/spec/dummy/tmp/cache/379/550/shard%2F3024 +0 -1
- data/spec/dummy/tmp/cache/379/560/shard%2F2061 +0 -1
- data/spec/dummy/tmp/cache/379/570/shard%2F1341 +0 -1
- data/spec/dummy/tmp/cache/379/580/shard%2F2160 +0 -1
- data/spec/dummy/tmp/cache/379/580/shard%2F2403 +0 -1
- data/spec/dummy/tmp/cache/379/590/shard%2F1602 +0 -0
- data/spec/dummy/tmp/cache/379/590/shard%2F4113 +0 -1
- data/spec/dummy/tmp/cache/379/5C0/shard%2F1710 +0 -1
- data/spec/dummy/tmp/cache/37A/510/shard%2F1117 +0 -1
- data/spec/dummy/tmp/cache/37A/540/shard%2F1063 +0 -1
- data/spec/dummy/tmp/cache/37A/540/shard%2F2035 +0 -1
- data/spec/dummy/tmp/cache/37A/550/shard%2F1315 +0 -1
- data/spec/dummy/tmp/cache/37A/570/shard%2F1252 +0 -1
- data/spec/dummy/tmp/cache/37A/570/shard%2F1414 +0 -1
- data/spec/dummy/tmp/cache/37A/590/shard%2F4024 +0 -1
- data/spec/dummy/tmp/cache/37A/5A0/shard%2F1360 +0 -1
- data/spec/dummy/tmp/cache/37A/5A0/shard%2F1603 +0 -0
- data/spec/dummy/tmp/cache/37A/5B0/shard%2F3151 +0 -1
- data/spec/dummy/tmp/cache/37A/5C0/shard%2F3322 +0 -1
- data/spec/dummy/tmp/cache/37A/5C0/shard%2F4051 +0 -1
- data/spec/dummy/tmp/cache/37A/5E0/shard%2F2611 +0 -1
- data/spec/dummy/tmp/cache/37A/5F0/shard%2F4402 +0 -1
- data/spec/dummy/tmp/cache/37B/520/shard%2F1118 +0 -1
- data/spec/dummy/tmp/cache/37B/540/shard%2F1217 +0 -1
- data/spec/dummy/tmp/cache/37B/550/shard%2F1064 +0 -1
- data/spec/dummy/tmp/cache/37B/560/shard%2F1154 +0 -1
- data/spec/dummy/tmp/cache/37B/5A0/shard%2F2081 +0 -1
- data/spec/dummy/tmp/cache/37B/5A0/shard%2F2324 +0 -1
- data/spec/dummy/tmp/cache/37B/5B0/shard%2F1361 +0 -1
- data/spec/dummy/tmp/cache/37B/5B0/shard%2F3062 +0 -1
- data/spec/dummy/tmp/cache/37B/5C0/shard%2F3152 +0 -1
- data/spec/dummy/tmp/cache/37B/5D0/shard%2F3161 +0 -1
- data/spec/dummy/tmp/cache/37B/5D0/shard%2F3323 +0 -1
- data/spec/dummy/tmp/cache/37B/5E0/shard%2F4304 +0 -1
- data/spec/dummy/tmp/cache/37B/600/shard%2F4241 +0 -1
- data/spec/dummy/tmp/cache/37C/570/shard%2F2127 +0 -1
- data/spec/dummy/tmp/cache/37C/5C0/shard%2F1524 +0 -1
- data/spec/dummy/tmp/cache/37C/5D0/shard%2F2343 +0 -1
- data/spec/dummy/tmp/cache/37C/5D0/shard%2F4044 +0 -1
- data/spec/dummy/tmp/cache/37C/5E0/shard%2F2352 +0 -1
- data/spec/dummy/tmp/cache/37C/5E0/shard%2F3081 +0 -1
- data/spec/dummy/tmp/cache/37C/5F0/shard%2F3090 +0 -1
- data/spec/dummy/tmp/cache/37C/610/shard%2F4080 +0 -1
- data/spec/dummy/tmp/cache/37C/610/shard%2F4161 +0 -1
- data/spec/dummy/tmp/cache/37D/560/shard%2F1057 +0 -1
- data/spec/dummy/tmp/cache/37D/570/shard%2F2038 +0 -1
- data/spec/dummy/tmp/cache/37D/5A0/shard%2F4009 +0 -1
- data/spec/dummy/tmp/cache/37D/5C0/shard%2F1273 +0 -1
- data/spec/dummy/tmp/cache/37D/5C0/shard%2F4027 +0 -1
- data/spec/dummy/tmp/cache/37D/5D0/shard%2F2092 +0 -1
- data/spec/dummy/tmp/cache/37D/5D0/shard%2F3145 +0 -1
- data/spec/dummy/tmp/cache/37D/5D0/shard%2F3226 +0 -1
- data/spec/dummy/tmp/cache/37D/5E0/shard%2F2344 +0 -1
- data/spec/dummy/tmp/cache/37D/5F0/shard%2F1624 +0 -1
- data/spec/dummy/tmp/cache/37D/5F0/shard%2F3082 +0 -2
- data/spec/dummy/tmp/cache/37D/5F0/shard%2F3406 +0 -1
- data/spec/dummy/tmp/cache/37D/5F0/shard%2F4054 +0 -1
- data/spec/dummy/tmp/cache/37D/600/shard%2F3091 +0 -1
- data/spec/dummy/tmp/cache/37D/610/shard%2F1723 +0 -1
- data/spec/dummy/tmp/cache/37D/630/shard%2F1903 +0 -1
- data/spec/dummy/tmp/cache/37D/640/shard%2F1750 +0 -1
- data/spec/dummy/tmp/cache/37D/650/shard%2F2812 +0 -1
- data/spec/dummy/tmp/cache/37D/650/shard%2F3622 +0 -1
- data/spec/dummy/tmp/cache/37D/660/shard%2F2740 +0 -2
- data/spec/dummy/tmp/cache/37D/660/shard%2F4360 +0 -1
- data/spec/dummy/tmp/cache/37D/6A0/shard%2F3910 +0 -1
- data/spec/dummy/tmp/cache/37E/580/shard%2F2039 +0 -1
- data/spec/dummy/tmp/cache/37E/590/shard%2F1238 +0 -1
- data/spec/dummy/tmp/cache/37E/5B0/shard%2F1418 +0 -1
- data/spec/dummy/tmp/cache/37E/5B0/shard%2F3119 +0 -1
- data/spec/dummy/tmp/cache/37E/5D0/shard%2F1193 +0 -1
- data/spec/dummy/tmp/cache/37E/5E0/shard%2F3146 +0 -1
- data/spec/dummy/tmp/cache/37E/5E0/shard%2F4037 +0 -1
- data/spec/dummy/tmp/cache/37E/600/shard%2F4136 +0 -1
- data/spec/dummy/tmp/cache/37E/620/shard%2F4073 +0 -1
- data/spec/dummy/tmp/cache/37E/630/shard%2F1490 +0 -1
- data/spec/dummy/tmp/cache/37E/630/shard%2F4325 +0 -1
- data/spec/dummy/tmp/cache/37E/640/shard%2F1904 +0 -1
- data/spec/dummy/tmp/cache/37E/640/shard%2F2390 +0 -1
- data/spec/dummy/tmp/cache/37E/660/shard%2F1922 +0 -1
- data/spec/dummy/tmp/cache/37E/660/shard%2F4352 +0 -1
- data/spec/dummy/tmp/cache/37F/600/shard%2F4047 +0 -1
- data/spec/dummy/tmp/cache/37F/610/shard%2F3084 +0 -1
- data/spec/dummy/tmp/cache/37F/610/shard%2F4137 +0 -1
- data/spec/dummy/tmp/cache/37F/630/shard%2F4074 +0 -1
- data/spec/dummy/tmp/cache/37F/640/shard%2F1491 +0 -1
- data/spec/dummy/tmp/cache/37F/640/shard%2F1815 +0 -1
- data/spec/dummy/tmp/cache/37F/640/shard%2F4164 +0 -1
- data/spec/dummy/tmp/cache/37F/660/shard%2F2562 +0 -1
- data/spec/dummy/tmp/cache/37F/680/shard%2F2823 +0 -1
- data/spec/dummy/tmp/cache/37F/680/shard%2F4281 +0 -1
- data/spec/dummy/tmp/cache/37F/6A0/shard%2F3570 +0 -1
- data/spec/dummy/tmp/cache/37F/6A0/shard%2F3813 +0 -1
- data/spec/dummy/tmp/cache/37F/6B0/shard%2F2931 +0 -1
- data/spec/dummy/tmp/cache/37F/6C0/shard%2F3912 +0 -1
- data/spec/dummy/tmp/cache/380/5F0/shard%2F1357 +0 -1
- data/spec/dummy/tmp/cache/380/600/shard%2F3148 +0 -1
- data/spec/dummy/tmp/cache/380/620/shard%2F1384 +0 -1
- data/spec/dummy/tmp/cache/380/620/shard%2F3085 +0 -1
- data/spec/dummy/tmp/cache/380/630/shard%2F1636 +0 -1
- data/spec/dummy/tmp/cache/380/630/shard%2F2527 +0 -1
- data/spec/dummy/tmp/cache/380/640/shard%2F3508 +0 -1
- data/spec/dummy/tmp/cache/380/650/shard%2F4408 +0 -1
- data/spec/dummy/tmp/cache/380/670/shard%2F2644 +0 -1
- data/spec/dummy/tmp/cache/380/670/shard%2F3292 +0 -1
- data/spec/dummy/tmp/cache/380/670/shard%2F4183 +0 -1
- data/spec/dummy/tmp/cache/380/680/shard%2F4192 +0 -1
- data/spec/dummy/tmp/cache/380/690/shard%2F2824 +0 -1
- data/spec/dummy/tmp/cache/380/690/shard%2F4363 +0 -1
- data/spec/dummy/tmp/cache/380/6A0/shard%2F4372 +0 -1
- data/spec/dummy/tmp/cache/380/6B0/shard%2F3571 +0 -1
- data/spec/dummy/tmp/cache/380/6B0/shard%2F3814 +0 -1
- data/spec/dummy/tmp/cache/380/6B0/shard%2F4381 +0 -1
- data/spec/dummy/tmp/cache/380/6C0/shard%2F4390 +0 -1
- data/spec/dummy/tmp/cache/380/6D0/shard%2F3913 +0 -1
- data/spec/dummy/tmp/cache/380/6E0/shard%2F2950 +0 -1
- data/spec/dummy/tmp/cache/380/6E0/shard%2F3841 +0 -1
- data/spec/dummy/tmp/cache/380/6F0/shard%2F3850 +0 -2
- data/spec/dummy/tmp/cache/381/5C0/shard%2F1079 +0 -1
- data/spec/dummy/tmp/cache/381/610/shard%2F3149 +0 -1
- data/spec/dummy/tmp/cache/381/640/shard%2F3338 +0 -1
- data/spec/dummy/tmp/cache/381/660/shard%2F3437 +0 -1
- data/spec/dummy/tmp/cache/381/690/shard%2F3707 +0 -1
- data/spec/dummy/tmp/cache/381/690/shard%2F4193 +0 -1
- data/spec/dummy/tmp/cache/382/630/shard%2F2187 +0 -1
- data/spec/dummy/tmp/cache/382/630/shard%2F3078 +0 -1
- data/spec/dummy/tmp/cache/382/640/shard%2F1629 +0 -1
- data/spec/dummy/tmp/cache/382/640/shard%2F2277 +0 -1
- data/spec/dummy/tmp/cache/382/640/shard%2F3087 +0 -1
- data/spec/dummy/tmp/cache/382/650/shard%2F1395 +0 -1
- data/spec/dummy/tmp/cache/382/650/shard%2F2448 +0 -1
- data/spec/dummy/tmp/cache/382/660/shard%2F2295 +0 -1
- data/spec/dummy/tmp/cache/382/660/shard%2F4077 +0 -1
- data/spec/dummy/tmp/cache/382/670/shard%2F1656 +0 -1
- data/spec/dummy/tmp/cache/382/670/shard%2F4086 +0 -1
- data/spec/dummy/tmp/cache/382/690/shard%2F1836 +0 -1
- data/spec/dummy/tmp/cache/382/6A0/shard%2F3384 +0 -1
- data/spec/dummy/tmp/cache/382/6B0/shard%2F3636 +0 -1
- data/spec/dummy/tmp/cache/382/6D0/shard%2F3654 +0 -1
- data/spec/dummy/tmp/cache/382/6E0/shard%2F3906 +0 -1
- data/spec/dummy/tmp/cache/382/6F0/shard%2F2781 +0 -1
- data/spec/dummy/tmp/cache/382/6F0/shard%2F3915 +0 -1
- data/spec/dummy/tmp/cache/382/700/shard%2F2871 +0 -1
- data/spec/dummy/tmp/cache/383/640/shard%2F1297 +0 -1
- data/spec/dummy/tmp/cache/383/640/shard%2F1459 +0 -1
- data/spec/dummy/tmp/cache/383/640/shard%2F3079 +0 -1
- data/spec/dummy/tmp/cache/383/650/shard%2F3088 +0 -1
- data/spec/dummy/tmp/cache/383/690/shard%2F4258 +0 -1
- data/spec/dummy/tmp/cache/383/6B0/shard%2F2494 +0 -1
- data/spec/dummy/tmp/cache/383/6B0/shard%2F2575 +0 -2
- data/spec/dummy/tmp/cache/383/6C0/shard%2F4366 +0 -1
- data/spec/dummy/tmp/cache/383/6D0/shard%2F4375 +0 -1
- data/spec/dummy/tmp/cache/383/6E0/shard%2F1792 +0 -1
- data/spec/dummy/tmp/cache/383/6E0/shard%2F3574 +0 -1
- data/spec/dummy/tmp/cache/383/6E0/shard%2F4384 +0 -1
- data/spec/dummy/tmp/cache/383/6F0/shard%2F2935 +0 -1
- data/spec/dummy/tmp/cache/383/6F0/shard%2F3745 +0 -1
- data/spec/dummy/tmp/cache/383/6F0/shard%2F3907 +0 -1
- data/spec/dummy/tmp/cache/383/6F0/shard%2F4393 +0 -1
- data/spec/dummy/tmp/cache/383/700/shard%2F3916 +0 -1
- data/spec/dummy/tmp/cache/383/710/shard%2F3682 +0 -1
- data/spec/dummy/tmp/cache/383/750/shard%2F3961 +0 -1
- data/spec/dummy/tmp/cache/384/6B0/shard%2F3458 +0 -1
- data/spec/dummy/tmp/cache/384/6B0/shard%2F3539 +0 -1
- data/spec/dummy/tmp/cache/384/6C0/shard%2F4196 +0 -1
- data/spec/dummy/tmp/cache/384/6E0/shard%2F3566 +0 -1
- data/spec/dummy/tmp/cache/384/700/shard%2F2693 +0 -1
- data/spec/dummy/tmp/cache/384/700/shard%2F2936 +0 -1
- data/spec/dummy/tmp/cache/384/710/shard%2F3836 +0 -1
- data/spec/dummy/tmp/cache/384/720/shard%2F3683 +0 -1
- data/spec/dummy/tmp/cache/385/6C0/shard%2F1677 +0 -1
- data/spec/dummy/tmp/cache/385/6D0/shard%2F2739 +0 -2
- data/spec/dummy/tmp/cache/385/6E0/shard%2F1695 +0 -1
- data/spec/dummy/tmp/cache/385/6E0/shard%2F1938 +0 -1
- data/spec/dummy/tmp/cache/385/6E0/shard%2F2586 +0 -1
- data/spec/dummy/tmp/cache/385/710/shard%2F3909 +0 -1
- data/spec/dummy/tmp/cache/385/720/shard%2F3918 +0 -1
- data/spec/dummy/tmp/cache/385/740/shard%2F3936 +0 -1
- data/spec/dummy/tmp/cache/385/760/shard%2F2982 +0 -1
- data/spec/dummy/tmp/cache/386/6C0/shard%2F2479 +0 -1
- data/spec/dummy/tmp/cache/386/6E0/shard%2F3469 +0 -1
- data/spec/dummy/tmp/cache/386/6F0/shard%2F4369 +0 -1
- data/spec/dummy/tmp/cache/386/700/shard%2F4378 +0 -1
- data/spec/dummy/tmp/cache/386/710/shard%2F2767 +0 -2
- data/spec/dummy/tmp/cache/386/710/shard%2F2848 +0 -1
- data/spec/dummy/tmp/cache/386/710/shard%2F4387 +0 -1
- data/spec/dummy/tmp/cache/386/720/shard%2F4396 +0 -1
- data/spec/dummy/tmp/cache/386/730/shard%2F3919 +0 -1
- data/spec/dummy/tmp/cache/386/740/shard%2F3847 +0 -1
- data/spec/dummy/tmp/cache/387/700/shard%2F2669 +0 -1
- data/spec/dummy/tmp/cache/387/710/shard%2F2759 +0 -1
- data/spec/dummy/tmp/cache/387/770/shard%2F3785 +0 -1
- data/spec/dummy/tmp/cache/387/780/shard%2F3875 +0 -1
- data/spec/dummy/tmp/cache/388/720/shard%2F1869 +0 -1
- data/spec/dummy/tmp/cache/388/770/shard%2F2886 +0 -1
- data/spec/dummy/tmp/cache/389/750/shard%2F1969 +0 -1
- data/spec/dummy/tmp/cache/389/750/shard%2F4399 +0 -1
- data/spec/dummy/tmp/cache/389/760/shard%2F3598 +0 -1
- data/spec/dummy/tmp/cache/389/760/shard%2F3679 +0 -1
- data/spec/dummy/tmp/cache/38A/770/shard%2F3599 +0 -1
- data/spec/dummy/tmp/cache/38A/780/shard%2F1988 +0 -1
- data/spec/dummy/tmp/cache/38B/780/shard%2F1899 +0 -1
- data/spec/dummy/tmp/cache/38B/7B0/shard%2F3789 +0 -1
- data/spec/dummy/tmp/cache/38C/7E0/shard%2F3889 +0 -1
- data/spec/dummy/tmp/cache/3A4/EA0/shard%2F10012 +0 -1
- data/spec/dummy/tmp/cache/3A4/EB0/shard%2F10102 +0 -1
- data/spec/dummy/tmp/cache/3A4/EE0/shard%2F11101 +0 -1
- data/spec/dummy/tmp/cache/3A4/F20/shard%2F13000 +0 -1
- data/spec/dummy/tmp/cache/3A5/EA0/shard%2F10004 +0 -1
- data/spec/dummy/tmp/cache/3A5/EF0/shard%2F10130 +0 -1
- data/spec/dummy/tmp/cache/3A6/EE0/shard%2F10032 +0 -1
- data/spec/dummy/tmp/cache/3A6/F10/shard%2F10221 +0 -1
- data/spec/dummy/tmp/cache/3A6/F20/shard%2F12012 +0 -1
- data/spec/dummy/tmp/cache/3A6/F40/shard%2F10410 +0 -1
- data/spec/dummy/tmp/cache/3A6/F50/shard%2F12120 +0 -1
- data/spec/dummy/tmp/cache/3A6/F50/shard%2F12201 +0 -1
- data/spec/dummy/tmp/cache/3A7/EF0/shard%2F11005 +0 -1
- data/spec/dummy/tmp/cache/3A7/F00/shard%2F10123 +0 -1
- data/spec/dummy/tmp/cache/3A7/F20/shard%2F10060 +0 -1
- data/spec/dummy/tmp/cache/3A7/F20/shard%2F11032 +0 -1
- data/spec/dummy/tmp/cache/3A7/F30/shard%2F10231 +0 -1
- data/spec/dummy/tmp/cache/3A7/FA0/shard%2F12400 +0 -1
- data/spec/dummy/tmp/cache/3A8/EF0/shard%2F10106 +0 -1
- data/spec/dummy/tmp/cache/3A8/F40/shard%2F10151 +0 -1
- data/spec/dummy/tmp/cache/3A8/F50/shard%2F10322 +0 -1
- data/spec/dummy/tmp/cache/3A8/F70/shard%2F11312 +0 -1
- data/spec/dummy/tmp/cache/3A8/F90/shard%2F10520 +0 -1
- data/spec/dummy/tmp/cache/3A8/FB0/shard%2F13211 +0 -1
- data/spec/dummy/tmp/cache/3A9/F10/shard%2F10116 +0 -1
- data/spec/dummy/tmp/cache/3A9/F40/shard%2F10062 +0 -1
- data/spec/dummy/tmp/cache/3A9/F50/shard%2F10152 +0 -1
- data/spec/dummy/tmp/cache/3A9/F50/shard%2F11124 +0 -1
- data/spec/dummy/tmp/cache/3A9/F80/shard%2F10341 +0 -1
- data/spec/dummy/tmp/cache/3A9/F90/shard%2F13023 +0 -1
- data/spec/dummy/tmp/cache/3AA/010/shard%2F14221 +0 -1
- data/spec/dummy/tmp/cache/3AA/F10/shard%2F10027 +0 -1
- data/spec/dummy/tmp/cache/3AA/F10/shard%2F10108 +0 -1
- data/spec/dummy/tmp/cache/3AA/F30/shard%2F10045 +0 -1
- data/spec/dummy/tmp/cache/3AA/F50/shard%2F10144 +0 -1
- data/spec/dummy/tmp/cache/3AA/F70/shard%2F10081 +0 -1
- data/spec/dummy/tmp/cache/3AA/F90/shard%2F10423 +0 -1
- data/spec/dummy/tmp/cache/3AA/FB0/shard%2F10441 +0 -1
- data/spec/dummy/tmp/cache/3AA/FB0/shard%2F11170 +0 -1
- data/spec/dummy/tmp/cache/3AA/FC0/shard%2F10612 +0 -1
- data/spec/dummy/tmp/cache/3AA/FC0/shard%2F11260 +0 -1
- data/spec/dummy/tmp/cache/3AA/FC0/shard%2F11503 +0 -1
- data/spec/dummy/tmp/cache/3AA/FC0/shard%2F12313 +0 -1
- data/spec/dummy/tmp/cache/3AA/FD0/shard%2F13051 +0 -1
- data/spec/dummy/tmp/cache/3AB/000/shard%2F11450 +0 -1
- data/spec/dummy/tmp/cache/3AB/010/shard%2F10730 +0 -1
- data/spec/dummy/tmp/cache/3AB/010/shard%2F12512 +0 -1
- data/spec/dummy/tmp/cache/3AB/010/shard%2F13403 +0 -1
- data/spec/dummy/tmp/cache/3AB/010/shard%2F14051 +0 -1
- data/spec/dummy/tmp/cache/3AB/020/shard%2F10901 +0 -1
- data/spec/dummy/tmp/cache/3AB/020/shard%2F11630 +0 -1
- data/spec/dummy/tmp/cache/3AB/020/shard%2F11711 +0 -1
- data/spec/dummy/tmp/cache/3AB/F20/shard%2F10109 +0 -1
- data/spec/dummy/tmp/cache/3AB/F30/shard%2F11009 +0 -1
- data/spec/dummy/tmp/cache/3AB/F70/shard%2F10154 +0 -1
- data/spec/dummy/tmp/cache/3AB/F80/shard%2F10244 +0 -1
- data/spec/dummy/tmp/cache/3AB/FD0/shard%2F11342 +0 -1
- data/spec/dummy/tmp/cache/3AB/FE0/shard%2F14024 +0 -1
- data/spec/dummy/tmp/cache/3AB/FF0/shard%2F11603 +0 -1
- data/spec/dummy/tmp/cache/3AC/000/shard%2F11280 +0 -1
- data/spec/dummy/tmp/cache/3AC/000/shard%2F11361 +0 -1
- data/spec/dummy/tmp/cache/3AC/010/shard%2F13152 +0 -1
- data/spec/dummy/tmp/cache/3AC/020/shard%2F10650 +0 -1
- data/spec/dummy/tmp/cache/3AC/050/shard%2F13431 +0 -1
- data/spec/dummy/tmp/cache/3AC/F60/shard%2F10137 +0 -1
- data/spec/dummy/tmp/cache/3AC/F70/shard%2F11037 +0 -1
- data/spec/dummy/tmp/cache/3AC/F70/shard%2F11118 +0 -1
- data/spec/dummy/tmp/cache/3AC/F80/shard%2F10074 +0 -1
- data/spec/dummy/tmp/cache/3AC/F90/shard%2F10083 +0 -1
- data/spec/dummy/tmp/cache/3AC/F90/shard%2F11055 +0 -1
- data/spec/dummy/tmp/cache/3AC/FA0/shard%2F11064 +0 -1
- data/spec/dummy/tmp/cache/3AC/FA0/shard%2F11145 +0 -1
- data/spec/dummy/tmp/cache/3AC/FA0/shard%2F11226 +0 -1
- data/spec/dummy/tmp/cache/3AC/FA0/shard%2F11307 +0 -1
- data/spec/dummy/tmp/cache/3AC/FC0/shard%2F10272 +0 -1
- data/spec/dummy/tmp/cache/3AC/FD0/shard%2F11091 +0 -1
- data/spec/dummy/tmp/cache/3AC/FD0/shard%2F11172 +0 -1
- data/spec/dummy/tmp/cache/3AC/FD0/shard%2F11253 +0 -1
- data/spec/dummy/tmp/cache/3AC/FD0/shard%2F11415 +0 -1
- data/spec/dummy/tmp/cache/3AC/FF0/shard%2F10461 +0 -1
- data/spec/dummy/tmp/cache/3AC/FF0/shard%2F11514 +0 -1
- data/spec/dummy/tmp/cache/3AD/000/shard%2F10543 +0 -1
- data/spec/dummy/tmp/cache/3AD/010/shard%2F12253 +0 -1
- data/spec/dummy/tmp/cache/3AD/020/shard%2F14044 +0 -1
- data/spec/dummy/tmp/cache/3AD/040/shard%2F14305 +0 -1
- data/spec/dummy/tmp/cache/3AD/060/shard%2F11650 +0 -1
- data/spec/dummy/tmp/cache/3AD/F50/shard%2F10039 +0 -1
- data/spec/dummy/tmp/cache/3AD/F90/shard%2F10318 +0 -1
- data/spec/dummy/tmp/cache/3AD/FA0/shard%2F10246 +0 -1
- data/spec/dummy/tmp/cache/3AD/FC0/shard%2F10345 +0 -1
- data/spec/dummy/tmp/cache/3AE/030/shard%2F12344 +0 -1
- data/spec/dummy/tmp/cache/3AE/050/shard%2F10823 +0 -1
- data/spec/dummy/tmp/cache/3AE/060/shard%2F10751 +0 -1
- data/spec/dummy/tmp/cache/3AE/060/shard%2F11480 +0 -1
- data/spec/dummy/tmp/cache/3AE/070/shard%2F14081 +0 -1
- data/spec/dummy/tmp/cache/3AE/090/shard%2F10940 +0 -1
- data/spec/dummy/tmp/cache/3AE/0B0/shard%2F12740 +0 -1
- data/spec/dummy/tmp/cache/3AE/F90/shard%2F10067 +0 -1
- data/spec/dummy/tmp/cache/3AE/FC0/shard%2F10175 +0 -1
- data/spec/dummy/tmp/cache/3AE/FD0/shard%2F11237 +0 -1
- data/spec/dummy/tmp/cache/3AE/FF0/shard%2F10364 +0 -1
- data/spec/dummy/tmp/cache/3AF/000/shard%2F12066 +0 -1
- data/spec/dummy/tmp/cache/3AF/000/shard%2F12147 +0 -1
- data/spec/dummy/tmp/cache/3AF/010/shard%2F11427 +0 -1
- data/spec/dummy/tmp/cache/3AF/020/shard%2F11193 +0 -1
- data/spec/dummy/tmp/cache/3AF/020/shard%2F14109 +0 -1
- data/spec/dummy/tmp/cache/3AF/030/shard%2F10392 +0 -1
- data/spec/dummy/tmp/cache/3AF/030/shard%2F10635 +0 -1
- data/spec/dummy/tmp/cache/3AF/030/shard%2F11283 +0 -1
- data/spec/dummy/tmp/cache/3AF/030/shard%2F11526 +0 -1
- data/spec/dummy/tmp/cache/3AF/030/shard%2F12093 +0 -1
- data/spec/dummy/tmp/cache/3AF/030/shard%2F12174 +0 -1
- data/spec/dummy/tmp/cache/3AF/030/shard%2F14037 +0 -1
- data/spec/dummy/tmp/cache/3AF/070/shard%2F12372 +0 -1
- data/spec/dummy/tmp/cache/3AF/080/shard%2F12624 +0 -1
- data/spec/dummy/tmp/cache/3AF/080/shard%2F13515 +0 -1
- data/spec/dummy/tmp/cache/3AF/080/shard%2F14406 +0 -1
- data/spec/dummy/tmp/cache/3AF/090/shard%2F11823 +0 -1
- data/spec/dummy/tmp/cache/3AF/090/shard%2F11904 +0 -1
- data/spec/dummy/tmp/cache/3AF/0C0/shard%2F11850 +0 -1
- data/spec/dummy/tmp/cache/3AF/0C0/shard%2F11931 +0 -1
- data/spec/dummy/tmp/cache/3AF/0C0/shard%2F13551 +0 -1
- data/spec/dummy/tmp/cache/3AF/0F0/shard%2F13740 +0 -1
- data/spec/dummy/tmp/cache/3AF/FD0/shard%2F10095 +0 -1
- data/spec/dummy/tmp/cache/3AF/FD0/shard%2F12039 +0 -1
- data/spec/dummy/tmp/cache/3B0/000/shard%2F10438 +0 -1
- data/spec/dummy/tmp/cache/3B0/040/shard%2F11365 +0 -1
- data/spec/dummy/tmp/cache/3B0/060/shard%2F11626 +0 -1
- data/spec/dummy/tmp/cache/3B0/060/shard%2F12436 +0 -1
- data/spec/dummy/tmp/cache/3B0/060/shard%2F14137 +0 -1
- data/spec/dummy/tmp/cache/3B0/080/shard%2F14074 +0 -1
- data/spec/dummy/tmp/cache/3B0/090/shard%2F10681 +0 -1
- data/spec/dummy/tmp/cache/3B0/090/shard%2F11491 +0 -1
- data/spec/dummy/tmp/cache/3B0/090/shard%2F11572 +0 -1
- data/spec/dummy/tmp/cache/3B0/0A0/shard%2F10771 +0 -1
- data/spec/dummy/tmp/cache/3B0/0A0/shard%2F14335 +0 -1
- data/spec/dummy/tmp/cache/3B0/0C0/shard%2F12652 +0 -1
- data/spec/dummy/tmp/cache/3B0/FE0/shard%2F10177 +0 -1
- data/spec/dummy/tmp/cache/3B0/FE0/shard%2F11149 +0 -1
- data/spec/dummy/tmp/cache/3B0/FF0/shard%2F10267 +0 -1
- data/spec/dummy/tmp/cache/3B1/000/shard%2F11078 +0 -1
- data/spec/dummy/tmp/cache/3B1/030/shard%2F10295 +0 -1
- data/spec/dummy/tmp/cache/3B1/040/shard%2F10466 +0 -1
- data/spec/dummy/tmp/cache/3B1/070/shard%2F13328 +0 -1
- data/spec/dummy/tmp/cache/3B1/080/shard%2F10745 +0 -1
- data/spec/dummy/tmp/cache/3B1/080/shard%2F13094 +0 -1
- data/spec/dummy/tmp/cache/3B1/090/shard%2F10673 +0 -1
- data/spec/dummy/tmp/cache/3B1/090/shard%2F12293 +0 -1
- data/spec/dummy/tmp/cache/3B1/0A0/shard%2F14165 +0 -1
- data/spec/dummy/tmp/cache/3B1/0B0/shard%2F11744 +0 -1
- data/spec/dummy/tmp/cache/3B1/0E0/shard%2F12824 +0 -1
- data/spec/dummy/tmp/cache/3B1/100/shard%2F12680 +0 -1
- data/spec/dummy/tmp/cache/3B1/100/shard%2F13571 +0 -1
- data/spec/dummy/tmp/cache/3B1/100/shard%2F13814 +0 -1
- data/spec/dummy/tmp/cache/3B1/130/shard%2F13922 +0 -1
- data/spec/dummy/tmp/cache/3B1/FE0/shard%2F10088 +0 -1
- data/spec/dummy/tmp/cache/3B2/060/shard%2F10719 +0 -1
- data/spec/dummy/tmp/cache/3B2/070/shard%2F10566 +0 -1
- data/spec/dummy/tmp/cache/3B2/070/shard%2F11538 +0 -1
- data/spec/dummy/tmp/cache/3B2/0A0/shard%2F10917 +0 -1
- data/spec/dummy/tmp/cache/3B2/0A0/shard%2F12456 +0 -1
- data/spec/dummy/tmp/cache/3B2/0D0/shard%2F11673 +0 -1
- data/spec/dummy/tmp/cache/3B2/0E0/shard%2F10953 +0 -1
- data/spec/dummy/tmp/cache/3B2/0E0/shard%2F14193 +0 -1
- data/spec/dummy/tmp/cache/3B2/120/shard%2F12852 +0 -1
- data/spec/dummy/tmp/cache/3B2/150/shard%2F13851 +0 -1
- data/spec/dummy/tmp/cache/3B2/170/shard%2F13950 +0 -1
- data/spec/dummy/tmp/cache/3B3/030/shard%2F10198 +0 -1
- data/spec/dummy/tmp/cache/3B3/040/shard%2F10369 +0 -1
- data/spec/dummy/tmp/cache/3B3/060/shard%2F10387 +0 -1
- data/spec/dummy/tmp/cache/3B3/0A0/shard%2F11719 +0 -1
- data/spec/dummy/tmp/cache/3B3/0C0/shard%2F10927 +0 -1
- data/spec/dummy/tmp/cache/3B3/0E0/shard%2F12484 +0 -1
- data/spec/dummy/tmp/cache/3B3/0E0/shard%2F13375 +0 -1
- data/spec/dummy/tmp/cache/3B3/0F0/shard%2F13627 +0 -1
- data/spec/dummy/tmp/cache/3B3/100/shard%2F10963 +0 -1
- data/spec/dummy/tmp/cache/3B3/100/shard%2F11692 +0 -1
- data/spec/dummy/tmp/cache/3B3/160/shard%2F12880 +0 -1
- data/spec/dummy/tmp/cache/3B4/090/shard%2F10487 +0 -1
- data/spec/dummy/tmp/cache/3B4/0A0/shard%2F11468 +0 -1
- data/spec/dummy/tmp/cache/3B4/0A0/shard%2F11549 +0 -1
- data/spec/dummy/tmp/cache/3B4/0D0/shard%2F11657 +0 -1
- data/spec/dummy/tmp/cache/3B4/0D0/shard%2F11738 +0 -1
- data/spec/dummy/tmp/cache/3B4/0D0/shard%2F12548 +0 -1
- data/spec/dummy/tmp/cache/3B4/0D0/shard%2F14249 +0 -1
- data/spec/dummy/tmp/cache/3B4/0E0/shard%2F13286 +0 -1
- data/spec/dummy/tmp/cache/3B4/110/shard%2F12908 +0 -1
- data/spec/dummy/tmp/cache/3B4/130/shard%2F13655 +0 -1
- data/spec/dummy/tmp/cache/3B5/070/shard%2F10299 +0 -1
- data/spec/dummy/tmp/cache/3B5/080/shard%2F11199 +0 -1
- data/spec/dummy/tmp/cache/3B5/0B0/shard%2F10497 +0 -1
- data/spec/dummy/tmp/cache/3B5/0B0/shard%2F11388 +0 -1
- data/spec/dummy/tmp/cache/3B5/100/shard%2F11595 +0 -1
- data/spec/dummy/tmp/cache/3B5/110/shard%2F10875 +0 -1
- data/spec/dummy/tmp/cache/3B5/110/shard%2F12576 +0 -1
- data/spec/dummy/tmp/cache/3B5/110/shard%2F14277 +0 -1
- data/spec/dummy/tmp/cache/3B5/150/shard%2F12936 +0 -1
- data/spec/dummy/tmp/cache/3B5/170/shard%2F13683 +0 -1
- data/spec/dummy/tmp/cache/3B6/0F0/shard%2F10849 +0 -1
- data/spec/dummy/tmp/cache/3B6/100/shard%2F10696 +0 -1
- data/spec/dummy/tmp/cache/3B6/110/shard%2F13459 +0 -1
- data/spec/dummy/tmp/cache/3B6/190/shard%2F12964 +0 -1
- data/spec/dummy/tmp/cache/3B6/1F0/shard%2F13990 +0 -1
- data/spec/dummy/tmp/cache/3B7/0E0/shard%2F10589 +0 -1
- data/spec/dummy/tmp/cache/3B7/140/shard%2F11696 +0 -1
- data/spec/dummy/tmp/cache/3B7/150/shard%2F12596 +0 -1
- data/spec/dummy/tmp/cache/3B7/150/shard%2F13487 +0 -1
- data/spec/dummy/tmp/cache/3B8/140/shard%2F10797 +0 -1
- data/spec/dummy/tmp/cache/3B8/140/shard%2F11769 +0 -1
- data/spec/dummy/tmp/cache/3B8/170/shard%2F10986 +0 -1
- data/spec/dummy/tmp/cache/3B8/170/shard%2F11796 +0 -1
- data/spec/dummy/tmp/cache/3B8/170/shard%2F11877 +0 -1
- data/spec/dummy/tmp/cache/3B8/170/shard%2F11958 +0 -1
- data/spec/dummy/tmp/cache/3B8/170/shard%2F12768 +0 -1
- data/spec/dummy/tmp/cache/3B9/1B0/shard%2F12796 +0 -1
- data/spec/dummy/tmp/cache/3B9/1D0/shard%2F13786 +0 -1
- data/spec/dummy/tmp/cache/3BA/160/shard%2F10799 +0 -1
- data/spec/dummy/tmp/cache/3BA/180/shard%2F10979 +0 -1
- data/spec/dummy/tmp/cache/3BA/1C0/shard%2F11987 +0 -1
- data/spec/dummy/tmp/cache/3BB/1C0/shard%2F13599 +0 -1
- data/spec/dummy/tmp/cache/3BB/210/shard%2F13887 +0 -1
- data/spec/lib/action_controller/caching_spec.rb +0 -49
- data/spec/lib/active_record/abstract_adapter_spec.rb +0 -16
- data/spec/lib/active_record/association_spec.rb +0 -444
- data/spec/lib/active_record/attribute_methods_spec.rb +0 -122
- data/spec/lib/active_record/base_spec.rb +0 -130
- data/spec/lib/active_record/calculations_spec.rb +0 -282
- data/spec/lib/active_record/connection_handler_spec.rb +0 -45
- data/spec/lib/active_record/connection_pool_spec.rb +0 -83
- data/spec/lib/active_record/finder_methods_spec.rb +0 -58
- data/spec/lib/active_record/model_schema_spec.rb +0 -25
- data/spec/lib/active_record/persistence_spec.rb +0 -34
- data/spec/lib/active_record/postgresql_adapter_spec.rb +0 -40
- data/spec/lib/active_record/query_cache_spec.rb +0 -346
- data/spec/lib/active_record/query_methods_spec.rb +0 -166
- data/spec/lib/active_record/relation_spec.rb +0 -56
- data/spec/lib/active_record/spawn_methods_spec.rb +0 -44
- data/spec/lib/connection_pool_proxy_spec.rb +0 -45
- data/spec/lib/database_server_spec.rb +0 -231
- data/spec/lib/default_shard_spec.rb +0 -18
- data/spec/lib/engine_spec.rb +0 -14
- data/spec/lib/environment_spec.rb +0 -25
- data/spec/lib/r_spec_helper_spec.rb +0 -77
- data/spec/lib/rails_spec.rb +0 -31
- data/spec/lib/rake_spec.rb +0 -100
- data/spec/lib/shackles_spec.rb +0 -210
- data/spec/models/shard_spec.rb +0 -603
- data/spec/spec_helper.rb +0 -66
@@ -1,166 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
module Switchman
|
4
|
-
module ActiveRecord
|
5
|
-
describe QueryMethods do
|
6
|
-
include RSpecHelper
|
7
|
-
|
8
|
-
before do
|
9
|
-
@user1 = User.create!
|
10
|
-
@appendage1 = @user1.appendages.create!
|
11
|
-
@user2 = @shard1.activate { User.create! }
|
12
|
-
@appendage2 = @user2.appendages.create!
|
13
|
-
@user3 = @shard2.activate { User.create! }
|
14
|
-
@appendage3 = @user3.appendages.create!
|
15
|
-
end
|
16
|
-
|
17
|
-
describe "#primary_shard" do
|
18
|
-
it "should be the shard if it's a shard" do
|
19
|
-
expect(User.shard(Shard.default).primary_shard).to eq Shard.default
|
20
|
-
expect(User.shard(@shard1).primary_shard).to eq @shard1
|
21
|
-
end
|
22
|
-
|
23
|
-
it "should be the first shard of an array of shards" do
|
24
|
-
expect(User.shard([Shard.default, @shard1]).primary_shard).to eq Shard.default
|
25
|
-
expect(User.shard([@shard1, Shard.default]).primary_shard).to eq @shard1
|
26
|
-
end
|
27
|
-
|
28
|
-
it "should be the object's shard if it's a model" do
|
29
|
-
expect(User.shard(@user1).primary_shard).to eq Shard.default
|
30
|
-
expect(User.shard(@user2).primary_shard).to eq @shard1
|
31
|
-
end
|
32
|
-
|
33
|
-
it "should be the default shard if it's a scope of Shard" do
|
34
|
-
expect(User.shard(Shard.all).primary_shard).to eq Shard.default
|
35
|
-
@shard1.activate do
|
36
|
-
expect(User.shard(Shard.all).primary_shard).to eq Shard.default
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
it "should default to the current shard" do
|
42
|
-
relation = User.all
|
43
|
-
expect(relation.shard_value).to eq Shard.default
|
44
|
-
expect(relation.shard_source_value).to eq :implicit
|
45
|
-
|
46
|
-
@shard1.activate do
|
47
|
-
expect(relation.shard_value).to eq Shard.default
|
48
|
-
|
49
|
-
relation = User.all
|
50
|
-
expect(relation.shard_value).to eq @shard1
|
51
|
-
expect(relation.shard_source_value).to eq :implicit
|
52
|
-
end
|
53
|
-
expect(relation.shard_value).to eq @shard1
|
54
|
-
end
|
55
|
-
|
56
|
-
describe "with primary key conditions" do
|
57
|
-
it "should be changeable, and change conditions when it is changed" do
|
58
|
-
relation = User.where(:id => @user1).shard(@shard1)
|
59
|
-
expect(relation.shard_value).to eq @shard1
|
60
|
-
expect(relation.shard_source_value).to eq :explicit
|
61
|
-
expect(where_value(predicates(relation).first.right)).to eq @user1.global_id
|
62
|
-
end
|
63
|
-
|
64
|
-
it "should infer the shard from a single argument" do
|
65
|
-
relation = User.where(:id => @user2)
|
66
|
-
# execute on @shard1, with id local to that shard
|
67
|
-
expect(relation.shard_value).to eq @shard1
|
68
|
-
expect(where_value(predicates(relation).first.right)).to eq @user2.local_id
|
69
|
-
end
|
70
|
-
|
71
|
-
it "should infer the shard from multiple arguments" do
|
72
|
-
relation = User.where(:id => [@user2, @user2])
|
73
|
-
# execute on @shard1, with id local to that shard
|
74
|
-
expect(relation.shard_value).to eq @shard1
|
75
|
-
expect(where_value(predicates(relation).first.right)).to eq [@user2.local_id, @user2.local_id]
|
76
|
-
end
|
77
|
-
|
78
|
-
it "should infer the correct shard from an array of 1" do
|
79
|
-
relation = User.where(:id => [@user2])
|
80
|
-
# execute on @shard1, with id local to that shard
|
81
|
-
expect(relation.shard_value).to eq @shard1
|
82
|
-
expect(where_value(Array(predicates(relation).first.right))).to eq [@user2.local_id]
|
83
|
-
end
|
84
|
-
|
85
|
-
it "should do nothing when it's an array of 0" do
|
86
|
-
relation = User.where(:id => [])
|
87
|
-
# execute on @shard1, with id local to that shard
|
88
|
-
expect(relation.shard_value).to eq Shard.default
|
89
|
-
expect(where_value(predicates(relation).first.right)).to eq []
|
90
|
-
end
|
91
|
-
|
92
|
-
it "should order the shards preferring the shard it already had as primary" do
|
93
|
-
relation = User.where(:id => [@user1, @user2])
|
94
|
-
expect(relation.shard_value).to eq [Shard.default, @shard1]
|
95
|
-
expect(where_value(predicates(relation).first.right)).to eq [@user1.local_id, @user2.global_id]
|
96
|
-
|
97
|
-
@shard1.activate do
|
98
|
-
relation = User.where(:id => [@user1, @user2])
|
99
|
-
expect(relation.shard_value).to eq [@shard1, Shard.default]
|
100
|
-
expect(where_value(predicates(relation).first.right)).to eq [@user1.global_id, @user2.local_id]
|
101
|
-
end
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|
105
|
-
describe "with foreign key conditions" do
|
106
|
-
it "should be changeable, and change conditions when it is changed" do
|
107
|
-
relation = Appendage.where(:user_id => @user1)
|
108
|
-
expect(relation.shard_value).to eq Shard.default
|
109
|
-
expect(relation.shard_source_value).to eq :implicit
|
110
|
-
expect(where_value(predicates(relation).first.right)).to eq @user1.local_id
|
111
|
-
|
112
|
-
relation = relation.shard(@shard1)
|
113
|
-
expect(relation.shard_value).to eq @shard1
|
114
|
-
expect(relation.shard_source_value).to eq :explicit
|
115
|
-
expect(where_value(predicates(relation).first.right)).to eq @user1.global_id
|
116
|
-
end
|
117
|
-
|
118
|
-
it "should translate ids based on current shard" do
|
119
|
-
relation = Appendage.where(:user_id => [@user1, @user2])
|
120
|
-
expect(where_value(predicates(relation).first.right)).to eq [@user1.local_id, @user2.global_id]
|
121
|
-
|
122
|
-
@shard1.activate do
|
123
|
-
relation = Appendage.where(:user_id => [@user1, @user2])
|
124
|
-
expect(where_value(predicates(relation).first.right)).to eq [@user1.global_id, @user2.local_id]
|
125
|
-
end
|
126
|
-
end
|
127
|
-
|
128
|
-
it "should translate ids in joins" do
|
129
|
-
relation = User.joins(:appendage).where(appendages: { user_id: [@user1, @user2]})
|
130
|
-
expect(where_value(predicates(relation).first.right)).to eq [@user1.local_id, @user2.global_id]
|
131
|
-
end
|
132
|
-
|
133
|
-
it "should translate ids according to the current shard of the foreign type" do
|
134
|
-
@shard1.activate(:mirror_universe) do
|
135
|
-
mirror_user = MirrorUser.create!
|
136
|
-
relation = User.where(mirror_user_id: mirror_user)
|
137
|
-
expect(where_value(predicates(relation).first.right)).to eq mirror_user.global_id
|
138
|
-
end
|
139
|
-
end
|
140
|
-
end
|
141
|
-
|
142
|
-
describe "with table aliases" do
|
143
|
-
it "should properly construct the query (at least in Rails 4)" do
|
144
|
-
child = @user1.children.create!
|
145
|
-
grandchild = child.children.create!
|
146
|
-
expect(child.reload.parent).to eq @user1
|
147
|
-
|
148
|
-
relation = @user1.association(:grandchildren).scope
|
149
|
-
|
150
|
-
attribute = predicates(relation).first.left
|
151
|
-
expect(attribute.name.to_s).to eq 'parent_id'
|
152
|
-
unless ::Rails.version >= '5'
|
153
|
-
# apparently rails 5 doesn't use table aliases here anymore
|
154
|
-
expect(attribute.relation.class).to eq ::Arel::Nodes::TableAlias
|
155
|
-
|
156
|
-
rel, column = relation.send(:relation_and_column, attribute)
|
157
|
-
expect(relation.send(:sharded_primary_key?, rel, column)).to eq false
|
158
|
-
expect(relation.send(:sharded_foreign_key?, rel, column)).to eq true
|
159
|
-
end
|
160
|
-
|
161
|
-
expect(@user1.grandchildren).to eq [grandchild]
|
162
|
-
end
|
163
|
-
end
|
164
|
-
end
|
165
|
-
end
|
166
|
-
end
|
@@ -1,56 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
module Switchman
|
4
|
-
module ActiveRecord
|
5
|
-
describe Relation do
|
6
|
-
include RSpecHelper
|
7
|
-
|
8
|
-
before do
|
9
|
-
@user1 = User.create!(:name => 'user1')
|
10
|
-
@user2 = @shard1.activate { User.create!(:name => 'user2') }
|
11
|
-
end
|
12
|
-
|
13
|
-
describe "#exec_queries" do
|
14
|
-
it "should activate the correct shard for the query" do
|
15
|
-
expect(User.shard(@shard1).where(:id => @user2.local_id).first).to eq @user2
|
16
|
-
end
|
17
|
-
|
18
|
-
it "should activate multiple shards if necessary" do
|
19
|
-
expect(User.where(:id => [@user1.id, @user2.id]).sort_by(&:id)).to eq [@user1, @user2].sort_by(&:id)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
describe "#update_all" do
|
24
|
-
it "should activate the correct shard for the query" do
|
25
|
-
User.shard(@shard1).where(:id => @user2.local_id).update_all(:name => 'a')
|
26
|
-
expect(@user1.reload.name).to eq 'user1'
|
27
|
-
expect(@user2.reload.name).to eq 'a'
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should activate multiple shards if necessary" do
|
31
|
-
expect(User.where(:id => [@user1.id, @user2.id]).update_all(:name => 'a')).to eq 2
|
32
|
-
expect(@user1.reload.name).to eq 'a'
|
33
|
-
expect(@user2.reload.name).to eq 'a'
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
describe "#new" do
|
38
|
-
it "should infer the scope's shard" do
|
39
|
-
scope = @shard1.activate { User.where(id: 1) }
|
40
|
-
u = scope.new
|
41
|
-
expect(u.shard).to eq @shard1
|
42
|
-
expect(u.local_id).to eq 1
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
describe "#clone" do
|
47
|
-
it "sets the shard_value that was previously nil" do
|
48
|
-
scope = User.all
|
49
|
-
scope.shard_value = nil
|
50
|
-
scope = scope.clone
|
51
|
-
expect(scope.shard_value).to eq Shard.current
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
module Switchman
|
4
|
-
module ActiveRecord
|
5
|
-
describe SpawnMethods do
|
6
|
-
include RSpecHelper
|
7
|
-
|
8
|
-
describe "#merge" do
|
9
|
-
it "should merge shard_value for multiple explicits" do
|
10
|
-
result = User.shard([@shard1, @shard2]).merge(User.shard([Shard.default, @shard1]))
|
11
|
-
expect(result.shard_value).to eq @shard1
|
12
|
-
expect(result.shard_source_value).to eq :explicit
|
13
|
-
end
|
14
|
-
|
15
|
-
it "should merge shard_value relations for multiple explicits" do
|
16
|
-
result = User.shard(Shard.where("id IN (?)", [@shard1, @shard2])).merge(User.shard(Shard.where(id: [Shard.default, @shard1])))
|
17
|
-
expect(::ActiveRecord::Relation === result.shard_value).to eq true
|
18
|
-
expect(result.shard_value.to_a).to eq [@shard1]
|
19
|
-
expect(result.shard_source_value).to eq :explicit
|
20
|
-
end
|
21
|
-
|
22
|
-
it "should ignore implicit shard value lhs" do
|
23
|
-
scope = User.all
|
24
|
-
result = scope.merge(User.shard(@shard1))
|
25
|
-
expect(result.shard_value).to eq @shard1
|
26
|
-
expect(result.shard_source_value).to eq :explicit
|
27
|
-
end
|
28
|
-
|
29
|
-
it "should ignore implicit shard value rhs" do
|
30
|
-
result = User.shard(@shard1).merge(User.all)
|
31
|
-
expect(result.shard_value).to eq @shard1
|
32
|
-
expect(result.shard_source_value).to eq :explicit
|
33
|
-
end
|
34
|
-
|
35
|
-
it "should take lhs shard_value for double implicit" do
|
36
|
-
scope1 = @shard2.activate { User.all }
|
37
|
-
result = scope1.merge(User.all)
|
38
|
-
expect(result.shard_value).to eq @shard2
|
39
|
-
expect(result.shard_source_value).to eq :implicit
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
@@ -1,45 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
module Switchman
|
4
|
-
describe ConnectionPoolProxy do
|
5
|
-
include RSpecHelper
|
6
|
-
|
7
|
-
it "should not share connections for sqlite shards on the same db" do
|
8
|
-
@db = DatabaseServer.create(adapter: 'sqlite3', database: ':memory:')
|
9
|
-
@sqlite_shard1 = @db.shards.create!
|
10
|
-
@sqlite_shard2 = @db.shards.create!
|
11
|
-
expect(::ActiveRecord::Base.connection).not_to eq @sqlite_shard2.activate { ::ActiveRecord::Base.connection }
|
12
|
-
expect(@sqlite_shard1.activate { ::ActiveRecord::Base.connection }).not_to eq @sqlite_shard2.activate { ::ActiveRecord::Base.connection }
|
13
|
-
end
|
14
|
-
|
15
|
-
it "should forward clear_idle_connections! to each of its pools" do
|
16
|
-
proxy = User.connection_pool
|
17
|
-
@shard1.activate{ proxy.current_pool.expects(:clear_idle_connections!).once }
|
18
|
-
@shard2.activate{ proxy.current_pool.expects(:clear_idle_connections!).once }
|
19
|
-
proxy.clear_idle_connections!(Time.now)
|
20
|
-
end
|
21
|
-
|
22
|
-
it "should handle an array of slaves when creating a pool" do
|
23
|
-
spec = Object.new
|
24
|
-
spec.instance_variable_set(:@config, adapter: Shard.connection_pool.spec.config[:adapter], database: 'master', slave: [ { database: 'slave1' }, { database: 'slave2' }])
|
25
|
-
default_pool = stub(spec: spec)
|
26
|
-
cache = {}
|
27
|
-
proxy = ConnectionPoolProxy.new(:unsharded, default_pool, cache)
|
28
|
-
proxy.stubs(:active_shackles_environment).returns(:slave)
|
29
|
-
new_pool = proxy.send(:create_pool)
|
30
|
-
expect(new_pool.spec.config[:database]).to eq 'slave1'
|
31
|
-
end
|
32
|
-
|
33
|
-
it "should share schema caches between connections" do
|
34
|
-
conn1 = User.connection
|
35
|
-
conn2 = @shard2.activate { User.connection }
|
36
|
-
expect(conn1).to_not be conn2
|
37
|
-
expect(conn1.schema_cache).to be_a(Switchman::SchemaCache)
|
38
|
-
expect(conn1.schema_cache).to be conn2.schema_cache
|
39
|
-
expect(conn1.schema_cache.connection).to be conn1
|
40
|
-
@shard2.activate do
|
41
|
-
expect(conn1.schema_cache.connection).to be conn2
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
@@ -1,231 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
module Switchman
|
4
|
-
describe DatabaseServer do
|
5
|
-
describe "shareable?" do
|
6
|
-
it "should be false for sqlite" do
|
7
|
-
db = DatabaseServer.new(nil, adapter: 'sqlite3', database: '%{shard_name}')
|
8
|
-
expect(db.shareable?).to eq false
|
9
|
-
end
|
10
|
-
|
11
|
-
it "should be true for mysql" do
|
12
|
-
db = DatabaseServer.new(nil, adapter: 'mysql')
|
13
|
-
expect(db.shareable?).to eq true
|
14
|
-
|
15
|
-
db = DatabaseServer.new(nil, adapter: 'mysql2')
|
16
|
-
expect(db.shareable?).to eq true
|
17
|
-
end
|
18
|
-
|
19
|
-
it "should be true for postgres with a non-variable username" do
|
20
|
-
db = DatabaseServer.new(nil, adapter: 'postgresql')
|
21
|
-
expect(db.shareable?).to eq true
|
22
|
-
end
|
23
|
-
|
24
|
-
it "should be false for postgres with variable username" do
|
25
|
-
db = DatabaseServer.new(nil, adapter: 'postgresql', username: '%{schema_search_path}')
|
26
|
-
expect(db.shareable?).to eq false
|
27
|
-
end
|
28
|
-
|
29
|
-
it "should depend on the database environment" do
|
30
|
-
db = DatabaseServer.new(nil, adapter: 'postgresql', username: '%{schema_search_path}', deploy: { username: 'deploy' })
|
31
|
-
expect(db.shareable?).to eq false
|
32
|
-
expect(::Shackles.activate(:deploy) { db.shareable? }).to eq true
|
33
|
-
end
|
34
|
-
|
35
|
-
it "should handle string keys" do
|
36
|
-
db = DatabaseServer.new(nil, adapter: 'postgresql', username: '%{schema_search_path}', deploy: { 'username' => 'deploy' })
|
37
|
-
expect(db.shareable?).to eq false
|
38
|
-
expect(::Shackles.activate(:deploy) { db.shareable? }).to eq true
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe "#create_new_shard" do
|
43
|
-
include RSpecHelper
|
44
|
-
|
45
|
-
def maybe_activate(shard)
|
46
|
-
shard.activate { yield } if shard
|
47
|
-
yield unless shard
|
48
|
-
end
|
49
|
-
|
50
|
-
adapter = ::ActiveRecord::Base.connection.adapter_name
|
51
|
-
def create_shard(server)
|
52
|
-
new_shard = server.create_new_shard
|
53
|
-
expect(new_shard).not_to be_new_record
|
54
|
-
expect(new_shard.name).to match /shard_#{new_shard.id}/
|
55
|
-
# They should share a connection pool
|
56
|
-
if server == Shard.default.database_server
|
57
|
-
expect(User.connection_pool.current_pool).to eq new_shard.activate { User.connection_pool.current_pool }
|
58
|
-
expect(User.connection_pool.current_pool).to eq Shard.connection_pool.current_pool
|
59
|
-
else
|
60
|
-
expect(User.connection_pool.current_pool).not_to eq new_shard.activate { User.connection_pool.current_pool }
|
61
|
-
end
|
62
|
-
# The tables should be created, ready to use
|
63
|
-
new_shard.activate {
|
64
|
-
a = User.create!
|
65
|
-
expect(a).not_to be_new_record
|
66
|
-
}
|
67
|
-
ensure
|
68
|
-
if new_shard
|
69
|
-
new_shard.drop_database
|
70
|
-
new_shard.destroy
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
it "should be able to create a new sqlite shard from a given server" do
|
75
|
-
db = DatabaseServer.create(adapter: 'sqlite3', database: '%{shard_name}', shard_name: ':memory:')
|
76
|
-
begin
|
77
|
-
create_shard(db)
|
78
|
-
ensure
|
79
|
-
db.destroy
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
context "non-transactional" do
|
84
|
-
self.use_transactional_fixtures = ::ActiveRecord::Base.connection.supports_ddl_transactions?
|
85
|
-
|
86
|
-
it "should be able to create a new shard from the default db" do
|
87
|
-
create_shard(Shard.default.database_server)
|
88
|
-
end
|
89
|
-
end
|
90
|
-
|
91
|
-
it "should be able to create a new shard from a db server that doesn't have any shards" do
|
92
|
-
# otherwise it's a repeat of the sqlite spec above
|
93
|
-
skip 'A "real" database"' unless %w{MySQL Mysql2 PostgreSQL}.include?(adapter)
|
94
|
-
|
95
|
-
# So, it's really the same server, but we want separate connections
|
96
|
-
db = DatabaseServer.create(Shard.default.database_server.config)
|
97
|
-
begin
|
98
|
-
create_shard(db)
|
99
|
-
ensure
|
100
|
-
db.destroy
|
101
|
-
end
|
102
|
-
end
|
103
|
-
|
104
|
-
class MyException < Exception; end
|
105
|
-
it "should use the connection's db name as temp db name" do
|
106
|
-
db = DatabaseServer.new(nil, adapter: 'postgresql')
|
107
|
-
Shard.expects(:create!).with(:name => Shard.default.name, :database_server => db).raises(MyException.new)
|
108
|
-
expect { db.create_new_shard }.to raise_error(MyException)
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
describe "#config" do
|
113
|
-
it "should return subenvs" do
|
114
|
-
base_config = { database: 'db',
|
115
|
-
slave: [nil, { database: 'slave' }],
|
116
|
-
deploy: { username: 'deploy' }}
|
117
|
-
ds = DatabaseServer.new(nil, base_config)
|
118
|
-
expect(ds.config).to eq base_config
|
119
|
-
expect(ds.config(:slave)).to eq [{ database: 'db', deploy: base_config[:deploy] },
|
120
|
-
{ database: 'slave', deploy: base_config[:deploy] }]
|
121
|
-
expect(ds.config(:deploy)).to eq({ database: 'db', username: 'deploy', slave: base_config[:slave], deploy: base_config[:deploy] })
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
|
-
describe "#shackles_environment" do
|
126
|
-
it "should inherit from Shackles.environment" do
|
127
|
-
ds = DatabaseServer.new
|
128
|
-
expect(ds.shackles_environment).to eq :master
|
129
|
-
::Shackles.activate(:slave) do
|
130
|
-
expect(ds.shackles_environment).to eq :slave
|
131
|
-
end
|
132
|
-
end
|
133
|
-
|
134
|
-
it "should override Shackles.environment when explicitly set" do
|
135
|
-
ds = DatabaseServer.new
|
136
|
-
ds.shackle!
|
137
|
-
expect(ds.shackles_environment).to eq :slave
|
138
|
-
ds.unshackle do
|
139
|
-
expect(ds.shackles_environment).to eq :master
|
140
|
-
end
|
141
|
-
expect(ds.shackles_environment).to eq :slave
|
142
|
-
::Shackles.activate(:slave) do
|
143
|
-
expect(ds.shackles_environment).to eq :slave
|
144
|
-
ds.unshackle do
|
145
|
-
expect(ds.shackles_environment).to eq :slave
|
146
|
-
end
|
147
|
-
expect(ds.shackles_environment).to eq :slave
|
148
|
-
end
|
149
|
-
expect(ds.shackles_environment).to eq :slave
|
150
|
-
end
|
151
|
-
end
|
152
|
-
|
153
|
-
describe "#cache_store" do
|
154
|
-
before do
|
155
|
-
@db = DatabaseServer.new
|
156
|
-
@default_store = ::ActiveSupport::Cache.lookup_store(:null_store)
|
157
|
-
@db_store = ::ActiveSupport::Cache.lookup_store(:memory_store)
|
158
|
-
@original_map = Switchman.config[:cache_map]
|
159
|
-
Switchman.config[:cache_map] = { ::Rails.env => @default_store, @db.id => @db_store }
|
160
|
-
end
|
161
|
-
|
162
|
-
after do
|
163
|
-
Switchman.config[:cache_map] = @original_map
|
164
|
-
end
|
165
|
-
|
166
|
-
it "should prefer the cache specific to the database" do
|
167
|
-
expect(@db.cache_store.object_id).to eq @db_store.object_id
|
168
|
-
end
|
169
|
-
|
170
|
-
it "should fallback to Rails.cache_without_sharding if no specific cache" do
|
171
|
-
Switchman.config[:cache_map].delete(@db.id)
|
172
|
-
expect(@db.cache_store.object_id).to eq @default_store.object_id
|
173
|
-
end
|
174
|
-
end
|
175
|
-
|
176
|
-
describe ".server_for_new_shard" do
|
177
|
-
before(:all) do
|
178
|
-
@db1 = DatabaseServer.find(nil)
|
179
|
-
@old_open = @db1.config.delete(:open)
|
180
|
-
@old_servers = DatabaseServer.all
|
181
|
-
@old_servers.delete(@db1)
|
182
|
-
@old_servers.each do |db|
|
183
|
-
db.destroy unless db == @db1
|
184
|
-
end
|
185
|
-
end
|
186
|
-
|
187
|
-
before do
|
188
|
-
@db1.config.delete(:open)
|
189
|
-
end
|
190
|
-
|
191
|
-
after do
|
192
|
-
@db2.try(:destroy)
|
193
|
-
end
|
194
|
-
|
195
|
-
after(:all) do
|
196
|
-
@db1.config[:open] = @old_open
|
197
|
-
@old_servers.each do |db|
|
198
|
-
DatabaseServer.create(db.config.merge(id: db.id))
|
199
|
-
end
|
200
|
-
end
|
201
|
-
|
202
|
-
it "should return the default server if that's the only one around" do
|
203
|
-
expect(DatabaseServer.server_for_new_shard).to eq @db1
|
204
|
-
end
|
205
|
-
|
206
|
-
it "should return on open server" do
|
207
|
-
@db1.config[:open] = true
|
208
|
-
expect(DatabaseServer.server_for_new_shard).to eq @db1
|
209
|
-
end
|
210
|
-
|
211
|
-
it "should return another server if it's the only one open" do
|
212
|
-
@db2 = DatabaseServer.create(open: true)
|
213
|
-
4.times { expect(DatabaseServer.server_for_new_shard).to eq @db2 }
|
214
|
-
@db2.config.delete(:open)
|
215
|
-
@db1.config[:open] = true
|
216
|
-
4.times { expect(DatabaseServer.server_for_new_shard).to eq @db1 }
|
217
|
-
end
|
218
|
-
|
219
|
-
it "should return multiple open servers" do
|
220
|
-
@db2 = DatabaseServer.create(open: true)
|
221
|
-
@db1.config[:open] = true
|
222
|
-
dbs = []
|
223
|
-
20.times do
|
224
|
-
dbs << DatabaseServer.server_for_new_shard
|
225
|
-
end
|
226
|
-
expect(dbs).to include(@db1)
|
227
|
-
expect(dbs).to include(@db2)
|
228
|
-
end
|
229
|
-
end
|
230
|
-
end
|
231
|
-
end
|