locomotivecms-search 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (443) hide show
  1. checksums.yaml +15 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +17 -0
  4. data/Rakefile +38 -0
  5. data/app/cells/locomotive/partials/searchable.html.haml +1 -0
  6. data/app/models/locomotive/content_entry.rb +16 -0
  7. data/app/models/locomotive/page.rb +7 -0
  8. data/config/routes.rb +2 -0
  9. data/lib/locomotive/search.rb +1 -0
  10. data/lib/locomotive/search/concerns.rb +2 -0
  11. data/lib/locomotive/search/concerns/activesearch/mongoid/model.rb +7 -0
  12. data/lib/locomotive/search/concerns/custom_fields/field.rb +10 -0
  13. data/lib/locomotive/search/concerns/locomotive/liquid/drops/site.rb +5 -0
  14. data/lib/locomotive/search/engine.rb +17 -0
  15. data/lib/locomotive/search/version.rb +5 -0
  16. data/spec/dummy/README.rdoc +261 -0
  17. data/spec/dummy/Rakefile +7 -0
  18. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  19. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  20. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  21. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  22. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  23. data/spec/dummy/config.ru +4 -0
  24. data/spec/dummy/config/application.rb +65 -0
  25. data/spec/dummy/config/boot.rb +10 -0
  26. data/spec/dummy/config/environment.rb +5 -0
  27. data/spec/dummy/config/environments/development.rb +31 -0
  28. data/spec/dummy/config/environments/production.rb +64 -0
  29. data/spec/dummy/config/environments/test.rb +35 -0
  30. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  31. data/spec/dummy/config/initializers/carrierwave.rb +28 -0
  32. data/spec/dummy/config/initializers/dragonfly.rb +21 -0
  33. data/spec/dummy/config/initializers/inflections.rb +15 -0
  34. data/spec/dummy/config/initializers/locomotive.rb +69 -0
  35. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  36. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  37. data/spec/dummy/config/initializers/session_store.rb +8 -0
  38. data/spec/dummy/config/initializers/wrap_parameters.rb +10 -0
  39. data/spec/dummy/config/locales/en.yml +5 -0
  40. data/spec/dummy/config/mongoid.yml +20 -0
  41. data/spec/dummy/config/routes.rb +7 -0
  42. data/spec/dummy/log/development.log +74980 -0
  43. data/spec/dummy/log/test.log +617 -0
  44. data/spec/dummy/mongodb/migrate/20130401125345_make_editable_elements_consistent.locomotive.rb +108 -0
  45. data/spec/dummy/mongodb/migrate/20130401125346_rename_entry_to_content_entry.locomotive.rb +108 -0
  46. data/spec/dummy/public/404.html +26 -0
  47. data/spec/dummy/public/422.html +26 -0
  48. data/spec/dummy/public/500.html +25 -0
  49. data/spec/dummy/public/favicon.ico +0 -0
  50. data/spec/dummy/script/rails +6 -0
  51. data/spec/dummy/tmp/cache/assets/BE8/CA0/sprockets%2Ff82815021e571240b1410096798e155d +0 -0
  52. data/spec/dummy/tmp/cache/assets/C1F/620/sprockets%2F2670136801c82c30885f3d9475c3343c +0 -0
  53. data/spec/dummy/tmp/cache/assets/C27/7C0/sprockets%2Fc8e248565933453c429709b2873d00a5 +0 -0
  54. data/spec/dummy/tmp/cache/assets/C2A/DE0/sprockets%2Fc2505574838a056744262cf62b5838f6 +0 -0
  55. data/spec/dummy/tmp/cache/assets/C2C/C00/sprockets%2F4700737666fd38304f268354a70369df +0 -0
  56. data/spec/dummy/tmp/cache/assets/C30/B80/sprockets%2F2e8a150cd56921ead035104571205104 +0 -0
  57. data/spec/dummy/tmp/cache/assets/C37/240/sprockets%2F1878c3f8954175b49d8ba28266336617 +0 -0
  58. data/spec/dummy/tmp/cache/assets/C42/030/sprockets%2F4253426afa2249799c0030e48a2d8301 +0 -0
  59. data/spec/dummy/tmp/cache/assets/C57/BD0/sprockets%2F145fd38677ac2455428232a5545673fe +0 -0
  60. data/spec/dummy/tmp/cache/assets/C5B/470/sprockets%2F856a35b6f970d03732504d830f948f09 +0 -0
  61. data/spec/dummy/tmp/cache/assets/C61/DD0/sprockets%2F97c690d6f109b10b52b97032885695d9 +0 -0
  62. data/spec/dummy/tmp/cache/assets/C69/BE0/sprockets%2F3f87b6f738933b9b369252811d159c86 +0 -0
  63. data/spec/dummy/tmp/cache/assets/C69/CC0/sprockets%2Ffbc7e1a0444191432265612e302ff620 +0 -0
  64. data/spec/dummy/tmp/cache/assets/C6C/9E0/sprockets%2F887cb58288912327d26f9c180d68e537 +0 -0
  65. data/spec/dummy/tmp/cache/assets/C70/1A0/sprockets%2Fc014e80f0d44562027103ee6841b72c8 +0 -0
  66. data/spec/dummy/tmp/cache/assets/C74/670/sprockets%2Fd1060399c82585b6a5b8131050a9f50b +0 -0
  67. data/spec/dummy/tmp/cache/assets/C76/A80/sprockets%2F1477eda55a0695851b3b4803ca572800 +0 -0
  68. data/spec/dummy/tmp/cache/assets/C76/B10/sprockets%2F77e205c405783e22da5724cb3b902463 +0 -0
  69. data/spec/dummy/tmp/cache/assets/C7B/520/sprockets%2Fb48053fff81e805401e3699a80060e21 +0 -0
  70. data/spec/dummy/tmp/cache/assets/C7E/450/sprockets%2Ff4500c34d03a0e78759d6215348c1e86 +0 -0
  71. data/spec/dummy/tmp/cache/assets/C7E/570/sprockets%2F06323ee07d68ac38530586dc10381e59 +0 -0
  72. data/spec/dummy/tmp/cache/assets/C7F/4B0/sprockets%2F7c2d3a8f8a171658740d17f02f183236 +0 -0
  73. data/spec/dummy/tmp/cache/assets/C7F/650/sprockets%2Ff5d52a342d3cf3066f55605109d99612 +0 -0
  74. data/spec/dummy/tmp/cache/assets/C84/140/sprockets%2Fd503d39629684e58284b052f16e71ae0 +0 -0
  75. data/spec/dummy/tmp/cache/assets/C84/300/sprockets%2F873372b89ea9d9216a531c5b2a642177 +0 -0
  76. data/spec/dummy/tmp/cache/assets/C85/940/sprockets%2Ff1001a37540981a8a93c8437a9867ed4 +0 -0
  77. data/spec/dummy/tmp/cache/assets/C85/B40/sprockets%2Fe52f9918eb325b3720080e4d286856e0 +0 -0
  78. data/spec/dummy/tmp/cache/assets/C87/C00/sprockets%2F35745995c15405d735452ed57a76a4ac +0 -0
  79. data/spec/dummy/tmp/cache/assets/C89/E60/sprockets%2Fb4745c22e74a403fbd316789f0639954 +0 -0
  80. data/spec/dummy/tmp/cache/assets/C91/E70/sprockets%2F968764c8381a0a5d81757ea5411984cf +0 -0
  81. data/spec/dummy/tmp/cache/assets/C92/A20/sprockets%2F72438b81e6f747f644433cc6527c694b +0 -0
  82. data/spec/dummy/tmp/cache/assets/C95/EB0/sprockets%2F210f2e73039a028204048a1b476ebbe3 +0 -0
  83. data/spec/dummy/tmp/cache/assets/C9B/550/sprockets%2F2f86cb57432d2973889e9553c99a40b6 +0 -0
  84. data/spec/dummy/tmp/cache/assets/CA2/7B0/sprockets%2F51993000cc4e7c6e08e1a09213f06f61 +0 -0
  85. data/spec/dummy/tmp/cache/assets/CA7/FA0/sprockets%2F626cff63582b07f5093d2f0c6221550b +0 -0
  86. data/spec/dummy/tmp/cache/assets/CA8/EC0/sprockets%2F55d58395724dd645f02c123ed021e4b4 +0 -0
  87. data/spec/dummy/tmp/cache/assets/CAA/290/sprockets%2F63d0079a1bb0f62e1c6943916c31359f +0 -0
  88. data/spec/dummy/tmp/cache/assets/CAB/370/sprockets%2Fa35363ad596ced43577a124ab2474249 +0 -0
  89. data/spec/dummy/tmp/cache/assets/CAB/6E0/sprockets%2F1ae01db036a9259653842da22665fd95 +0 -0
  90. data/spec/dummy/tmp/cache/assets/CAC/590/sprockets%2F74ec5db3a34671d22d81c915f6253336 +0 -0
  91. data/spec/dummy/tmp/cache/assets/CAD/050/sprockets%2F5184d69da70f037a32256d35a1781d7d +0 -0
  92. data/spec/dummy/tmp/cache/assets/CAE/C60/sprockets%2Fc2743c9d3876ccf2202ab831681763e2 +0 -0
  93. data/spec/dummy/tmp/cache/assets/CAF/030/sprockets%2F47f4106e48497f302acb3d3047829f1b +0 -0
  94. data/spec/dummy/tmp/cache/assets/CB0/A40/sprockets%2F9b57ac5002927320b8e2d5c8d93528c4 +0 -0
  95. data/spec/dummy/tmp/cache/assets/CB0/D40/sprockets%2F544dc8639486c151519f3bceb01a5339 +0 -0
  96. data/spec/dummy/tmp/cache/assets/CB1/020/sprockets%2F5a6823f9657d082ea08da55b447a0851 +0 -0
  97. data/spec/dummy/tmp/cache/assets/CB2/460/sprockets%2Fb096c0856d17b383e472d15f742dd552 +0 -0
  98. data/spec/dummy/tmp/cache/assets/CB3/4A0/sprockets%2F300b3d3db8691651da79960c89a771b4 +0 -0
  99. data/spec/dummy/tmp/cache/assets/CB6/330/sprockets%2F38ab5892c097c60a84d80916607daf34 +0 -0
  100. data/spec/dummy/tmp/cache/assets/CB7/490/sprockets%2F371419ce4c0827d92538634bcf5a089d +0 -0
  101. data/spec/dummy/tmp/cache/assets/CB7/5B0/sprockets%2Faa5a956f374d1498835a8851c25ca417 +0 -0
  102. data/spec/dummy/tmp/cache/assets/CB7/CD0/sprockets%2F013f728731243fccd8664c46c8a58b75 +0 -0
  103. data/spec/dummy/tmp/cache/assets/CBB/AB0/sprockets%2F20a384678b664ec2a626fb38890f616f +0 -0
  104. data/spec/dummy/tmp/cache/assets/CBC/570/sprockets%2F909909a5cdf1c28707f5537d19cc0582 +0 -0
  105. data/spec/dummy/tmp/cache/assets/CC0/520/sprockets%2F5c9e91792193bba45873453f007edd87 +0 -0
  106. data/spec/dummy/tmp/cache/assets/CC1/1C0/sprockets%2F5dfc234f8b18e56c339a78b247667760 +0 -0
  107. data/spec/dummy/tmp/cache/assets/CC3/8A0/sprockets%2F47120a18b010806ca435b5a4cc9d613e +0 -0
  108. data/spec/dummy/tmp/cache/assets/CC4/010/sprockets%2F2fca8e428804b456b83b33f5f3299788 +0 -0
  109. data/spec/dummy/tmp/cache/assets/CC5/4D0/sprockets%2Fda0ae1758798a0979152b789dda65197 +0 -0
  110. data/spec/dummy/tmp/cache/assets/CC6/5C0/sprockets%2F05035383916c94132d9fe7ffd88e39a8 +0 -0
  111. data/spec/dummy/tmp/cache/assets/CC6/910/sprockets%2F96ba02df3209efd74d5e0631a4100006 +0 -0
  112. data/spec/dummy/tmp/cache/assets/CC6/9D0/sprockets%2F7200a470933b5febd6b041f0941c242b +0 -0
  113. data/spec/dummy/tmp/cache/assets/CC7/170/sprockets%2F2881a4ae392fed67b7a8b020201130a5 +0 -0
  114. data/spec/dummy/tmp/cache/assets/CC9/9B0/sprockets%2Faa2a90515148e1ec960a177a01b168e2 +0 -0
  115. data/spec/dummy/tmp/cache/assets/CCA/080/sprockets%2Fd87412df239db9396417c77968dac942 +0 -0
  116. data/spec/dummy/tmp/cache/assets/CCA/EC0/sprockets%2F41a4e6f201bf46754bc8532011f343bc +0 -0
  117. data/spec/dummy/tmp/cache/assets/CCF/610/sprockets%2Fc21de247ac59a60b098534252f2b2a54 +0 -0
  118. data/spec/dummy/tmp/cache/assets/CD2/EB0/sprockets%2Fc418ba25711ae7522a3b96843255caf3 +0 -0
  119. data/spec/dummy/tmp/cache/assets/CD4/520/sprockets%2Fcea4bd9e168417362ca8208b325b4216 +0 -0
  120. data/spec/dummy/tmp/cache/assets/CD6/E10/sprockets%2F96fd31b4f5d353c02fa50c82932081e3 +0 -0
  121. data/spec/dummy/tmp/cache/assets/CD6/EA0/sprockets%2F7de98417f847bd5b420e61a0a80513a1 +0 -0
  122. data/spec/dummy/tmp/cache/assets/CD8/390/sprockets%2Ff0165f1215a176865ceaa9014bf1876c +0 -0
  123. data/spec/dummy/tmp/cache/assets/CD9/640/sprockets%2F7dcb8ba45f5346655baa664613d61323 +0 -0
  124. data/spec/dummy/tmp/cache/assets/CDB/250/sprockets%2F190c0f118916e6bd2aa76744d7663f0a +0 -0
  125. data/spec/dummy/tmp/cache/assets/CDB/DF0/sprockets%2F98675cb34342d1c0f3b4f1e3511da876 +0 -0
  126. data/spec/dummy/tmp/cache/assets/CDD/3C0/sprockets%2F5b0133234e749e5cdd480f98d4a0941b +0 -0
  127. data/spec/dummy/tmp/cache/assets/CDE/F20/sprockets%2F1a3b4b8ba28e08a29d5983669041c38b +0 -0
  128. data/spec/dummy/tmp/cache/assets/CE0/380/sprockets%2F8e25d1b442ff65447d3315b27a954ac7 +0 -0
  129. data/spec/dummy/tmp/cache/assets/CE0/3C0/sprockets%2F7360ad41628847cef2fb1aa27e729246 +0 -0
  130. data/spec/dummy/tmp/cache/assets/CE0/E40/sprockets%2F30fe551f774b2f9d5332e9ca6223722e +0 -0
  131. data/spec/dummy/tmp/cache/assets/CE1/3A0/sprockets%2Ffb5891607347ccfd3b161126a5f83c65 +0 -0
  132. data/spec/dummy/tmp/cache/assets/CE2/D60/sprockets%2F676ec1a8b633f74a59134238d11f5d4e +0 -0
  133. data/spec/dummy/tmp/cache/assets/CE3/AD0/sprockets%2Fd27d667e558b08c7621a342c4d12c96e +0 -0
  134. data/spec/dummy/tmp/cache/assets/CE3/C80/sprockets%2F3e51641143eec88c29d8aea9703e7612 +0 -0
  135. data/spec/dummy/tmp/cache/assets/CE4/B40/sprockets%2Fa1de9ee787846f185432c2132315dda8 +0 -0
  136. data/spec/dummy/tmp/cache/assets/CE5/450/sprockets%2F6064e4a372f3ee3763cf9466f23263bc +0 -0
  137. data/spec/dummy/tmp/cache/assets/CE5/5B0/sprockets%2F96bb5a03c3075ee790a78cb791f12486 +0 -0
  138. data/spec/dummy/tmp/cache/assets/CE5/F30/sprockets%2F4d32e7d0406f487fc2c3eb950928a483 +0 -0
  139. data/spec/dummy/tmp/cache/assets/CE6/6A0/sprockets%2Ff3c6ec80b07578f650fb2824d12794f1 +0 -0
  140. data/spec/dummy/tmp/cache/assets/CE7/9D0/sprockets%2Fe875b1c99ba89672cf186cac05110674 +0 -0
  141. data/spec/dummy/tmp/cache/assets/CE8/C50/sprockets%2F557ffb59552116872127ebf1f60be8f1 +0 -0
  142. data/spec/dummy/tmp/cache/assets/CE8/F80/sprockets%2F2e1109cb60a92cb80607e75e8968df55 +0 -0
  143. data/spec/dummy/tmp/cache/assets/CE9/1C0/sprockets%2F8173340e962c6a69113e8f6d6b73bea8 +0 -0
  144. data/spec/dummy/tmp/cache/assets/CEA/AE0/sprockets%2F361872823701871eea1896ce6fdc4bc7 +0 -0
  145. data/spec/dummy/tmp/cache/assets/CED/3C0/sprockets%2F4faf57d14656c09482bd58047e5b4e94 +0 -0
  146. data/spec/dummy/tmp/cache/assets/CEE/040/sprockets%2Fdac57193569c473ef9c483b80c5350e7 +0 -0
  147. data/spec/dummy/tmp/cache/assets/CEE/FA0/sprockets%2Fe1e138f94e3f5b2c473adc6885516575 +0 -0
  148. data/spec/dummy/tmp/cache/assets/CF1/AA0/sprockets%2F42f8cede425918b3566a1dc6879363f4 +0 -0
  149. data/spec/dummy/tmp/cache/assets/CF5/190/sprockets%2F5aa36e65032f2ab3c0a74a7459b160d0 +0 -0
  150. data/spec/dummy/tmp/cache/assets/CF6/770/sprockets%2F70b4b72eb59166fef636f88786c015f6 +0 -0
  151. data/spec/dummy/tmp/cache/assets/CF6/DB0/sprockets%2F0b96a44a2317586f5389f9b89882fbac +0 -0
  152. data/spec/dummy/tmp/cache/assets/CF8/450/sprockets%2Fcea73aad251030d31bb57510f5c08857 +0 -0
  153. data/spec/dummy/tmp/cache/assets/CFA/E90/sprockets%2Fde413540ae904da5f013728900e5a3cb +0 -0
  154. data/spec/dummy/tmp/cache/assets/CFB/460/sprockets%2F3fee1039ea689ff995499d3356b531f3 +0 -0
  155. data/spec/dummy/tmp/cache/assets/CFB/FD0/sprockets%2F82d0b33405c01b62864aec1e95eb19b0 +0 -0
  156. data/spec/dummy/tmp/cache/assets/CFC/7E0/sprockets%2F828f37949a3b38866887a791a1df5cae +0 -0
  157. data/spec/dummy/tmp/cache/assets/CFD/690/sprockets%2F22dc356a263097dbdd0eb70b733e0633 +0 -0
  158. data/spec/dummy/tmp/cache/assets/CFD/EC0/sprockets%2F37ad37f986fdc996535d49b2e06b8870 +0 -0
  159. data/spec/dummy/tmp/cache/assets/CFD/FC0/sprockets%2F53a5b4fcd5b536a6fa7047220fa20770 +0 -0
  160. data/spec/dummy/tmp/cache/assets/CFE/F30/sprockets%2F236f025a03e3dd3090be34728eee04f2 +0 -0
  161. data/spec/dummy/tmp/cache/assets/CFF/1C0/sprockets%2Fd6343c191d4033c2ace3ec80c853155d +0 -0
  162. data/spec/dummy/tmp/cache/assets/CFF/770/sprockets%2F6c3d350537cf7a961aab301e138391da +0 -0
  163. data/spec/dummy/tmp/cache/assets/CFF/9D0/sprockets%2F6f4f425aa8ae171a28b0a0102728e78c +0 -0
  164. data/spec/dummy/tmp/cache/assets/D00/1D0/sprockets%2F694f5e33bf687d6469eb384556be5d65 +0 -0
  165. data/spec/dummy/tmp/cache/assets/D02/300/sprockets%2Fd673d7769ef48382fde8e63f5260918c +0 -0
  166. data/spec/dummy/tmp/cache/assets/D02/4D0/sprockets%2F75f162da24d530863b157fab9bb332e1 +0 -0
  167. data/spec/dummy/tmp/cache/assets/D02/C40/sprockets%2F8585b45dd87506369faf95f6c15995ae +0 -0
  168. data/spec/dummy/tmp/cache/assets/D03/F00/sprockets%2Fd816b9a2eee8a1213537044e6140cda8 +0 -0
  169. data/spec/dummy/tmp/cache/assets/D04/0C0/sprockets%2F3e8734d0c1445a40e06b16ba628ce7e5 +0 -0
  170. data/spec/dummy/tmp/cache/assets/D05/0B0/sprockets%2F6d41c4babf161039a466e77d333353bf +0 -0
  171. data/spec/dummy/tmp/cache/assets/D05/AC0/sprockets%2F0d5d4b6e61910e6670b53a5259dc3f0b +0 -0
  172. data/spec/dummy/tmp/cache/assets/D08/100/sprockets%2Fc092140fcf1fa6e224009dc3ac948775 +0 -0
  173. data/spec/dummy/tmp/cache/assets/D0A/8C0/sprockets%2F0dd41e767874e7b58131c470f11cfcc0 +0 -0
  174. data/spec/dummy/tmp/cache/assets/D0B/900/sprockets%2Fc8a4204f408713759d43f3bb6ac8cb26 +0 -0
  175. data/spec/dummy/tmp/cache/assets/D0C/290/sprockets%2F999348c2da931213dac0e26d2cdf0539 +0 -0
  176. data/spec/dummy/tmp/cache/assets/D0D/680/sprockets%2Ff251a73cc35ef22d48a569c565424e0d +0 -0
  177. data/spec/dummy/tmp/cache/assets/D0D/9D0/sprockets%2F3c332184aa806f6c748a078ab4479cae +0 -0
  178. data/spec/dummy/tmp/cache/assets/D0D/E40/sprockets%2Fba80b40a3e97d61411f753f0da58f955 +0 -0
  179. data/spec/dummy/tmp/cache/assets/D0E/B80/sprockets%2F550cb0c1a8f9c7612252df82f2c38d85 +0 -0
  180. data/spec/dummy/tmp/cache/assets/D0F/4C0/sprockets%2Fb079554a6dab851e84cf9a158f12502e +0 -0
  181. data/spec/dummy/tmp/cache/assets/D12/FF0/sprockets%2F211db8c47e0494a0e5979e52dcdd1772 +0 -0
  182. data/spec/dummy/tmp/cache/assets/D13/E30/sprockets%2F79b43bf77e2ba62176e733c8bc02456e +0 -0
  183. data/spec/dummy/tmp/cache/assets/D14/A40/sprockets%2Fa3624540a0e5d8d83e95385fbb747f1c +0 -0
  184. data/spec/dummy/tmp/cache/assets/D16/080/sprockets%2F727e2f6b735bd65a1b007858fec0d199 +0 -0
  185. data/spec/dummy/tmp/cache/assets/D16/790/sprockets%2F2c4c362fe0a9a57b08957c93b5b385a9 +0 -0
  186. data/spec/dummy/tmp/cache/assets/D16/990/sprockets%2Fae5c017f0f55d82237475a937fde429b +0 -0
  187. data/spec/dummy/tmp/cache/assets/D16/CA0/sprockets%2F8a34f260fc1735242f76d7b920fb9f3f +0 -0
  188. data/spec/dummy/tmp/cache/assets/D17/CF0/sprockets%2Fa58d1bc9665ae6b03864728ea15de781 +0 -0
  189. data/spec/dummy/tmp/cache/assets/D18/7C0/sprockets%2Fe85a3ba9e990ff426035d5712a859b3d +0 -0
  190. data/spec/dummy/tmp/cache/assets/D19/010/sprockets%2Fa756952d265f6e0149cd9ad35ac624f7 +0 -0
  191. data/spec/dummy/tmp/cache/assets/D19/750/sprockets%2F27f5e29a85e1576afaec429398a140d6 +0 -0
  192. data/spec/dummy/tmp/cache/assets/D19/F30/sprockets%2F47da973da1375156c2daeb084997f63d +0 -0
  193. data/spec/dummy/tmp/cache/assets/D19/FC0/sprockets%2F911d62f8392a935a70feece5006947cf +0 -0
  194. data/spec/dummy/tmp/cache/assets/D1D/910/sprockets%2F85cd1285739a1e0f9b0649d44e6d9ec3 +0 -0
  195. data/spec/dummy/tmp/cache/assets/D23/590/sprockets%2F2a4da20d84178d4010ab44ce38c15b2e +0 -0
  196. data/spec/dummy/tmp/cache/assets/D23/B90/sprockets%2F100be5071b721a91243cfdcc4fc3e640 +0 -0
  197. data/spec/dummy/tmp/cache/assets/D24/190/sprockets%2Fbaa0bf4ff9fa6374634f7514c9698386 +0 -0
  198. data/spec/dummy/tmp/cache/assets/D25/7A0/sprockets%2F81448f2857f3b53eb87fe65328fb2c8c +0 -0
  199. data/spec/dummy/tmp/cache/assets/D26/EF0/sprockets%2F010e101aeb7bc28cb46a6433f1f3f572 +0 -0
  200. data/spec/dummy/tmp/cache/assets/D2A/A60/sprockets%2F6bc8b6de1a30b90f8a3e53203a3095d0 +0 -0
  201. data/spec/dummy/tmp/cache/assets/D2C/400/sprockets%2F9b0d1f28f42fb13ab66ba246171dc055 +0 -0
  202. data/spec/dummy/tmp/cache/assets/D2C/6F0/sprockets%2F1918f9760e54e98faad3395f859b64bc +0 -0
  203. data/spec/dummy/tmp/cache/assets/D2C/FC0/sprockets%2F63e081432f5072a22afad0127df7d9ba +0 -0
  204. data/spec/dummy/tmp/cache/assets/D2D/770/sprockets%2Fcc4b37404cf6098f79efbe8687b68086 +0 -0
  205. data/spec/dummy/tmp/cache/assets/D2D/920/sprockets%2Fc9e7abdbe10861f38020495db150ea22 +0 -0
  206. data/spec/dummy/tmp/cache/assets/D2E/580/sprockets%2Fa22e45d16d5c3db614290ecf333e34f0 +0 -0
  207. data/spec/dummy/tmp/cache/assets/D2F/530/sprockets%2F2fa2ae5d1974c10c5291e1d10ae76b84 +0 -0
  208. data/spec/dummy/tmp/cache/assets/D30/DD0/sprockets%2F46017ab811355ad684ce0d16ade6c36b +0 -0
  209. data/spec/dummy/tmp/cache/assets/D32/070/sprockets%2F4cac5a268c206520da2e6881bb904bf7 +0 -0
  210. data/spec/dummy/tmp/cache/assets/D32/440/sprockets%2F770554004aff7bdd4e0d2fea560307c5 +0 -0
  211. data/spec/dummy/tmp/cache/assets/D32/B10/sprockets%2Fc0e93e5016155d49da5cfa018f03b5a7 +0 -0
  212. data/spec/dummy/tmp/cache/assets/D34/7D0/sprockets%2Fb707d7c0aa00995cdd2226357ea75ba6 +0 -0
  213. data/spec/dummy/tmp/cache/assets/D34/940/sprockets%2F4f06f1f08eca35f027270750eb3c91be +0 -0
  214. data/spec/dummy/tmp/cache/assets/D34/D00/sprockets%2F2e20ad1d331d6792ac7b211f7287fce5 +0 -0
  215. data/spec/dummy/tmp/cache/assets/D35/050/sprockets%2F533a5f9321ae5c15d1d1fbbf39a88215 +0 -0
  216. data/spec/dummy/tmp/cache/assets/D35/F30/sprockets%2Fa606b480031f091f6552bcfb5c5c76ce +0 -0
  217. data/spec/dummy/tmp/cache/assets/D37/680/sprockets%2Fa333a60354ce6457d2a430cde45d5e9f +0 -0
  218. data/spec/dummy/tmp/cache/assets/D38/510/sprockets%2F7f332ab77c842e2413e2cff8035d3ae3 +0 -0
  219. data/spec/dummy/tmp/cache/assets/D38/CC0/sprockets%2F078b2cebbe3c268e3f790f38d61132a1 +0 -0
  220. data/spec/dummy/tmp/cache/assets/D38/F10/sprockets%2Fa267ff360ee7f6d3b1ffa122d4915070 +0 -0
  221. data/spec/dummy/tmp/cache/assets/D3A/690/sprockets%2F57108b7dcc137cc56f637f21d025fd3c +0 -0
  222. data/spec/dummy/tmp/cache/assets/D3A/C60/sprockets%2F3320f6b53edef78d3397ab212ca3b783 +0 -0
  223. data/spec/dummy/tmp/cache/assets/D3A/F40/sprockets%2Fc35c5c40a23de0957c30ed285e526f6d +0 -0
  224. data/spec/dummy/tmp/cache/assets/D3C/5F0/sprockets%2F93dbe673a490b68190e1f6f015b7a0fc +0 -0
  225. data/spec/dummy/tmp/cache/assets/D3D/310/sprockets%2Fd49605a0d2051a875e999cc3bbcba277 +0 -0
  226. data/spec/dummy/tmp/cache/assets/D3D/780/sprockets%2F5cbf217de3aad3276533692fc3d5a386 +0 -0
  227. data/spec/dummy/tmp/cache/assets/D3D/890/sprockets%2Ff3c117af4b6ab1659a7f1cf14289a835 +0 -0
  228. data/spec/dummy/tmp/cache/assets/D3E/A30/sprockets%2F1f747d49e3a130dab46c2886fb54f2f0 +0 -0
  229. data/spec/dummy/tmp/cache/assets/D3E/CD0/sprockets%2F723d497a92e821ac12fb41b4f852b8ed +0 -0
  230. data/spec/dummy/tmp/cache/assets/D40/8A0/sprockets%2Fbd0e5b43b7e85225b4486f5a705ef9b1 +0 -0
  231. data/spec/dummy/tmp/cache/assets/D40/F70/sprockets%2Fa4c39957be8093bda88b0036f28bbb80 +0 -0
  232. data/spec/dummy/tmp/cache/assets/D41/840/sprockets%2F18e349319b10e188db92fe218e92ddaa +0 -0
  233. data/spec/dummy/tmp/cache/assets/D42/780/sprockets%2F309cfca939d0ea11135f49964d5a3d9c +0 -0
  234. data/spec/dummy/tmp/cache/assets/D42/BC0/sprockets%2F15178882de7f4be120c76b48de44cbb4 +0 -0
  235. data/spec/dummy/tmp/cache/assets/D42/E60/sprockets%2F9d2294ce1be2cdc1818a35e9f09535c4 +0 -0
  236. data/spec/dummy/tmp/cache/assets/D45/930/sprockets%2Ff1c5d764fe1f57594bb2106d6c8cd831 +0 -0
  237. data/spec/dummy/tmp/cache/assets/D45/9B0/sprockets%2F01fd2cb232bc95a949a4578cd71d894e +0 -0
  238. data/spec/dummy/tmp/cache/assets/D46/450/sprockets%2F233d9a078ac7776718fe545dd1b64cda +0 -0
  239. data/spec/dummy/tmp/cache/assets/D46/740/sprockets%2F19e66dd4812f26a857ebc74c5c3e561a +0 -0
  240. data/spec/dummy/tmp/cache/assets/D46/B40/sprockets%2Fb9454f085f74e599be720bc3b02fc29b +0 -0
  241. data/spec/dummy/tmp/cache/assets/D46/F60/sprockets%2Feedceb1102b20d86e9673246d98d837c +0 -0
  242. data/spec/dummy/tmp/cache/assets/D46/F80/sprockets%2F42507faa944c25ddcac7d82d0885a878 +0 -0
  243. data/spec/dummy/tmp/cache/assets/D47/550/sprockets%2F3aebdca79970c909c61c9e647571ad41 +0 -0
  244. data/spec/dummy/tmp/cache/assets/D4C/F40/sprockets%2F6f46229e1bf5a8c75fbe6a54b2191e89 +0 -0
  245. data/spec/dummy/tmp/cache/assets/D4D/E90/sprockets%2Ffd8d7dd91654d7235318c4ac8e27ed80 +0 -0
  246. data/spec/dummy/tmp/cache/assets/D4F/9C0/sprockets%2F49285a58a4158edaf27ec4de55b894c4 +0 -0
  247. data/spec/dummy/tmp/cache/assets/D4F/B30/sprockets%2Fc18a5df506759a45b8676fbdaa268b79 +0 -0
  248. data/spec/dummy/tmp/cache/assets/D50/100/sprockets%2F7072f30270cef019eabbf2a81da1a700 +0 -0
  249. data/spec/dummy/tmp/cache/assets/D52/4E0/sprockets%2F038f10e73b3e40a1e4cb630d0d9f0af0 +0 -0
  250. data/spec/dummy/tmp/cache/assets/D53/1E0/sprockets%2F7c64c5a3f2847f8f73989eac171d23ed +0 -0
  251. data/spec/dummy/tmp/cache/assets/D53/2C0/sprockets%2Fbf1990b46d5f0fb2277e7f4899ecb184 +0 -0
  252. data/spec/dummy/tmp/cache/assets/D53/310/sprockets%2F95ba644748cfdbf719a4e73d5ca72849 +0 -0
  253. data/spec/dummy/tmp/cache/assets/D54/710/sprockets%2Fb916b5795a253f57c0fb8e3c9b58d6f7 +0 -0
  254. data/spec/dummy/tmp/cache/assets/D56/0A0/sprockets%2Fd36ccf0a2dc9010faf3b39a53b603524 +0 -0
  255. data/spec/dummy/tmp/cache/assets/D5A/730/sprockets%2F95ca6782537e58484a4f89febd41ce9a +0 -0
  256. data/spec/dummy/tmp/cache/assets/D5D/DF0/sprockets%2Fc4b9ad701a1cadbef99020955b900d05 +0 -0
  257. data/spec/dummy/tmp/cache/assets/D5E/E40/sprockets%2F14a486f10f3b6c65bd2217e94ec00bbd +0 -0
  258. data/spec/dummy/tmp/cache/assets/D64/190/sprockets%2Fdb01f53b6c593c1bc5f51c426781dd1e +0 -0
  259. data/spec/dummy/tmp/cache/assets/D64/AC0/sprockets%2Fcf8136bdfcd562e0d5f1c2354476a1c1 +0 -0
  260. data/spec/dummy/tmp/cache/assets/D65/540/sprockets%2Fba0bed1a16069d5cef67131e38a4396c +0 -0
  261. data/spec/dummy/tmp/cache/assets/D66/6B0/sprockets%2F60f81d3b7e3cbb380d15bfec9441184b +0 -0
  262. data/spec/dummy/tmp/cache/assets/D67/5F0/sprockets%2Fbbb9b26040b075bc6f9455cda178e6e0 +0 -0
  263. data/spec/dummy/tmp/cache/assets/D68/850/sprockets%2F62e88bc4d70c0c42e628a4eaf63f5b03 +0 -0
  264. data/spec/dummy/tmp/cache/assets/D69/0B0/sprockets%2Fcd2e7723bc1193e1a5fb165cf418f81d +0 -0
  265. data/spec/dummy/tmp/cache/assets/D6A/D80/sprockets%2F619d1ede0728cfcc319ecb1b7e632334 +0 -0
  266. data/spec/dummy/tmp/cache/assets/D6C/0E0/sprockets%2F1b4d71d650d8dc37f6c82f0d1362e6af +0 -0
  267. data/spec/dummy/tmp/cache/assets/D70/350/sprockets%2F40d1cf683f5b3f7ccc155e56bf159c42 +0 -0
  268. data/spec/dummy/tmp/cache/assets/D70/960/sprockets%2Fe339d54b8d83065bd740baf8ead516e2 +0 -0
  269. data/spec/dummy/tmp/cache/assets/D71/3D0/sprockets%2F5b944809a90b1cb8f555f6ef70a1a5cd +0 -0
  270. data/spec/dummy/tmp/cache/assets/D71/4E0/sprockets%2F10e8de018ec6f4385527f3cb76cfc1b5 +0 -0
  271. data/spec/dummy/tmp/cache/assets/D71/D30/sprockets%2F464e74b6c8afc6301dfd67b07db02d79 +0 -0
  272. data/spec/dummy/tmp/cache/assets/D72/510/sprockets%2F28d2c06ada7ca2e39dc7d6734a5909e6 +0 -0
  273. data/spec/dummy/tmp/cache/assets/D75/CC0/sprockets%2F8ea038f460efe54870bcae5204f25f9f +0 -0
  274. data/spec/dummy/tmp/cache/assets/D77/3B0/sprockets%2F32db632c2bf90ec52839fb36e868ff1c +0 -0
  275. data/spec/dummy/tmp/cache/assets/D77/570/sprockets%2F30696af595d6b07c0f290095dee3eede +0 -0
  276. data/spec/dummy/tmp/cache/assets/D78/F70/sprockets%2F778adfb39b7c51a3e48cf1ed8d716234 +0 -0
  277. data/spec/dummy/tmp/cache/assets/D7A/1A0/sprockets%2Fc8aa97a6c697c0308e8def7243bb961c +0 -0
  278. data/spec/dummy/tmp/cache/assets/D7B/C40/sprockets%2Fdb886ca138ed99102e8c6d0ce48e7a28 +0 -0
  279. data/spec/dummy/tmp/cache/assets/D7D/320/sprockets%2F97a15f0afc16f1ec53cece99837c3945 +0 -0
  280. data/spec/dummy/tmp/cache/assets/D7D/A90/sprockets%2F8d3dbd1e9cfff62497f581a558c4207a +0 -0
  281. data/spec/dummy/tmp/cache/assets/D7E/7F0/sprockets%2Fd7f7ea84b73883d480e79aa58df01a7b +0 -0
  282. data/spec/dummy/tmp/cache/assets/D80/020/sprockets%2Fa04dbe34848dbe880b78b88860e7e7ad +0 -0
  283. data/spec/dummy/tmp/cache/assets/D82/010/sprockets%2F741e85bcb6a848698fb70edd442fa77d +0 -0
  284. data/spec/dummy/tmp/cache/assets/D82/3C0/sprockets%2F309fdff77aa4ec96705ebf5d49b32595 +0 -0
  285. data/spec/dummy/tmp/cache/assets/D82/8B0/sprockets%2F0bbc01af371930b9cdb11b11689aecd2 +0 -0
  286. data/spec/dummy/tmp/cache/assets/D83/2E0/sprockets%2Fdcec385a0398e997ff0294a5b8d8c4b5 +0 -0
  287. data/spec/dummy/tmp/cache/assets/D85/0F0/sprockets%2F9e7e1eb2769f616b2eb7e8771b9b2dc8 +0 -0
  288. data/spec/dummy/tmp/cache/assets/D87/610/sprockets%2F186e574ea4a3799abf9d7d5b93ced853 +0 -0
  289. data/spec/dummy/tmp/cache/assets/D8A/270/sprockets%2F9db6e02d74c2538fd7cf75573e7e6ee8 +0 -0
  290. data/spec/dummy/tmp/cache/assets/D8A/F20/sprockets%2F1acbbc71450f0e243ac6ad4d32992fd3 +0 -0
  291. data/spec/dummy/tmp/cache/assets/D8B/690/sprockets%2Fe7c78fd451f3f51affbc877296ef5960 +0 -0
  292. data/spec/dummy/tmp/cache/assets/D8C/020/sprockets%2Fa35e9c25b21aa410d8e5a2dd45b9c5e1 +0 -0
  293. data/spec/dummy/tmp/cache/assets/D8D/5D0/sprockets%2Fc07075017cfc22d16cc6feaf25cb27e0 +0 -0
  294. data/spec/dummy/tmp/cache/assets/D8D/910/sprockets%2F575baea1f25960685df9e9839c9c9cbe +0 -0
  295. data/spec/dummy/tmp/cache/assets/D8F/8E0/sprockets%2F105746c651aaba318efbc2febd6f8302 +0 -0
  296. data/spec/dummy/tmp/cache/assets/D8F/B60/sprockets%2F2033bb60bd2bc8af9b8f32860c8cfe00 +0 -0
  297. data/spec/dummy/tmp/cache/assets/D90/4F0/sprockets%2F4a3b6311b7c6dcfb0fd7ee284e204d51 +0 -0
  298. data/spec/dummy/tmp/cache/assets/D90/BE0/sprockets%2F3faf5275062fdd4e1b7db9731cf200ba +0 -0
  299. data/spec/dummy/tmp/cache/assets/D92/820/sprockets%2Fdf1d67f6cab8d6634a0ca03f90e031a8 +0 -0
  300. data/spec/dummy/tmp/cache/assets/D94/B80/sprockets%2F7a93042dd385e7bde0b0b9413dc4f2dc +0 -0
  301. data/spec/dummy/tmp/cache/assets/D95/A90/sprockets%2F1ad382209134ba79a26dd6feeab90d6c +0 -0
  302. data/spec/dummy/tmp/cache/assets/D96/C00/sprockets%2F4c2d52362f463ed25a3abf22c7dd0ff9 +0 -0
  303. data/spec/dummy/tmp/cache/assets/D97/030/sprockets%2Fa38ac7de0d0f7709502ed8057a50fcbe +0 -0
  304. data/spec/dummy/tmp/cache/assets/D97/A10/sprockets%2Ff50bcde312be103462e7f6797b9bbea1 +0 -0
  305. data/spec/dummy/tmp/cache/assets/D97/D50/sprockets%2Ff200b939caa0a9081eecafce5a486835 +0 -0
  306. data/spec/dummy/tmp/cache/assets/D98/E60/sprockets%2F33fae65b4d17ce042c36e2e9a8cf612c +0 -0
  307. data/spec/dummy/tmp/cache/assets/D99/860/sprockets%2F1622e01def0fef44bf62671b8a37fc6b +0 -0
  308. data/spec/dummy/tmp/cache/assets/D99/AE0/sprockets%2F28806e553cec80ac517ccf3cbb3c37c6 +0 -0
  309. data/spec/dummy/tmp/cache/assets/D9B/040/sprockets%2F7d98e63ddba443fd6a31ce4262acc841 +0 -0
  310. data/spec/dummy/tmp/cache/assets/D9C/4C0/sprockets%2F1443a5a8b6bbff93cf373276e3a37eac +0 -0
  311. data/spec/dummy/tmp/cache/assets/D9C/E50/sprockets%2F5b9233d6c7108ff7a7c6eb23efac0f15 +0 -0
  312. data/spec/dummy/tmp/cache/assets/D9D/710/sprockets%2Fdfdbeff4246f480d9a11d532770f3d2c +0 -0
  313. data/spec/dummy/tmp/cache/assets/D9D/910/sprockets%2F2ab2983b4e9824feed4eab520db546f2 +0 -0
  314. data/spec/dummy/tmp/cache/assets/D9E/CB0/sprockets%2Fc2d52b6b635d9c2a3f099cb4bb4709fe +0 -0
  315. data/spec/dummy/tmp/cache/assets/D9E/D40/sprockets%2Fccc2407813feafe5890fb88d20a5f1e3 +0 -0
  316. data/spec/dummy/tmp/cache/assets/D9E/E90/sprockets%2Fb6d1e89283ac5b236948eccfab09e0e0 +0 -0
  317. data/spec/dummy/tmp/cache/assets/D9F/630/sprockets%2Fdc7732df4a55ac56090d8b9231ebdcf7 +0 -0
  318. data/spec/dummy/tmp/cache/assets/DA0/6D0/sprockets%2F4ee65e76a05cbf57f027aec5f081a28e +0 -0
  319. data/spec/dummy/tmp/cache/assets/DA1/E70/sprockets%2F44d5aae2a85bac66a6f84d4f33e5672e +0 -0
  320. data/spec/dummy/tmp/cache/assets/DA2/6B0/sprockets%2Fd17c809d42ce291bff7b5c651c3df3e5 +0 -0
  321. data/spec/dummy/tmp/cache/assets/DA2/C40/sprockets%2Fbf77078d0b3d281d93c1e4ed4fb447ce +0 -0
  322. data/spec/dummy/tmp/cache/assets/DA3/220/sprockets%2F68b17fa23f147af882ff3bd8c3625dac +0 -0
  323. data/spec/dummy/tmp/cache/assets/DA3/2C0/sprockets%2F5e113fb93aad1790fa903efc6e8ca795 +0 -0
  324. data/spec/dummy/tmp/cache/assets/DA3/840/sprockets%2F2e8784383d52d62c4a4bbf7fc0a7ced6 +0 -0
  325. data/spec/dummy/tmp/cache/assets/DA4/3D0/sprockets%2F41db28d3b706377d553cf9e092fcfecb +0 -0
  326. data/spec/dummy/tmp/cache/assets/DA4/5F0/sprockets%2F3c59a9582ce5ca390814e6cf815afafa +0 -0
  327. data/spec/dummy/tmp/cache/assets/DA4/F90/sprockets%2F6b314683d14ef8bdefc6a2771d148ddf +0 -0
  328. data/spec/dummy/tmp/cache/assets/DA6/8E0/sprockets%2F5c3bf18a7dd95438ef560b31fc07fdb9 +0 -0
  329. data/spec/dummy/tmp/cache/assets/DA6/8F0/sprockets%2Fd522ed69484e06bca6d86bd86c251edd +0 -0
  330. data/spec/dummy/tmp/cache/assets/DA8/580/sprockets%2F0aac3144a5fca0c2f35fbb06e522ba16 +0 -0
  331. data/spec/dummy/tmp/cache/assets/DA8/930/sprockets%2F22bead88c42edb6f34377d86fe7d312f +0 -0
  332. data/spec/dummy/tmp/cache/assets/DA9/FB0/sprockets%2Ff5e3d8c18c45048fbac9375ecee3d913 +0 -0
  333. data/spec/dummy/tmp/cache/assets/DAC/B90/sprockets%2Fafba5fc98f2ea0165f7f0f9e813858c2 +0 -0
  334. data/spec/dummy/tmp/cache/assets/DAD/630/sprockets%2Ff4c7d07c15693cdee7eb7e478c54e7a0 +0 -0
  335. data/spec/dummy/tmp/cache/assets/DAE/B50/sprockets%2F1bee9f39c639ab51fadc666805497ddc +0 -0
  336. data/spec/dummy/tmp/cache/assets/DB0/060/sprockets%2Fbc1e3a31800c61c3b35910deaeaddf43 +0 -0
  337. data/spec/dummy/tmp/cache/assets/DB4/B40/sprockets%2Fe55dc88ef882d22a5e2941b9a8ece93e +0 -0
  338. data/spec/dummy/tmp/cache/assets/DB6/AB0/sprockets%2F0cce6d1b35f25a3b3cb4e20cac96a337 +0 -0
  339. data/spec/dummy/tmp/cache/assets/DBE/4B0/sprockets%2Fc0d57a818a38c1faabe4806de05bc4b3 +0 -0
  340. data/spec/dummy/tmp/cache/assets/DBE/AF0/sprockets%2Fd4f2e1a517ca2c690c930e18ee3aea2c +0 -0
  341. data/spec/dummy/tmp/cache/assets/DBF/CD0/sprockets%2Fb58f3bddad385ffa42a0715adc2f5321 +0 -0
  342. data/spec/dummy/tmp/cache/assets/DC1/AB0/sprockets%2Ff1ab0fa89b073cbf780713af4c803cbd +0 -0
  343. data/spec/dummy/tmp/cache/assets/DC2/290/sprockets%2F33e1678aef50e2ec8fb481c4ea00ab6b +0 -0
  344. data/spec/dummy/tmp/cache/assets/DC7/160/sprockets%2F1cac6edafe4d2e340d08e26ad6a67178 +0 -0
  345. data/spec/dummy/tmp/cache/assets/DC9/0E0/sprockets%2F77cbcbc6ab12e7e52b2c0e58b78952ac +0 -0
  346. data/spec/dummy/tmp/cache/assets/DC9/830/sprockets%2Ffc78a07e02ef132d6bfaf416a92ed5c4 +0 -0
  347. data/spec/dummy/tmp/cache/assets/DC9/9E0/sprockets%2Fb61bcfbecc6015c3fe66166883adf20f +0 -0
  348. data/spec/dummy/tmp/cache/assets/DCC/3D0/sprockets%2F4aa9c99bceb63b073a356cef28cdb407 +0 -0
  349. data/spec/dummy/tmp/cache/assets/DCC/410/sprockets%2F867a8af7dafb224d3fd01b025fa759ec +0 -0
  350. data/spec/dummy/tmp/cache/assets/DCD/440/sprockets%2Fc5955ced7da11c5cc3455f554bad4e5d +0 -0
  351. data/spec/dummy/tmp/cache/assets/DCE/860/sprockets%2F4d92ded5f4fff8567fc8199f96fc893a +0 -0
  352. data/spec/dummy/tmp/cache/assets/DCE/990/sprockets%2F45ad701b5a978cb8c79cbc10bcf4f93b +0 -0
  353. data/spec/dummy/tmp/cache/assets/DCE/FA0/sprockets%2F7bd4f5282fcdf8c0a8fad623285b5ab4 +0 -0
  354. data/spec/dummy/tmp/cache/assets/DD2/BE0/sprockets%2F82bae098ded7cdb1e17152f4b89abe38 +0 -0
  355. data/spec/dummy/tmp/cache/assets/DD7/5F0/sprockets%2Fbb9097fcbbafb2d3186f9b50a8c4e858 +0 -0
  356. data/spec/dummy/tmp/cache/assets/DD8/290/sprockets%2F4cd8a843f37cac4b4beb995d71c8ed62 +0 -0
  357. data/spec/dummy/tmp/cache/assets/DD9/D80/sprockets%2F7764dd3e3471bcd3a8f929a7bdc7bef2 +0 -0
  358. data/spec/dummy/tmp/cache/assets/DDF/B00/sprockets%2F60de899e382bc4dfde8d1bf7eaf06149 +0 -0
  359. data/spec/dummy/tmp/cache/assets/DE1/400/sprockets%2F4af7f2ef298c49a902c41befdb3698ff +0 -0
  360. data/spec/dummy/tmp/cache/assets/DE4/520/sprockets%2F9cb9f0e5be472cc5f4aee727f9970fd4 +0 -0
  361. data/spec/dummy/tmp/cache/assets/DF0/400/sprockets%2F8fd6657c590f0fd8f5bfff40de9ed955 +0 -0
  362. data/spec/dummy/tmp/cache/assets/DF5/C70/sprockets%2F33bb2e1cf6f06715bc4cb33e9fc6cfc2 +0 -0
  363. data/spec/dummy/tmp/cache/assets/DF8/D20/sprockets%2Fe939cbe4b6deb2e50ab5fb474c2f4a51 +0 -0
  364. data/spec/dummy/tmp/cache/assets/DF9/A10/sprockets%2Fd831e0c6a22eb3dc97e980abdbe2d6d5 +0 -0
  365. data/spec/dummy/tmp/cache/assets/DF9/B60/sprockets%2Fb2c7c8346b5ca66aafb55ad42bfc65d7 +0 -0
  366. data/spec/dummy/tmp/cache/assets/DFB/320/sprockets%2F89d4f4297b83c3ffbad12fa081c6cabb +0 -0
  367. data/spec/dummy/tmp/cache/assets/DFB/F30/sprockets%2F84062e1e0ed71cd8b4d9e9fa04fda1bf +0 -0
  368. data/spec/dummy/tmp/cache/assets/DFC/F30/sprockets%2F9abf561cedc21abb1c0c984a9f359c6e +0 -0
  369. data/spec/dummy/tmp/cache/assets/E06/DC0/sprockets%2F40feda35f9ec7fdc617b0a68f78eaa35 +0 -0
  370. data/spec/dummy/tmp/cache/assets/E07/050/sprockets%2Fb9c6f7a5141f2fe8d74be8207dadec7d +0 -0
  371. data/spec/dummy/tmp/cache/assets/E07/8E0/sprockets%2F4d9a5a78d8daa3f2d7de90d0a4d9bf75 +0 -0
  372. data/spec/dummy/tmp/cache/assets/E09/510/sprockets%2F8eb1afbde6599ba5fc82b9efb3345d62 +0 -0
  373. data/spec/dummy/tmp/cache/assets/E0A/5C0/sprockets%2F496d4ff7f78bc3fdaa44a4be99bed123 +0 -0
  374. data/spec/dummy/tmp/cache/assets/E0D/F00/sprockets%2Fba2b7b873e9c66c9cdaeb7919ecfc534 +0 -0
  375. data/spec/dummy/tmp/cache/assets/E10/830/sprockets%2F3c4abef9fa39a68e3f5883844dac5fbf +0 -0
  376. data/spec/dummy/tmp/cache/assets/E1E/580/sprockets%2Fc2ca50c29cb96debd1edcd221dd2827b +0 -0
  377. data/spec/dummy/tmp/cache/assets/E25/120/sprockets%2Fd7d8030c73dad408b36fb9dff3fba2ab +0 -0
  378. data/spec/dummy/tmp/cache/assets/E29/7B0/sprockets%2F42ddbaa7570fc4b8bdaafb99440d7c6c +0 -0
  379. data/spec/dummy/tmp/cache/assets/E29/D10/sprockets%2F048e06e3f84ade24fada7f11aeeea5f5 +0 -0
  380. data/spec/dummy/tmp/cache/assets/E2C/C70/sprockets%2F9666caaacdca25f780b79af0be6de4d1 +0 -0
  381. data/spec/dummy/tmp/cache/assets/E40/480/sprockets%2Fb3c08e9ebe78f6a9b442afad9eded990 +0 -0
  382. data/spec/dummy/tmp/cache/assets/E43/750/sprockets%2Faa9b61ab5677e3f9858fa874efeafcdc +0 -0
  383. data/spec/dummy/tmp/cache/assets/E4A/810/sprockets%2F3b8aaa652bdcc7c003dbea55ef3d4dc5 +0 -0
  384. data/spec/dummy/tmp/cache/assets/E53/6E0/sprockets%2Fd4fe4049b9a1a18a5dd81abd0c9afedb +0 -0
  385. data/spec/dummy/tmp/cache/assets/E55/C80/sprockets%2F004bc4bef50f463dac93f2bfcbdb7e9c +0 -0
  386. data/spec/dummy/tmp/cache/assets/E57/010/sprockets%2F8502047cafdd3a9abe4dddc5e07afb9d +0 -0
  387. data/spec/dummy/tmp/cache/assets/E61/B20/sprockets%2Fbce6e46bef06f9ca5cd7d81fa2ace941 +0 -0
  388. data/spec/dummy/tmp/cache/assets/E63/E60/sprockets%2F2befa0baee3d0bcfff57d7352bed8798 +0 -0
  389. data/spec/dummy/tmp/cache/assets/E6E/760/sprockets%2Febe1c3a268e6bf2bf75ff8cd62d6eef8 +0 -0
  390. data/spec/dummy/tmp/cache/assets/E90/1E0/sprockets%2Fcebc8e615045cadbcefba7a8499becb8 +0 -0
  391. data/spec/dummy/tmp/cache/assets/EC1/700/sprockets%2Fcfe65efffce5ab2b490e2aeba35e9ad9 +0 -0
  392. data/spec/dummy/tmp/cache/sass/114c133dffc3037fce353a953ff02bef7e5fc2f6/_hacks.scssc +0 -0
  393. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_appearance.scssc +0 -0
  394. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_background-clip.scssc +0 -0
  395. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_background-origin.scssc +0 -0
  396. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_background-size.scssc +0 -0
  397. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_border-radius.scssc +0 -0
  398. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_box-shadow.scssc +0 -0
  399. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_box-sizing.scssc +0 -0
  400. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_box.scssc +0 -0
  401. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_columns.scssc +0 -0
  402. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_filter.scssc +0 -0
  403. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_font-face.scssc +0 -0
  404. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_hyphenation.scssc +0 -0
  405. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_images.scssc +0 -0
  406. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_inline-block.scssc +0 -0
  407. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_opacity.scssc +0 -0
  408. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_regions.scssc +0 -0
  409. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_shared.scssc +0 -0
  410. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_text-shadow.scssc +0 -0
  411. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_transform-legacy.scssc +0 -0
  412. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_transform.scssc +0 -0
  413. data/spec/dummy/tmp/cache/sass/18061f23117bfcf03a8db3400cab4ca27567bf67/_transition.scssc +0 -0
  414. data/spec/dummy/tmp/cache/sass/31a3d71611b8af77ffaea7da9c69308398d09f2d/_helpers.css.scssc +0 -0
  415. data/spec/dummy/tmp/cache/sass/31a3d71611b8af77ffaea7da9c69308398d09f2d/_picker.css.scssc +0 -0
  416. data/spec/dummy/tmp/cache/sass/31a3d71611b8af77ffaea7da9c69308398d09f2d/common.css.scssc +0 -0
  417. data/spec/dummy/tmp/cache/sass/31a3d71611b8af77ffaea7da9c69308398d09f2d/content_locale_picker.css.scssc +0 -0
  418. data/spec/dummy/tmp/cache/sass/31a3d71611b8af77ffaea7da9c69308398d09f2d/growl.css.scssc +0 -0
  419. data/spec/dummy/tmp/cache/sass/ac15ac55d16ad727d59e04c1239e438e888459c1/_box.css.scssc +0 -0
  420. data/spec/dummy/tmp/cache/sass/ac15ac55d16ad727d59e04c1239e438e888459c1/_buttons.css.scssc +0 -0
  421. data/spec/dummy/tmp/cache/sass/ac15ac55d16ad727d59e04c1239e438e888459c1/application.css.scssc +0 -0
  422. data/spec/dummy/tmp/cache/sass/ac15ac55d16ad727d59e04c1239e438e888459c1/codemirror_changes.css.scssc +0 -0
  423. data/spec/dummy/tmp/cache/sass/ac15ac55d16ad727d59e04c1239e438e888459c1/content_assets.css.scssc +0 -0
  424. data/spec/dummy/tmp/cache/sass/ac15ac55d16ad727d59e04c1239e438e888459c1/datepicker.css.scssc +0 -0
  425. data/spec/dummy/tmp/cache/sass/ac15ac55d16ad727d59e04c1239e438e888459c1/dialog_changes.css.scssc +0 -0
  426. data/spec/dummy/tmp/cache/sass/ac15ac55d16ad727d59e04c1239e438e888459c1/editable_elements.css.scssc +0 -0
  427. data/spec/dummy/tmp/cache/sass/ac15ac55d16ad727d59e04c1239e438e888459c1/formtastic_changes.css.scssc +0 -0
  428. data/spec/dummy/tmp/cache/sass/ac15ac55d16ad727d59e04c1239e438e888459c1/layout.css.scssc +0 -0
  429. data/spec/dummy/tmp/cache/sass/ac15ac55d16ad727d59e04c1239e438e888459c1/sites_picker.css.scssc +0 -0
  430. data/spec/dummy/tmp/cache/sass/c614737077f618e85ce376205a53b5725cc4150c/_css3.scssc +0 -0
  431. data/spec/dummy/tmp/cache/sass/c614737077f618e85ce376205a53b5725cc4150c/_support.scssc +0 -0
  432. data/spec/dummy/tmp/cache/sass/c7d55f8aa00240f576c879e79ff62585fc3dc51c/font-awesome.scssc +0 -0
  433. data/spec/dummy/tmp/cache/sass/c7d55f8aa00240f576c879e79ff62585fc3dc51c/toggle.css.scssc +0 -0
  434. data/spec/dummy/tmp/cache/sass/de5fa1264e247c74a31d8c6c2112ab09d4522445/_colors.css.scssc +0 -0
  435. data/spec/dummy/tmp/cache/sass/de5fa1264e247c74a31d8c6c2112ab09d4522445/_helpers.css.scssc +0 -0
  436. data/spec/dummy/tmp/cache/sass/de5fa1264e247c74a31d8c6c2112ab09d4522445/default.css.scssc +0 -0
  437. data/spec/dummy/tmp/cache/sass/de5fa1264e247c74a31d8c6c2112ab09d4522445/main.css.scssc +0 -0
  438. data/spec/dummy/tmp/cache/sass/de5fa1264e247c74a31d8c6c2112ab09d4522445/sub.css.scssc +0 -0
  439. data/spec/dummy/tmp/cache/sass/fddee6582dd8de3f34f33315492ad10ef5329dc3/ui.css.scssc +0 -0
  440. data/spec/dummy/tmp/pids/server.pid +1 -0
  441. data/spec/features/search_spec.rb +52 -0
  442. data/spec/spec_helper.rb +43 -0
  443. metadata +1009 -0
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YzkyN2M5NzE5MDlhNGI1MjVjZDQ3OGQxNmRjNDE4ZjkwMmQ0NGI3Yw==
5
+ data.tar.gz: !binary |-
6
+ YzE3MzU0OWE1YmQ4NTJlY2Q0OGVkM2E2MTA3YWQyM2E1YTU0M2UwOQ==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YmVhMzUyNjM2MDA0Zjc1YzljMDM5ZDNhZWI2NDgwNTIwYzllYzhkMDAzNzBh
10
+ YjQ1NDVjN2NmODc1ZDZiNDBhMmVlNDk1ZmZhY2MyNWMyNGQ0YWZmNzQ3MzQx
11
+ MzJmNGEwNjlkOTA3YjYxMjA5NzI4MTQwYjBkZjlmNWVjODJmOGU=
12
+ data.tar.gz: !binary |-
13
+ ODI2NWRjYzc4NTIyNzA5ZTg2N2Q2ZTE4MGE5MmViY2RmYTc4YzBiNzk3MWUz
14
+ MDA4YzRjMDFhMDlkZjY2ZjdlMTBhNmI0MjBhZjFiMzM4MjAyOTI4MjhjOTNh
15
+ M2EyMTgwMmNkNTUxOWMwNmFhZThkZWE4YWQ3NGI5ZGQ4MzQ1OWU=
@@ -0,0 +1,20 @@
1
+ Copyright 2013 YOURNAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,17 @@
1
+ = LocomotiveSearch
2
+
3
+ == Usage
4
+
5
+ Install and configure locomotivecms.
6
+
7
+ Then in your Gemfile add:
8
+
9
+ gem 'locomotivecms-search'
10
+
11
+ In your locomotive.rb initializer configure your search engine:
12
+
13
+ config.search_engine = :mongoid # or elasticsearch
14
+
15
+ You can now edit your model fields and mark them as searchable.
16
+
17
+ This project rocks and uses MIT-LICENSE.
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+ begin
8
+ require 'rdoc/task'
9
+ rescue LoadError
10
+ require 'rdoc/rdoc'
11
+ require 'rake/rdoctask'
12
+ RDoc::Task = Rake::RDocTask
13
+ end
14
+
15
+ RDoc::Task.new(:rdoc) do |rdoc|
16
+ rdoc.rdoc_dir = 'rdoc'
17
+ rdoc.title = 'LocomotiveSearch'
18
+ rdoc.options << '--line-numbers'
19
+ rdoc.rdoc_files.include('README.rdoc')
20
+ rdoc.rdoc_files.include('lib/**/*.rb')
21
+ end
22
+
23
+
24
+
25
+
26
+ Bundler::GemHelper.install_tasks
27
+
28
+ require 'rake/testtask'
29
+
30
+ Rake::TestTask.new(:test) do |t|
31
+ t.libs << 'lib'
32
+ t.libs << 'test'
33
+ t.pattern = 'test/**/*_test.rb'
34
+ t.verbose = false
35
+ end
36
+
37
+
38
+ task :default => :test
@@ -0,0 +1 @@
1
+ = @g.input :searchable, :as => :'Locomotive::Toggle', :wrapper_html => { :class => 'searchable' }, :input_html => { :class => 'searchable' }
@@ -0,0 +1,16 @@
1
+ require_dependency Locomotive::Engine.root.join('app', 'models', 'locomotive', 'content_entry').to_s
2
+
3
+ Locomotive::ContentEntry.class_eval do
4
+ include Locomotive::Search::Extension
5
+
6
+ search_by :options_for_search
7
+
8
+ def options_for_search
9
+ store = [:_slug, _label_field_name, :site_id, :content_type_slug]
10
+ content_type.entries_custom_fields.where(searchable: true).map(&:name) << {store: store}
11
+ end
12
+
13
+ def content_type_slug
14
+ content_type.slug
15
+ end
16
+ end
@@ -0,0 +1,7 @@
1
+ require_dependency Locomotive::Engine.root.join('app', 'models', 'locomotive', 'page').to_s
2
+
3
+ Locomotive::Page.class_eval do
4
+ include Locomotive::Search::Extension
5
+
6
+ search_by [:title, store: [:title, :slug, :site_id]], unless: :not_found?
7
+ end
@@ -0,0 +1,2 @@
1
+ Rails.application.routes.draw do
2
+ end
@@ -0,0 +1 @@
1
+ require "locomotive/search/engine"
@@ -0,0 +1,2 @@
1
+ require "locomotive/search/concerns/custom_fields/field"
2
+ require "locomotive/search/concerns/locomotive/liquid/drops/site"
@@ -0,0 +1,7 @@
1
+ class ActiveSearch::Mongoid::Model
2
+ def to_liquid
3
+ _stored.each_with_object({}) do |(k,v),memo|
4
+ memo[k] = v.respond_to?(:has_key?) && v.has_key?(I18n.locale.to_s) ? v[I18n.locale.to_s] : v
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ CustomFields::Field.class_eval do
2
+ field :searchable, type: Boolean, default: false
3
+ end
4
+
5
+ # Next lines might belong to their own file, but since they are extremely related to the above one, I'll leave them here.
6
+ Locomotive::ContentFieldPresenter.class_eval do
7
+ properties :searchable, type: 'Boolean'
8
+ end
9
+
10
+ Locomotive::PartialsCell.add_template(:custom_fields_form, "searchable")
@@ -0,0 +1,5 @@
1
+ Locomotive::Liquid::Drops::Site.class_eval do
2
+ def search
3
+ @search ||= ::ActiveSearch.search(@context.registers[:controller].params[:search]).where('_stored.site_id' => _source.id)
4
+ end
5
+ end
@@ -0,0 +1,17 @@
1
+ require "locomotive/engine"
2
+
3
+ module Locomotive::Search
4
+ def self.const_missing(const)
5
+ if const.to_s == "Extension"
6
+ require "activesearch/#{Locomotive.config.search_engine}"
7
+ require "locomotive/search/concerns/activesearch/#{Locomotive.config.search_engine}/model" rescue nil
8
+ const_set(const, ::ActiveSearch.const_get(Locomotive.config.search_engine.to_s.classify))
9
+ end
10
+ end
11
+
12
+ class Engine < ::Rails::Engine
13
+ initializer "locomotive.search.concerns" do
14
+ require "locomotive/search/concerns"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,5 @@
1
+ module Locomotive
2
+ module Search
3
+ VERSION = "0.0.2"
4
+ end
5
+ end
@@ -0,0 +1,261 @@
1
+ == Welcome to Rails
2
+
3
+ Rails is a web-application framework that includes everything needed to create
4
+ database-backed web applications according to the Model-View-Control pattern.
5
+
6
+ This pattern splits the view (also called the presentation) into "dumb"
7
+ templates that are primarily responsible for inserting pre-built data in between
8
+ HTML tags. The model contains the "smart" domain objects (such as Account,
9
+ Product, Person, Post) that holds all the business logic and knows how to
10
+ persist themselves to a database. The controller handles the incoming requests
11
+ (such as Save New Account, Update Product, Show Post) by manipulating the model
12
+ and directing data to the view.
13
+
14
+ In Rails, the model is handled by what's called an object-relational mapping
15
+ layer entitled Active Record. This layer allows you to present the data from
16
+ database rows as objects and embellish these data objects with business logic
17
+ methods. You can read more about Active Record in
18
+ link:files/vendor/rails/activerecord/README.html.
19
+
20
+ The controller and view are handled by the Action Pack, which handles both
21
+ layers by its two parts: Action View and Action Controller. These two layers
22
+ are bundled in a single package due to their heavy interdependence. This is
23
+ unlike the relationship between the Active Record and Action Pack that is much
24
+ more separate. Each of these packages can be used independently outside of
25
+ Rails. You can read more about Action Pack in
26
+ link:files/vendor/rails/actionpack/README.html.
27
+
28
+
29
+ == Getting Started
30
+
31
+ 1. At the command prompt, create a new Rails application:
32
+ <tt>rails new myapp</tt> (where <tt>myapp</tt> is the application name)
33
+
34
+ 2. Change directory to <tt>myapp</tt> and start the web server:
35
+ <tt>cd myapp; rails server</tt> (run with --help for options)
36
+
37
+ 3. Go to http://localhost:3000/ and you'll see:
38
+ "Welcome aboard: You're riding Ruby on Rails!"
39
+
40
+ 4. Follow the guidelines to start developing your application. You can find
41
+ the following resources handy:
42
+
43
+ * The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html
44
+ * Ruby on Rails Tutorial Book: http://www.railstutorial.org/
45
+
46
+
47
+ == Debugging Rails
48
+
49
+ Sometimes your application goes wrong. Fortunately there are a lot of tools that
50
+ will help you debug it and get it back on the rails.
51
+
52
+ First area to check is the application log files. Have "tail -f" commands
53
+ running on the server.log and development.log. Rails will automatically display
54
+ debugging and runtime information to these files. Debugging info will also be
55
+ shown in the browser on requests from 127.0.0.1.
56
+
57
+ You can also log your own messages directly into the log file from your code
58
+ using the Ruby logger class from inside your controllers. Example:
59
+
60
+ class WeblogController < ActionController::Base
61
+ def destroy
62
+ @weblog = Weblog.find(params[:id])
63
+ @weblog.destroy
64
+ logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!")
65
+ end
66
+ end
67
+
68
+ The result will be a message in your log file along the lines of:
69
+
70
+ Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1!
71
+
72
+ More information on how to use the logger is at http://www.ruby-doc.org/core/
73
+
74
+ Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are
75
+ several books available online as well:
76
+
77
+ * Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe)
78
+ * Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide)
79
+
80
+ These two books will bring you up to speed on the Ruby language and also on
81
+ programming in general.
82
+
83
+
84
+ == Debugger
85
+
86
+ Debugger support is available through the debugger command when you start your
87
+ Mongrel or WEBrick server with --debugger. This means that you can break out of
88
+ execution at any point in the code, investigate and change the model, and then,
89
+ resume execution! You need to install ruby-debug to run the server in debugging
90
+ mode. With gems, use <tt>sudo gem install ruby-debug</tt>. Example:
91
+
92
+ class WeblogController < ActionController::Base
93
+ def index
94
+ @posts = Post.all
95
+ debugger
96
+ end
97
+ end
98
+
99
+ So the controller will accept the action, run the first line, then present you
100
+ with a IRB prompt in the server window. Here you can do things like:
101
+
102
+ >> @posts.inspect
103
+ => "[#<Post:0x14a6be8
104
+ @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>,
105
+ #<Post:0x14a6620
106
+ @attributes={"title"=>"Rails", "body"=>"Only ten..", "id"=>"2"}>]"
107
+ >> @posts.first.title = "hello from a debugger"
108
+ => "hello from a debugger"
109
+
110
+ ...and even better, you can examine how your runtime objects actually work:
111
+
112
+ >> f = @posts.first
113
+ => #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
114
+ >> f.
115
+ Display all 152 possibilities? (y or n)
116
+
117
+ Finally, when you're ready to resume execution, you can enter "cont".
118
+
119
+
120
+ == Console
121
+
122
+ The console is a Ruby shell, which allows you to interact with your
123
+ application's domain model. Here you'll have all parts of the application
124
+ configured, just like it is when the application is running. You can inspect
125
+ domain models, change values, and save to the database. Starting the script
126
+ without arguments will launch it in the development environment.
127
+
128
+ To start the console, run <tt>rails console</tt> from the application
129
+ directory.
130
+
131
+ Options:
132
+
133
+ * Passing the <tt>-s, --sandbox</tt> argument will rollback any modifications
134
+ made to the database.
135
+ * Passing an environment name as an argument will load the corresponding
136
+ environment. Example: <tt>rails console production</tt>.
137
+
138
+ To reload your controllers and models after launching the console run
139
+ <tt>reload!</tt>
140
+
141
+ More information about irb can be found at:
142
+ link:http://www.rubycentral.org/pickaxe/irb.html
143
+
144
+
145
+ == dbconsole
146
+
147
+ You can go to the command line of your database directly through <tt>rails
148
+ dbconsole</tt>. You would be connected to the database with the credentials
149
+ defined in database.yml. Starting the script without arguments will connect you
150
+ to the development database. Passing an argument will connect you to a different
151
+ database, like <tt>rails dbconsole production</tt>. Currently works for MySQL,
152
+ PostgreSQL and SQLite 3.
153
+
154
+ == Description of Contents
155
+
156
+ The default directory structure of a generated Ruby on Rails application:
157
+
158
+ |-- app
159
+ | |-- assets
160
+ | | |-- images
161
+ | | |-- javascripts
162
+ | | `-- stylesheets
163
+ | |-- controllers
164
+ | |-- helpers
165
+ | |-- mailers
166
+ | |-- models
167
+ | `-- views
168
+ | `-- layouts
169
+ |-- config
170
+ | |-- environments
171
+ | |-- initializers
172
+ | `-- locales
173
+ |-- db
174
+ |-- doc
175
+ |-- lib
176
+ | |-- assets
177
+ | `-- tasks
178
+ |-- log
179
+ |-- public
180
+ |-- script
181
+ |-- test
182
+ | |-- fixtures
183
+ | |-- functional
184
+ | |-- integration
185
+ | |-- performance
186
+ | `-- unit
187
+ |-- tmp
188
+ | `-- cache
189
+ | `-- assets
190
+ `-- vendor
191
+ |-- assets
192
+ | |-- javascripts
193
+ | `-- stylesheets
194
+ `-- plugins
195
+
196
+ app
197
+ Holds all the code that's specific to this particular application.
198
+
199
+ app/assets
200
+ Contains subdirectories for images, stylesheets, and JavaScript files.
201
+
202
+ app/controllers
203
+ Holds controllers that should be named like weblogs_controller.rb for
204
+ automated URL mapping. All controllers should descend from
205
+ ApplicationController which itself descends from ActionController::Base.
206
+
207
+ app/models
208
+ Holds models that should be named like post.rb. Models descend from
209
+ ActiveRecord::Base by default.
210
+
211
+ app/views
212
+ Holds the template files for the view that should be named like
213
+ weblogs/index.html.erb for the WeblogsController#index action. All views use
214
+ eRuby syntax by default.
215
+
216
+ app/views/layouts
217
+ Holds the template files for layouts to be used with views. This models the
218
+ common header/footer method of wrapping views. In your views, define a layout
219
+ using the <tt>layout :default</tt> and create a file named default.html.erb.
220
+ Inside default.html.erb, call <% yield %> to render the view using this
221
+ layout.
222
+
223
+ app/helpers
224
+ Holds view helpers that should be named like weblogs_helper.rb. These are
225
+ generated for you automatically when using generators for controllers.
226
+ Helpers can be used to wrap functionality for your views into methods.
227
+
228
+ config
229
+ Configuration files for the Rails environment, the routing map, the database,
230
+ and other dependencies.
231
+
232
+ db
233
+ Contains the database schema in schema.rb. db/migrate contains all the
234
+ sequence of Migrations for your schema.
235
+
236
+ doc
237
+ This directory is where your application documentation will be stored when
238
+ generated using <tt>rake doc:app</tt>
239
+
240
+ lib
241
+ Application specific libraries. Basically, any kind of custom code that
242
+ doesn't belong under controllers, models, or helpers. This directory is in
243
+ the load path.
244
+
245
+ public
246
+ The directory available for the web server. Also contains the dispatchers and the
247
+ default HTML files. This should be set as the DOCUMENT_ROOT of your web
248
+ server.
249
+
250
+ script
251
+ Helper scripts for automation and generation.
252
+
253
+ test
254
+ Unit and functional tests along with fixtures. When using the rails generate
255
+ command, template test files will be generated for you and placed in this
256
+ directory.
257
+
258
+ vendor
259
+ External libraries that the application depends on. Also includes the plugins
260
+ subdirectory. If the app has frozen rails, those gems also go here, under
261
+ vendor/rails/. This directory is in the load path.