switchman 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (251) hide show
  1. checksums.yaml +8 -8
  2. data/db/switchman_test.sqlite3 +0 -0
  3. data/lib/switchman/active_record/connection_pool.rb +3 -64
  4. data/lib/switchman/active_record/relation.rb +1 -1
  5. data/lib/switchman/connection_pool_proxy.rb +1 -0
  6. data/lib/switchman/engine.rb +7 -4
  7. data/lib/switchman/version.rb +1 -1
  8. data/spec/dummy/config/database.yml +10 -0
  9. data/spec/dummy/db/schema.rb +32 -29
  10. data/spec/dummy/db/switchman_test.sqlite3 +0 -0
  11. data/spec/dummy/log/development.log +23 -0
  12. data/spec/dummy/log/test.log +26208 -86491
  13. data/spec/dummy/tmp/cache/2E3/840/shard%2F3 +0 -0
  14. data/spec/dummy/tmp/cache/2E4/850/shard%2F4 +0 -0
  15. data/spec/dummy/tmp/cache/2E6/870/shard%2F6 +0 -0
  16. data/spec/dummy/tmp/cache/2E7/880/shard%2F7 +0 -0
  17. data/spec/dummy/tmp/cache/{346/D90/shard%2F105 → 313/970/shard%2F30} +1 -1
  18. data/spec/dummy/tmp/cache/314/990/shard%2F40 +0 -0
  19. data/spec/dummy/tmp/cache/{31C/A40/shard%2F75 → 315/970/shard%2F14} +1 -1
  20. data/spec/dummy/tmp/cache/315/9A0/shard%2F41 +0 -0
  21. data/spec/dummy/tmp/cache/315/9B0/shard%2F50 +0 -0
  22. data/spec/dummy/tmp/cache/317/9C0/shard%2F43 +0 -0
  23. data/spec/dummy/tmp/cache/318/9B0/shard%2F26 +0 -0
  24. data/spec/dummy/tmp/cache/318/9D0/shard%2F44 +0 -0
  25. data/spec/dummy/tmp/cache/319/9C0/shard%2F27 +0 -0
  26. data/spec/dummy/tmp/cache/31A/9F0/shard%2F46 +0 -0
  27. data/spec/dummy/tmp/cache/31C/A20/shard%2F57 +0 -0
  28. data/spec/dummy/tmp/cache/31D/A20/shard%2F49 +0 -0
  29. data/spec/dummy/tmp/cache/349/E10/shard%2F153 +0 -0
  30. data/spec/dummy/tmp/cache/34A/E20/shard%2F154 +0 -0
  31. data/spec/dummy/tmp/cache/{345/DC0/shard%2F140 → 34A/E50/shard%2F181} +1 -1
  32. data/spec/dummy/tmp/cache/{318/A00/shard%2F71 → 34E/E70/shard%2F167} +1 -1
  33. data/spec/dummy/tmp/cache/376/510/shard%2F2202 +1 -0
  34. data/spec/dummy/tmp/cache/376/520/shard%2F2211 +1 -0
  35. data/spec/dummy/tmp/cache/376/530/shard%2F2220 +1 -0
  36. data/spec/dummy/tmp/cache/377/4F0/shard%2F2014 +0 -0
  37. data/spec/dummy/tmp/cache/377/520/shard%2F2203 +1 -0
  38. data/spec/dummy/tmp/cache/377/530/shard%2F2212 +1 -0
  39. data/spec/dummy/tmp/cache/377/550/shard%2F2230 +1 -0
  40. data/spec/dummy/tmp/cache/377/550/shard%2F3040 +1 -0
  41. data/spec/dummy/tmp/cache/378/500/shard%2F2015 +0 -0
  42. data/spec/dummy/tmp/cache/378/520/shard%2F3005 +1 -0
  43. data/spec/dummy/tmp/cache/378/550/shard%2F2222 +1 -0
  44. data/spec/dummy/tmp/cache/378/560/shard%2F3122 +1 -0
  45. data/spec/dummy/tmp/cache/378/5A0/shard%2F2510 +1 -0
  46. data/spec/dummy/tmp/cache/378/5B0/shard%2F2600 +2 -0
  47. data/spec/dummy/tmp/cache/379/530/shard%2F3006 +1 -0
  48. data/spec/dummy/tmp/cache/379/540/shard%2F2205 +1 -0
  49. data/spec/dummy/tmp/cache/379/550/shard%2F2214 +1 -0
  50. data/spec/dummy/tmp/cache/379/560/shard%2F2223 +1 -0
  51. data/spec/dummy/tmp/cache/379/560/shard%2F3033 +1 -0
  52. data/spec/dummy/tmp/cache/379/560/shard%2F3114 +1 -0
  53. data/spec/dummy/tmp/cache/379/570/shard%2F3042 +1 -0
  54. data/spec/dummy/tmp/cache/379/580/shard%2F3051 +1 -0
  55. data/spec/dummy/tmp/cache/379/590/shard%2F3060 +1 -0
  56. data/spec/dummy/tmp/cache/379/5C0/shard%2F2601 +2 -0
  57. data/spec/dummy/tmp/cache/379/5D0/shard%2F2610 +2 -0
  58. data/spec/dummy/tmp/cache/37A/540/shard%2F3007 +1 -0
  59. data/spec/dummy/tmp/cache/37A/570/shard%2F2224 +1 -0
  60. data/spec/dummy/tmp/cache/37A/570/shard%2F3034 +1 -0
  61. data/spec/dummy/tmp/cache/37A/580/shard%2F3043 +1 -0
  62. data/spec/dummy/tmp/cache/37A/590/shard%2F3052 +1 -0
  63. data/spec/dummy/tmp/cache/37A/5A0/shard%2F3061 +1 -0
  64. data/spec/dummy/tmp/cache/37A/5B0/shard%2F3070 +1 -0
  65. data/spec/dummy/tmp/cache/37A/5E0/shard%2F2530 +0 -0
  66. data/spec/dummy/tmp/cache/37A/5F0/shard%2F2701 +0 -0
  67. data/spec/dummy/tmp/cache/37B/540/shard%2F2027 +1 -0
  68. data/spec/dummy/tmp/cache/37B/570/shard%2F3026 +1 -0
  69. data/spec/dummy/tmp/cache/37B/5C0/shard%2F2261 +1 -0
  70. data/spec/dummy/tmp/cache/37B/5C0/shard%2F2504 +1 -0
  71. data/spec/dummy/tmp/cache/37B/5C0/shard%2F3152 +1 -0
  72. data/spec/dummy/tmp/cache/37B/5D0/shard%2F2513 +1 -0
  73. data/spec/dummy/tmp/cache/37B/5E0/shard%2F2603 +2 -0
  74. data/spec/dummy/tmp/cache/37B/5F0/shard%2F2531 +0 -0
  75. data/spec/dummy/tmp/cache/37B/5F0/shard%2F2612 +2 -0
  76. data/spec/dummy/tmp/cache/37B/610/shard%2F2630 +2 -0
  77. data/spec/dummy/tmp/cache/37B/630/shard%2F2810 +2 -0
  78. data/spec/dummy/tmp/cache/37C/580/shard%2F2217 +1 -0
  79. data/spec/dummy/tmp/cache/37C/580/shard%2F3108 +1 -0
  80. data/spec/dummy/tmp/cache/37C/590/shard%2F3036 +1 -0
  81. data/spec/dummy/tmp/cache/37C/5A0/shard%2F3045 +1 -0
  82. data/spec/dummy/tmp/cache/37C/5B0/shard%2F3054 +1 -0
  83. data/spec/dummy/tmp/cache/37C/5C0/shard%2F3063 +1 -0
  84. data/spec/dummy/tmp/cache/37C/5D0/shard%2F2262 +1 -0
  85. data/spec/dummy/tmp/cache/37C/5D0/shard%2F3072 +0 -0
  86. data/spec/dummy/tmp/cache/37C/5E0/shard%2F2190 +1 -0
  87. data/spec/dummy/tmp/cache/37C/5F0/shard%2F2604 +2 -0
  88. data/spec/dummy/tmp/cache/37C/600/shard%2F2370 +1 -0
  89. data/spec/dummy/tmp/cache/37C/600/shard%2F2613 +2 -0
  90. data/spec/dummy/tmp/cache/37C/620/shard%2F2631 +2 -0
  91. data/spec/dummy/tmp/cache/37D/5A0/shard%2F3037 +1 -0
  92. data/spec/dummy/tmp/cache/37D/5B0/shard%2F3046 +1 -0
  93. data/spec/dummy/tmp/cache/37D/5C0/shard%2F3055 +1 -0
  94. data/spec/dummy/tmp/cache/37D/5D0/shard%2F2254 +1 -0
  95. data/spec/dummy/tmp/cache/37D/5D0/shard%2F3064 +1 -0
  96. data/spec/dummy/tmp/cache/37D/5E0/shard%2F3073 +1 -0
  97. data/spec/dummy/tmp/cache/37D/5F0/shard%2F2191 +1 -0
  98. data/spec/dummy/tmp/cache/37D/600/shard%2F2524 +1 -0
  99. data/spec/dummy/tmp/cache/37D/610/shard%2F2371 +1 -0
  100. data/spec/dummy/tmp/cache/37D/620/shard%2F2380 +1 -0
  101. data/spec/dummy/tmp/cache/37D/620/shard%2F2461 +1 -0
  102. data/spec/dummy/tmp/cache/37D/630/shard%2F2470 +1 -0
  103. data/spec/dummy/tmp/cache/37D/650/shard%2F2650 +0 -0
  104. data/spec/dummy/tmp/cache/37E/5B0/shard%2F2228 +1 -0
  105. data/spec/dummy/tmp/cache/37E/5D0/shard%2F3137 +1 -0
  106. data/spec/dummy/tmp/cache/37E/5F0/shard%2F2264 +1 -0
  107. data/spec/dummy/tmp/cache/37E/610/shard%2F2525 +1 -0
  108. data/spec/dummy/tmp/cache/37E/610/shard%2F2606 +2 -0
  109. data/spec/dummy/tmp/cache/37E/620/shard%2F2615 +2 -0
  110. data/spec/dummy/tmp/cache/37E/630/shard%2F2624 +2 -0
  111. data/spec/dummy/tmp/cache/37E/630/shard%2F2705 +1 -0
  112. data/spec/dummy/tmp/cache/37E/640/shard%2F2633 +0 -0
  113. data/spec/dummy/tmp/cache/37E/650/shard%2F2723 +1 -0
  114. data/spec/dummy/tmp/cache/37F/5C0/shard%2F2229 +1 -0
  115. data/spec/dummy/tmp/cache/37F/5C0/shard%2F3039 +1 -0
  116. data/spec/dummy/tmp/cache/37F/5E0/shard%2F3057 +1 -0
  117. data/spec/dummy/tmp/cache/37F/5F0/shard%2F3066 +1 -0
  118. data/spec/dummy/tmp/cache/37F/600/shard%2F3075 +1 -0
  119. data/spec/dummy/tmp/cache/37F/610/shard%2F2193 +1 -0
  120. data/spec/dummy/tmp/cache/37F/620/shard%2F2607 +2 -0
  121. data/spec/dummy/tmp/cache/37F/620/shard%2F3093 +1 -0
  122. data/spec/dummy/tmp/cache/37F/630/shard%2F2373 +1 -0
  123. data/spec/dummy/tmp/cache/37F/630/shard%2F2535 +0 -0
  124. data/spec/dummy/tmp/cache/37F/630/shard%2F2616 +2 -0
  125. data/spec/dummy/tmp/cache/37F/640/shard%2F2382 +1 -0
  126. data/spec/dummy/tmp/cache/37F/640/shard%2F2625 +2 -0
  127. data/spec/dummy/tmp/cache/37F/650/shard%2F2634 +0 -0
  128. data/spec/dummy/tmp/cache/380/5F0/shard%2F3058 +1 -0
  129. data/spec/dummy/tmp/cache/380/600/shard%2F3067 +1 -0
  130. data/spec/dummy/tmp/cache/380/600/shard%2F3148 +0 -0
  131. data/spec/dummy/tmp/cache/380/610/shard%2F2509 +1 -0
  132. data/spec/dummy/tmp/cache/380/610/shard%2F3076 +1 -0
  133. data/spec/dummy/tmp/cache/380/630/shard%2F2527 +1 -0
  134. data/spec/dummy/tmp/cache/380/640/shard%2F2374 +1 -0
  135. data/spec/dummy/tmp/cache/380/640/shard%2F2536 +0 -0
  136. data/spec/dummy/tmp/cache/380/660/shard%2F2473 +1 -0
  137. data/spec/dummy/tmp/cache/380/670/shard%2F2482 +1 -0
  138. data/spec/dummy/tmp/cache/380/670/shard%2F2806 +2 -0
  139. data/spec/dummy/tmp/cache/{2E9/8A0/shard%2F9 → 380/680/shard%2F2653} +1 -1
  140. data/spec/dummy/tmp/cache/380/6A0/shard%2F2671 +1 -0
  141. data/spec/dummy/tmp/cache/380/6A0/shard%2F2752 +2 -0
  142. data/spec/dummy/tmp/cache/380/6B0/shard%2F2761 +2 -0
  143. data/spec/dummy/tmp/cache/381/600/shard%2F2249 +1 -0
  144. data/spec/dummy/tmp/cache/381/610/shard%2F3149 +0 -0
  145. data/spec/dummy/tmp/cache/381/640/shard%2F2609 +2 -0
  146. data/spec/dummy/tmp/cache/381/640/shard%2F3095 +0 -0
  147. data/spec/dummy/tmp/cache/381/660/shard%2F2627 +2 -0
  148. data/spec/dummy/tmp/cache/381/670/shard%2F2636 +1 -0
  149. data/spec/dummy/tmp/cache/381/680/shard%2F2807 +2 -0
  150. data/spec/dummy/tmp/cache/381/690/shard%2F2573 +1 -0
  151. data/spec/dummy/tmp/cache/381/6B0/shard%2F2591 +2 -0
  152. data/spec/dummy/tmp/cache/381/6B0/shard%2F2753 +2 -0
  153. data/spec/dummy/tmp/cache/381/6F0/shard%2F2870 +1 -0
  154. data/spec/dummy/tmp/cache/382/620/shard%2F3069 +1 -0
  155. data/spec/dummy/tmp/cache/382/640/shard%2F2196 +1 -0
  156. data/spec/dummy/tmp/cache/382/650/shard%2F3096 +0 -0
  157. data/spec/dummy/tmp/cache/382/660/shard%2F2376 +1 -0
  158. data/spec/dummy/tmp/cache/382/670/shard%2F2628 +2 -0
  159. data/spec/dummy/tmp/cache/382/6A0/shard%2F2493 +1 -0
  160. data/spec/dummy/tmp/cache/382/6C0/shard%2F2592 +2 -0
  161. data/spec/dummy/tmp/cache/382/6C0/shard%2F2835 +1 -0
  162. data/spec/dummy/tmp/cache/383/650/shard%2F2197 +1 -0
  163. data/spec/dummy/tmp/cache/383/670/shard%2F2377 +1 -0
  164. data/spec/dummy/tmp/cache/383/670/shard%2F2458 +1 -0
  165. data/spec/dummy/tmp/cache/383/680/shard%2F2548 +1 -0
  166. data/spec/dummy/tmp/cache/383/690/shard%2F2476 +1 -0
  167. data/spec/dummy/tmp/cache/383/6A0/shard%2F2809 +2 -0
  168. data/spec/dummy/tmp/cache/383/6C0/shard%2F2746 +1 -0
  169. data/spec/dummy/tmp/cache/383/6D0/shard%2F2755 +2 -0
  170. data/spec/dummy/tmp/cache/383/6E0/shard%2F2764 +2 -0
  171. data/spec/dummy/tmp/cache/383/700/shard%2F2782 +2 -0
  172. data/spec/dummy/tmp/cache/383/700/shard%2F2863 +1 -0
  173. data/spec/dummy/tmp/cache/384/6A0/shard%2F2477 +1 -0
  174. data/spec/dummy/tmp/cache/384/6E0/shard%2F2594 +2 -0
  175. data/spec/dummy/tmp/cache/384/6E0/shard%2F2756 +2 -0
  176. data/spec/dummy/tmp/cache/384/6F0/shard%2F2684 +0 -0
  177. data/spec/dummy/tmp/cache/384/6F0/shard%2F2765 +2 -0
  178. data/spec/dummy/tmp/cache/384/710/shard%2F2864 +1 -0
  179. data/spec/dummy/tmp/cache/384/720/shard%2F2873 +1 -0
  180. data/spec/dummy/tmp/cache/385/670/shard%2F2199 +1 -0
  181. data/spec/dummy/tmp/cache/385/690/shard%2F2379 +1 -0
  182. data/spec/dummy/tmp/cache/385/6F0/shard%2F2595 +2 -0
  183. data/spec/dummy/tmp/cache/385/710/shard%2F2694 +1 -0
  184. data/spec/dummy/tmp/cache/386/6C0/shard%2F2479 +1 -0
  185. data/spec/dummy/tmp/cache/386/700/shard%2F2758 +2 -0
  186. data/spec/dummy/tmp/cache/386/720/shard%2F2776 +2 -0
  187. data/spec/dummy/tmp/cache/386/730/shard%2F2866 +1 -0
  188. data/spec/dummy/tmp/cache/387/710/shard%2F2597 +2 -0
  189. data/spec/dummy/tmp/cache/388/720/shard%2F2598 +2 -0
  190. data/spec/dummy/tmp/cache/389/750/shard%2F2779 +2 -0
  191. data/spec/dummy/tmp/cache/389/760/shard%2F2869 +1 -0
  192. data/spec/dummy/tmp/cache/3A2/E80/shard%2F10010 +1 -0
  193. data/spec/dummy/tmp/cache/3A8/F70/shard%2F12203 +1 -0
  194. data/spec/dummy/tmp/cache/3A8/F80/shard%2F12212 +1 -0
  195. data/spec/dummy/tmp/cache/3A9/F50/shard%2F12015 +1 -0
  196. data/spec/dummy/tmp/cache/3A9/FC0/shard%2F12240 +1 -0
  197. data/spec/dummy/tmp/cache/3A9/FF0/shard%2F12510 +1 -0
  198. data/spec/dummy/tmp/cache/3AA/F10/shard%2F10027 +1 -0
  199. data/spec/dummy/tmp/cache/3AA/F80/shard%2F13006 +1 -0
  200. data/spec/dummy/tmp/cache/3AA/FB0/shard%2F12223 +1 -0
  201. data/spec/dummy/tmp/cache/3AA/FD0/shard%2F13132 +1 -0
  202. data/spec/dummy/tmp/cache/3AB/F70/shard%2F10073 +1 -0
  203. data/spec/dummy/tmp/cache/3AB/F70/shard%2F10154 +1 -0
  204. data/spec/dummy/tmp/cache/3AB/FC0/shard%2F13115 +1 -0
  205. data/spec/dummy/tmp/cache/3AC/050/shard%2F12702 +1 -0
  206. data/spec/dummy/tmp/cache/3AC/FB0/shard%2F13017 +1 -0
  207. data/spec/dummy/tmp/cache/3AD/010/shard%2F12253 +1 -0
  208. data/spec/dummy/tmp/cache/3AD/020/shard%2F12262 +1 -0
  209. data/spec/dummy/tmp/cache/3AE/040/shard%2F12191 +1 -0
  210. data/spec/dummy/tmp/cache/3AF/060/shard%2F12525 +1 -0
  211. data/spec/dummy/tmp/cache/3AF/0B0/shard%2F12651 +1 -0
  212. data/spec/dummy/tmp/cache/3B0/010/shard%2F12229 +1 -0
  213. data/spec/dummy/tmp/cache/3B0/0A0/shard%2F12634 +1 -0
  214. data/spec/dummy/tmp/cache/3B1/090/shard%2F12536 +1 -0
  215. data/spec/dummy/tmp/cache/3B1/0C0/shard%2F12563 +1 -0
  216. data/spec/dummy/tmp/cache/3B1/0D0/shard%2F12491 +1 -0
  217. data/spec/dummy/tmp/cache/3B1/0F0/shard%2F12833 +1 -0
  218. data/spec/dummy/tmp/cache/3B2/000/shard%2F10179 +1 -0
  219. data/spec/dummy/tmp/cache/3B2/060/shard%2F13149 +1 -0
  220. data/spec/dummy/tmp/cache/3B2/140/shard%2F12870 +1 -0
  221. data/spec/dummy/tmp/cache/3B3/0A0/shard%2F13096 +1 -0
  222. data/spec/dummy/tmp/cache/3B3/0F0/shard%2F12736 +1 -0
  223. data/spec/dummy/tmp/cache/3B4/090/shard%2F13079 +1 -0
  224. data/spec/dummy/tmp/cache/3B4/0A0/shard%2F12197 +1 -0
  225. data/spec/dummy/tmp/cache/3B4/0E0/shard%2F12719 +1 -0
  226. data/spec/dummy/tmp/cache/3B5/160/shard%2F12864 +1 -0
  227. data/spec/dummy/tmp/cache/3B6/150/shard%2F12685 +1 -0
  228. data/spec/dummy/tmp/cache/3B7/140/shard%2F12668 +1 -0
  229. data/spec/dummy/tmp/cache/3B9/150/shard%2F12499 +1 -0
  230. data/spec/lib/active_record/query_cache_spec.rb +50 -30
  231. data/spec/lib/database_server_spec.rb +6 -2
  232. metadata +453 -50
  233. data/spec/dummy/tmp/cache/317/9E0/shard%2F61 +0 -0
  234. data/spec/dummy/tmp/cache/318/9F0/shard%2F62 +0 -0
  235. data/spec/dummy/tmp/cache/31A/A10/shard%2F64 +0 -0
  236. data/spec/dummy/tmp/cache/31A/A20/shard%2F73 +0 -0
  237. data/spec/dummy/tmp/cache/31B/A20/shard%2F65 +0 -0
  238. data/spec/dummy/tmp/cache/31B/A30/shard%2F74 +0 -0
  239. data/spec/dummy/tmp/cache/31D/A30/shard%2F58 +0 -0
  240. data/spec/dummy/tmp/cache/31D/A40/shard%2F67 +0 -0
  241. data/spec/dummy/tmp/cache/31E/A40/shard%2F59 +0 -0
  242. data/spec/dummy/tmp/cache/31E/A50/shard%2F68 +0 -0
  243. data/spec/dummy/tmp/cache/320/A80/shard%2F79 +0 -0
  244. data/spec/dummy/tmp/cache/344/D70/shard%2F103 +0 -0
  245. data/spec/dummy/tmp/cache/345/D80/shard%2F104 +0 -0
  246. data/spec/dummy/tmp/cache/349/DE0/shard%2F126 +0 -0
  247. data/spec/dummy/tmp/cache/34A/DF0/shard%2F127 +0 -0
  248. data/spec/dummy/tmp/cache/34B/E00/shard%2F128 +0 -1
  249. data/spec/dummy/tmp/cache/34B/E10/shard%2F137 +0 -0
  250. data/spec/dummy/tmp/cache/34C/E20/shard%2F138 +0 -0
  251. data/spec/dummy/tmp/cache/34C/E80/shard%2F192 +0 -0
@@ -1 +0,0 @@
1
- o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1391712778.8043149: @value" :nil