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,122 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
module Switchman
|
4
|
-
module ActiveRecord
|
5
|
-
describe AttributeMethods do
|
6
|
-
include RSpecHelper
|
7
|
-
|
8
|
-
describe "ids" do
|
9
|
-
it "should return id relative to the current shard" do
|
10
|
-
user = User.create!
|
11
|
-
expect(user.id).to be < Shard::IDS_PER_SHARD
|
12
|
-
expect(user.local_id).to be < Shard::IDS_PER_SHARD
|
13
|
-
expect(user.global_id).to be > Shard::IDS_PER_SHARD
|
14
|
-
|
15
|
-
@shard1.activate do
|
16
|
-
expect(user.id).to be > Shard::IDS_PER_SHARD
|
17
|
-
expect(user.local_id).to be < Shard::IDS_PER_SHARD
|
18
|
-
expect(user.global_id).to be > Shard::IDS_PER_SHARD
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
it "should return foreign keys relative to the current shard" do
|
23
|
-
appendage = Appendage.create!
|
24
|
-
|
25
|
-
# bypass the setter; we're going to test it in just a minute
|
26
|
-
|
27
|
-
# local id, should stay local
|
28
|
-
appendage.original_user_id = 6
|
29
|
-
expect(appendage.user_id).to eq 6
|
30
|
-
|
31
|
-
# (incorrect) self referencing global id; should come out as local
|
32
|
-
appendage.original_user_id = Shard.current.global_id_for(6)
|
33
|
-
expect(appendage.user_id).to eq 6
|
34
|
-
|
35
|
-
# global id referencing another shard; should come out unscathed
|
36
|
-
appendage.original_user_id = @shard1.global_id_for(6)
|
37
|
-
expect(appendage.user_id).to eq @shard1.global_id_for(6)
|
38
|
-
|
39
|
-
@shard1.activate do
|
40
|
-
# local id in another shard, should be global in this shard
|
41
|
-
appendage.original_user_id = 6
|
42
|
-
expect(appendage.user_id).to eq Shard.default.global_id_for(6)
|
43
|
-
|
44
|
-
# (incorrect) self referencing global id; should come out as global in this shard
|
45
|
-
appendage.original_user_id = Shard.default.global_id_for(6)
|
46
|
-
expect(appendage.user_id).to eq Shard.default.global_id_for(6)
|
47
|
-
|
48
|
-
# global id referencing this shard; should come out as a local id in this shard
|
49
|
-
appendage.original_user_id = @shard1.global_id_for(6)
|
50
|
-
expect(appendage.user_id).to eq 6
|
51
|
-
|
52
|
-
# global id from an unrelated shard; should stay global
|
53
|
-
appendage.original_user_id = @shard2.global_id_for(6)
|
54
|
-
expect(appendage.user_id).to eq @shard2.global_id_for(6)
|
55
|
-
end
|
56
|
-
|
57
|
-
# now that we trust the getters, try the setters
|
58
|
-
|
59
|
-
# local stays local
|
60
|
-
appendage.user_id = 6
|
61
|
-
expect(appendage.original_user_id).to eq 6
|
62
|
-
appendage.user_id = '6'
|
63
|
-
expect(appendage.original_user_id).to eq 6
|
64
|
-
|
65
|
-
# (incorrect) global id to this shard, should become local
|
66
|
-
appendage.user_id = Shard.current.global_id_for(6)
|
67
|
-
expect(appendage.original_user_id).to eq 6
|
68
|
-
appendage.user_id = Shard.current.global_id_for(6).to_s
|
69
|
-
expect(appendage.original_user_id).to eq 6
|
70
|
-
|
71
|
-
# global id from another shard, should stay global
|
72
|
-
appendage.user_id = @shard1.global_id_for(6)
|
73
|
-
expect(appendage.original_user_id).to eq @shard1.global_id_for(6)
|
74
|
-
expect(appendage.local_user_id).to eq 6
|
75
|
-
appendage.user_id = @shard1.global_id_for(6).to_s
|
76
|
-
expect(appendage.original_user_id).to eq @shard1.global_id_for(6)
|
77
|
-
expect(appendage.local_user_id).to eq 6
|
78
|
-
|
79
|
-
@shard1.activate do
|
80
|
-
# local to this shard becomes global
|
81
|
-
appendage.user_id = 6
|
82
|
-
expect(appendage.original_user_id).to eq @shard1.global_id_for(6)
|
83
|
-
appendage.user_id = '6'
|
84
|
-
expect(appendage.original_user_id).to eq @shard1.global_id_for(6)
|
85
|
-
|
86
|
-
# global id from original shard, should become local
|
87
|
-
appendage.user_id = Shard.default.global_id_for(6)
|
88
|
-
expect(appendage.original_user_id).to eq 6
|
89
|
-
appendage.user_id = Shard.default.global_id_for(6).to_s
|
90
|
-
expect(appendage.original_user_id).to eq 6
|
91
|
-
|
92
|
-
# global id from this shard, should stay global
|
93
|
-
appendage.user_id = Shard.current.global_id_for(6)
|
94
|
-
expect(appendage.original_user_id).to eq @shard1.global_id_for(6)
|
95
|
-
appendage.user_id = Shard.current.global_id_for(6).to_s
|
96
|
-
expect(appendage.original_user_id).to eq @shard1.global_id_for(6)
|
97
|
-
|
98
|
-
# global id from unrelated shard, should stay global
|
99
|
-
appendage.user_id = @shard2.global_id_for(6)
|
100
|
-
expect(appendage.original_user_id).to eq @shard2.global_id_for(6)
|
101
|
-
appendage.user_id = @shard2.global_id_for(6).to_s
|
102
|
-
expect(appendage.original_user_id).to eq @shard2.global_id_for(6)
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
it "should not choke on polymorphic associations that are missing their type" do
|
107
|
-
f = Feature.create!(owner: User.create!)
|
108
|
-
f = Feature.select(:owner_id).where(id: f).first
|
109
|
-
f.owner_id
|
110
|
-
end
|
111
|
-
|
112
|
-
it "gives a useful error if the association doesn't exist" do
|
113
|
-
u = User.new
|
114
|
-
expect { u.global_broken_id }.to raise_error do |error|
|
115
|
-
expect(error).to be_a(NoMethodError)
|
116
|
-
expect(error.to_s).to eq "undefined method `global_broken_id'; are you missing an association?"
|
117
|
-
end
|
118
|
-
end
|
119
|
-
end
|
120
|
-
end
|
121
|
-
end
|
122
|
-
end
|
@@ -1,130 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
module Switchman
|
4
|
-
module ActiveRecord
|
5
|
-
describe Base do
|
6
|
-
include RSpecHelper
|
7
|
-
|
8
|
-
describe "hash" do
|
9
|
-
it "should work with unsharded models" do
|
10
|
-
root = Root.create!
|
11
|
-
expect(root.hash).to eq root.id.hash
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
describe "to_param" do
|
16
|
-
it "should return nil if no id" do
|
17
|
-
user = User.new
|
18
|
-
expect(user.to_param).to be_nil
|
19
|
-
end
|
20
|
-
|
21
|
-
it "should return the id even if not persisted" do
|
22
|
-
user = User.new
|
23
|
-
user.id = 1
|
24
|
-
expect(user.to_param).to eq '1'
|
25
|
-
end
|
26
|
-
|
27
|
-
it "should return local id if in the current shard" do
|
28
|
-
user = User.create!
|
29
|
-
expect(user.to_param).to eq user.local_id.to_s
|
30
|
-
@shard1.activate do
|
31
|
-
user2 = User.create!
|
32
|
-
expect(user2.to_param).to eq user2.local_id.to_s
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
it "should return a short form global id if not in the current shard" do
|
37
|
-
user = nil
|
38
|
-
@shard1.activate do
|
39
|
-
user = User.create!
|
40
|
-
end
|
41
|
-
@shard2.activate do
|
42
|
-
expect(user.to_param).to eq "#{@shard1.id}~#{user.local_id}"
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
it "should use to_param in url helpers" do
|
47
|
-
helpers = ::Rails.application.routes.url_helpers
|
48
|
-
user = nil
|
49
|
-
appendage = nil
|
50
|
-
|
51
|
-
@shard1.activate do
|
52
|
-
user = User.create!
|
53
|
-
appendage = Appendage.create!
|
54
|
-
|
55
|
-
expect(helpers.user_path(user)).to eq "/users/#{user.local_id}"
|
56
|
-
expect(helpers.user_appendages_path(user)).to eq "/users/#{user.local_id}/appendages"
|
57
|
-
expect(helpers.user_appendage_path(user, appendage)).to eq "/users/#{user.local_id}/appendages/#{appendage.local_id}"
|
58
|
-
expect(helpers.user_test1_path(user)).to eq "/users/#{user.local_id}"
|
59
|
-
expect(helpers.user_test2_path(user)).to eq "/users/#{user.local_id}/test2"
|
60
|
-
end
|
61
|
-
|
62
|
-
@shard2.activate do
|
63
|
-
user_short_id = "#{@shard1.id}~#{user.local_id}"
|
64
|
-
appendage_short_id = "#{@shard1.id}~#{appendage.local_id}"
|
65
|
-
|
66
|
-
expect(helpers.user_path(user)).to eq "/users/#{user_short_id}"
|
67
|
-
expect(helpers.user_appendages_path(user)).to eq "/users/#{user_short_id}/appendages"
|
68
|
-
expect(helpers.user_appendage_path(user, appendage)).to eq "/users/#{user_short_id}/appendages/#{appendage_short_id}"
|
69
|
-
expect(helpers.user_test1_path(user)).to eq "/users/#{user_short_id}"
|
70
|
-
expect(helpers.user_test2_path(user)).to eq "/users/#{user_short_id}/test2"
|
71
|
-
|
72
|
-
appendage2 = Appendage.create!
|
73
|
-
expect(helpers.user_appendage_path(user, appendage2)).to eq "/users/#{user_short_id}/appendages/#{appendage2.local_id}"
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
describe "shard=" do
|
79
|
-
it "should adjust foreign ids when shard is changed" do
|
80
|
-
user = User.create!
|
81
|
-
appendage = Appendage.new
|
82
|
-
appendage.user_id = user.id
|
83
|
-
appendage.shard = @shard1
|
84
|
-
expect(appendage.attributes["user_id"]).to eq user.global_id
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
describe ".shard_category=" do
|
89
|
-
it "should set up connection pools correctly for a model on a different db in the default shard" do
|
90
|
-
skip "remove_connection working properly"
|
91
|
-
::Rails.env.stubs(:test?).returns(false)
|
92
|
-
begin
|
93
|
-
config = { :adapter => 'sqlite3', :database => ':memory:', :something_unique_in_the_spec => true }
|
94
|
-
MirrorUser.establish_connection(config)
|
95
|
-
|
96
|
-
expect(MirrorUser.connection).not_to eq ::ActiveRecord::Base.connection
|
97
|
-
::Shackles.activate(:slave) do
|
98
|
-
expect(MirrorUser.connection).not_to eq ::ActiveRecord::Base.connection
|
99
|
-
end
|
100
|
-
ensure
|
101
|
-
MirrorUser.remove_connection
|
102
|
-
end
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
describe ".unscoped" do
|
107
|
-
it "doesn't capture the shard permanently (block form)" do
|
108
|
-
@shard1.activate do
|
109
|
-
User.unscoped do
|
110
|
-
Shard.default.activate do
|
111
|
-
expect(User.all.shard_value).to eq Shard.default
|
112
|
-
end
|
113
|
-
end
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
|
-
it "doesn't capture the shard permanently" do
|
118
|
-
@shard1.activate do
|
119
|
-
scope = User.unscoped
|
120
|
-
scope.scoping do
|
121
|
-
Shard.default.activate do
|
122
|
-
expect(User.all.shard_value).to eq Shard.default
|
123
|
-
end
|
124
|
-
end
|
125
|
-
end
|
126
|
-
end
|
127
|
-
end
|
128
|
-
end
|
129
|
-
end
|
130
|
-
end
|
@@ -1,282 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
module Switchman
|
4
|
-
module ActiveRecord
|
5
|
-
describe Calculations do
|
6
|
-
include RSpecHelper
|
7
|
-
|
8
|
-
describe "#pluck" do
|
9
|
-
before do
|
10
|
-
@shard1.activate do
|
11
|
-
@user1 = User.create!(:name => "user1")
|
12
|
-
@appendage1 = @user1.appendages.create!
|
13
|
-
end
|
14
|
-
@shard2.activate do
|
15
|
-
@user2 = User.create!(:name => "user2")
|
16
|
-
@appendage2 = @user2.appendages.create!
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
it "should return non-id columns" do
|
21
|
-
expect(User.where(:id => [@user1.id, @user2.id]).pluck(:name).sort).to eq ["user1", "user2"]
|
22
|
-
end
|
23
|
-
|
24
|
-
it "should return primary ids relative to current shard" do
|
25
|
-
expect(Appendage.where(:id => @appendage1).pluck(:id)).to eq [@appendage1.global_id]
|
26
|
-
expect(Appendage.where(:id => @appendage2).pluck(:id)).to eq [@appendage2.global_id]
|
27
|
-
@shard1.activate do
|
28
|
-
expect(Appendage.where(:id => @appendage1).pluck(:id)).to eq [@appendage1.local_id]
|
29
|
-
expect(Appendage.where(:id => @appendage2).pluck(:id)).to eq [@appendage2.global_id]
|
30
|
-
end
|
31
|
-
@shard2.activate do
|
32
|
-
expect(Appendage.where(:id => @appendage1).pluck(:id)).to eq [@appendage1.global_id]
|
33
|
-
expect(Appendage.where(:id => @appendage2).pluck(:id)).to eq [@appendage2.local_id]
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
it "should return foreign ids relative to current shard" do
|
38
|
-
expect(Appendage.where(:id => @appendage1).pluck(:user_id)).to eq [@user1.global_id]
|
39
|
-
expect(Appendage.where(:id => @appendage2).pluck(:user_id)).to eq [@user2.global_id]
|
40
|
-
@shard1.activate do
|
41
|
-
expect(Appendage.where(:id => @appendage1).pluck(:user_id)).to eq [@user1.local_id]
|
42
|
-
expect(Appendage.where(:id => @appendage2).pluck(:user_id)).to eq [@user2.global_id]
|
43
|
-
end
|
44
|
-
@shard2.activate do
|
45
|
-
expect(Appendage.where(:id => @appendage1).pluck(:user_id)).to eq [@user1.global_id]
|
46
|
-
expect(Appendage.where(:id => @appendage2).pluck(:user_id)).to eq [@user2.local_id]
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
it "should post-uniq multi-shard" do
|
51
|
-
user3 = User.create!(name: 'user2')
|
52
|
-
expect(User.where(id: [@user1.id, @user2.id, user3.id]).distinct.pluck(:name).sort).to match_array ["user1", "user2"]
|
53
|
-
end
|
54
|
-
|
55
|
-
it "should work when setting an AR shard value" do
|
56
|
-
expect(Appendage.shard(@user1).pluck(:user_id)).to eq [@user1.global_id]
|
57
|
-
end
|
58
|
-
|
59
|
-
it "should work with multi-column plucking" do
|
60
|
-
expect(Appendage.where(:id => @appendage1).pluck(:id, :user_id)).to eq [[@appendage1.global_id, @user1.global_id]]
|
61
|
-
expect(Appendage.where(:id => @appendage2).pluck(:id, :user_id)).to eq [[@appendage2.global_id, @user2.global_id]]
|
62
|
-
@shard1.activate do
|
63
|
-
expect(Appendage.where(:id => @appendage1).pluck(:id, :user_id)).to eq [[@appendage1.local_id, @user1.local_id]]
|
64
|
-
expect(Appendage.where(:id => @appendage2).pluck(:id, :user_id)).to eq [[@appendage2.global_id, @user2.global_id]]
|
65
|
-
end
|
66
|
-
@shard2.activate do
|
67
|
-
expect(Appendage.where(:id => @appendage1).pluck(:id, :user_id)).to eq [[@appendage1.global_id, @user1.global_id]]
|
68
|
-
expect(Appendage.where(:id => @appendage2).pluck(:id, :user_id)).to eq [[@appendage2.local_id, @user2.local_id]]
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
describe "#execute_simple_calculation" do
|
74
|
-
before do
|
75
|
-
@appendages = []
|
76
|
-
@shard1.activate do
|
77
|
-
@user1 = User.create!(:name => "user1")
|
78
|
-
@appendages << @user1.appendages.create!(:value => 1)
|
79
|
-
@appendages << @user1.appendages.create!(:value => 2)
|
80
|
-
end
|
81
|
-
@shard2.activate do
|
82
|
-
@user2 = User.create!(:name => "user2")
|
83
|
-
@appendages << @user2.appendages.create!(:value => 3)
|
84
|
-
@appendages << @user2.appendages.create!(:value => 4)
|
85
|
-
@appendages << @user2.appendages.create!(:value => 5)
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
89
|
-
it "should calculate average across shards" do
|
90
|
-
expect(@user1.appendages.average(:value)).to eq 1.5
|
91
|
-
expect(@shard1.activate {Appendage.average(:value)}).to eq 1.5
|
92
|
-
|
93
|
-
expect(@user2.appendages.average(:value)).to eq 4
|
94
|
-
expect(@shard2.activate {Appendage.average(:value)}).to eq 4
|
95
|
-
|
96
|
-
expect(Appendage.where(:id => @appendages).average(:value)).to eq 3
|
97
|
-
end
|
98
|
-
|
99
|
-
it "should count across shards" do
|
100
|
-
expect(@user1.appendages.count).to eq 2
|
101
|
-
expect(@shard1.activate {Appendage.count}).to eq 2
|
102
|
-
|
103
|
-
expect(@user2.appendages.count).to eq 3
|
104
|
-
expect(@shard2.activate {Appendage.count}).to eq 3
|
105
|
-
|
106
|
-
expect(Appendage.where(:id => @appendages).count).to eq 5
|
107
|
-
end
|
108
|
-
|
109
|
-
it "should calculate minimum across shards" do
|
110
|
-
expect(@user1.appendages.minimum(:value)).to eq 1
|
111
|
-
expect(@shard1.activate {Appendage.minimum(:value)}).to eq 1
|
112
|
-
|
113
|
-
expect(@user2.appendages.minimum(:value)).to eq 3
|
114
|
-
expect(@shard2.activate {Appendage.minimum(:value)}).to eq 3
|
115
|
-
|
116
|
-
expect(Appendage.where(:id => @appendages).minimum(:value)).to eq 1
|
117
|
-
end
|
118
|
-
|
119
|
-
it "should calculate maximum across shards" do
|
120
|
-
expect(@user1.appendages.maximum(:value)).to eq 2
|
121
|
-
expect(@shard1.activate {Appendage.maximum(:value)}).to eq 2
|
122
|
-
|
123
|
-
expect(@user2.appendages.maximum(:value)).to eq 5
|
124
|
-
expect(@shard2.activate {Appendage.maximum(:value)}).to eq 5
|
125
|
-
|
126
|
-
expect(Appendage.where(:id => @appendages).maximum(:value)).to eq 5
|
127
|
-
end
|
128
|
-
|
129
|
-
it "should work with dates across shards" do
|
130
|
-
expect(Appendage.where(:id => @appendages).maximum(:created_at).to_i).to eq @appendages.map(&:created_at).map(&:to_i).max
|
131
|
-
end
|
132
|
-
|
133
|
-
it "should calculate sum across shards" do
|
134
|
-
expect(@user1.appendages.sum(:value)).to eq 3
|
135
|
-
expect(@shard1.activate {Appendage.sum(:value)}).to eq 3
|
136
|
-
|
137
|
-
expect(@user2.appendages.sum(:value)).to eq 12
|
138
|
-
expect(@shard2.activate {Appendage.sum(:value)}).to eq 12
|
139
|
-
|
140
|
-
expect(Appendage.where(:id => @appendages).sum(:value)).to eq 15
|
141
|
-
end
|
142
|
-
end
|
143
|
-
|
144
|
-
describe "#execute_grouped_calculation" do
|
145
|
-
before do
|
146
|
-
@appendages = []
|
147
|
-
@shard1.activate { @user1 = User.create!(:name => "user1") }
|
148
|
-
@shard2.activate { @user2 = User.create!(:name => "user2") }
|
149
|
-
|
150
|
-
@shard1.activate do
|
151
|
-
@appendages << Appendage.create!(:user_id => @user1.id, :value => 1)
|
152
|
-
@appendages << Appendage.create!(:user_id => @user2.id, :value => 3)
|
153
|
-
end
|
154
|
-
@shard2.activate do
|
155
|
-
@appendages << Appendage.create!(:user_id => @user1.id, :value => 2)
|
156
|
-
@appendages << Appendage.create!(:user_id => @user2.id, :value => 4)
|
157
|
-
@appendages << Appendage.create!(:user_id => @user2.id, :value => 5)
|
158
|
-
end
|
159
|
-
end
|
160
|
-
|
161
|
-
it "should calculate average across shards" do
|
162
|
-
expect(Appendage.shard([@shard1, @shard2]).group("appendages.user_id").average(:value)).to eq(
|
163
|
-
{@user1.global_id => 1.5, @user2.global_id => 4}
|
164
|
-
)
|
165
|
-
|
166
|
-
@shard1.activate do
|
167
|
-
expect(Appendage.shard([@shard1, @shard2]).group("appendages.user_id").average(:value)).to eq(
|
168
|
-
{@user1.local_id => 1.5, @user2.global_id => 4}
|
169
|
-
)
|
170
|
-
end
|
171
|
-
|
172
|
-
@shard2.activate do
|
173
|
-
expect(Appendage.shard([@shard1, @shard2]).group("appendages.user_id").average(:value)).to eq(
|
174
|
-
{@user1.global_id => 1.5, @user2.local_id => 4}
|
175
|
-
)
|
176
|
-
end
|
177
|
-
|
178
|
-
expect(Appendage.shard([@shard1, @shard2]).group(:user).average(:value)).to eq(
|
179
|
-
{@user1 => 1.5, @user2 => 4}
|
180
|
-
)
|
181
|
-
end
|
182
|
-
|
183
|
-
it "should count across shards" do
|
184
|
-
expect(Appendage.shard([@shard1, @shard2]).group("appendages.user_id").count).to eq(
|
185
|
-
{@user1.global_id => 2, @user2.global_id => 3}
|
186
|
-
)
|
187
|
-
|
188
|
-
@shard1.activate do
|
189
|
-
expect(Appendage.shard([@shard1, @shard2]).group("appendages.user_id").count).to eq(
|
190
|
-
{@user1.local_id => 2, @user2.global_id => 3}
|
191
|
-
)
|
192
|
-
end
|
193
|
-
|
194
|
-
@shard2.activate do
|
195
|
-
expect(Appendage.shard([@shard1, @shard2]).group("appendages.user_id").count).to eq(
|
196
|
-
{@user1.global_id => 2, @user2.local_id => 3}
|
197
|
-
)
|
198
|
-
end
|
199
|
-
|
200
|
-
expect(Appendage.shard([@shard1, @shard2]).group(:user).count).to eq(
|
201
|
-
{@user1 => 2, @user2 => 3}
|
202
|
-
)
|
203
|
-
end
|
204
|
-
|
205
|
-
it "should calculate minimum across shards" do
|
206
|
-
expect(Appendage.shard([@shard1, @shard2]).group("appendages.user_id").minimum(:value)).to eq(
|
207
|
-
{@user1.global_id => 1, @user2.global_id => 3}
|
208
|
-
)
|
209
|
-
|
210
|
-
@shard1.activate do
|
211
|
-
expect(Appendage.shard([@shard1, @shard2]).group("appendages.user_id").minimum(:value)).to eq(
|
212
|
-
{@user1.local_id => 1, @user2.global_id => 3}
|
213
|
-
)
|
214
|
-
end
|
215
|
-
|
216
|
-
@shard2.activate do
|
217
|
-
expect(Appendage.shard([@shard1, @shard2]).group("appendages.user_id").minimum(:value)).to eq(
|
218
|
-
{@user1.global_id => 1, @user2.local_id => 3}
|
219
|
-
)
|
220
|
-
end
|
221
|
-
|
222
|
-
expect(Appendage.shard([@shard1, @shard2]).group(:user).minimum(:value)).to eq(
|
223
|
-
{@user1 => 1, @user2 => 3}
|
224
|
-
)
|
225
|
-
end
|
226
|
-
|
227
|
-
it "should calculate maximum across shards" do
|
228
|
-
expect(Appendage.shard([@shard1, @shard2]).group("appendages.user_id").maximum(:value)).to eq(
|
229
|
-
{@user1.global_id => 2, @user2.global_id => 5}
|
230
|
-
)
|
231
|
-
|
232
|
-
@shard1.activate do
|
233
|
-
expect(Appendage.shard([@shard1, @shard2]).group("appendages.user_id").maximum(:value)).to eq(
|
234
|
-
{@user1.local_id => 2, @user2.global_id => 5}
|
235
|
-
)
|
236
|
-
end
|
237
|
-
|
238
|
-
@shard2.activate do
|
239
|
-
expect(Appendage.shard([@shard1, @shard2]).group("appendages.user_id").maximum(:value)).to eq(
|
240
|
-
{@user1.global_id => 2, @user2.local_id => 5}
|
241
|
-
)
|
242
|
-
end
|
243
|
-
|
244
|
-
expect(Appendage.shard([@shard1, @shard2]).group(:user).maximum(:value)).to eq(
|
245
|
-
{@user1 => 2, @user2 => 5}
|
246
|
-
)
|
247
|
-
end
|
248
|
-
|
249
|
-
it "should calculate sum across shards" do
|
250
|
-
expect(Appendage.shard([@shard1, @shard2]).group("appendages.user_id").sum(:value)).to eq(
|
251
|
-
{@user1.global_id => 3, @user2.global_id => 12}
|
252
|
-
)
|
253
|
-
|
254
|
-
@shard1.activate do
|
255
|
-
expect(Appendage.shard([@shard1, @shard2]).group("appendages.user_id").sum(:value)).to eq(
|
256
|
-
{@user1.local_id => 3, @user2.global_id => 12}
|
257
|
-
)
|
258
|
-
end
|
259
|
-
|
260
|
-
@shard2.activate do
|
261
|
-
expect(Appendage.shard([@shard1, @shard2]).group("appendages.user_id").sum(:value)).to eq(
|
262
|
-
{@user1.global_id => 3, @user2.local_id => 12}
|
263
|
-
)
|
264
|
-
end
|
265
|
-
|
266
|
-
expect(Appendage.shard([@shard1, @shard2]).group(:user).sum(:value)).to eq(
|
267
|
-
{@user1 => 3, @user2 => 12}
|
268
|
-
)
|
269
|
-
end
|
270
|
-
|
271
|
-
it "should respect order for a single shard" do
|
272
|
-
@shard1.activate do
|
273
|
-
@user1.appendages.create!
|
274
|
-
user2 = User.create!
|
275
|
-
user2.appendages.create!
|
276
|
-
expect(Appendage.group(:user_id).order("COUNT(*) DESC").limit(1).count).to eq({ @user1.id => 2 })
|
277
|
-
end
|
278
|
-
end
|
279
|
-
end
|
280
|
-
end
|
281
|
-
end
|
282
|
-
end
|