rubber_ring 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (472) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +239 -0
  4. data/Rakefile +34 -0
  5. data/app/assets/images/glyphicons-halflings-white.png +0 -0
  6. data/app/assets/images/glyphicons-halflings.png +0 -0
  7. data/app/assets/javascripts/libs/dropzone.js +1258 -0
  8. data/app/assets/javascripts/libs/h5utils.js +65 -0
  9. data/app/assets/javascripts/rubber_ring/application.js +17 -0
  10. data/app/assets/javascripts/rubber_ring/attachment_dragger.coffee +45 -0
  11. data/app/assets/javascripts/rubber_ring/attachment_manager.coffee +23 -0
  12. data/app/assets/javascripts/rubber_ring/attachment_uploader.coffee +27 -0
  13. data/app/assets/javascripts/rubber_ring/dropdown_menu.coffee +10 -0
  14. data/app/assets/javascripts/rubber_ring/editor.coffee +92 -0
  15. data/app/assets/javascripts/rubber_ring/link_editor.coffee +47 -0
  16. data/app/assets/javascripts/rubber_ring/persistence_manager.coffee +74 -0
  17. data/app/assets/javascripts/rubber_ring/template_editor.coffee +76 -0
  18. data/app/assets/javascripts/rubber_ring/util.coffee +22 -0
  19. data/app/assets/stylesheets/libs/bootstrap.scss.erb +6163 -0
  20. data/app/assets/stylesheets/rubber_ring/application.css +14 -0
  21. data/app/assets/stylesheets/rubber_ring/cms.scss +183 -0
  22. data/app/concerns/rubber_ring/build.rb +31 -0
  23. data/app/concerns/rubber_ring/publish.rb +9 -0
  24. data/app/concerns/rubber_ring/util.rb +75 -0
  25. data/app/controllers/rubber_ring/attachments_controller.rb +52 -0
  26. data/app/controllers/rubber_ring/cms_controller.rb +41 -0
  27. data/app/controllers/rubber_ring/rubber_ring_controller.rb +67 -0
  28. data/app/controllers/rubber_ring/sessions_controller.rb +21 -0
  29. data/app/helpers/rubber_ring/cms_helper.rb +122 -0
  30. data/app/models/rubber_ring/page.rb +126 -0
  31. data/app/models/rubber_ring/page_content.rb +5 -0
  32. data/app/models/rubber_ring/page_template.rb +5 -0
  33. data/app/views/layouts/rubber_ring/application.html.erb +22 -0
  34. data/app/views/rubber_ring/_application.html.erb +106 -0
  35. data/app/views/rubber_ring/_head.html.erb +4 -0
  36. data/app/views/rubber_ring/_template_control.html.erb +20 -0
  37. data/app/views/rubber_ring/sessions/new.html.erb +8 -0
  38. data/config/routes.rb +20 -0
  39. data/db/migrate/20130520170602_create_pages.rubber_ring.rb +11 -0
  40. data/db/migrate/20130520170603_create_rubber_ring_page_contents.rubber_ring.rb +11 -0
  41. data/db/migrate/20130520170604_create_rubber_ring_page_templates.rubber_ring.rb +14 -0
  42. data/db/seeds.rb +7 -0
  43. data/lib/generators/rubber_ring/install/USAGE +10 -0
  44. data/lib/generators/rubber_ring/install/install_generator.rb +35 -0
  45. data/lib/generators/rubber_ring/install/templates/application.js +6 -0
  46. data/lib/generators/rubber_ring/install/templates/layout.html.erb +22 -0
  47. data/lib/generators/rubber_ring/install/templates/publish_template.yml +12 -0
  48. data/lib/generators/rubber_ring/install/templates/settings_template.rb +2 -0
  49. data/lib/generators/rubber_ring/page/USAGE +12 -0
  50. data/lib/generators/rubber_ring/page/page_generator.rb +32 -0
  51. data/lib/generators/rubber_ring/page/templates/action.html.erb +3 -0
  52. data/lib/generators/rubber_ring/page/templates/controller.rb +11 -0
  53. data/lib/rubber_ring.rb +5 -0
  54. data/lib/rubber_ring/engine.rb +11 -0
  55. data/lib/rubber_ring/version.rb +3 -0
  56. data/lib/tasks/rubber_ring_tasks.rake +4 -0
  57. data/spec/concerns/util_spec.rb +20 -0
  58. data/spec/controllers/attachments_controller_spec.rb +20 -0
  59. data/spec/controllers/cms_controller_spec.rb +150 -0
  60. data/spec/controllers/sessions_controller_spec.rb +25 -0
  61. data/spec/helpers/cms_helper_spec.rb +63 -0
  62. data/spec/javascripts/fixtures/duplicate_fields.html +2 -0
  63. data/spec/javascripts/fixtures/editable_fields.html +15 -0
  64. data/spec/javascripts/fixtures/templates.html +21 -0
  65. data/spec/javascripts/helpers/fixtures.js +22 -0
  66. data/spec/javascripts/helpers/jasmine-jquery.js +658 -0
  67. data/spec/javascripts/persistence_manager_spec.coffee +18 -0
  68. data/spec/javascripts/template_editor_spec.coffee +29 -0
  69. data/spec/javascripts/util_spec.coffee +13 -0
  70. data/spec/karma.conf.js +86 -0
  71. data/spec/models/page_spec.rb +196 -0
  72. data/spec/spec_helper.rb +88 -0
  73. data/test/dummy/README.rdoc +28 -0
  74. data/test/dummy/Rakefile +6 -0
  75. data/test/dummy/app/assets/images/baws.jpg +0 -0
  76. data/test/dummy/app/assets/javascripts/application.js +6 -0
  77. data/test/dummy/app/assets/stylesheets/application.css +17 -0
  78. data/test/dummy/app/controllers/application_controller.rb +5 -0
  79. data/test/dummy/app/controllers/example_controller.rb +15 -0
  80. data/test/dummy/app/helpers/application_helper.rb +2 -0
  81. data/test/dummy/app/views/example/page.html.erb +20 -0
  82. data/test/dummy/app/views/example/page2.html.erb +13 -0
  83. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  84. data/test/dummy/app/views/layouts/rubber_ring/layout.html.erb +22 -0
  85. data/test/dummy/app/views/templates/_article.html.erb +7 -0
  86. data/test/dummy/app/views/templates/_blog_post.html.erb +1 -0
  87. data/test/dummy/bin/bundle +3 -0
  88. data/test/dummy/bin/rails +4 -0
  89. data/test/dummy/bin/rake +4 -0
  90. data/test/dummy/config.ru +4 -0
  91. data/test/dummy/config/application.rb +24 -0
  92. data/test/dummy/config/boot.rb +9 -0
  93. data/test/dummy/config/database.yml +16 -0
  94. data/test/dummy/config/environment.rb +5 -0
  95. data/test/dummy/config/environments/development.rb +27 -0
  96. data/test/dummy/config/environments/production.rb +81 -0
  97. data/test/dummy/config/environments/test.rb +36 -0
  98. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  99. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  100. data/test/dummy/config/initializers/inflections.rb +16 -0
  101. data/test/dummy/config/initializers/mime_types.rb +5 -0
  102. data/test/dummy/config/initializers/rubber_ring.rb +2 -0
  103. data/test/dummy/config/initializers/secret_token.rb +12 -0
  104. data/test/dummy/config/initializers/session_store.rb +3 -0
  105. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  106. data/test/dummy/config/locales/en.yml +23 -0
  107. data/test/dummy/config/publish.yml +12 -0
  108. data/test/dummy/config/routes.rb +6 -0
  109. data/test/dummy/db/development.sqlite3 +0 -0
  110. data/test/dummy/db/migrate/20130524163154_create_pages.rubber_ring.rb +12 -0
  111. data/test/dummy/db/migrate/20130524163155_create_rubber_ring_page_contents.rubber_ring.rb +12 -0
  112. data/test/dummy/db/migrate/20130524163156_create_rubber_ring_page_templates.rubber_ring.rb +15 -0
  113. data/test/dummy/db/production.sqlite3 +0 -0
  114. data/test/dummy/db/schema.rb +47 -0
  115. data/test/dummy/db/test.sqlite3 +0 -0
  116. data/test/dummy/log/development.log +41349 -0
  117. data/test/dummy/log/production.log +2835 -0
  118. data/test/dummy/log/test.log +45546 -0
  119. data/test/dummy/public/404.html +27 -0
  120. data/test/dummy/public/422.html +26 -0
  121. data/test/dummy/public/500.html +26 -0
  122. data/test/dummy/public/assets/application-4e268cfccc1f26318c22a87c9e6b9095.js +1 -0
  123. data/test/dummy/public/assets/application-4e268cfccc1f26318c22a87c9e6b9095.js.gz +0 -0
  124. data/test/dummy/public/assets/application-e006d1eddf81edb7ed682d933d95167f.css +18 -0
  125. data/test/dummy/public/assets/application-e006d1eddf81edb7ed682d933d95167f.css.gz +0 -0
  126. data/test/dummy/public/assets/baws-27045628978f5e419d534d01c63ab3d6.jpg +0 -0
  127. data/test/dummy/public/assets/glyphicons-halflings-b47b2b03ec961163432b4cfe22cd6f31.png +0 -0
  128. data/test/dummy/public/assets/glyphicons-halflings-white-ec01567c9d4e5aba3fd3efa6e3054574.png +0 -0
  129. data/test/dummy/public/assets/manifest-d64ae8f73d13a404515a9c833b8ea4d7.json +1 -0
  130. data/test/dummy/public/assets/rubber_ring/application-166bd1c30eaa1f5b77c159a552ca0d1d.js +4 -0
  131. data/test/dummy/public/assets/rubber_ring/application-166bd1c30eaa1f5b77c159a552ca0d1d.js.gz +0 -0
  132. data/test/dummy/public/assets/rubber_ring/application-2211071c03381f99bd440671529d6d2d.css +4358 -0
  133. data/test/dummy/public/assets/rubber_ring/application-2211071c03381f99bd440671529d6d2d.css.gz +0 -0
  134. data/test/dummy/public/assets/rubber_ring/application-4ba3fedbf9929e7910c6f1497a82c4d1.css +4380 -0
  135. data/test/dummy/public/assets/rubber_ring/application-4ba3fedbf9929e7910c6f1497a82c4d1.css.gz +0 -0
  136. data/test/dummy/public/assets/rubber_ring/application-9b07b9a701e0e3a8bb9f2af9749adbac.js +4 -0
  137. data/test/dummy/public/assets/rubber_ring/application-9b07b9a701e0e3a8bb9f2af9749adbac.js.gz +0 -0
  138. data/test/dummy/public/build/assets/application-4e268cfccc1f26318c22a87c9e6b9095.js +1 -0
  139. data/test/dummy/public/build/assets/application-4e268cfccc1f26318c22a87c9e6b9095.js.gz +0 -0
  140. data/test/dummy/public/build/assets/application-e006d1eddf81edb7ed682d933d95167f.css +18 -0
  141. data/test/dummy/public/build/assets/application-e006d1eddf81edb7ed682d933d95167f.css.gz +0 -0
  142. data/test/dummy/public/build/assets/application.css +17 -0
  143. data/test/dummy/public/build/assets/application.js +6 -0
  144. data/test/dummy/public/build/assets/assets/images/baws.jpg +0 -0
  145. data/test/dummy/public/build/assets/assets/javascripts/application.js +6 -0
  146. data/test/dummy/public/build/assets/assets/stylesheets/application.css +17 -0
  147. data/test/dummy/public/build/assets/baws-27045628978f5e419d534d01c63ab3d6.jpg +0 -0
  148. data/test/dummy/public/build/assets/baws.jpg +0 -0
  149. data/test/dummy/public/build/assets/controllers/application_controller.rb +5 -0
  150. data/test/dummy/public/build/assets/controllers/example_controller.rb +15 -0
  151. data/test/dummy/public/build/assets/glyphicons-halflings-b47b2b03ec961163432b4cfe22cd6f31.png +0 -0
  152. data/test/dummy/public/build/assets/glyphicons-halflings-white-ec01567c9d4e5aba3fd3efa6e3054574.png +0 -0
  153. data/test/dummy/public/build/assets/helpers/application_helper.rb +2 -0
  154. data/test/dummy/public/build/assets/images/baws.jpg +0 -0
  155. data/test/dummy/public/build/assets/javascripts/application.js +6 -0
  156. data/test/dummy/public/build/assets/manifest-d64ae8f73d13a404515a9c833b8ea4d7.json +1 -0
  157. data/test/dummy/public/build/assets/rubber_ring/application-166bd1c30eaa1f5b77c159a552ca0d1d.js +4 -0
  158. data/test/dummy/public/build/assets/rubber_ring/application-166bd1c30eaa1f5b77c159a552ca0d1d.js.gz +0 -0
  159. data/test/dummy/public/build/assets/rubber_ring/application-2211071c03381f99bd440671529d6d2d.css +4358 -0
  160. data/test/dummy/public/build/assets/rubber_ring/application-2211071c03381f99bd440671529d6d2d.css.gz +0 -0
  161. data/test/dummy/public/build/assets/rubber_ring/application-4ba3fedbf9929e7910c6f1497a82c4d1.css +4380 -0
  162. data/test/dummy/public/build/assets/rubber_ring/application-4ba3fedbf9929e7910c6f1497a82c4d1.css.gz +0 -0
  163. data/test/dummy/public/build/assets/rubber_ring/application-9b07b9a701e0e3a8bb9f2af9749adbac.js +4 -0
  164. data/test/dummy/public/build/assets/rubber_ring/application-9b07b9a701e0e3a8bb9f2af9749adbac.js.gz +0 -0
  165. data/test/dummy/public/build/assets/stylesheets/application.css +17 -0
  166. data/test/dummy/public/build/assets/views/example/page.html.erb +31 -0
  167. data/test/dummy/public/build/assets/views/example/page2.html.erb +10 -0
  168. data/test/dummy/public/build/assets/views/layouts/application.html.erb +14 -0
  169. data/test/dummy/public/build/assets/views/layouts/rubber_ring/application.html.erb +22 -0
  170. data/test/dummy/public/build/assets/views/templates/_article.html.erb +9 -0
  171. data/test/dummy/public/build/upload/example/page/attachments/dbvis.license +11 -0
  172. data/test/dummy/public/build/upload/example/page/images/nutella.jpg +0 -0
  173. data/test/dummy/public/favicon.ico +0 -0
  174. data/test/dummy/public/upload/en/example/page2/images/snb.jpg +0 -0
  175. data/test/dummy/public/upload/example/page/attachments/BoobyTrap.pdf +0 -0
  176. data/test/dummy/public/upload/example/page/attachments/main.html +29 -0
  177. data/test/dummy/public/upload/example/page/images/nutella.jpg +0 -0
  178. data/test/dummy/public/upload/example/page/images/snb.jpg +0 -0
  179. data/test/dummy/script/rails +6 -0
  180. data/test/dummy/tmp/cache/assets/development/sass/144bb07df25732886de34fc892b7c84d418ab110/cms.scss.erbc +0 -0
  181. data/test/dummy/tmp/cache/assets/development/sass/144bb07df25732886de34fc892b7c84d418ab110/cms.scssc +0 -0
  182. data/test/dummy/tmp/cache/assets/development/sass/5df77a09e28ee5e99b029d061fc8c7aa74ed8701/bootstrap.scss.erbc +0 -0
  183. data/test/dummy/tmp/cache/assets/development/sass/8185f37c4f7dd19815b19559200f49fbf25b143a/cms.scssc +0 -0
  184. data/test/dummy/tmp/cache/assets/development/sass/9ef9c546be1f15bd909c4626b18ec56c75aac0ce/cms.scss.erbc +0 -0
  185. data/test/dummy/tmp/cache/assets/development/sass/9ef9c546be1f15bd909c4626b18ec56c75aac0ce/cms.scssc +0 -0
  186. data/test/dummy/tmp/cache/assets/development/sass/c8e2efff656b76a26ac2cc5b5528e2ab9741b52a/bootstrap.scss.erbc +0 -0
  187. data/test/dummy/tmp/cache/assets/development/sprockets/005eccb32211a5ffdf41aad3484bbbb4 +0 -0
  188. data/test/dummy/tmp/cache/assets/development/sprockets/00dfd740f227e8eacf8dc70e8923aa30 +0 -0
  189. data/test/dummy/tmp/cache/assets/development/sprockets/0218b228ced412bf87b02ca1b6be60b3 +0 -0
  190. data/test/dummy/tmp/cache/assets/development/sprockets/021d5ce446187b362f442c81dbc04f33 +0 -0
  191. data/test/dummy/tmp/cache/assets/development/sprockets/03d17cbcdf5da1d77daae00a93e1d8eb +0 -0
  192. data/test/dummy/tmp/cache/assets/development/sprockets/052ccadc06984b221f1af051c32e613a +0 -0
  193. data/test/dummy/tmp/cache/assets/development/sprockets/0894458794b51b17900c3d7abefc2aa5 +0 -0
  194. data/test/dummy/tmp/cache/assets/development/sprockets/0ceefdff5c5f03895722be20f6ddc26b +0 -0
  195. data/test/dummy/tmp/cache/assets/development/sprockets/0dd47da3f882e810b77e341b2bcd8abc +0 -0
  196. data/test/dummy/tmp/cache/assets/development/sprockets/0de91e83e7c32c81d59a95bccdedb34f +0 -0
  197. data/test/dummy/tmp/cache/assets/development/sprockets/0f096a9239d1b8b3c0d7f0a079ba8dc6 +0 -0
  198. data/test/dummy/tmp/cache/assets/development/sprockets/0f7e8127f53c92f853b2d1f7f3887b25 +0 -0
  199. data/test/dummy/tmp/cache/assets/development/sprockets/0fa97a19dba2b30d1269220457488770 +0 -0
  200. data/test/dummy/tmp/cache/assets/development/sprockets/10c6f6553bf3c14d2073a1dc826c4a03 +0 -0
  201. data/test/dummy/tmp/cache/assets/development/sprockets/11eedd47a993ae43b134c4a8323fe16d +0 -0
  202. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  203. data/test/dummy/tmp/cache/assets/development/sprockets/14e730b33d5c77e57ef1d749d3f59d09 +0 -0
  204. data/test/dummy/tmp/cache/assets/development/sprockets/15c9e067f0a919861ad0e339ccabb55b +0 -0
  205. data/test/dummy/tmp/cache/assets/development/sprockets/162e101507dda2e6e16d3b6d20ac7155 +0 -0
  206. data/test/dummy/tmp/cache/assets/development/sprockets/16aa40bf8985a2f1f3e5dea5d72e6218 +0 -0
  207. data/test/dummy/tmp/cache/assets/development/sprockets/17ea4d79d21b1f083c77f59ba9b3372d +0 -0
  208. data/test/dummy/tmp/cache/assets/development/sprockets/1893a62d9206a1fb9d89578a47e6dba8 +0 -0
  209. data/test/dummy/tmp/cache/assets/development/sprockets/19686f8659e57712f166b6b342155e6c +0 -0
  210. data/test/dummy/tmp/cache/assets/development/sprockets/1cb5879c7320b989a214a03dbb87bf33 +0 -0
  211. data/test/dummy/tmp/cache/assets/development/sprockets/1de6a759b14c2e99ab1641cad5521433 +0 -0
  212. data/test/dummy/tmp/cache/assets/development/sprockets/1f634c9d68d6c31855bf84ecb8e9d3a1 +0 -0
  213. data/test/dummy/tmp/cache/assets/development/sprockets/22a5108e690ae432a7d96ad27ae23356 +0 -0
  214. data/test/dummy/tmp/cache/assets/development/sprockets/22b9081ba2ffde46760b70110d440b5c +0 -0
  215. data/test/dummy/tmp/cache/assets/development/sprockets/25b52470f85dd54b7db5010558291a3a +0 -0
  216. data/test/dummy/tmp/cache/assets/development/sprockets/2bdc67c643c8348c3a0c294004f0fc35 +0 -0
  217. data/test/dummy/tmp/cache/assets/development/sprockets/2bf91fb337440bb9de78c2e6c6bcb95f +0 -0
  218. data/test/dummy/tmp/cache/assets/development/sprockets/2ee41f98f4c10cf8d2f5bd28d3bd1b96 +0 -0
  219. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  220. data/test/dummy/tmp/cache/assets/development/sprockets/3052b99e985fcef75d109bb00139ebd3 +0 -0
  221. data/test/dummy/tmp/cache/assets/development/sprockets/33e002f0b7946cd298562302f71fdd77 +0 -0
  222. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  223. data/test/dummy/tmp/cache/assets/development/sprockets/37ffa56a3e6b08a7683a7b180bac45e9 +0 -0
  224. data/test/dummy/tmp/cache/assets/development/sprockets/3beaa45c69e3414a2f8cdd63b39787a2 +0 -0
  225. data/test/dummy/tmp/cache/assets/development/sprockets/3f68640e722ec4648c55f987c372bd1f +0 -0
  226. data/test/dummy/tmp/cache/assets/development/sprockets/3fcb125156ac9a61f029c8a3ea0f9c40 +0 -0
  227. data/test/dummy/tmp/cache/assets/development/sprockets/4081dfc5b927754129b209331c267441 +0 -0
  228. data/test/dummy/tmp/cache/assets/development/sprockets/41b539dab4032aeab4acc677841be9e1 +0 -0
  229. data/test/dummy/tmp/cache/assets/development/sprockets/449d8c2f5dfa78068e85472dcee833fc +0 -0
  230. data/test/dummy/tmp/cache/assets/development/sprockets/47086b08a2d4af414320d0316d43636b +0 -0
  231. data/test/dummy/tmp/cache/assets/development/sprockets/4d0e945a1aeffabb6ecbe4e9cfbe9900 +0 -0
  232. data/test/dummy/tmp/cache/assets/development/sprockets/4ff563d50fe6491dbd10a9d82abbfdfb +0 -0
  233. data/test/dummy/tmp/cache/assets/development/sprockets/50b7c4b1c7e9124299cdd60ed2bf24fb +0 -0
  234. data/test/dummy/tmp/cache/assets/development/sprockets/5158a96c0f825e9f03cb852177150660 +0 -0
  235. data/test/dummy/tmp/cache/assets/development/sprockets/5343637e2648daefcbb5f6da93e22170 +0 -0
  236. data/test/dummy/tmp/cache/assets/development/sprockets/53ba99192c5668743a46c5d52532ab35 +0 -0
  237. data/test/dummy/tmp/cache/assets/development/sprockets/5449d7c21a154077e042b276efcfe346 +0 -0
  238. data/test/dummy/tmp/cache/assets/development/sprockets/5588d8e326c1909734ec317c6068a8b0 +0 -0
  239. data/test/dummy/tmp/cache/assets/development/sprockets/5698b010ec22ef0139df1ec7921bada0 +0 -0
  240. data/test/dummy/tmp/cache/assets/development/sprockets/573028956728676e330972a5f5b14ce1 +0 -0
  241. data/test/dummy/tmp/cache/assets/development/sprockets/5802a1804470ed3a7258b19b52db2a15 +0 -0
  242. data/test/dummy/tmp/cache/assets/development/sprockets/593143829da9d8a11949cdea62925830 +0 -0
  243. data/test/dummy/tmp/cache/assets/development/sprockets/5a3608849ffcf6b5ffd0e0c519899b0f +0 -0
  244. data/test/dummy/tmp/cache/assets/development/sprockets/5b28ba105943c3d7648e1c3a64497d6a +0 -0
  245. data/test/dummy/tmp/cache/assets/development/sprockets/5cceba1f5466432ddc1ca00d96bb6af2 +0 -0
  246. data/test/dummy/tmp/cache/assets/development/sprockets/5d5fb516cc13d631c73d6ba74527c7fd +0 -0
  247. data/test/dummy/tmp/cache/assets/development/sprockets/613c2f7728f24118bf60b70e5467b04e +0 -0
  248. data/test/dummy/tmp/cache/assets/development/sprockets/62a837ae3a144323a69c9c742a0d338e +0 -0
  249. data/test/dummy/tmp/cache/assets/development/sprockets/62dc9541d46ef8f45853e3dca50132d8 +0 -0
  250. data/test/dummy/tmp/cache/assets/development/sprockets/6386e7f696b5dd6b1588f8051bf78083 +0 -0
  251. data/test/dummy/tmp/cache/assets/development/sprockets/6428de878f492d768cfef210554eb78e +0 -0
  252. data/test/dummy/tmp/cache/assets/development/sprockets/65e9bcd0c838633f8992701c9486752f +0 -0
  253. data/test/dummy/tmp/cache/assets/development/sprockets/66c2afe997efeeb00c23f320cd5154b1 +0 -0
  254. data/test/dummy/tmp/cache/assets/development/sprockets/672160928c4f356614c3b08e4dd18959 +0 -0
  255. data/test/dummy/tmp/cache/assets/development/sprockets/68e88a76cf0ae3b9def99df2da275d32 +0 -0
  256. data/test/dummy/tmp/cache/assets/development/sprockets/69088615f9cef33446fa9ce9af0cbfcb +0 -0
  257. data/test/dummy/tmp/cache/assets/development/sprockets/69c591a2e6598aef38bce6f1bfd9a583 +0 -0
  258. data/test/dummy/tmp/cache/assets/development/sprockets/6a460bdc2d2ee57d882a40d6fbd9b706 +0 -0
  259. data/test/dummy/tmp/cache/assets/development/sprockets/6c0e89bb1f1dd6fef016f0f030b155a4 +0 -0
  260. data/test/dummy/tmp/cache/assets/development/sprockets/716625880a04396476f184c7f6088be0 +0 -0
  261. data/test/dummy/tmp/cache/assets/development/sprockets/74d99242046d9e80efe6e63d318f0d23 +0 -0
  262. data/test/dummy/tmp/cache/assets/development/sprockets/75ec5eefcca62d9bfa875ebb00e5acae +0 -0
  263. data/test/dummy/tmp/cache/assets/development/sprockets/764217b04b89871d5a19d639ad08d652 +0 -0
  264. data/test/dummy/tmp/cache/assets/development/sprockets/7647442e68634bf506ceb6529c964ff8 +0 -0
  265. data/test/dummy/tmp/cache/assets/development/sprockets/77c132a2a2cf0e255033066a80db84e5 +0 -0
  266. data/test/dummy/tmp/cache/assets/development/sprockets/7b3469b8a6587d3fdde5168bcadc1829 +0 -0
  267. data/test/dummy/tmp/cache/assets/development/sprockets/7b89b96229652f6b39b4956713d83fb3 +0 -0
  268. data/test/dummy/tmp/cache/assets/development/sprockets/7bb9867f00636aa2e82aab7c8cde1156 +0 -0
  269. data/test/dummy/tmp/cache/assets/development/sprockets/7bd7316976b72a4351629802d0d996ac +0 -0
  270. data/test/dummy/tmp/cache/assets/development/sprockets/7d185042919d487db4ba3415054bf46b +0 -0
  271. data/test/dummy/tmp/cache/assets/development/sprockets/7d541dc935739c00601285ef558dc186 +0 -0
  272. data/test/dummy/tmp/cache/assets/development/sprockets/7d643ed86fb6b4f4bc4cbc1573edf562 +0 -0
  273. data/test/dummy/tmp/cache/assets/development/sprockets/7d7c5e1189ffb57c1027fbb1f4849056 +0 -0
  274. data/test/dummy/tmp/cache/assets/development/sprockets/7e0a659f836bf08aa7e86a3b3bd64a0a +0 -0
  275. data/test/dummy/tmp/cache/assets/development/sprockets/8085921c00ddb46d86508243dd466f7a +0 -0
  276. data/test/dummy/tmp/cache/assets/development/sprockets/808e7e23c256ba7b4ae032c997b7f7d1 +0 -0
  277. data/test/dummy/tmp/cache/assets/development/sprockets/813778cca328c7d9a71e6ad9bd6b5b93 +0 -0
  278. data/test/dummy/tmp/cache/assets/development/sprockets/82af58bd517f6c898e82655012e662f3 +0 -0
  279. data/test/dummy/tmp/cache/assets/development/sprockets/851829daaa9bf188f9e6265fd060a111 +0 -0
  280. data/test/dummy/tmp/cache/assets/development/sprockets/896e0a59c127f026ecc3ce390c394c6d +0 -0
  281. data/test/dummy/tmp/cache/assets/development/sprockets/898c074f26089ae77019f6bb0d7b87c3 +0 -0
  282. data/test/dummy/tmp/cache/assets/development/sprockets/8a58cdb1fd183189a813cb45de9b5ecb +0 -0
  283. data/test/dummy/tmp/cache/assets/development/sprockets/8aa0c86835fc92349a71e76dfa064cf0 +0 -0
  284. data/test/dummy/tmp/cache/assets/development/sprockets/8b74d8c3afdb7163f50f52e10b198290 +0 -0
  285. data/test/dummy/tmp/cache/assets/development/sprockets/8c20ea028e7ef9e18ab2517785615d32 +0 -0
  286. data/test/dummy/tmp/cache/assets/development/sprockets/8d50fa8e9c1035cb3fbf50bcd2dad220 +0 -0
  287. data/test/dummy/tmp/cache/assets/development/sprockets/8dda9084ddc7e1b0ce01887b1bfbf7ad +0 -0
  288. data/test/dummy/tmp/cache/assets/development/sprockets/91307c7344a9f3f6f727226a87aaf6b1 +0 -0
  289. data/test/dummy/tmp/cache/assets/development/sprockets/95234f56258851aba6ec6fdab79bccb6 +0 -0
  290. data/test/dummy/tmp/cache/assets/development/sprockets/954bb101caefd0c65eaffd0806b60fe2 +0 -0
  291. data/test/dummy/tmp/cache/assets/development/sprockets/977b0e7fd460cd4ebb7482e0bc5dae0d +0 -0
  292. data/test/dummy/tmp/cache/assets/development/sprockets/980857c735dc36c6448aa7f0a63d5775 +0 -0
  293. data/test/dummy/tmp/cache/assets/development/sprockets/9a27bf15ceccd6156c4fbddfe430431f +0 -0
  294. data/test/dummy/tmp/cache/assets/development/sprockets/9bbfa312e4f834114c0d7fcf15e9d591 +0 -0
  295. data/test/dummy/tmp/cache/assets/development/sprockets/9e4856eaccd8050e2cce8f2726bd1ff9 +0 -0
  296. data/test/dummy/tmp/cache/assets/development/sprockets/a0ddccdbb865754a76b131fa64932582 +0 -0
  297. data/test/dummy/tmp/cache/assets/development/sprockets/a1f2a21fb4036d971dd7f36cbfaf3320 +0 -0
  298. data/test/dummy/tmp/cache/assets/development/sprockets/a2719663651c4c47fea4601da97f674b +0 -0
  299. data/test/dummy/tmp/cache/assets/development/sprockets/a30c5479ead2031a2e521cbfa989dca8 +0 -0
  300. data/test/dummy/tmp/cache/assets/development/sprockets/a54698289dfb98cb1c3314d66baf5f91 +0 -0
  301. data/test/dummy/tmp/cache/assets/development/sprockets/a5fc721c5e049fa401638dbbe6f01666 +0 -0
  302. data/test/dummy/tmp/cache/assets/development/sprockets/a6324741c7289fc944f62b446136cf36 +0 -0
  303. data/test/dummy/tmp/cache/assets/development/sprockets/a6f3ccbc9cf1cae48fad3c83ffea2dd8 +0 -0
  304. data/test/dummy/tmp/cache/assets/development/sprockets/a804717f8c355bf77d84f50220f6b66f +0 -0
  305. data/test/dummy/tmp/cache/assets/development/sprockets/aac96aa095d26ef97f58eb4126da0bf7 +0 -0
  306. data/test/dummy/tmp/cache/assets/development/sprockets/aafab1cd25c75cd144df598aa4d48858 +0 -0
  307. data/test/dummy/tmp/cache/assets/development/sprockets/ab136f8b2c696dd4d96e4899a0e8a4ac +0 -0
  308. data/test/dummy/tmp/cache/assets/development/sprockets/ac74145f99b8dab2053e9ae97ab30b59 +0 -0
  309. data/test/dummy/tmp/cache/assets/development/sprockets/b064391743404352c0d06d1dae692bbc +0 -0
  310. data/test/dummy/tmp/cache/assets/development/sprockets/b0b79f650d323d7f80a4c7456dfce684 +0 -0
  311. data/test/dummy/tmp/cache/assets/development/sprockets/b0e2ed0167a71948529cf8507015a638 +0 -0
  312. data/test/dummy/tmp/cache/assets/development/sprockets/b2bf0c4531b78b65440c4c84908149fe +0 -0
  313. data/test/dummy/tmp/cache/assets/development/sprockets/b344975ddf3cba471441e737f3ca0570 +0 -0
  314. data/test/dummy/tmp/cache/assets/development/sprockets/b4da7dedc3efa1b2420734a75da1402f +0 -0
  315. data/test/dummy/tmp/cache/assets/development/sprockets/b5d99651fe9edd91970e38aaf098c3b6 +0 -0
  316. data/test/dummy/tmp/cache/assets/development/sprockets/b81f49d8cf1dbae0f6d1ac4d9d923f17 +0 -0
  317. data/test/dummy/tmp/cache/assets/development/sprockets/b8acda462092c7c76b1322856f8e39ca +0 -0
  318. data/test/dummy/tmp/cache/assets/development/sprockets/b8bfca64ea01caaf52a8ad9336eba057 +0 -0
  319. data/test/dummy/tmp/cache/assets/development/sprockets/bf9bfc00456efae4900ccf4afcb76b1a +0 -0
  320. data/test/dummy/tmp/cache/assets/development/sprockets/c01f86af98746d42cda25607438cc39f +0 -0
  321. data/test/dummy/tmp/cache/assets/development/sprockets/c0625d8a0a68787afb029146355062df +0 -0
  322. data/test/dummy/tmp/cache/assets/development/sprockets/c10a1994812cf191cd2ee4ef1f979bf0 +0 -0
  323. data/test/dummy/tmp/cache/assets/development/sprockets/c1bea1ba92a5304ffd28cc0af4b325d9 +0 -0
  324. data/test/dummy/tmp/cache/assets/development/sprockets/c28f157f3954955f1bc4ca11b085e5f1 +0 -0
  325. data/test/dummy/tmp/cache/assets/development/sprockets/c38b7c525999d0c070c974f0e1858073 +0 -0
  326. data/test/dummy/tmp/cache/assets/development/sprockets/c3fbb5f0690b2b69916c7cdfa2e6290b +0 -0
  327. data/test/dummy/tmp/cache/assets/development/sprockets/c4393dff2f5bbfb3db980d09f116e865 +0 -0
  328. data/test/dummy/tmp/cache/assets/development/sprockets/c64c25da8d01c54ccf41dc956d9c9b44 +0 -0
  329. data/test/dummy/tmp/cache/assets/development/sprockets/c6a502787893c3368f02209006ef3c3a +0 -0
  330. data/test/dummy/tmp/cache/assets/development/sprockets/c6fc4a60aef7967d11f2188d3a8317e8 +0 -0
  331. data/test/dummy/tmp/cache/assets/development/sprockets/c76f44b59338c92655cdb50acd5a51b7 +0 -0
  332. data/test/dummy/tmp/cache/assets/development/sprockets/c843fdb2b33bf3e87833b23027a9adb9 +0 -0
  333. data/test/dummy/tmp/cache/assets/development/sprockets/c8c8b769bfa8c90477013dc463dce8dd +0 -0
  334. data/test/dummy/tmp/cache/assets/development/sprockets/c9d60e346e8632bb3945f7e94cce0036 +0 -0
  335. data/test/dummy/tmp/cache/assets/development/sprockets/cb676c28d1dce8658c2ce261c40ff62d +0 -0
  336. data/test/dummy/tmp/cache/assets/development/sprockets/cbb7cfa2a375a0ec163c71490071ae70 +0 -0
  337. data/test/dummy/tmp/cache/assets/development/sprockets/cbfd1cdcc8926af0e015fd6e4a8cfe95 +0 -0
  338. data/test/dummy/tmp/cache/assets/development/sprockets/cc2b3e15e75ad21a379b54186f0b3e63 +0 -0
  339. data/test/dummy/tmp/cache/assets/development/sprockets/ce0f026a8f35c2824e68416229e502b0 +0 -0
  340. data/test/dummy/tmp/cache/assets/development/sprockets/cf38200dbb3ee3a9d4dd84cc1d98ada2 +0 -0
  341. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  342. data/test/dummy/tmp/cache/assets/development/sprockets/d06332ce072d0af8fda4bb34381370ef +0 -0
  343. data/test/dummy/tmp/cache/assets/development/sprockets/d1734506eed8ef7a8e5c73e599b0debb +0 -0
  344. data/test/dummy/tmp/cache/assets/development/sprockets/d3a4fc418bcc8c28e1477d8ae5981e44 +0 -0
  345. data/test/dummy/tmp/cache/assets/development/sprockets/d60ab8b8e8ff9e6df6e04cb335e79e38 +0 -0
  346. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  347. data/test/dummy/tmp/cache/assets/development/sprockets/d786e75d26229c39c37d842fb4de0479 +0 -0
  348. data/test/dummy/tmp/cache/assets/development/sprockets/d9a230b2c36f01509e607c6fc423b04f +0 -0
  349. data/test/dummy/tmp/cache/assets/development/sprockets/da3b6190521b537ef46190c99c630173 +0 -0
  350. data/test/dummy/tmp/cache/assets/development/sprockets/dc3d91ae1d7f973c1354a745e97076dd +0 -0
  351. data/test/dummy/tmp/cache/assets/development/sprockets/dcef36a5aee30ad53443ea58149b5c8d +0 -0
  352. data/test/dummy/tmp/cache/assets/development/sprockets/dcf2f012e3f4d3ecc9b1a2f21290fefd +0 -0
  353. data/test/dummy/tmp/cache/assets/development/sprockets/de3b887062709ecbae0f43a1967507b3 +0 -0
  354. data/test/dummy/tmp/cache/assets/development/sprockets/de7818edd5229ecc4f5808d25aea085d +0 -0
  355. data/test/dummy/tmp/cache/assets/development/sprockets/dfd54ce2610fa0bdcd51a47ebe236db4 +0 -0
  356. data/test/dummy/tmp/cache/assets/development/sprockets/e010156bdbfaae9098512ae86bf0288b +0 -0
  357. data/test/dummy/tmp/cache/assets/development/sprockets/e0c1faca0fe3b99790f1467965b76234 +0 -0
  358. data/test/dummy/tmp/cache/assets/development/sprockets/e0d30e94a53fc0d324ec29d883efd5a0 +0 -0
  359. data/test/dummy/tmp/cache/assets/development/sprockets/e0e949e3a882294df1ac6efb53555963 +0 -0
  360. data/test/dummy/tmp/cache/assets/development/sprockets/e508a5da5b2a6ba14eaabe1fc9987f1b +0 -0
  361. data/test/dummy/tmp/cache/assets/development/sprockets/e64df0317c02ea3aaf0c6ac14b3c1994 +0 -0
  362. data/test/dummy/tmp/cache/assets/development/sprockets/ea3fbcf111211cf25a1e84abd8890069 +0 -0
  363. data/test/dummy/tmp/cache/assets/development/sprockets/ea97af2f7f945b7c87258b2338f5bc0c +0 -0
  364. data/test/dummy/tmp/cache/assets/development/sprockets/eb0dcd1f1d9812e1f7eb10b58e6b1ac9 +0 -0
  365. data/test/dummy/tmp/cache/assets/development/sprockets/eca6e114f4db2379855c8af72fafaa45 +0 -0
  366. data/test/dummy/tmp/cache/assets/development/sprockets/eeccfebd3c89a085ade5e49efa39fad9 +0 -0
  367. data/test/dummy/tmp/cache/assets/development/sprockets/f2137fda0185692d9909c6bde77f6ac5 +0 -0
  368. data/test/dummy/tmp/cache/assets/development/sprockets/f270587a206c85bb7163b16529b5ff69 +0 -0
  369. data/test/dummy/tmp/cache/assets/development/sprockets/f5630318facff40bd4c26746561e91a5 +0 -0
  370. data/test/dummy/tmp/cache/assets/development/sprockets/f7147d2e3eeeaef3c6adef2176a6e9bf +0 -0
  371. data/test/dummy/tmp/cache/assets/development/sprockets/f72f9d88e28ad73485fcc24ef00be1f0 +0 -0
  372. data/test/dummy/tmp/cache/assets/development/sprockets/f7428da6a5bd069f4c521897f2ff0549 +0 -0
  373. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  374. data/test/dummy/tmp/cache/assets/development/sprockets/fa7d07347669600716cb3cb894127454 +0 -0
  375. data/test/dummy/tmp/cache/assets/development/sprockets/fe4a3fb260cf70c451034496362792e4 +0 -0
  376. data/test/dummy/tmp/cache/assets/development/sprockets/ffa3b9093369ac4b2758f390b0cafab4 +0 -0
  377. data/test/dummy/tmp/cache/assets/production/sass/144bb07df25732886de34fc892b7c84d418ab110/cms.scss.erbc +0 -0
  378. data/test/dummy/tmp/cache/assets/production/sass/144bb07df25732886de34fc892b7c84d418ab110/cms.scssc +0 -0
  379. data/test/dummy/tmp/cache/assets/production/sass/5df77a09e28ee5e99b029d061fc8c7aa74ed8701/bootstrap.scss.erbc +0 -0
  380. data/test/dummy/tmp/cache/assets/production/sass/9ef9c546be1f15bd909c4626b18ec56c75aac0ce/cms.scss.erbc +0 -0
  381. data/test/dummy/tmp/cache/assets/production/sass/c8e2efff656b76a26ac2cc5b5528e2ab9741b52a/bootstrap.scss.erbc +0 -0
  382. data/test/dummy/tmp/cache/assets/production/sprockets/00dfd740f227e8eacf8dc70e8923aa30 +0 -0
  383. data/test/dummy/tmp/cache/assets/production/sprockets/021d5ce446187b362f442c81dbc04f33 +0 -0
  384. data/test/dummy/tmp/cache/assets/production/sprockets/052ccadc06984b221f1af051c32e613a +0 -0
  385. data/test/dummy/tmp/cache/assets/production/sprockets/0894458794b51b17900c3d7abefc2aa5 +0 -0
  386. data/test/dummy/tmp/cache/assets/production/sprockets/0ceefdff5c5f03895722be20f6ddc26b +0 -0
  387. data/test/dummy/tmp/cache/assets/production/sprockets/0dd47da3f882e810b77e341b2bcd8abc +0 -0
  388. data/test/dummy/tmp/cache/assets/production/sprockets/0f096a9239d1b8b3c0d7f0a079ba8dc6 +0 -0
  389. data/test/dummy/tmp/cache/assets/production/sprockets/0f7e8127f53c92f853b2d1f7f3887b25 +0 -0
  390. data/test/dummy/tmp/cache/assets/production/sprockets/11eedd47a993ae43b134c4a8323fe16d +0 -0
  391. data/test/dummy/tmp/cache/assets/production/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  392. data/test/dummy/tmp/cache/assets/production/sprockets/14e730b33d5c77e57ef1d749d3f59d09 +0 -0
  393. data/test/dummy/tmp/cache/assets/production/sprockets/16aa40bf8985a2f1f3e5dea5d72e6218 +0 -0
  394. data/test/dummy/tmp/cache/assets/production/sprockets/17ea4d79d21b1f083c77f59ba9b3372d +0 -0
  395. data/test/dummy/tmp/cache/assets/production/sprockets/1893a62d9206a1fb9d89578a47e6dba8 +0 -0
  396. data/test/dummy/tmp/cache/assets/production/sprockets/1de6a759b14c2e99ab1641cad5521433 +0 -0
  397. data/test/dummy/tmp/cache/assets/production/sprockets/22a5108e690ae432a7d96ad27ae23356 +0 -0
  398. data/test/dummy/tmp/cache/assets/production/sprockets/2bf91fb337440bb9de78c2e6c6bcb95f +0 -0
  399. data/test/dummy/tmp/cache/assets/production/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  400. data/test/dummy/tmp/cache/assets/production/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  401. data/test/dummy/tmp/cache/assets/production/sprockets/37ffa56a3e6b08a7683a7b180bac45e9 +0 -0
  402. data/test/dummy/tmp/cache/assets/production/sprockets/3f68640e722ec4648c55f987c372bd1f +0 -0
  403. data/test/dummy/tmp/cache/assets/production/sprockets/41b539dab4032aeab4acc677841be9e1 +0 -0
  404. data/test/dummy/tmp/cache/assets/production/sprockets/4d0e945a1aeffabb6ecbe4e9cfbe9900 +0 -0
  405. data/test/dummy/tmp/cache/assets/production/sprockets/5343637e2648daefcbb5f6da93e22170 +0 -0
  406. data/test/dummy/tmp/cache/assets/production/sprockets/5698b010ec22ef0139df1ec7921bada0 +0 -0
  407. data/test/dummy/tmp/cache/assets/production/sprockets/593143829da9d8a11949cdea62925830 +0 -0
  408. data/test/dummy/tmp/cache/assets/production/sprockets/5a3608849ffcf6b5ffd0e0c519899b0f +0 -0
  409. data/test/dummy/tmp/cache/assets/production/sprockets/5cceba1f5466432ddc1ca00d96bb6af2 +0 -0
  410. data/test/dummy/tmp/cache/assets/production/sprockets/613c2f7728f24118bf60b70e5467b04e +0 -0
  411. data/test/dummy/tmp/cache/assets/production/sprockets/6428de878f492d768cfef210554eb78e +0 -0
  412. data/test/dummy/tmp/cache/assets/production/sprockets/65e9bcd0c838633f8992701c9486752f +0 -0
  413. data/test/dummy/tmp/cache/assets/production/sprockets/66c2afe997efeeb00c23f320cd5154b1 +0 -0
  414. data/test/dummy/tmp/cache/assets/production/sprockets/672160928c4f356614c3b08e4dd18959 +0 -0
  415. data/test/dummy/tmp/cache/assets/production/sprockets/69088615f9cef33446fa9ce9af0cbfcb +0 -0
  416. data/test/dummy/tmp/cache/assets/production/sprockets/69c591a2e6598aef38bce6f1bfd9a583 +0 -0
  417. data/test/dummy/tmp/cache/assets/production/sprockets/6c0e89bb1f1dd6fef016f0f030b155a4 +0 -0
  418. data/test/dummy/tmp/cache/assets/production/sprockets/74d99242046d9e80efe6e63d318f0d23 +0 -0
  419. data/test/dummy/tmp/cache/assets/production/sprockets/77c132a2a2cf0e255033066a80db84e5 +0 -0
  420. data/test/dummy/tmp/cache/assets/production/sprockets/7b3469b8a6587d3fdde5168bcadc1829 +0 -0
  421. data/test/dummy/tmp/cache/assets/production/sprockets/7b89b96229652f6b39b4956713d83fb3 +0 -0
  422. data/test/dummy/tmp/cache/assets/production/sprockets/7bb9867f00636aa2e82aab7c8cde1156 +0 -0
  423. data/test/dummy/tmp/cache/assets/production/sprockets/7d185042919d487db4ba3415054bf46b +0 -0
  424. data/test/dummy/tmp/cache/assets/production/sprockets/7d541dc935739c00601285ef558dc186 +0 -0
  425. data/test/dummy/tmp/cache/assets/production/sprockets/7e0a659f836bf08aa7e86a3b3bd64a0a +0 -0
  426. data/test/dummy/tmp/cache/assets/production/sprockets/8085921c00ddb46d86508243dd466f7a +0 -0
  427. data/test/dummy/tmp/cache/assets/production/sprockets/808e7e23c256ba7b4ae032c997b7f7d1 +0 -0
  428. data/test/dummy/tmp/cache/assets/production/sprockets/82af58bd517f6c898e82655012e662f3 +0 -0
  429. data/test/dummy/tmp/cache/assets/production/sprockets/896e0a59c127f026ecc3ce390c394c6d +0 -0
  430. data/test/dummy/tmp/cache/assets/production/sprockets/8aa0c86835fc92349a71e76dfa064cf0 +0 -0
  431. data/test/dummy/tmp/cache/assets/production/sprockets/8c20ea028e7ef9e18ab2517785615d32 +0 -0
  432. data/test/dummy/tmp/cache/assets/production/sprockets/91307c7344a9f3f6f727226a87aaf6b1 +0 -0
  433. data/test/dummy/tmp/cache/assets/production/sprockets/977b0e7fd460cd4ebb7482e0bc5dae0d +0 -0
  434. data/test/dummy/tmp/cache/assets/production/sprockets/9e4856eaccd8050e2cce8f2726bd1ff9 +0 -0
  435. data/test/dummy/tmp/cache/assets/production/sprockets/a0ddccdbb865754a76b131fa64932582 +0 -0
  436. data/test/dummy/tmp/cache/assets/production/sprockets/aac96aa095d26ef97f58eb4126da0bf7 +0 -0
  437. data/test/dummy/tmp/cache/assets/production/sprockets/ab136f8b2c696dd4d96e4899a0e8a4ac +0 -0
  438. data/test/dummy/tmp/cache/assets/production/sprockets/ac74145f99b8dab2053e9ae97ab30b59 +0 -0
  439. data/test/dummy/tmp/cache/assets/production/sprockets/b0e2ed0167a71948529cf8507015a638 +0 -0
  440. data/test/dummy/tmp/cache/assets/production/sprockets/b2bf0c4531b78b65440c4c84908149fe +0 -0
  441. data/test/dummy/tmp/cache/assets/production/sprockets/b81f49d8cf1dbae0f6d1ac4d9d923f17 +0 -0
  442. data/test/dummy/tmp/cache/assets/production/sprockets/bf9bfc00456efae4900ccf4afcb76b1a +0 -0
  443. data/test/dummy/tmp/cache/assets/production/sprockets/c01f86af98746d42cda25607438cc39f +0 -0
  444. data/test/dummy/tmp/cache/assets/production/sprockets/c0625d8a0a68787afb029146355062df +0 -0
  445. data/test/dummy/tmp/cache/assets/production/sprockets/c28f157f3954955f1bc4ca11b085e5f1 +0 -0
  446. data/test/dummy/tmp/cache/assets/production/sprockets/c4393dff2f5bbfb3db980d09f116e865 +0 -0
  447. data/test/dummy/tmp/cache/assets/production/sprockets/c6a502787893c3368f02209006ef3c3a +0 -0
  448. data/test/dummy/tmp/cache/assets/production/sprockets/c76f44b59338c92655cdb50acd5a51b7 +0 -0
  449. data/test/dummy/tmp/cache/assets/production/sprockets/c8c8b769bfa8c90477013dc463dce8dd +0 -0
  450. data/test/dummy/tmp/cache/assets/production/sprockets/c9d60e346e8632bb3945f7e94cce0036 +0 -0
  451. data/test/dummy/tmp/cache/assets/production/sprockets/cbfd1cdcc8926af0e015fd6e4a8cfe95 +0 -0
  452. data/test/dummy/tmp/cache/assets/production/sprockets/cc2b3e15e75ad21a379b54186f0b3e63 +0 -0
  453. data/test/dummy/tmp/cache/assets/production/sprockets/ce0f026a8f35c2824e68416229e502b0 +0 -0
  454. data/test/dummy/tmp/cache/assets/production/sprockets/cf38200dbb3ee3a9d4dd84cc1d98ada2 +0 -0
  455. data/test/dummy/tmp/cache/assets/production/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  456. data/test/dummy/tmp/cache/assets/production/sprockets/d60ab8b8e8ff9e6df6e04cb335e79e38 +0 -0
  457. data/test/dummy/tmp/cache/assets/production/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  458. data/test/dummy/tmp/cache/assets/production/sprockets/d786e75d26229c39c37d842fb4de0479 +0 -0
  459. data/test/dummy/tmp/cache/assets/production/sprockets/da3b6190521b537ef46190c99c630173 +0 -0
  460. data/test/dummy/tmp/cache/assets/production/sprockets/dcf2f012e3f4d3ecc9b1a2f21290fefd +0 -0
  461. data/test/dummy/tmp/cache/assets/production/sprockets/de3b887062709ecbae0f43a1967507b3 +0 -0
  462. data/test/dummy/tmp/cache/assets/production/sprockets/e010156bdbfaae9098512ae86bf0288b +0 -0
  463. data/test/dummy/tmp/cache/assets/production/sprockets/e0e949e3a882294df1ac6efb53555963 +0 -0
  464. data/test/dummy/tmp/cache/assets/production/sprockets/e508a5da5b2a6ba14eaabe1fc9987f1b +0 -0
  465. data/test/dummy/tmp/cache/assets/production/sprockets/f2137fda0185692d9909c6bde77f6ac5 +0 -0
  466. data/test/dummy/tmp/cache/assets/production/sprockets/f5630318facff40bd4c26746561e91a5 +0 -0
  467. data/test/dummy/tmp/cache/assets/production/sprockets/f72f9d88e28ad73485fcc24ef00be1f0 +0 -0
  468. data/test/dummy/tmp/cache/assets/production/sprockets/f7428da6a5bd069f4c521897f2ff0549 +0 -0
  469. data/test/dummy/tmp/cache/assets/production/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  470. data/test/dummy/tmp/cache/assets/production/sprockets/fa7d07347669600716cb3cb894127454 +0 -0
  471. data/test/dummy/tmp/cache/assets/production/sprockets/ffa3b9093369ac4b2758f390b0cafab4 +0 -0
  472. metadata +1097 -0
@@ -0,0 +1,25 @@
1
+ require 'spec_helper'
2
+
3
+ describe RubberRing::SessionsController do
4
+
5
+ it 'should display login page' do
6
+ get :new
7
+ response.should be_success
8
+ end
9
+
10
+ it 'should not login without a passowrd' do
11
+ post :create
12
+ response.code.should == '200' # no password, no login
13
+ end
14
+
15
+ it 'should login with correct password' do
16
+ post :create, :password => RubberRing.admin_password
17
+ response.should redirect_to root_path
18
+ end
19
+
20
+ it 'should log out' do
21
+ get :destroy
22
+ response.should redirect_to root_path
23
+ end
24
+
25
+ end
@@ -0,0 +1,63 @@
1
+ require 'spec_helper'
2
+
3
+ describe RubberRing::CmsHelper do
4
+
5
+ describe 'editable_field' do
6
+ it 'should return editable element' do
7
+ page = RubberRing::Page.new({controller: 'test', action: 'test'})
8
+ page.edit_mode = true
9
+
10
+ helper.editable_field(:div, {key: 'key'}, page){''}
11
+ .should eq '<div contenteditable="true" data-cms="key"></div>'
12
+ helper.editable_field(:div, {key: 'key'}, page){'content'}
13
+ .should eq '<div contenteditable="true" data-cms="key">content</div>'
14
+ end
15
+
16
+ it 'should return non-editable element' do
17
+ page = RubberRing::Page.new({controller: 'test', action: 'test'})
18
+
19
+ helper.editable_field(:div, {key: 'key'}, page){''}
20
+ .should eq '<div></div>'
21
+ helper.editable_field(:div, {key: 'key'}, page){'content'}
22
+ .should eq '<div>content</div>'
23
+ end
24
+ end
25
+
26
+ describe 'title' do
27
+ it 'should return editable span element' do
28
+ page = RubberRing::Page.new({controller: 'test', action: 'test'})
29
+ page.edit_mode = true
30
+
31
+ helper.title(page){''}.should eq '<span contenteditable="true" data-cms="page_title"></span>'
32
+ helper.title(page){'title'}.should eq '<span contenteditable="true" data-cms="page_title">title</span>'
33
+ end
34
+
35
+ it 'should return non-editable span tag' do
36
+ page = RubberRing::Page.new({controller: 'test', action: 'test'})
37
+
38
+ helper.title(page){''}.should eq '<span></span>'
39
+ helper.title(page){'title'}.should eq '<span>title</span>'
40
+ end
41
+ end
42
+
43
+ describe 'editable_image' do
44
+ it 'should return editable image element' do
45
+ page = RubberRing::Page.new({controller: 'test', action: 'test'})
46
+ page.edit_mode = true
47
+
48
+ helper.editable_image({key: 'key', src: '/images/baws.jpg', class: 'class'}, page)
49
+ .should eq '<img class="rubber_ring_image class" data-cms="key" src="/images/baws.jpg" />'
50
+ end
51
+ end
52
+
53
+ describe 'link' do
54
+ it 'should return editable link element' do
55
+ page = RubberRing::Page.new({controller: 'test', action: 'test'})
56
+ page.edit_mode = true
57
+
58
+ helper.editable_link({key: 'link', href: '/test', class: 'class'}, page){'Link'}
59
+ .should eq '<a class="class" contenteditable="true" data-cms="link" href="/test">Link</a>'
60
+ end
61
+ end
62
+
63
+ end
@@ -0,0 +1,2 @@
1
+ <a contenteditable="true" data-cms="link" href="/link">Link</a>
2
+ <a contenteditable="true" data-cms="link" href="/link">Link</a>
@@ -0,0 +1,15 @@
1
+ <li class="alert-saved">
2
+ <div class="alert alert-success">Saved!</div>
3
+ </li>
4
+
5
+ <h1 contenteditable="true" data-cms="header">
6
+
7
+ Test content<p>Paragraph</p>
8
+
9
+ <button class="reset-content"></button>
10
+ </h1>
11
+
12
+ <a contenteditable="true" data-cms="link" href="/link">
13
+ Link
14
+ <button class="reset-content"></button>
15
+ </a>
@@ -0,0 +1,21 @@
1
+ <div class="templates" data-cms="template_key_1">
2
+ <article class="t-article" data-template-index="0" data-template="article">
3
+ <h2 contenteditable="true" data-cms="0_template_key_1_article_title">
4
+ Article Title
5
+ </h2>
6
+ <p contenteditable="true" data-cms="0_template_key_1_article_paragraph">
7
+ Article content
8
+ </p>
9
+ </article>
10
+ <div data-template-index="1" data-template="blog_post">
11
+ I'm just a tiny little blog post.
12
+ </div>
13
+ </div>
14
+
15
+ <div class="templates" data-cms="template_key_2">
16
+ <article class="t-article" data-template-index="0" data-template="article">
17
+ <h2 contenteditable="true" data-cms="0_template_key_2_article_title">
18
+ Article Title
19
+ </h2>
20
+ </article>
21
+ </div>
@@ -0,0 +1,22 @@
1
+ jasmine.getFixtures().fixturesPath = 'base/spec/javascripts/fixtures/';
2
+
3
+ var App = App || {};
4
+ App.controller = "jasmine_test";
5
+ App.action = "jasmine_test";
6
+ // Here you can use real values to see if they land into database, but tests will be slower then
7
+ //App.save_path = "http://localhost:3000/rubber_ring/cms/save";
8
+ App.save_path = "";
9
+ App.save_template_path = "";
10
+ App.remove_path = "";
11
+
12
+ App.save_image_path = "";
13
+ App.save_attachment_path = "";
14
+
15
+ App.add_attachment_path = "";
16
+ App.remove_attachment_path = "";
17
+
18
+ config = {
19
+ action_btns: {
20
+ reset_btn: '<button class="reset-content"></button>'
21
+ }
22
+ };
@@ -0,0 +1,658 @@
1
+ /*!
2
+ Jasmine-jQuery: a set of jQuery helpers for Jasmine tests.
3
+
4
+ Version 1.5.1
5
+
6
+ https://github.com/velesin/jasmine-jquery
7
+
8
+ Copyright (c) 2010-2013 Wojciech Zawistowski, Travis Jeffery
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining
11
+ a copy of this software and associated documentation files (the
12
+ "Software"), to deal in the Software without restriction, including
13
+ without limitation the rights to use, copy, modify, merge, publish,
14
+ distribute, sublicense, and/or sell copies of the Software, and to
15
+ permit persons to whom the Software is furnished to do so, subject to
16
+ the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be
19
+ included in all copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
+ */
29
+ var readFixtures = function() {
30
+ return jasmine.getFixtures().proxyCallTo_('read', arguments)
31
+ }
32
+
33
+ var preloadFixtures = function() {
34
+ jasmine.getFixtures().proxyCallTo_('preload', arguments)
35
+ }
36
+
37
+ var loadFixtures = function() {
38
+ jasmine.getFixtures().proxyCallTo_('load', arguments)
39
+ }
40
+
41
+ var appendLoadFixtures = function() {
42
+ jasmine.getFixtures().proxyCallTo_('appendLoad', arguments)
43
+ }
44
+
45
+ var setFixtures = function(html) {
46
+ jasmine.getFixtures().proxyCallTo_('set', arguments)
47
+ }
48
+
49
+ var appendSetFixtures = function() {
50
+ jasmine.getFixtures().proxyCallTo_('appendSet', arguments)
51
+ }
52
+
53
+ var sandbox = function(attributes) {
54
+ return jasmine.getFixtures().sandbox(attributes)
55
+ }
56
+
57
+ var spyOnEvent = function(selector, eventName) {
58
+ return jasmine.JQuery.events.spyOn(selector, eventName)
59
+ }
60
+
61
+ var preloadStyleFixtures = function() {
62
+ jasmine.getStyleFixtures().proxyCallTo_('preload', arguments)
63
+ }
64
+
65
+ var loadStyleFixtures = function() {
66
+ jasmine.getStyleFixtures().proxyCallTo_('load', arguments)
67
+ }
68
+
69
+ var appendLoadStyleFixtures = function() {
70
+ jasmine.getStyleFixtures().proxyCallTo_('appendLoad', arguments)
71
+ }
72
+
73
+ var setStyleFixtures = function(html) {
74
+ jasmine.getStyleFixtures().proxyCallTo_('set', arguments)
75
+ }
76
+
77
+ var appendSetStyleFixtures = function(html) {
78
+ jasmine.getStyleFixtures().proxyCallTo_('appendSet', arguments)
79
+ }
80
+
81
+ var loadJSONFixtures = function() {
82
+ return jasmine.getJSONFixtures().proxyCallTo_('load', arguments)
83
+ }
84
+
85
+ var getJSONFixture = function(url) {
86
+ return jasmine.getJSONFixtures().proxyCallTo_('read', arguments)[url]
87
+ }
88
+
89
+ jasmine.spiedEventsKey = function (selector, eventName) {
90
+ return [$(selector).selector, eventName].toString()
91
+ }
92
+
93
+ jasmine.getFixtures = function() {
94
+ return jasmine.currentFixtures_ = jasmine.currentFixtures_ || new jasmine.Fixtures()
95
+ }
96
+
97
+ jasmine.getStyleFixtures = function() {
98
+ return jasmine.currentStyleFixtures_ = jasmine.currentStyleFixtures_ || new jasmine.StyleFixtures()
99
+ }
100
+
101
+ jasmine.Fixtures = function() {
102
+ this.containerId = 'jasmine-fixtures'
103
+ this.fixturesCache_ = {}
104
+ this.fixturesPath = 'spec/javascripts/fixtures'
105
+ }
106
+
107
+ jasmine.Fixtures.prototype.set = function(html) {
108
+ this.cleanUp()
109
+ this.createContainer_(html)
110
+ }
111
+
112
+ jasmine.Fixtures.prototype.appendSet= function(html) {
113
+ this.addToContainer_(html)
114
+ }
115
+
116
+ jasmine.Fixtures.prototype.preload = function() {
117
+ this.read.apply(this, arguments)
118
+ }
119
+
120
+ jasmine.Fixtures.prototype.load = function() {
121
+ this.cleanUp()
122
+ this.createContainer_(this.read.apply(this, arguments))
123
+ }
124
+
125
+ jasmine.Fixtures.prototype.appendLoad = function() {
126
+ this.addToContainer_(this.read.apply(this, arguments))
127
+ }
128
+
129
+ jasmine.Fixtures.prototype.read = function() {
130
+ var htmlChunks = []
131
+
132
+ var fixtureUrls = arguments
133
+ for(var urlCount = fixtureUrls.length, urlIndex = 0; urlIndex < urlCount; urlIndex++) {
134
+ htmlChunks.push(this.getFixtureHtml_(fixtureUrls[urlIndex]))
135
+ }
136
+
137
+ return htmlChunks.join('')
138
+ }
139
+
140
+ jasmine.Fixtures.prototype.clearCache = function() {
141
+ this.fixturesCache_ = {}
142
+ }
143
+
144
+ jasmine.Fixtures.prototype.cleanUp = function() {
145
+ $('#' + this.containerId).remove()
146
+ }
147
+
148
+ jasmine.Fixtures.prototype.sandbox = function(attributes) {
149
+ var attributesToSet = attributes || {}
150
+ return $('<div id="sandbox" />').attr(attributesToSet)
151
+ }
152
+
153
+ jasmine.Fixtures.prototype.createContainer_ = function(html) {
154
+ var container
155
+ if(html instanceof $) {
156
+ container = $('<div id="' + this.containerId + '" />')
157
+ container.html(html)
158
+ } else {
159
+ container = '<div id="' + this.containerId + '">' + html + '</div>'
160
+ }
161
+ $(document.body).append(container)
162
+ }
163
+
164
+ jasmine.Fixtures.prototype.addToContainer_ = function(html){
165
+ var container = $(document.body).find('#'+this.containerId).append(html)
166
+ if(!container.length){
167
+ this.createContainer_(html)
168
+ }
169
+ }
170
+
171
+ jasmine.Fixtures.prototype.getFixtureHtml_ = function(url) {
172
+ if (typeof this.fixturesCache_[url] === 'undefined') {
173
+ this.loadFixtureIntoCache_(url)
174
+ }
175
+ return this.fixturesCache_[url]
176
+ }
177
+
178
+ jasmine.Fixtures.prototype.loadFixtureIntoCache_ = function(relativeUrl) {
179
+ var url = this.makeFixtureUrl_(relativeUrl)
180
+ var request = $.ajax({
181
+ type: "GET",
182
+ url: url + "?" + new Date().getTime(),
183
+ async: false
184
+ })
185
+ this.fixturesCache_[relativeUrl] = request.responseText
186
+ }
187
+
188
+ jasmine.Fixtures.prototype.makeFixtureUrl_ = function(relativeUrl){
189
+ return this.fixturesPath.match('/$') ? this.fixturesPath + relativeUrl : this.fixturesPath + '/' + relativeUrl
190
+ }
191
+
192
+ jasmine.Fixtures.prototype.proxyCallTo_ = function(methodName, passedArguments) {
193
+ return this[methodName].apply(this, passedArguments)
194
+ }
195
+
196
+
197
+ jasmine.StyleFixtures = function() {
198
+ this.fixturesCache_ = {}
199
+ this.fixturesNodes_ = []
200
+ this.fixturesPath = 'spec/javascripts/fixtures'
201
+ }
202
+
203
+ jasmine.StyleFixtures.prototype.set = function(css) {
204
+ this.cleanUp()
205
+ this.createStyle_(css)
206
+ }
207
+
208
+ jasmine.StyleFixtures.prototype.appendSet = function(css) {
209
+ this.createStyle_(css)
210
+ }
211
+
212
+ jasmine.StyleFixtures.prototype.preload = function() {
213
+ this.read_.apply(this, arguments)
214
+ }
215
+
216
+ jasmine.StyleFixtures.prototype.load = function() {
217
+ this.cleanUp()
218
+ this.createStyle_(this.read_.apply(this, arguments))
219
+ }
220
+
221
+ jasmine.StyleFixtures.prototype.appendLoad = function() {
222
+ this.createStyle_(this.read_.apply(this, arguments))
223
+ }
224
+
225
+ jasmine.StyleFixtures.prototype.cleanUp = function() {
226
+ while(this.fixturesNodes_.length) {
227
+ this.fixturesNodes_.pop().remove()
228
+ }
229
+ }
230
+
231
+ jasmine.StyleFixtures.prototype.createStyle_ = function(html) {
232
+ var styleText = $('<div></div>').html(html).text(),
233
+ style = $('<style>' + styleText + '</style>')
234
+
235
+ this.fixturesNodes_.push(style)
236
+
237
+ $('head').append(style)
238
+ }
239
+
240
+ jasmine.StyleFixtures.prototype.clearCache = jasmine.Fixtures.prototype.clearCache
241
+
242
+ jasmine.StyleFixtures.prototype.read_ = jasmine.Fixtures.prototype.read
243
+
244
+ jasmine.StyleFixtures.prototype.getFixtureHtml_ = jasmine.Fixtures.prototype.getFixtureHtml_
245
+
246
+ jasmine.StyleFixtures.prototype.loadFixtureIntoCache_ = jasmine.Fixtures.prototype.loadFixtureIntoCache_
247
+
248
+ jasmine.StyleFixtures.prototype.makeFixtureUrl_ = jasmine.Fixtures.prototype.makeFixtureUrl_
249
+
250
+ jasmine.StyleFixtures.prototype.proxyCallTo_ = jasmine.Fixtures.prototype.proxyCallTo_
251
+
252
+ jasmine.getJSONFixtures = function() {
253
+ return jasmine.currentJSONFixtures_ = jasmine.currentJSONFixtures_ || new jasmine.JSONFixtures()
254
+ }
255
+
256
+ jasmine.JSONFixtures = function() {
257
+ this.fixturesCache_ = {}
258
+ this.fixturesPath = 'spec/javascripts/fixtures/json'
259
+ }
260
+
261
+ jasmine.JSONFixtures.prototype.load = function() {
262
+ this.read.apply(this, arguments)
263
+ return this.fixturesCache_
264
+ }
265
+
266
+ jasmine.JSONFixtures.prototype.read = function() {
267
+ var fixtureUrls = arguments
268
+ for(var urlCount = fixtureUrls.length, urlIndex = 0; urlIndex < urlCount; urlIndex++) {
269
+ this.getFixtureData_(fixtureUrls[urlIndex])
270
+ }
271
+ return this.fixturesCache_
272
+ }
273
+
274
+ jasmine.JSONFixtures.prototype.clearCache = function() {
275
+ this.fixturesCache_ = {}
276
+ }
277
+
278
+ jasmine.JSONFixtures.prototype.getFixtureData_ = function(url) {
279
+ this.loadFixtureIntoCache_(url)
280
+ return this.fixturesCache_[url]
281
+ }
282
+
283
+ jasmine.JSONFixtures.prototype.loadFixtureIntoCache_ = function(relativeUrl) {
284
+ var self = this
285
+ var url = this.fixturesPath.match('/$') ? this.fixturesPath + relativeUrl : this.fixturesPath + '/' + relativeUrl
286
+ $.ajax({
287
+ async: false, // must be synchronous to guarantee that no tests are run before fixture is loaded
288
+ cache: false,
289
+ dataType: 'json',
290
+ url: url,
291
+ success: function(data) {
292
+ self.fixturesCache_[relativeUrl] = data
293
+ },
294
+ error: function(jqXHR, status, errorThrown) {
295
+ throw Error('JSONFixture could not be loaded: ' + url + ' (status: ' + status + ', message: ' + errorThrown.message + ')')
296
+ }
297
+ })
298
+ }
299
+
300
+ jasmine.JSONFixtures.prototype.proxyCallTo_ = function(methodName, passedArguments) {
301
+ return this[methodName].apply(this, passedArguments)
302
+ }
303
+
304
+ jasmine.JQuery = function() {}
305
+
306
+ jasmine.JQuery.browserTagCaseIndependentHtml = function(html) {
307
+ return $('<div/>').append(html).html()
308
+ }
309
+
310
+ jasmine.JQuery.elementToString = function(element) {
311
+ var domEl = $(element).get(0)
312
+ if (domEl == undefined || domEl.cloneNode)
313
+ return $('<div />').append($(element).clone()).html()
314
+ else
315
+ return element.toString()
316
+ }
317
+
318
+ jasmine.JQuery.matchersClass = {}
319
+
320
+ !function(namespace) {
321
+ var data = {
322
+ spiedEvents: {},
323
+ handlers: []
324
+ }
325
+
326
+ namespace.events = {
327
+ spyOn: function(selector, eventName) {
328
+ var handler = function(e) {
329
+ data.spiedEvents[jasmine.spiedEventsKey(selector, eventName)] = jasmine.util.argsToArray(arguments)
330
+ }
331
+ $(selector).on(eventName, handler)
332
+ data.handlers.push(handler)
333
+ return {
334
+ selector: selector,
335
+ eventName: eventName,
336
+ handler: handler,
337
+ reset: function(){
338
+ delete data.spiedEvents[jasmine.spiedEventsKey(selector, eventName)]
339
+ }
340
+ }
341
+ },
342
+
343
+ args: function(selector, eventName) {
344
+ var actualArgs = data.spiedEvents[jasmine.spiedEventsKey(selector, eventName)];
345
+
346
+ if (!actualArgs) {
347
+ throw "There is no spy for " + eventName + " on " + selector.toString() + ". Make sure to create a spy using spyOnEvent.";
348
+ }
349
+
350
+ return actualArgs;
351
+ },
352
+
353
+ wasTriggered: function(selector, eventName) {
354
+ return !!(data.spiedEvents[jasmine.spiedEventsKey(selector, eventName)])
355
+ },
356
+
357
+ wasTriggeredWith: function(selector, eventName, expectedArgs, env) {
358
+ var actualArgs = jasmine.JQuery.events.args(selector, eventName).slice(1);
359
+ if (Object.prototype.toString.call(expectedArgs) !== '[object Array]') {
360
+ actualArgs = actualArgs[0];
361
+ }
362
+ return env.equals_(expectedArgs, actualArgs);
363
+ },
364
+
365
+ wasPrevented: function(selector, eventName) {
366
+ var args = data.spiedEvents[jasmine.spiedEventsKey(selector, eventName)],
367
+ e = args ? args[0] : undefined;
368
+ return e && e.isDefaultPrevented()
369
+ },
370
+
371
+ wasStopped: function(selector, eventName) {
372
+ var e;
373
+ return (e = data.spiedEvents[jasmine.spiedEventsKey(selector, eventName)]) && e.isPropagationStopped()
374
+ },
375
+
376
+ cleanUp: function() {
377
+ data.spiedEvents = {}
378
+ data.handlers = []
379
+ }
380
+ }
381
+ }(jasmine.JQuery)
382
+
383
+ !function(){
384
+ var jQueryMatchers = {
385
+ toHaveClass: function(className) {
386
+ return this.actual.hasClass(className)
387
+ },
388
+
389
+ toHaveCss: function(css){
390
+ for (var prop in css){
391
+ if (this.actual.css(prop) !== css[prop]) return false
392
+ }
393
+ return true
394
+ },
395
+
396
+ toBeVisible: function() {
397
+ return this.actual.is(':visible')
398
+ },
399
+
400
+ toBeHidden: function() {
401
+ return this.actual.is(':hidden')
402
+ },
403
+
404
+ toBeSelected: function() {
405
+ return this.actual.is(':selected')
406
+ },
407
+
408
+ toBeChecked: function() {
409
+ return this.actual.is(':checked')
410
+ },
411
+
412
+ toBeEmpty: function() {
413
+ return this.actual.is(':empty')
414
+ },
415
+
416
+ toExist: function() {
417
+ return $(document).find(this.actual).length
418
+ },
419
+
420
+ toHaveLength: function(length) {
421
+ return this.actual.length === length
422
+ },
423
+
424
+ toHaveAttr: function(attributeName, expectedAttributeValue) {
425
+ return hasProperty(this.actual.attr(attributeName), expectedAttributeValue)
426
+ },
427
+
428
+ toHaveProp: function(propertyName, expectedPropertyValue) {
429
+ return hasProperty(this.actual.prop(propertyName), expectedPropertyValue)
430
+ },
431
+
432
+ toHaveId: function(id) {
433
+ return this.actual.attr('id') == id
434
+ },
435
+
436
+ toHaveHtml: function(html) {
437
+ return this.actual.html() == jasmine.JQuery.browserTagCaseIndependentHtml(html)
438
+ },
439
+
440
+ toContainHtml: function(html){
441
+ var actualHtml = this.actual.html()
442
+ var expectedHtml = jasmine.JQuery.browserTagCaseIndependentHtml(html)
443
+ return (actualHtml.indexOf(expectedHtml) >= 0)
444
+ },
445
+
446
+ toHaveText: function(text) {
447
+ var trimmedText = $.trim(this.actual.text())
448
+ if (text && $.isFunction(text.test)) {
449
+ return text.test(trimmedText)
450
+ } else {
451
+ return trimmedText == text
452
+ }
453
+ },
454
+
455
+ toContainText: function(text) {
456
+ var trimmedText = $.trim(this.actual.text())
457
+ if (text && $.isFunction(text.test)) {
458
+ return text.test(trimmedText)
459
+ } else {
460
+ return trimmedText.indexOf(text) != -1;
461
+ }
462
+ },
463
+
464
+ toHaveValue: function(value) {
465
+ return this.actual.val() === value
466
+ },
467
+
468
+ toHaveData: function(key, expectedValue) {
469
+ return hasProperty(this.actual.data(key), expectedValue)
470
+ },
471
+
472
+ toBe: function(selector) {
473
+ return this.actual.is(selector)
474
+ },
475
+
476
+ toContain: function(selector) {
477
+ return this.actual.find(selector).length
478
+ },
479
+
480
+ toBeDisabled: function(selector){
481
+ return this.actual.is(':disabled')
482
+ },
483
+
484
+ toBeFocused: function(selector) {
485
+ return this.actual[0] === this.actual[0].ownerDocument.activeElement
486
+ },
487
+
488
+ toHandle: function(event) {
489
+
490
+ var events = $._data(this.actual.get(0), "events")
491
+
492
+ if(!events || !event || typeof event !== "string") {
493
+ return false
494
+ }
495
+
496
+ var namespaces = event.split(".")
497
+ var eventType = namespaces.shift()
498
+ var sortedNamespaces = namespaces.slice(0).sort()
499
+ var namespaceRegExp = new RegExp("(^|\\.)" + sortedNamespaces.join("\\.(?:.*\\.)?") + "(\\.|$)")
500
+
501
+ if(events[eventType] && namespaces.length) {
502
+ for(var i = 0; i < events[eventType].length; i++) {
503
+ var namespace = events[eventType][i].namespace
504
+ if(namespaceRegExp.test(namespace)) {
505
+ return true
506
+ }
507
+ }
508
+ } else {
509
+ return events[eventType] && events[eventType].length > 0
510
+ }
511
+ },
512
+
513
+ // tests the existence of a specific event binding + handler
514
+ toHandleWith: function(eventName, eventHandler) {
515
+ var stack = $._data(this.actual.get(0), "events")[eventName]
516
+ for (var i = 0; i < stack.length; i++) {
517
+ if (stack[i].handler == eventHandler) return true
518
+ }
519
+ return false
520
+ }
521
+ }
522
+
523
+ var hasProperty = function(actualValue, expectedValue) {
524
+ if (expectedValue === undefined) return actualValue !== undefined
525
+ return actualValue == expectedValue
526
+ }
527
+
528
+ var bindMatcher = function(methodName) {
529
+ var builtInMatcher = jasmine.Matchers.prototype[methodName]
530
+
531
+ jasmine.JQuery.matchersClass[methodName] = function() {
532
+ if (this.actual
533
+ && (this.actual instanceof $
534
+ || jasmine.isDomNode(this.actual))) {
535
+ this.actual = $(this.actual)
536
+ var result = jQueryMatchers[methodName].apply(this, arguments)
537
+ var element
538
+ if (this.actual.get && (element = this.actual.get()[0]) && !$.isWindow(element) && element.tagName !== "HTML")
539
+ this.actual = jasmine.JQuery.elementToString(this.actual)
540
+ return result
541
+ }
542
+
543
+ if (builtInMatcher) {
544
+ return builtInMatcher.apply(this, arguments)
545
+ }
546
+
547
+ return false
548
+ }
549
+ }
550
+
551
+ for(var methodName in jQueryMatchers) {
552
+ bindMatcher(methodName)
553
+ }
554
+ }()
555
+
556
+ beforeEach(function() {
557
+ this.addMatchers(jasmine.JQuery.matchersClass)
558
+ this.addMatchers({
559
+ toHaveBeenTriggeredOn: function(selector) {
560
+ this.message = function() {
561
+ return [
562
+ "Expected event " + this.actual + " to have been triggered on " + selector,
563
+ "Expected event " + this.actual + " not to have been triggered on " + selector
564
+ ]
565
+ }
566
+ return jasmine.JQuery.events.wasTriggered(selector, this.actual)
567
+ }
568
+ })
569
+ this.addMatchers({
570
+ toHaveBeenTriggered: function(){
571
+ var eventName = this.actual.eventName,
572
+ selector = this.actual.selector
573
+ this.message = function() {
574
+ return [
575
+ "Expected event " + eventName + " to have been triggered on " + selector,
576
+ "Expected event " + eventName + " not to have been triggered on " + selector
577
+ ]
578
+ }
579
+ return jasmine.JQuery.events.wasTriggered(selector, eventName)
580
+ }
581
+ })
582
+ this.addMatchers({
583
+ toHaveBeenTriggeredOnAndWith: function() {
584
+ var selector = arguments[0],
585
+ expectedArgs = arguments[1],
586
+ wasTriggered = jasmine.JQuery.events.wasTriggered(selector, this.actual);
587
+ this.message = function() {
588
+ if (wasTriggered) {
589
+ var actualArgs = jasmine.JQuery.events.args(selector, this.actual, expectedArgs)[1];
590
+ return [
591
+ "Expected event " + this.actual + " to have been triggered with " + jasmine.pp(expectedArgs) + " but it was triggered with " + jasmine.pp(actualArgs),
592
+ "Expected event " + this.actual + " not to have been triggered with " + jasmine.pp(expectedArgs) + " but it was triggered with " + jasmine.pp(actualArgs)
593
+ ]
594
+ } else {
595
+ return [
596
+ "Expected event " + this.actual + " to have been triggered on " + selector,
597
+ "Expected event " + this.actual + " not to have been triggered on " + selector
598
+ ]
599
+ }
600
+ }
601
+ return wasTriggered && jasmine.JQuery.events.wasTriggeredWith(selector, this.actual, expectedArgs, this.env);
602
+ }
603
+ })
604
+ this.addMatchers({
605
+ toHaveBeenPreventedOn: function(selector) {
606
+ this.message = function() {
607
+ return [
608
+ "Expected event " + this.actual + " to have been prevented on " + selector,
609
+ "Expected event " + this.actual + " not to have been prevented on " + selector
610
+ ]
611
+ }
612
+ return jasmine.JQuery.events.wasPrevented(selector, this.actual)
613
+ }
614
+ })
615
+ this.addMatchers({
616
+ toHaveBeenPrevented: function() {
617
+ var eventName = this.actual.eventName,
618
+ selector = this.actual.selector
619
+ this.message = function() {
620
+ return [
621
+ "Expected event " + eventName + " to have been prevented on " + selector,
622
+ "Expected event " + eventName + " not to have been prevented on " + selector
623
+ ]
624
+ }
625
+ return jasmine.JQuery.events.wasPrevented(selector, eventName)
626
+ }
627
+ })
628
+ this.addMatchers({
629
+ toHaveBeenStoppedOn: function(selector) {
630
+ this.message = function() {
631
+ return [
632
+ "Expected event " + this.actual + " to have been stopped on " + selector,
633
+ "Expected event " + this.actual + " not to have been stopped on " + selector
634
+ ]
635
+ }
636
+ return jasmine.JQuery.events.wasStopped(selector, this.actual)
637
+ }
638
+ })
639
+ this.addMatchers({
640
+ toHaveBeenStopped: function() {
641
+ var eventName = this.actual.eventName,
642
+ selector = this.actual.selector
643
+ this.message = function() {
644
+ return [
645
+ "Expected event " + eventName + " to have been stopped on " + selector,
646
+ "Expected event " + eventName + " not to have been stopped on " + selector
647
+ ]
648
+ }
649
+ return jasmine.JQuery.events.wasStopped(selector, eventName)
650
+ }
651
+ })
652
+ })
653
+
654
+ afterEach(function() {
655
+ jasmine.getFixtures().cleanUp()
656
+ jasmine.getStyleFixtures().cleanUp()
657
+ jasmine.JQuery.events.cleanUp()
658
+ })