wagn 1.14.9 → 1.15.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1060) hide show
  1. checksums.yaml +4 -4
  2. data/features/conflict.feature +4 -2
  3. data/features/follow.feature +21 -20
  4. data/features/notifications.feature +16 -17
  5. data/features/step_definitions/email_steps.rb +9 -5
  6. data/features/step_definitions/wagn_steps.rb +25 -9
  7. data/features/support/scopes.rb +4 -1
  8. data/features/support/wagn_env.rb +1 -1
  9. data/features/update_includers.feature +6 -6
  10. data/lib/decko/engine.rb +58 -0
  11. data/lib/wagn.rb +0 -17
  12. data/lib/wagn/all.rb +0 -13
  13. data/lib/wagn/application.rb +37 -75
  14. data/lib/wagn/commands.rb +44 -26
  15. data/lib/wagn/config/environments/development.rb +9 -3
  16. data/lib/wagn/config/environments/profile.rb +5 -2
  17. data/lib/wagn/config/initializers/session_store.rb +1 -1
  18. data/lib/wagn/exceptions.rb +1 -6
  19. data/lib/wagn/generators/wagn/templates/Gemfile +15 -12
  20. data/lib/wagn/generators/wagn/templates/config.ru +6 -0
  21. data/lib/wagn/generators/wagn/templates/config/application.rb +12 -11
  22. data/lib/wagn/generators/wagn/templates/config/cucumber.yml +1 -1
  23. data/lib/wagn/generators/wagn/templates/config/databases/mysql.yml +19 -11
  24. data/lib/wagn/generators/wagn/templates/config/routes.erb +10 -0
  25. data/lib/wagn/generators/wagn/templates/spec/javascripts/support/deck_jasmine.yml +1 -1
  26. data/lib/wagn/generators/wagn/templates/spec/javascripts/support/wagn_jasmine.yml +4 -4
  27. data/lib/wagn/generators/wagn/wagn_generator.rb +23 -22
  28. data/lib/wagn/mods_spec_helper.rb +8 -7
  29. data/lib/wagn/simplecov_helper.rb +5 -5
  30. data/lib/wagn/tasks/db.rake +2 -2
  31. data/lib/wagn/tasks/test.rake +4 -2
  32. data/lib/wagn/tasks/wagn.rake +117 -69
  33. data/rails/application-routes.rb +6 -0
  34. data/{public → rails}/assets/ace/ext-searchbox.js +0 -0
  35. data/{public → rails}/assets/ace/mode-coffee.js +0 -0
  36. data/{public → rails}/assets/ace/mode-css.js +0 -0
  37. data/{public → rails}/assets/ace/mode-html.js +0 -0
  38. data/{public → rails}/assets/ace/mode-javascript.js +0 -0
  39. data/{public → rails}/assets/ace/mode-json.js +0 -0
  40. data/{public → rails}/assets/ace/mode-scss.js +0 -0
  41. data/{public → rails}/assets/ace/theme-github.js +0 -0
  42. data/{public → rails}/assets/ace/theme-textmate.js +0 -0
  43. data/{public → rails}/assets/ace/worker-coffee.js +0 -0
  44. data/{public → rails}/assets/ace/worker-css.js +0 -0
  45. data/{public → rails}/assets/ace/worker-html.js +0 -0
  46. data/{public → rails}/assets/ace/worker-javascript.js +0 -0
  47. data/{public → rails}/assets/ace/worker-json.js +0 -0
  48. data/{public → rails}/assets/body-bg-660b752b44b87594071f3d0851ac5360.png +0 -0
  49. data/{public → rails}/assets/body-bg-d031f29b6ba7399a6862382c3552f44c.bmp +0 -0
  50. data/{public → rails}/assets/body-bg.bmp +0 -0
  51. data/{public → rails}/assets/body-bg.png +0 -0
  52. data/{public → rails}/assets/external_link-b15ab5051b4ec6f32892ed80019405b5.png +0 -0
  53. data/{public → rails}/assets/external_link.png +0 -0
  54. data/rails/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  55. data/rails/assets/fonts/glyphicons-halflings-regular.svg +288 -0
  56. data/rails/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  57. data/rails/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  58. data/rails/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  59. data/{public → rails}/assets/jasmine/404.html +0 -0
  60. data/{public → rails}/assets/jasmine/500.html +0 -0
  61. data/{public → rails}/assets/jasmine/card_form.html +0 -0
  62. data/{public → rails}/assets/jquery-mobile/ajax-loader-d2b731d3e844ea99b7e7cbf7867f11e9.gif +0 -0
  63. data/{public → rails}/assets/jquery-mobile/ajax-loader.gif +0 -0
  64. data/{public → rails}/assets/jquery-mobile/icons-png/action-black-cbdf206f5fcd70925baa44543a4daa00.png +0 -0
  65. data/{public → rails}/assets/jquery-mobile/icons-png/action-black.png +0 -0
  66. data/{public → rails}/assets/jquery-mobile/icons-png/action-white-d84f0b6801d648581a4e11929f5a2d32.png +0 -0
  67. data/{public → rails}/assets/jquery-mobile/icons-png/action-white.png +0 -0
  68. data/{public → rails}/assets/jquery-mobile/icons-png/alert-black-59ac7785761e066e1f2ea252de9b0e21.png +0 -0
  69. data/{public → rails}/assets/jquery-mobile/icons-png/alert-black.png +0 -0
  70. data/{public → rails}/assets/jquery-mobile/icons-png/alert-white-182c69a7ce9148899f4f190148424120.png +0 -0
  71. data/{public → rails}/assets/jquery-mobile/icons-png/alert-white.png +0 -0
  72. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-black-21860d405538900f6b795516df64a9d4.png +0 -0
  73. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-black.png +0 -0
  74. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-l-black-165afd2c432e27080fec5396c3d80473.png +0 -0
  75. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-l-black.png +0 -0
  76. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-l-white-6805a8d98143bf7b7a6a4e247bf012ab.png +0 -0
  77. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-l-white.png +0 -0
  78. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-r-black-fa7122e338a54119ab23bccbc506cfd8.png +0 -0
  79. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-r-black.png +0 -0
  80. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-r-white-216684b9bdb31f38a531e117aa954f3a.png +0 -0
  81. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-r-white.png +0 -0
  82. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-white-9580e3163441b122078518da2434ca17.png +0 -0
  83. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-white.png +0 -0
  84. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-l-black-084aec255becaf2fb316bfefa279a947.png +0 -0
  85. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-l-black.png +0 -0
  86. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-l-white-539e8b951594754da95bd2aa435f454b.png +0 -0
  87. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-l-white.png +0 -0
  88. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-r-black-7eaef732d6e7ac1c9b4ca7a691882aa7.png +0 -0
  89. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-r-black.png +0 -0
  90. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-r-white-ccb86d75bba053287e324429888a1654.png +0 -0
  91. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-r-white.png +0 -0
  92. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-black-0a58aa2208f8e48713d73fb9578ee4f9.png +0 -0
  93. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-black.png +0 -0
  94. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-l-black-2ff102393d9aad184f9e416295acd33e.png +0 -0
  95. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-l-black.png +0 -0
  96. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-l-white-dbf5a3a640d401e8549a904119b8de7a.png +0 -0
  97. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-l-white.png +0 -0
  98. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-r-black-ec45c6f55a7c5d324b7798c668287023.png +0 -0
  99. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-r-black.png +0 -0
  100. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-r-white-f73692b173855dbb37cab8ede059c3fc.png +0 -0
  101. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-r-white.png +0 -0
  102. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-white-bd0f3e8031d8240f3aacf669ab80df78.png +0 -0
  103. data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-white.png +0 -0
  104. data/{public → rails}/assets/jquery-mobile/icons-png/audio-black-7a7cbfa21ae335c963973a7cd3b17ffe.png +0 -0
  105. data/{public → rails}/assets/jquery-mobile/icons-png/audio-black.png +0 -0
  106. data/{public → rails}/assets/jquery-mobile/icons-png/audio-white-093dc38ea1777aca99344c6d2ebfcc8f.png +0 -0
  107. data/{public → rails}/assets/jquery-mobile/icons-png/audio-white.png +0 -0
  108. data/{public → rails}/assets/jquery-mobile/icons-png/back-black-1bc687d2f194acdf79d2728fcdd2a50f.png +0 -0
  109. data/{public → rails}/assets/jquery-mobile/icons-png/back-black.png +0 -0
  110. data/{public → rails}/assets/jquery-mobile/icons-png/back-white-f4b428a3127c9ecb6e6021c17cd5b588.png +0 -0
  111. data/{public → rails}/assets/jquery-mobile/icons-png/back-white.png +0 -0
  112. data/{public → rails}/assets/jquery-mobile/icons-png/bars-black-fe901336c248a7bba95265784f27b709.png +0 -0
  113. data/{public → rails}/assets/jquery-mobile/icons-png/bars-black.png +0 -0
  114. data/{public → rails}/assets/jquery-mobile/icons-png/bars-white-c983e57c6abd28719a312521d1f3370b.png +0 -0
  115. data/{public → rails}/assets/jquery-mobile/icons-png/bars-white.png +0 -0
  116. data/{public → rails}/assets/jquery-mobile/icons-png/bullets-black-c1de1001de576e283b57da525054a4b2.png +0 -0
  117. data/{public → rails}/assets/jquery-mobile/icons-png/bullets-black.png +0 -0
  118. data/{public → rails}/assets/jquery-mobile/icons-png/bullets-white-4f2871e980101e2bd0d661aac55cd623.png +0 -0
  119. data/{public → rails}/assets/jquery-mobile/icons-png/bullets-white.png +0 -0
  120. data/{public → rails}/assets/jquery-mobile/icons-png/calendar-black-67e5eabe68665b45263c10fd17ad17ba.png +0 -0
  121. data/{public → rails}/assets/jquery-mobile/icons-png/calendar-black.png +0 -0
  122. data/{public → rails}/assets/jquery-mobile/icons-png/calendar-white-e648512a4f976466c0df237484fcc9c4.png +0 -0
  123. data/{public → rails}/assets/jquery-mobile/icons-png/calendar-white.png +0 -0
  124. data/{public → rails}/assets/jquery-mobile/icons-png/camera-black-c5c8b5e08b68d612387428f82bd8e7b9.png +0 -0
  125. data/{public → rails}/assets/jquery-mobile/icons-png/camera-black.png +0 -0
  126. data/{public → rails}/assets/jquery-mobile/icons-png/camera-white-147393e77b3631d9ad5220cd23c54863.png +0 -0
  127. data/{public → rails}/assets/jquery-mobile/icons-png/camera-white.png +0 -0
  128. data/{public → rails}/assets/jquery-mobile/icons-png/carat-d-black-291da5f63efc80c062765bca7d939dc9.png +0 -0
  129. data/{public → rails}/assets/jquery-mobile/icons-png/carat-d-black.png +0 -0
  130. data/{public → rails}/assets/jquery-mobile/icons-png/carat-d-white-891a11602af9a5ffecb4036c42671b32.png +0 -0
  131. data/{public → rails}/assets/jquery-mobile/icons-png/carat-d-white.png +0 -0
  132. data/{public → rails}/assets/jquery-mobile/icons-png/carat-l-black-8d842b168e8722758ebb9e0e20367dc2.png +0 -0
  133. data/{public → rails}/assets/jquery-mobile/icons-png/carat-l-black.png +0 -0
  134. data/{public → rails}/assets/jquery-mobile/icons-png/carat-l-white-3c757452f0f441b544023f5ff8087f25.png +0 -0
  135. data/{public → rails}/assets/jquery-mobile/icons-png/carat-l-white.png +0 -0
  136. data/{public → rails}/assets/jquery-mobile/icons-png/carat-r-black-2ded93b56fcb5b25c7a5b3776e5e65d6.png +0 -0
  137. data/{public → rails}/assets/jquery-mobile/icons-png/carat-r-black.png +0 -0
  138. data/{public → rails}/assets/jquery-mobile/icons-png/carat-r-white-b176f8f6a2b1cc081ffd10c5b1fa596f.png +0 -0
  139. data/{public → rails}/assets/jquery-mobile/icons-png/carat-r-white.png +0 -0
  140. data/{public → rails}/assets/jquery-mobile/icons-png/carat-u-black-23e097594ad948f851e4db090aa4136d.png +0 -0
  141. data/{public → rails}/assets/jquery-mobile/icons-png/carat-u-black.png +0 -0
  142. data/{public → rails}/assets/jquery-mobile/icons-png/carat-u-white-c056d77e74680adf24684602bf581e90.png +0 -0
  143. data/{public → rails}/assets/jquery-mobile/icons-png/carat-u-white.png +0 -0
  144. data/{public → rails}/assets/jquery-mobile/icons-png/check-black-c30e2bdff08c3250d5d9a5016c3a373c.png +0 -0
  145. data/{public → rails}/assets/jquery-mobile/icons-png/check-black.png +0 -0
  146. data/{public → rails}/assets/jquery-mobile/icons-png/check-white-6bef746213ce5d01ec057a2e57eba03e.png +0 -0
  147. data/{public → rails}/assets/jquery-mobile/icons-png/check-white.png +0 -0
  148. data/{public → rails}/assets/jquery-mobile/icons-png/clock-black-426a75bcd9a7fcb19767bdbac8d81e93.png +0 -0
  149. data/{public → rails}/assets/jquery-mobile/icons-png/clock-black.png +0 -0
  150. data/{public → rails}/assets/jquery-mobile/icons-png/clock-white-eb0b22357bf8f45b9b28b2998f6683ac.png +0 -0
  151. data/{public → rails}/assets/jquery-mobile/icons-png/clock-white.png +0 -0
  152. data/{public → rails}/assets/jquery-mobile/icons-png/cloud-black-dd4382e46e8039c6eb410c90b34a7a7d.png +0 -0
  153. data/{public → rails}/assets/jquery-mobile/icons-png/cloud-black.png +0 -0
  154. data/{public → rails}/assets/jquery-mobile/icons-png/cloud-white-b88a47dc043a97a4eac74b1efc62a656.png +0 -0
  155. data/{public → rails}/assets/jquery-mobile/icons-png/cloud-white.png +0 -0
  156. data/{public → rails}/assets/jquery-mobile/icons-png/comment-black-f4168860db0754ff9cf03fc9946b3379.png +0 -0
  157. data/{public → rails}/assets/jquery-mobile/icons-png/comment-black.png +0 -0
  158. data/{public → rails}/assets/jquery-mobile/icons-png/comment-white-6b999cb86d6aca17084e27a9f67c8c24.png +0 -0
  159. data/{public → rails}/assets/jquery-mobile/icons-png/comment-white.png +0 -0
  160. data/{public → rails}/assets/jquery-mobile/icons-png/delete-black-7d8d7896c8845c89d000fa8e97523701.png +0 -0
  161. data/{public → rails}/assets/jquery-mobile/icons-png/delete-black.png +0 -0
  162. data/{public → rails}/assets/jquery-mobile/icons-png/delete-white-bc789fa534e359f9fee233213eb468de.png +0 -0
  163. data/{public → rails}/assets/jquery-mobile/icons-png/delete-white.png +0 -0
  164. data/{public → rails}/assets/jquery-mobile/icons-png/edit-black-ec5837b59ac116c6716cd7f1c63e9fca.png +0 -0
  165. data/{public → rails}/assets/jquery-mobile/icons-png/edit-black.png +0 -0
  166. data/{public → rails}/assets/jquery-mobile/icons-png/edit-white-bdfa858ef0dec5b5ea2297c52c0bea03.png +0 -0
  167. data/{public → rails}/assets/jquery-mobile/icons-png/edit-white.png +0 -0
  168. data/{public → rails}/assets/jquery-mobile/icons-png/eye-black-6530b6b67ce6f3165d194e79beb9755e.png +0 -0
  169. data/{public → rails}/assets/jquery-mobile/icons-png/eye-black.png +0 -0
  170. data/{public → rails}/assets/jquery-mobile/icons-png/eye-white-e44323bf6b85c5b1b1fdf66df97a4b8c.png +0 -0
  171. data/{public → rails}/assets/jquery-mobile/icons-png/eye-white.png +0 -0
  172. data/{public → rails}/assets/jquery-mobile/icons-png/forbidden-black-4cb718a887e88dbaabf04eef0f2312fe.png +0 -0
  173. data/{public → rails}/assets/jquery-mobile/icons-png/forbidden-black.png +0 -0
  174. data/{public → rails}/assets/jquery-mobile/icons-png/forbidden-white-9138b0037c40f353bc794285384cb1e6.png +0 -0
  175. data/{public → rails}/assets/jquery-mobile/icons-png/forbidden-white.png +0 -0
  176. data/{public → rails}/assets/jquery-mobile/icons-png/forward-black-dc3302f286f5edebdd8de5953ba0f4be.png +0 -0
  177. data/{public → rails}/assets/jquery-mobile/icons-png/forward-black.png +0 -0
  178. data/{public → rails}/assets/jquery-mobile/icons-png/forward-white-3c71ad481331c6cd2e55678de52e321b.png +0 -0
  179. data/{public → rails}/assets/jquery-mobile/icons-png/forward-white.png +0 -0
  180. data/{public → rails}/assets/jquery-mobile/icons-png/gear-black-1877187237f71b7ba7fad9dae2afbff8.png +0 -0
  181. data/{public → rails}/assets/jquery-mobile/icons-png/gear-black.png +0 -0
  182. data/{public → rails}/assets/jquery-mobile/icons-png/gear-white-3760f8925907885b77332c927c6f69f1.png +0 -0
  183. data/{public → rails}/assets/jquery-mobile/icons-png/gear-white.png +0 -0
  184. data/{public → rails}/assets/jquery-mobile/icons-png/grid-black-ef43287886d17dad1edfd42d61e77bf9.png +0 -0
  185. data/{public → rails}/assets/jquery-mobile/icons-png/grid-black.png +0 -0
  186. data/{public → rails}/assets/jquery-mobile/icons-png/grid-white-a90cad859111e48260bb7dd58e089421.png +0 -0
  187. data/{public → rails}/assets/jquery-mobile/icons-png/grid-white.png +0 -0
  188. data/{public → rails}/assets/jquery-mobile/icons-png/heart-black-1d83e64216d8604f7e140e496585dc2d.png +0 -0
  189. data/{public → rails}/assets/jquery-mobile/icons-png/heart-black.png +0 -0
  190. data/{public → rails}/assets/jquery-mobile/icons-png/heart-white-70fb68f6f14d6eed8bcb51b9bffb7a1e.png +0 -0
  191. data/{public → rails}/assets/jquery-mobile/icons-png/heart-white.png +0 -0
  192. data/{public → rails}/assets/jquery-mobile/icons-png/home-black-8839e5c9a8e11a4820f29e49d9a940e1.png +0 -0
  193. data/{public → rails}/assets/jquery-mobile/icons-png/home-black.png +0 -0
  194. data/{public → rails}/assets/jquery-mobile/icons-png/home-white-7bb7a707d7fec69a6e87aa15cc81a6df.png +0 -0
  195. data/{public → rails}/assets/jquery-mobile/icons-png/home-white.png +0 -0
  196. data/{public → rails}/assets/jquery-mobile/icons-png/info-black-9b6531eabb8ca3757fa8d7ed9b2a9c61.png +0 -0
  197. data/{public → rails}/assets/jquery-mobile/icons-png/info-black.png +0 -0
  198. data/{public → rails}/assets/jquery-mobile/icons-png/info-white-8f0b3be835d9c4dc7ef68aaa14360475.png +0 -0
  199. data/{public → rails}/assets/jquery-mobile/icons-png/info-white.png +0 -0
  200. data/{public → rails}/assets/jquery-mobile/icons-png/location-black-2d64ab16b9762a79da26b57026a8c013.png +0 -0
  201. data/{public → rails}/assets/jquery-mobile/icons-png/location-black.png +0 -0
  202. data/{public → rails}/assets/jquery-mobile/icons-png/location-white-f20a8601e6921cb9e06551da88746269.png +0 -0
  203. data/{public → rails}/assets/jquery-mobile/icons-png/location-white.png +0 -0
  204. data/{public → rails}/assets/jquery-mobile/icons-png/lock-black-80468c8080ca8728335411fc2e946bc3.png +0 -0
  205. data/{public → rails}/assets/jquery-mobile/icons-png/lock-black.png +0 -0
  206. data/{public → rails}/assets/jquery-mobile/icons-png/lock-white-6a9da31e3af79379b9c74a0b299e498b.png +0 -0
  207. data/{public → rails}/assets/jquery-mobile/icons-png/lock-white.png +0 -0
  208. data/{public → rails}/assets/jquery-mobile/icons-png/mail-black-1ac12d4f1561c196c5b976e3b0271a47.png +0 -0
  209. data/{public → rails}/assets/jquery-mobile/icons-png/mail-black.png +0 -0
  210. data/{public → rails}/assets/jquery-mobile/icons-png/mail-white-cf3c78ddf8627b915455815d00f4c813.png +0 -0
  211. data/{public → rails}/assets/jquery-mobile/icons-png/mail-white.png +0 -0
  212. data/{public → rails}/assets/jquery-mobile/icons-png/minus-black-528a578f797a7476ef7e553c4f319724.png +0 -0
  213. data/{public → rails}/assets/jquery-mobile/icons-png/minus-black.png +0 -0
  214. data/{public → rails}/assets/jquery-mobile/icons-png/minus-white-0a992b9039a4fc5eb017cd32aea41f00.png +0 -0
  215. data/{public → rails}/assets/jquery-mobile/icons-png/minus-white.png +0 -0
  216. data/{public → rails}/assets/jquery-mobile/icons-png/navigation-black-f290da883ab1408425ac13b0c9d55362.png +0 -0
  217. data/{public → rails}/assets/jquery-mobile/icons-png/navigation-black.png +0 -0
  218. data/{public → rails}/assets/jquery-mobile/icons-png/navigation-white-c38219949e27a10f27fb1dfe3f101e2b.png +0 -0
  219. data/{public → rails}/assets/jquery-mobile/icons-png/navigation-white.png +0 -0
  220. data/{public → rails}/assets/jquery-mobile/icons-png/phone-black-8edd665a30189221a6ff370a5913f9c8.png +0 -0
  221. data/{public → rails}/assets/jquery-mobile/icons-png/phone-black.png +0 -0
  222. data/{public → rails}/assets/jquery-mobile/icons-png/phone-white-30cc61da132a3801c8441353f63dd174.png +0 -0
  223. data/{public → rails}/assets/jquery-mobile/icons-png/phone-white.png +0 -0
  224. data/{public → rails}/assets/jquery-mobile/icons-png/plus-black-ee8694a3f99b71fa84279d6f47bc69aa.png +0 -0
  225. data/{public → rails}/assets/jquery-mobile/icons-png/plus-black.png +0 -0
  226. data/{public → rails}/assets/jquery-mobile/icons-png/plus-white-594f2cf43798441607dd1a7a9b9bb68e.png +0 -0
  227. data/{public → rails}/assets/jquery-mobile/icons-png/plus-white.png +0 -0
  228. data/{public → rails}/assets/jquery-mobile/icons-png/power-black-c31a9b9ca22ce18710d4342c897f7a60.png +0 -0
  229. data/{public → rails}/assets/jquery-mobile/icons-png/power-black.png +0 -0
  230. data/{public → rails}/assets/jquery-mobile/icons-png/power-white-e3d0f6f4e1b54675c702dd0ef9dd2819.png +0 -0
  231. data/{public → rails}/assets/jquery-mobile/icons-png/power-white.png +0 -0
  232. data/{public → rails}/assets/jquery-mobile/icons-png/recycle-black-0649d7916693bcabe5b2bee1a26678df.png +0 -0
  233. data/{public → rails}/assets/jquery-mobile/icons-png/recycle-black.png +0 -0
  234. data/{public → rails}/assets/jquery-mobile/icons-png/recycle-white-f63febb141a2739223217f839c5592a2.png +0 -0
  235. data/{public → rails}/assets/jquery-mobile/icons-png/recycle-white.png +0 -0
  236. data/{public → rails}/assets/jquery-mobile/icons-png/refresh-black-b9c418000249bc0b23fa20ef2a73dcce.png +0 -0
  237. data/{public → rails}/assets/jquery-mobile/icons-png/refresh-black.png +0 -0
  238. data/{public → rails}/assets/jquery-mobile/icons-png/refresh-white-741c1f6cc39d51c32a142dfab708ca8c.png +0 -0
  239. data/{public → rails}/assets/jquery-mobile/icons-png/refresh-white.png +0 -0
  240. data/{public → rails}/assets/jquery-mobile/icons-png/search-black-e67608c6619a436c16bd49df4a00f7a6.png +0 -0
  241. data/{public → rails}/assets/jquery-mobile/icons-png/search-black.png +0 -0
  242. data/{public → rails}/assets/jquery-mobile/icons-png/search-white-49687883de84b391661162fb73604434.png +0 -0
  243. data/{public → rails}/assets/jquery-mobile/icons-png/search-white.png +0 -0
  244. data/{public → rails}/assets/jquery-mobile/icons-png/shop-black-c20b263467ce2a8de1b386e775be1d5e.png +0 -0
  245. data/{public → rails}/assets/jquery-mobile/icons-png/shop-black.png +0 -0
  246. data/{public → rails}/assets/jquery-mobile/icons-png/shop-white-80a8c9c4d2e838919941423dffe0801c.png +0 -0
  247. data/{public → rails}/assets/jquery-mobile/icons-png/shop-white.png +0 -0
  248. data/{public → rails}/assets/jquery-mobile/icons-png/star-black-a6bc8b485ff200c1deab9e9e77f52b32.png +0 -0
  249. data/{public → rails}/assets/jquery-mobile/icons-png/star-black.png +0 -0
  250. data/{public → rails}/assets/jquery-mobile/icons-png/star-white-8b620c1dced3da828d9edde9f6022249.png +0 -0
  251. data/{public → rails}/assets/jquery-mobile/icons-png/star-white.png +0 -0
  252. data/{public → rails}/assets/jquery-mobile/icons-png/tag-black-4fdb325b352b565f422193a80c1e4bfd.png +0 -0
  253. data/{public → rails}/assets/jquery-mobile/icons-png/tag-black.png +0 -0
  254. data/{public → rails}/assets/jquery-mobile/icons-png/tag-white-a35a79ed983ce834a8ddccefeaebce15.png +0 -0
  255. data/{public → rails}/assets/jquery-mobile/icons-png/tag-white.png +0 -0
  256. data/{public → rails}/assets/jquery-mobile/icons-png/user-black-85accf54554aa97069b5939b16b5e681.png +0 -0
  257. data/{public → rails}/assets/jquery-mobile/icons-png/user-black.png +0 -0
  258. data/{public → rails}/assets/jquery-mobile/icons-png/user-white-9abd9f6162d36152c841e475c4aaf118.png +0 -0
  259. data/{public → rails}/assets/jquery-mobile/icons-png/user-white.png +0 -0
  260. data/{public → rails}/assets/jquery-mobile/icons-png/video-black-1d5a483c5ce892d0012c60010286396b.png +0 -0
  261. data/{public → rails}/assets/jquery-mobile/icons-png/video-black.png +0 -0
  262. data/{public → rails}/assets/jquery-mobile/icons-png/video-white-80a2ae6a9b790e6ee05680fcdee8905a.png +0 -0
  263. data/{public → rails}/assets/jquery-mobile/icons-png/video-white.png +0 -0
  264. data/{public → rails}/assets/jquery-ui/animated-overlay-602eee4c79a4796b02bb6442948c9e28.gif +0 -0
  265. data/{public → rails}/assets/jquery-ui/animated-overlay.gif +0 -0
  266. data/{public → rails}/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100-7d1197a52442bc56fcad60d0390f4b32.png +0 -0
  267. data/{public → rails}/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  268. data/{public → rails}/assets/jquery-ui/ui-bg_flat_75_ffffff_40x100-3c4b974defa5e8bdaf8a603034c4435e.png +0 -0
  269. data/{public → rails}/assets/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
  270. data/{public → rails}/assets/jquery-ui/ui-bg_glass_55_fbf9ee_1x400-38c2dea4d046fd3f56cc3996e2e6018b.png +0 -0
  271. data/{public → rails}/assets/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  272. data/{public → rails}/assets/jquery-ui/ui-bg_glass_65_ffffff_1x400-ddb7ee7527bff283054406c50e597e1e.png +0 -0
  273. data/{public → rails}/assets/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  274. data/{public → rails}/assets/jquery-ui/ui-bg_glass_75_dadada_1x400-d618461418b1ebc6b7996979f4c3dc92.png +0 -0
  275. data/{public → rails}/assets/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
  276. data/{public → rails}/assets/jquery-ui/ui-bg_glass_75_e6e6e6_1x400-48d8d545f708e5870a965ce9df8b0e38.png +0 -0
  277. data/{public → rails}/assets/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  278. data/{public → rails}/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400-f3526b8f82249928f0a6baf044204b15.png +0 -0
  279. data/{public → rails}/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  280. data/{public → rails}/assets/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100-cec5c56503b8480f834c3fce35dae8df.png +0 -0
  281. data/{public → rails}/assets/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  282. data/{public → rails}/assets/jquery-ui/ui-icons_222222_256x240-b1eb177a51ea7925448318a26d988842.png +0 -0
  283. data/{public → rails}/assets/jquery-ui/ui-icons_222222_256x240.png +0 -0
  284. data/{public → rails}/assets/jquery-ui/ui-icons_2e83ff_256x240-49c2da9cac2dc565265586f716491298.png +0 -0
  285. data/{public → rails}/assets/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
  286. data/{public → rails}/assets/jquery-ui/ui-icons_454545_256x240-68b2fe3268f7604fb0767a0372e2db85.png +0 -0
  287. data/{public → rails}/assets/jquery-ui/ui-icons_454545_256x240.png +0 -0
  288. data/{public → rails}/assets/jquery-ui/ui-icons_888888_256x240-8040cfcc88792375b7788feb59189eef.png +0 -0
  289. data/{public → rails}/assets/jquery-ui/ui-icons_888888_256x240.png +0 -0
  290. data/{public → rails}/assets/jquery-ui/ui-icons_cd0a0a_256x240-d4a62216bf6f0cd0071149890763a5ff.png +0 -0
  291. data/{public → rails}/assets/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
  292. data/{public → rails}/assets/jquery.min-388372ef65cc311f6a3df4a6ceac8d22.map +0 -0
  293. data/{public → rails}/assets/jquery.min.map +0 -0
  294. data/{public → rails}/assets/manifest.yml +0 -0
  295. data/{public → rails}/assets/smoothness/animated-overlay-602eee4c79a4796b02bb6442948c9e28.gif +0 -0
  296. data/{public → rails}/assets/smoothness/animated-overlay.gif +0 -0
  297. data/{public → rails}/assets/smoothness/ui-bg_flat_0_aaaaaa_40x100-31613497e63975a54520b7065b125dea.png +0 -0
  298. data/{public → rails}/assets/smoothness/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  299. data/{public → rails}/assets/smoothness/ui-bg_flat_75_ffffff_40x100-f4b0e20e6f4c83b9f52cf062ed0f5284.png +0 -0
  300. data/{public → rails}/assets/smoothness/ui-bg_flat_75_ffffff_40x100.png +0 -0
  301. data/{public → rails}/assets/smoothness/ui-bg_glass_55_fbf9ee_1x400-e3606d6e7ad67486ffdc83edca64d4c5.png +0 -0
  302. data/{public → rails}/assets/smoothness/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  303. data/{public → rails}/assets/smoothness/ui-bg_glass_65_ffffff_1x400-dcec96932b90ff4cd4fea91284a6e9a3.png +0 -0
  304. data/{public → rails}/assets/smoothness/ui-bg_glass_65_ffffff_1x400.png +0 -0
  305. data/{public → rails}/assets/smoothness/ui-bg_glass_75_dadada_1x400-a2310f533684ede4f1216d7299b5cd58.png +0 -0
  306. data/{public → rails}/assets/smoothness/ui-bg_glass_75_dadada_1x400.png +0 -0
  307. data/{public → rails}/assets/smoothness/ui-bg_glass_75_e6e6e6_1x400-d872f3a0a02dea609e4b0321520236d9.png +0 -0
  308. data/{public → rails}/assets/smoothness/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  309. data/{public → rails}/assets/smoothness/ui-bg_glass_95_fef1ec_1x400-9ccaed8a65a3c285c16a73bdf03a69b3.png +0 -0
  310. data/{public → rails}/assets/smoothness/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  311. data/{public → rails}/assets/smoothness/ui-bg_highlight-soft_75_cccccc_1x100-2ef1d227b5c0f33ce3c5e45afa953991.png +0 -0
  312. data/{public → rails}/assets/smoothness/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  313. data/{public → rails}/assets/smoothness/ui-icons_222222_256x240-0675a996f0bdc78890f7b312c543b06a.png +0 -0
  314. data/{public → rails}/assets/smoothness/ui-icons_222222_256x240.png +0 -0
  315. data/{public → rails}/assets/smoothness/ui-icons_2e83ff_256x240-6aea736f81a417977efd77f183519a54.png +0 -0
  316. data/{public → rails}/assets/smoothness/ui-icons_2e83ff_256x240.png +0 -0
  317. data/{public → rails}/assets/smoothness/ui-icons_454545_256x240-6f4361f45745fb0cd7b0cc2851dc1cc3.png +0 -0
  318. data/{public → rails}/assets/smoothness/ui-icons_454545_256x240.png +0 -0
  319. data/{public → rails}/assets/smoothness/ui-icons_888888_256x240-8f6818bd8631ba3489de718e26c7e6cf.png +0 -0
  320. data/{public → rails}/assets/smoothness/ui-icons_888888_256x240.png +0 -0
  321. data/{public → rails}/assets/smoothness/ui-icons_cd0a0a_256x240-2969ddba6d0a9c62603a4aa85a363cda.png +0 -0
  322. data/{public → rails}/assets/smoothness/ui-icons_cd0a0a_256x240.png +0 -0
  323. data/{public → rails}/assets/tinymce/jquery.tinymce.js +0 -0
  324. data/{public → rails}/assets/tinymce/langs/en.js +0 -0
  325. data/{public → rails}/assets/tinymce/license.txt +0 -0
  326. data/{public → rails}/assets/tinymce/plugins/advhr/css/advhr.css +0 -0
  327. data/{public → rails}/assets/tinymce/plugins/advhr/editor_plugin.js +0 -0
  328. data/{public → rails}/assets/tinymce/plugins/advhr/editor_plugin_src.js +0 -0
  329. data/{public → rails}/assets/tinymce/plugins/advhr/js/rule.js +0 -0
  330. data/{public → rails}/assets/tinymce/plugins/advhr/langs/en_dlg.js +0 -0
  331. data/{public → rails}/assets/tinymce/plugins/advhr/rule.htm +0 -0
  332. data/{public → rails}/assets/tinymce/plugins/advimage/css/advimage.css +0 -0
  333. data/{public → rails}/assets/tinymce/plugins/advimage/editor_plugin.js +0 -0
  334. data/{public → rails}/assets/tinymce/plugins/advimage/editor_plugin_src.js +0 -0
  335. data/{public → rails}/assets/tinymce/plugins/advimage/image.htm +0 -0
  336. data/{public → rails}/assets/tinymce/plugins/advimage/img/sample.gif +0 -0
  337. data/{public → rails}/assets/tinymce/plugins/advimage/js/image.js +0 -0
  338. data/{public → rails}/assets/tinymce/plugins/advimage/langs/en_dlg.js +0 -0
  339. data/{public → rails}/assets/tinymce/plugins/advlink/css/advlink.css +0 -0
  340. data/{public → rails}/assets/tinymce/plugins/advlink/editor_plugin.js +0 -0
  341. data/{public → rails}/assets/tinymce/plugins/advlink/editor_plugin_src.js +0 -0
  342. data/{public → rails}/assets/tinymce/plugins/advlink/js/advlink.js +0 -0
  343. data/{public → rails}/assets/tinymce/plugins/advlink/langs/en_dlg.js +0 -0
  344. data/{public → rails}/assets/tinymce/plugins/advlink/link.htm +0 -0
  345. data/{public → rails}/assets/tinymce/plugins/advlist/editor_plugin.js +0 -0
  346. data/{public → rails}/assets/tinymce/plugins/advlist/editor_plugin_src.js +0 -0
  347. data/{public → rails}/assets/tinymce/plugins/autolink/editor_plugin.js +0 -0
  348. data/{public → rails}/assets/tinymce/plugins/autolink/editor_plugin_src.js +0 -0
  349. data/{public → rails}/assets/tinymce/plugins/autoresize/editor_plugin.js +0 -0
  350. data/{public → rails}/assets/tinymce/plugins/autoresize/editor_plugin_src.js +0 -0
  351. data/{public → rails}/assets/tinymce/plugins/autosave/editor_plugin.js +0 -0
  352. data/{public → rails}/assets/tinymce/plugins/autosave/editor_plugin_src.js +0 -0
  353. data/{public → rails}/assets/tinymce/plugins/bbcode/editor_plugin.js +0 -0
  354. data/{public → rails}/assets/tinymce/plugins/bbcode/editor_plugin_src.js +0 -0
  355. data/{public → rails}/assets/tinymce/plugins/contextmenu/editor_plugin.js +0 -0
  356. data/{public → rails}/assets/tinymce/plugins/contextmenu/editor_plugin_src.js +0 -0
  357. data/{public → rails}/assets/tinymce/plugins/directionality/editor_plugin.js +0 -0
  358. data/{public → rails}/assets/tinymce/plugins/directionality/editor_plugin_src.js +0 -0
  359. data/{public → rails}/assets/tinymce/plugins/emotions/editor_plugin.js +0 -0
  360. data/{public → rails}/assets/tinymce/plugins/emotions/editor_plugin_src.js +0 -0
  361. data/{public → rails}/assets/tinymce/plugins/emotions/emotions.htm +0 -0
  362. data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-cool.gif +0 -0
  363. data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-cry.gif +0 -0
  364. data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  365. data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  366. data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-frown.gif +0 -0
  367. data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-innocent.gif +0 -0
  368. data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-kiss.gif +0 -0
  369. data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-laughing.gif +0 -0
  370. data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  371. data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-sealed.gif +0 -0
  372. data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-smile.gif +0 -0
  373. data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-surprised.gif +0 -0
  374. data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  375. data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-undecided.gif +0 -0
  376. data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-wink.gif +0 -0
  377. data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-yell.gif +0 -0
  378. data/{public → rails}/assets/tinymce/plugins/emotions/js/emotions.js +0 -0
  379. data/{public → rails}/assets/tinymce/plugins/emotions/langs/en_dlg.js +0 -0
  380. data/{public → rails}/assets/tinymce/plugins/example/dialog.htm +0 -0
  381. data/{public → rails}/assets/tinymce/plugins/example/editor_plugin.js +0 -0
  382. data/{public → rails}/assets/tinymce/plugins/example/editor_plugin_src.js +0 -0
  383. data/{public → rails}/assets/tinymce/plugins/example/img/example.gif +0 -0
  384. data/{public → rails}/assets/tinymce/plugins/example/js/dialog.js +0 -0
  385. data/{public → rails}/assets/tinymce/plugins/example/langs/en.js +0 -0
  386. data/{public → rails}/assets/tinymce/plugins/example/langs/en_dlg.js +0 -0
  387. data/{public → rails}/assets/tinymce/plugins/example_dependency/editor_plugin.js +0 -0
  388. data/{public → rails}/assets/tinymce/plugins/example_dependency/editor_plugin_src.js +0 -0
  389. data/{public → rails}/assets/tinymce/plugins/fullpage/css/fullpage.css +0 -0
  390. data/{public → rails}/assets/tinymce/plugins/fullpage/editor_plugin.js +0 -0
  391. data/{public → rails}/assets/tinymce/plugins/fullpage/editor_plugin_src.js +0 -0
  392. data/{public → rails}/assets/tinymce/plugins/fullpage/fullpage.htm +0 -0
  393. data/{public → rails}/assets/tinymce/plugins/fullpage/js/fullpage.js +0 -0
  394. data/{public → rails}/assets/tinymce/plugins/fullpage/langs/en_dlg.js +0 -0
  395. data/{public → rails}/assets/tinymce/plugins/fullscreen/editor_plugin.js +0 -0
  396. data/{public → rails}/assets/tinymce/plugins/fullscreen/editor_plugin_src.js +0 -0
  397. data/{public → rails}/assets/tinymce/plugins/fullscreen/fullscreen.htm +0 -0
  398. data/{public → rails}/assets/tinymce/plugins/iespell/editor_plugin.js +0 -0
  399. data/{public → rails}/assets/tinymce/plugins/iespell/editor_plugin_src.js +0 -0
  400. data/{public → rails}/assets/tinymce/plugins/inlinepopups/editor_plugin.js +0 -0
  401. data/{public → rails}/assets/tinymce/plugins/inlinepopups/editor_plugin_src.js +0 -0
  402. data/{public → rails}/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  403. data/{public → rails}/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  404. data/{public → rails}/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  405. data/{public → rails}/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  406. data/{public → rails}/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  407. data/{public → rails}/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  408. data/{public → rails}/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  409. data/{public → rails}/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css +0 -0
  410. data/{public → rails}/assets/tinymce/plugins/inlinepopups/template.htm +0 -0
  411. data/{public → rails}/assets/tinymce/plugins/insertdatetime/editor_plugin.js +0 -0
  412. data/{public → rails}/assets/tinymce/plugins/insertdatetime/editor_plugin_src.js +0 -0
  413. data/{public → rails}/assets/tinymce/plugins/layer/editor_plugin.js +0 -0
  414. data/{public → rails}/assets/tinymce/plugins/layer/editor_plugin_src.js +0 -0
  415. data/{public → rails}/assets/tinymce/plugins/legacyoutput/editor_plugin.js +0 -0
  416. data/{public → rails}/assets/tinymce/plugins/legacyoutput/editor_plugin_src.js +0 -0
  417. data/{public → rails}/assets/tinymce/plugins/lists/editor_plugin.js +0 -0
  418. data/{public → rails}/assets/tinymce/plugins/lists/editor_plugin_src.js +0 -0
  419. data/{public → rails}/assets/tinymce/plugins/media/css/media.css +0 -0
  420. data/{public → rails}/assets/tinymce/plugins/media/editor_plugin.js +0 -0
  421. data/{public → rails}/assets/tinymce/plugins/media/editor_plugin_src.js +0 -0
  422. data/{public → rails}/assets/tinymce/plugins/media/js/embed.js +0 -0
  423. data/{public → rails}/assets/tinymce/plugins/media/js/media.js +0 -0
  424. data/{public → rails}/assets/tinymce/plugins/media/langs/en_dlg.js +0 -0
  425. data/{public → rails}/assets/tinymce/plugins/media/media.htm +0 -0
  426. data/{public → rails}/assets/tinymce/plugins/media/moxieplayer.swf +0 -0
  427. data/{public → rails}/assets/tinymce/plugins/nonbreaking/editor_plugin.js +0 -0
  428. data/{public → rails}/assets/tinymce/plugins/nonbreaking/editor_plugin_src.js +0 -0
  429. data/{public → rails}/assets/tinymce/plugins/noneditable/editor_plugin.js +0 -0
  430. data/{public → rails}/assets/tinymce/plugins/noneditable/editor_plugin_src.js +0 -0
  431. data/{public → rails}/assets/tinymce/plugins/pagebreak/editor_plugin.js +0 -0
  432. data/{public → rails}/assets/tinymce/plugins/pagebreak/editor_plugin_src.js +0 -0
  433. data/{public → rails}/assets/tinymce/plugins/paste/editor_plugin.js +0 -0
  434. data/{public → rails}/assets/tinymce/plugins/paste/editor_plugin_src.js +0 -0
  435. data/{public → rails}/assets/tinymce/plugins/paste/js/pastetext.js +0 -0
  436. data/{public → rails}/assets/tinymce/plugins/paste/js/pasteword.js +0 -0
  437. data/{public → rails}/assets/tinymce/plugins/paste/langs/en_dlg.js +0 -0
  438. data/{public → rails}/assets/tinymce/plugins/paste/pastetext.htm +0 -0
  439. data/{public → rails}/assets/tinymce/plugins/paste/pasteword.htm +0 -0
  440. data/{public → rails}/assets/tinymce/plugins/preview/editor_plugin.js +0 -0
  441. data/{public → rails}/assets/tinymce/plugins/preview/editor_plugin_src.js +0 -0
  442. data/{public → rails}/assets/tinymce/plugins/preview/example.html +0 -0
  443. data/{public → rails}/assets/tinymce/plugins/preview/jscripts/embed.js +0 -0
  444. data/{public → rails}/assets/tinymce/plugins/preview/preview.html +0 -0
  445. data/{public → rails}/assets/tinymce/plugins/print/editor_plugin.js +0 -0
  446. data/{public → rails}/assets/tinymce/plugins/print/editor_plugin_src.js +0 -0
  447. data/{public → rails}/assets/tinymce/plugins/save/editor_plugin.js +0 -0
  448. data/{public → rails}/assets/tinymce/plugins/save/editor_plugin_src.js +0 -0
  449. data/{public → rails}/assets/tinymce/plugins/searchreplace/css/searchreplace.css +0 -0
  450. data/{public → rails}/assets/tinymce/plugins/searchreplace/editor_plugin.js +0 -0
  451. data/{public → rails}/assets/tinymce/plugins/searchreplace/editor_plugin_src.js +0 -0
  452. data/{public → rails}/assets/tinymce/plugins/searchreplace/js/searchreplace.js +0 -0
  453. data/{public → rails}/assets/tinymce/plugins/searchreplace/langs/en_dlg.js +0 -0
  454. data/{public → rails}/assets/tinymce/plugins/searchreplace/searchreplace.htm +0 -0
  455. data/{public → rails}/assets/tinymce/plugins/spellchecker/css/content.css +0 -0
  456. data/{public → rails}/assets/tinymce/plugins/spellchecker/editor_plugin.js +0 -0
  457. data/{public → rails}/assets/tinymce/plugins/spellchecker/editor_plugin_src.js +0 -0
  458. data/{public → rails}/assets/tinymce/plugins/spellchecker/img/wline.gif +0 -0
  459. data/{public → rails}/assets/tinymce/plugins/style/css/props.css +0 -0
  460. data/{public → rails}/assets/tinymce/plugins/style/editor_plugin.js +0 -0
  461. data/{public → rails}/assets/tinymce/plugins/style/editor_plugin_src.js +0 -0
  462. data/{public → rails}/assets/tinymce/plugins/style/js/props.js +0 -0
  463. data/{public → rails}/assets/tinymce/plugins/style/langs/en_dlg.js +0 -0
  464. data/{public → rails}/assets/tinymce/plugins/style/props.htm +0 -0
  465. data/{public → rails}/assets/tinymce/plugins/style/readme.txt +0 -0
  466. data/{public → rails}/assets/tinymce/plugins/tabfocus/editor_plugin.js +0 -0
  467. data/{public → rails}/assets/tinymce/plugins/tabfocus/editor_plugin_src.js +0 -0
  468. data/{public → rails}/assets/tinymce/plugins/table/cell.htm +0 -0
  469. data/{public → rails}/assets/tinymce/plugins/table/css/cell.css +0 -0
  470. data/{public → rails}/assets/tinymce/plugins/table/css/row.css +0 -0
  471. data/{public → rails}/assets/tinymce/plugins/table/css/table.css +0 -0
  472. data/{public → rails}/assets/tinymce/plugins/table/editor_plugin.js +0 -0
  473. data/{public → rails}/assets/tinymce/plugins/table/editor_plugin_src.js +0 -0
  474. data/{public → rails}/assets/tinymce/plugins/table/js/cell.js +0 -0
  475. data/{public → rails}/assets/tinymce/plugins/table/js/merge_cells.js +0 -0
  476. data/{public → rails}/assets/tinymce/plugins/table/js/row.js +0 -0
  477. data/{public → rails}/assets/tinymce/plugins/table/js/table.js +0 -0
  478. data/{public → rails}/assets/tinymce/plugins/table/langs/en_dlg.js +0 -0
  479. data/{public → rails}/assets/tinymce/plugins/table/merge_cells.htm +0 -0
  480. data/{public → rails}/assets/tinymce/plugins/table/row.htm +0 -0
  481. data/{public → rails}/assets/tinymce/plugins/table/table.htm +0 -0
  482. data/{public → rails}/assets/tinymce/plugins/template/blank.htm +0 -0
  483. data/{public → rails}/assets/tinymce/plugins/template/css/template.css +0 -0
  484. data/{public → rails}/assets/tinymce/plugins/template/editor_plugin.js +0 -0
  485. data/{public → rails}/assets/tinymce/plugins/template/editor_plugin_src.js +0 -0
  486. data/{public → rails}/assets/tinymce/plugins/template/js/template.js +0 -0
  487. data/{public → rails}/assets/tinymce/plugins/template/langs/en_dlg.js +0 -0
  488. data/{public → rails}/assets/tinymce/plugins/template/template.htm +0 -0
  489. data/{public → rails}/assets/tinymce/plugins/visualblocks/css/visualblocks.css +0 -0
  490. data/{public → rails}/assets/tinymce/plugins/visualblocks/editor_plugin.js +0 -0
  491. data/{public → rails}/assets/tinymce/plugins/visualblocks/editor_plugin_src.js +0 -0
  492. data/{public → rails}/assets/tinymce/plugins/visualchars/editor_plugin.js +0 -0
  493. data/{public → rails}/assets/tinymce/plugins/visualchars/editor_plugin_src.js +0 -0
  494. data/{public → rails}/assets/tinymce/plugins/wordcount/editor_plugin.js +0 -0
  495. data/{public → rails}/assets/tinymce/plugins/wordcount/editor_plugin_src.js +0 -0
  496. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/abbr.htm +0 -0
  497. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/acronym.htm +0 -0
  498. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/attributes.htm +0 -0
  499. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/cite.htm +0 -0
  500. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/css/attributes.css +0 -0
  501. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/css/popup.css +0 -0
  502. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/del.htm +0 -0
  503. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/editor_plugin.js +0 -0
  504. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/editor_plugin_src.js +0 -0
  505. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/ins.htm +0 -0
  506. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/js/abbr.js +0 -0
  507. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/js/acronym.js +0 -0
  508. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/js/attributes.js +0 -0
  509. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/js/cite.js +0 -0
  510. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/js/del.js +0 -0
  511. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/js/element_common.js +0 -0
  512. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/js/ins.js +0 -0
  513. data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/langs/en_dlg.js +0 -0
  514. data/{public → rails}/assets/tinymce/themes/advanced/about.htm +0 -0
  515. data/{public → rails}/assets/tinymce/themes/advanced/anchor.htm +0 -0
  516. data/{public → rails}/assets/tinymce/themes/advanced/charmap.htm +0 -0
  517. data/{public → rails}/assets/tinymce/themes/advanced/color_picker.htm +0 -0
  518. data/{public → rails}/assets/tinymce/themes/advanced/editor_template.js +0 -0
  519. data/{public → rails}/assets/tinymce/themes/advanced/editor_template_src.js +0 -0
  520. data/{public → rails}/assets/tinymce/themes/advanced/image.htm +0 -0
  521. data/{public → rails}/assets/tinymce/themes/advanced/img/colorpicker.jpg +0 -0
  522. data/{public → rails}/assets/tinymce/themes/advanced/img/flash.gif +0 -0
  523. data/{public → rails}/assets/tinymce/themes/advanced/img/icons.gif +0 -0
  524. data/{public → rails}/assets/tinymce/themes/advanced/img/iframe.gif +0 -0
  525. data/{public → rails}/assets/tinymce/themes/advanced/img/pagebreak.gif +0 -0
  526. data/{public → rails}/assets/tinymce/themes/advanced/img/quicktime.gif +0 -0
  527. data/{public → rails}/assets/tinymce/themes/advanced/img/realmedia.gif +0 -0
  528. data/{public → rails}/assets/tinymce/themes/advanced/img/shockwave.gif +0 -0
  529. data/{public → rails}/assets/tinymce/themes/advanced/img/trans.gif +0 -0
  530. data/{public → rails}/assets/tinymce/themes/advanced/img/video.gif +0 -0
  531. data/{public → rails}/assets/tinymce/themes/advanced/img/windowsmedia.gif +0 -0
  532. data/{public → rails}/assets/tinymce/themes/advanced/js/about.js +0 -0
  533. data/{public → rails}/assets/tinymce/themes/advanced/js/anchor.js +0 -0
  534. data/{public → rails}/assets/tinymce/themes/advanced/js/charmap.js +0 -0
  535. data/{public → rails}/assets/tinymce/themes/advanced/js/color_picker.js +0 -0
  536. data/{public → rails}/assets/tinymce/themes/advanced/js/image.js +0 -0
  537. data/{public → rails}/assets/tinymce/themes/advanced/js/link.js +0 -0
  538. data/{public → rails}/assets/tinymce/themes/advanced/js/source_editor.js +0 -0
  539. data/{public → rails}/assets/tinymce/themes/advanced/langs/en.js +0 -0
  540. data/{public → rails}/assets/tinymce/themes/advanced/langs/en_dlg.js +0 -0
  541. data/{public → rails}/assets/tinymce/themes/advanced/link.htm +0 -0
  542. data/{public → rails}/assets/tinymce/themes/advanced/shortcuts.htm +0 -0
  543. data/{public → rails}/assets/tinymce/themes/advanced/skins/default/content.css +0 -0
  544. data/{public → rails}/assets/tinymce/themes/advanced/skins/default/dialog.css +0 -0
  545. data/{public → rails}/assets/tinymce/themes/advanced/skins/default/img/buttons.png +0 -0
  546. data/{public → rails}/assets/tinymce/themes/advanced/skins/default/img/items.gif +0 -0
  547. data/{public → rails}/assets/tinymce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  548. data/{public → rails}/assets/tinymce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  549. data/{public → rails}/assets/tinymce/themes/advanced/skins/default/img/progress.gif +0 -0
  550. data/{public → rails}/assets/tinymce/themes/advanced/skins/default/img/tabs.gif +0 -0
  551. data/{public → rails}/assets/tinymce/themes/advanced/skins/default/ui.css +0 -0
  552. data/{public → rails}/assets/tinymce/themes/advanced/skins/highcontrast/content.css +0 -0
  553. data/{public → rails}/assets/tinymce/themes/advanced/skins/highcontrast/dialog.css +0 -0
  554. data/{public → rails}/assets/tinymce/themes/advanced/skins/highcontrast/ui.css +0 -0
  555. data/{public → rails}/assets/tinymce/themes/advanced/skins/o2k7/content.css +0 -0
  556. data/{public → rails}/assets/tinymce/themes/advanced/skins/o2k7/dialog.css +0 -0
  557. data/{public → rails}/assets/tinymce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  558. data/{public → rails}/assets/tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  559. data/{public → rails}/assets/tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  560. data/{public → rails}/assets/tinymce/themes/advanced/skins/o2k7/ui.css +0 -0
  561. data/{public → rails}/assets/tinymce/themes/advanced/skins/o2k7/ui_black.css +0 -0
  562. data/{public → rails}/assets/tinymce/themes/advanced/skins/o2k7/ui_silver.css +0 -0
  563. data/{public → rails}/assets/tinymce/themes/advanced/source_editor.htm +0 -0
  564. data/{public → rails}/assets/tinymce/themes/simple/editor_template.js +0 -0
  565. data/{public → rails}/assets/tinymce/themes/simple/editor_template_src.js +0 -0
  566. data/{public → rails}/assets/tinymce/themes/simple/img/icons.gif +0 -0
  567. data/{public → rails}/assets/tinymce/themes/simple/langs/en.js +0 -0
  568. data/{public → rails}/assets/tinymce/themes/simple/skins/default/content.css +0 -0
  569. data/{public → rails}/assets/tinymce/themes/simple/skins/default/ui.css +0 -0
  570. data/{public → rails}/assets/tinymce/themes/simple/skins/o2k7/content.css +0 -0
  571. data/{public → rails}/assets/tinymce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
  572. data/{public → rails}/assets/tinymce/themes/simple/skins/o2k7/ui.css +0 -0
  573. data/{public → rails}/assets/tinymce/tiny_mce.js +0 -0
  574. data/{public → rails}/assets/tinymce/tiny_mce_jquery.js +0 -0
  575. data/{public → rails}/assets/tinymce/tiny_mce_jquery_src.js +0 -0
  576. data/{public → rails}/assets/tinymce/tiny_mce_popup.js +0 -0
  577. data/{public → rails}/assets/tinymce/tiny_mce_src.js +0 -0
  578. data/{public → rails}/assets/tinymce/utils/editable_selects.js +0 -0
  579. data/{public → rails}/assets/tinymce/utils/form_utils.js +0 -0
  580. data/{public → rails}/assets/tinymce/utils/mctabs.js +0 -0
  581. data/{public → rails}/assets/tinymce/utils/validate.js +0 -0
  582. data/{app → rails}/controllers/card_controller.rb +23 -21
  583. data/{lib/wagn/config/routes.rb → rails/engine-routes.rb} +2 -6
  584. data/spec/controllers/card_controller_spec.rb +8 -3
  585. data/spec/controllers/location_spec.rb +3 -0
  586. data/test/script/run_engine_deck.sh +47 -0
  587. data/test/script/run_mig.sh +29 -0
  588. data/test/test_helper.rb +1 -1
  589. data/wagn.gemspec +4 -26
  590. metadata +564 -1250
  591. data/.gitignore +0 -23
  592. data/.simplecov +0 -28
  593. data/.tm_properties +0 -3
  594. data/CONTRIBUTING.rdoc +0 -24
  595. data/JASMINE_RAILS_TEST.md +0 -16
  596. data/README.rdoc +0 -95
  597. data/VERSION +0 -1
  598. data/db/bootstrap/card_actions.yml +0 -3613
  599. data/db/bootstrap/card_acts.yml +0 -7
  600. data/db/bootstrap/card_changes.yml +0 -10906
  601. data/db/bootstrap/card_references.yml +0 -3830
  602. data/db/bootstrap/cards.yml +0 -9876
  603. data/db/migrate/20110511221913_require_earlier_migrations.rb +0 -17
  604. data/db/migrate/20120105203350_require_1_8_migrations.rb +0 -15
  605. data/db/migrate/20121111025347_require_1_10_migrations.rb +0 -15
  606. data/db/migrate/20121118114000_split_link_type.rb +0 -16
  607. data/db/migrate/20121118115000_update_link_type.rb +0 -19
  608. data/db/migrate/20130106052640_table_cleanup.rb +0 -25
  609. data/db/migrate/20130109015336_trunk_left.rb +0 -14
  610. data/db/migrate/20130411210957_update_codenames.rb +0 -14
  611. data/db/migrate/20140822073704_create_new_revision_tables.rb +0 -43
  612. data/db/migrate/20141001105348_move_revisions_to_actions.rb +0 -62
  613. data/db/migrate/20141121172918_rename_card_migration_table.rb +0 -15
  614. data/db/migrate/20141216053032_better_index_names.rb +0 -24
  615. data/db/migrate_core_cards/20130411191151_renaming_for_menu.rb +0 -49
  616. data/db/migrate_core_cards/20130411211600_delete_old_related_tab_cards.rb +0 -18
  617. data/db/migrate_core_cards/20130419215612_import_help_text.rb +0 -13
  618. data/db/migrate_core_cards/20130823192433_add_style_cards.rb +0 -87
  619. data/db/migrate_core_cards/20130910183318_move_styles_to_content.rb +0 -11
  620. data/db/migrate_core_cards/20130920214038_jsonize_tinymce.rb +0 -15
  621. data/db/migrate_core_cards/20130920291703_update_stylesheets.rb +0 -18
  622. data/db/migrate_core_cards/20130927191728_account_events.rb +0 -21
  623. data/db/migrate_core_cards/20131016172445_common_css_patch.rb +0 -12
  624. data/db/migrate_core_cards/20140110193325_reset_account_request_type.rb +0 -11
  625. data/db/migrate_core_cards/20140307231621_user_data_to_cards.rb +0 -73
  626. data/db/migrate_core_cards/20140317035504_account_requests_to_signups.rb +0 -51
  627. data/db/migrate_core_cards/20140512155840_add_script_cards.rb +0 -83
  628. data/db/migrate_core_cards/20140629222005_add_email_cards.rb +0 -137
  629. data/db/migrate_core_cards/20140725180118_config_card_updates.rb +0 -9
  630. data/db/migrate_core_cards/20141111083921_delete_machine_output.rb +0 -9
  631. data/db/migrate_core_cards/20141115034214_config_descriptions_etc.rb +0 -14
  632. data/db/migrate_core_cards/20141119001955_make_symlinks_relative.rb +0 -15
  633. data/db/migrate_core_cards/20141120120605_fix_notification_html_message.rb +0 -10
  634. data/db/migrate_core_cards/20141204061304_watchers_to_following.rb +0 -38
  635. data/db/migrate_core_cards/20141208132416_partial_reference_type.rb +0 -7
  636. data/db/migrate_core_cards/20141208162106_add_ace_script.rb +0 -12
  637. data/db/migrate_core_cards/20141230204340_uri_codename.rb +0 -13
  638. data/db/migrate_core_cards/data/1.11_help_text.json +0 -410
  639. data/db/migrate_core_cards/data/1.12_stylesheets/classic_cards.scss +0 -101
  640. data/db/migrate_core_cards/data/1.12_stylesheets/common.scss +0 -226
  641. data/db/migrate_core_cards/data/1.12_stylesheets/right_sidebar.scss +0 -27
  642. data/db/migrate_core_cards/data/1.12_stylesheets/traditional.scss +0 -152
  643. data/db/migrate_core_cards/data/1.13_config_text.json +0 -32
  644. data/db/migrate_core_cards/data/1.14_config_descriptions_etc.json +0 -77
  645. data/db/migrate_core_cards/data/mailer/follower_notification_email.html +0 -9
  646. data/db/migrate_core_cards/data/mailer/follower_notification_email.txt +0 -11
  647. data/db/migrate_core_cards/data/mailer/mail_config.json +0 -22
  648. data/db/migrate_core_cards/data/mailer/password_reset_email.html +0 -10
  649. data/db/migrate_core_cards/data/mailer/password_reset_email.txt +0 -11
  650. data/db/migrate_core_cards/data/mailer/signup_alert_email.html +0 -7
  651. data/db/migrate_core_cards/data/mailer/signup_alert_email.txt +0 -5
  652. data/db/migrate_core_cards/data/mailer/verification_email.html +0 -9
  653. data/db/migrate_core_cards/data/mailer/verification_email.txt +0 -8
  654. data/db/schema.rb +0 -128
  655. data/db/seeds.rb +0 -8
  656. data/db/version.txt +0 -1
  657. data/db/version_core_cards.txt +0 -1
  658. data/lib/card.rb +0 -41
  659. data/lib/card/act.rb +0 -60
  660. data/lib/card/action.rb +0 -195
  661. data/lib/card/active_record_ext.rb +0 -77
  662. data/lib/card/auth.rb +0 -181
  663. data/lib/card/change.rb +0 -29
  664. data/lib/card/chunk.rb +0 -104
  665. data/lib/card/codename.rb +0 -70
  666. data/lib/card/content.rb +0 -211
  667. data/lib/card/core_ext.rb +0 -74
  668. data/lib/card/diff.rb +0 -429
  669. data/lib/card/env.rb +0 -54
  670. data/lib/card/exceptions.rb +0 -41
  671. data/lib/card/format.rb +0 -549
  672. data/lib/card/generators/card_migration/USAGE +0 -24
  673. data/lib/card/generators/card_migration/card_migration_generator.rb +0 -31
  674. data/lib/card/generators/card_migration/templates/card_migration.erb +0 -10
  675. data/lib/card/generators/format/USAGE +0 -9
  676. data/lib/card/generators/format/format_generator.rb +0 -8
  677. data/lib/card/generators/format/templates/format_spec_template.erb +0 -5
  678. data/lib/card/generators/format/templates/format_template.erb +0 -3
  679. data/lib/card/generators/set/USAGE +0 -16
  680. data/lib/card/generators/set/set_generator.rb +0 -22
  681. data/lib/card/generators/set/templates/set_spec_template.erb +0 -5
  682. data/lib/card/generators/set/templates/set_template.erb +0 -1
  683. data/lib/card/loader.rb +0 -149
  684. data/lib/card/mailer.rb +0 -37
  685. data/lib/card/name.rb +0 -39
  686. data/lib/card/query.rb +0 -78
  687. data/lib/card/query/card_clause.rb +0 -525
  688. data/lib/card/query/clause.rb +0 -21
  689. data/lib/card/query/ref_clause.rb +0 -47
  690. data/lib/card/query/value_clause.rb +0 -65
  691. data/lib/card/reference.rb +0 -62
  692. data/lib/card/set.rb +0 -367
  693. data/lib/card/set_pattern.rb +0 -168
  694. data/lib/wagn/cache.rb +0 -185
  695. data/lib/wagn/config/initializers/01_init_ruby_extensions.rb +0 -7
  696. data/lib/wagn/config/initializers/inflections.rb +0 -13
  697. data/lib/wagn/config/initializers/mime_types.rb +0 -13
  698. data/lib/wagn/config/initializers/notification.rb +0 -4
  699. data/lib/wagn/config/initializers/paperclip.rb +0 -1
  700. data/lib/wagn/config/initializers/recaptcha.rb +0 -6
  701. data/lib/wagn/config/initializers/uuid_state_file.rb +0 -3
  702. data/lib/wagn/core_migration.rb +0 -5
  703. data/lib/wagn/log.rb +0 -441
  704. data/lib/wagn/migration.rb +0 -151
  705. data/lib/wagn/spec_helper.rb +0 -59
  706. data/lib/wagn/version.rb +0 -33
  707. data/mod/01_core/chunk/include.rb +0 -85
  708. data/mod/01_core/chunk/link.rb +0 -87
  709. data/mod/01_core/chunk/literal.rb +0 -24
  710. data/mod/01_core/chunk/reference.rb +0 -53
  711. data/mod/01_core/chunk/uri.rb +0 -135
  712. data/mod/01_core/format/data_format.rb +0 -2
  713. data/mod/01_core/format/html_format.rb +0 -130
  714. data/mod/01_core/format/text_format.rb +0 -10
  715. data/mod/01_core/layout/blank.html +0 -5
  716. data/mod/01_core/layout/default.html +0 -20
  717. data/mod/01_core/layout/noside.html +0 -16
  718. data/mod/01_core/layout/pre.html +0 -2
  719. data/mod/01_core/layout/simple.html +0 -5
  720. data/mod/01_core/set/all/active_card.rb +0 -35
  721. data/mod/01_core/set/all/collection.rb +0 -136
  722. data/mod/01_core/set/all/content.rb +0 -168
  723. data/mod/01_core/set/all/erb.rb +0 -11
  724. data/mod/01_core/set/all/fetch.rb +0 -228
  725. data/mod/01_core/set/all/haml.rb +0 -7
  726. data/mod/01_core/set/all/initialize.rb +0 -49
  727. data/mod/01_core/set/all/name.rb +0 -267
  728. data/mod/01_core/set/all/notify.rb +0 -215
  729. data/mod/01_core/set/all/pattern.rb +0 -56
  730. data/mod/01_core/set/all/permissions.rb +0 -260
  731. data/mod/01_core/set/all/phases.rb +0 -186
  732. data/mod/01_core/set/all/references.rb +0 -118
  733. data/mod/01_core/set/all/rules.rb +0 -124
  734. data/mod/01_core/set/all/states.rb +0 -16
  735. data/mod/01_core/set/all/templating.rb +0 -120
  736. data/mod/01_core/set/all/tracked_attributes.rb +0 -114
  737. data/mod/01_core/set/all/trash.rb +0 -50
  738. data/mod/01_core/set/all/type.rb +0 -85
  739. data/mod/01_core/set/all/utils.rb +0 -94
  740. data/mod/01_core/set_pattern/01_all.rb +0 -7
  741. data/mod/01_core/set_pattern/02_all_plus.rb +0 -9
  742. data/mod/01_core/set_pattern/03_type.rb +0 -19
  743. data/mod/01_core/set_pattern/04_star.rb +0 -11
  744. data/mod/01_core/set_pattern/05_rstar.rb +0 -13
  745. data/mod/01_core/set_pattern/06_right.rb +0 -16
  746. data/mod/01_core/set_pattern/07_type_plus_right.rb +0 -19
  747. data/mod/01_core/set_pattern/08_self.rb +0 -15
  748. data/mod/01_core/spec/chunk/literal_spec.rb +0 -14
  749. data/mod/01_core/spec/chunk/uri_spec.rb +0 -292
  750. data/mod/01_core/spec/format/data_format_spec.rb +0 -5
  751. data/mod/01_core/spec/format/html_format_spec.rb +0 -140
  752. data/mod/01_core/spec/format/text_format_spec.rb +0 -5
  753. data/mod/01_core/spec/set/all/active_card_spec.rb +0 -5
  754. data/mod/01_core/spec/set/all/attribute_tracking_spec.rb +0 -21
  755. data/mod/01_core/spec/set/all/collection_spec.rb +0 -65
  756. data/mod/01_core/spec/set/all/content_spec.rb +0 -15
  757. data/mod/01_core/spec/set/all/fetch_spec.rb +0 -205
  758. data/mod/01_core/spec/set/all/initialize_spec.rb +0 -58
  759. data/mod/01_core/spec/set/all/name_spec.rb +0 -61
  760. data/mod/01_core/spec/set/all/notify_spec.rb +0 -199
  761. data/mod/01_core/spec/set/all/pattern_spec.rb +0 -81
  762. data/mod/01_core/spec/set/all/permissions_spec.rb +0 -505
  763. data/mod/01_core/spec/set/all/phases_spec.rb +0 -6
  764. data/mod/01_core/spec/set/all/references_spec.rb +0 -8
  765. data/mod/01_core/spec/set/all/rules2_spec.rb +0 -250
  766. data/mod/01_core/spec/set/all/rules_spec.rb +0 -81
  767. data/mod/01_core/spec/set/all/states_spec.rb +0 -5
  768. data/mod/01_core/spec/set/all/templating_spec.rb +0 -111
  769. data/mod/01_core/spec/set/all/tracked_attributes_spec.rb +0 -328
  770. data/mod/01_core/spec/set/all/trash_spec.rb +0 -34
  771. data/mod/01_core/spec/set/all/type_spec.rb +0 -71
  772. data/mod/01_core/spec/set/all/utils_spec.rb +0 -5
  773. data/mod/02_basic_types/format/css_format.rb +0 -6
  774. data/mod/02_basic_types/format/csv_format.rb +0 -6
  775. data/mod/02_basic_types/format/file_format.rb +0 -3
  776. data/mod/02_basic_types/format/js_format.rb +0 -6
  777. data/mod/02_basic_types/format/json_format.rb +0 -6
  778. data/mod/02_basic_types/format/rss_format.rb +0 -11
  779. data/mod/02_basic_types/format/xml_format.rb +0 -6
  780. data/mod/02_basic_types/set/all/all_css.rb +0 -42
  781. data/mod/02_basic_types/set/all/all_csv.rb +0 -52
  782. data/mod/02_basic_types/set/all/all_js.rb +0 -7
  783. data/mod/02_basic_types/set/all/base.rb +0 -122
  784. data/mod/02_basic_types/set/all/file.rb +0 -13
  785. data/mod/02_basic_types/set/all/json.rb +0 -66
  786. data/mod/02_basic_types/set/all/rss.rb +0 -72
  787. data/mod/02_basic_types/set/all/text.rb +0 -8
  788. data/mod/02_basic_types/set/type/plain_text.rb +0 -10
  789. data/mod/02_basic_types/set/type/pointer.rb +0 -281
  790. data/mod/02_basic_types/spec/set/all/all_css_spec.rb +0 -10
  791. data/mod/02_basic_types/spec/set/all/all_csv_spec.rb +0 -9
  792. data/mod/02_basic_types/spec/set/all/base_spec.rb +0 -57
  793. data/mod/02_basic_types/spec/set/all/file_spec.rb +0 -5
  794. data/mod/02_basic_types/spec/set/all/json_spec.rb +0 -26
  795. data/mod/02_basic_types/spec/set/all/rss_spec.rb +0 -8
  796. data/mod/02_basic_types/spec/set/all/text_spec.rb +0 -5
  797. data/mod/02_basic_types/spec/set/type/plain_text_spec.rb +0 -11
  798. data/mod/02_basic_types/spec/set/type/pointer_spec.rb +0 -103
  799. data/mod/03_machines/lib/card/machine.rb +0 -185
  800. data/mod/03_machines/lib/card/machine_input.rb +0 -40
  801. data/mod/03_machines/lib/javascript/ace.js +0 -18204
  802. data/mod/03_machines/lib/javascript/html5shiv-printshiv.js +0 -1
  803. data/mod/03_machines/lib/javascript/jquery-ui.js +0 -14913
  804. data/mod/03_machines/lib/javascript/jquery.autosize.js +0 -274
  805. data/mod/03_machines/lib/javascript/jquery.fileupload.js +0 -1114
  806. data/mod/03_machines/lib/javascript/jquery.iframe-transport.js +0 -185
  807. data/mod/03_machines/lib/javascript/jquery.js +0 -4
  808. data/mod/03_machines/lib/javascript/jquery.ui.autocomplete.html.js +0 -41
  809. data/mod/03_machines/lib/javascript/jquery_ujs.js +0 -469
  810. data/mod/03_machines/lib/javascript/jquerymobile.js +0 -15454
  811. data/mod/03_machines/lib/javascript/theme-textmate.js +0 -130
  812. data/mod/03_machines/lib/javascript/tinymce.js +0 -13
  813. data/mod/03_machines/lib/javascript/wagn.js.coffee +0 -318
  814. data/mod/03_machines/lib/javascript/wagn_menu.js +0 -67
  815. data/mod/03_machines/lib/javascript/wagn_mod.js.coffee +0 -404
  816. data/mod/03_machines/lib/stylesheets/functional.scss +0 -188
  817. data/mod/03_machines/lib/stylesheets/jquery-ui-smoothness.css +0 -1178
  818. data/mod/03_machines/lib/stylesheets/standard.scss +0 -719
  819. data/mod/03_machines/set/right/machine_output.rb +0 -20
  820. data/mod/03_machines/set/self/script_ace.rb +0 -8
  821. data/mod/03_machines/set/self/script_card_menu.rb +0 -8
  822. data/mod/03_machines/set/self/script_html5shiv_printshiv.rb +0 -7
  823. data/mod/03_machines/set/self/script_jquery.rb +0 -8
  824. data/mod/03_machines/set/self/script_jquery_helper.rb +0 -14
  825. data/mod/03_machines/set/self/script_slot.rb +0 -9
  826. data/mod/03_machines/set/self/script_tinymce.rb +0 -8
  827. data/mod/03_machines/set/self/style_functional.rb +0 -8
  828. data/mod/03_machines/set/self/style_jquery_ui_smoothness.rb +0 -8
  829. data/mod/03_machines/set/self/style_standard.rb +0 -8
  830. data/mod/03_machines/set/type/coffee_script.rb +0 -58
  831. data/mod/03_machines/set/type/css.rb +0 -45
  832. data/mod/03_machines/set/type/java_script.rb +0 -38
  833. data/mod/03_machines/set/type/scss.rb +0 -23
  834. data/mod/03_machines/set/type/skin.rb +0 -12
  835. data/mod/03_machines/spec/lib/shared_machine_examples.rb +0 -174
  836. data/mod/03_machines/spec/lib/shared_machine_input_examples.rb +0 -64
  837. data/mod/03_machines/spec/set/right/machine_output_spec.rb +0 -5
  838. data/mod/03_machines/spec/set/self/style_functional_spec.rb +0 -5
  839. data/mod/03_machines/spec/set/self/style_jquery_ui_smoothness_spec.rb +0 -5
  840. data/mod/03_machines/spec/set/self/style_standard_spec.rb +0 -5
  841. data/mod/03_machines/spec/set/type/coffeescript_spec.rb +0 -26
  842. data/mod/03_machines/spec/set/type/css_spec.rb +0 -33
  843. data/mod/03_machines/spec/set/type/javascript_spec.rb +0 -26
  844. data/mod/03_machines/spec/set/type/scss_spec.rb +0 -56
  845. data/mod/03_machines/spec/set/type/skin_spec.rb +0 -70
  846. data/mod/04_settings/lib/card/setting.rb +0 -57
  847. data/mod/04_settings/set/right/add_help.rb +0 -11
  848. data/mod/04_settings/set/right/comment.rb +0 -91
  849. data/mod/04_settings/set/right/create.rb +0 -2
  850. data/mod/04_settings/set/right/default.rb +0 -3
  851. data/mod/04_settings/set/right/delete.rb +0 -4
  852. data/mod/04_settings/set/right/help.rb +0 -3
  853. data/mod/04_settings/set/right/read.rb +0 -2
  854. data/mod/04_settings/set/right/script.rb +0 -10
  855. data/mod/04_settings/set/right/structure.rb +0 -4
  856. data/mod/04_settings/set/right/style.rb +0 -10
  857. data/mod/04_settings/set/right/update.rb +0 -2
  858. data/mod/04_settings/set/self/accountable.rb +0 -2
  859. data/mod/04_settings/set/self/add_help.rb +0 -2
  860. data/mod/04_settings/set/self/autoname.rb +0 -2
  861. data/mod/04_settings/set/self/captcha.rb +0 -2
  862. data/mod/04_settings/set/self/comment.rb +0 -2
  863. data/mod/04_settings/set/self/create.rb +0 -2
  864. data/mod/04_settings/set/self/default.rb +0 -2
  865. data/mod/04_settings/set/self/delete.rb +0 -2
  866. data/mod/04_settings/set/self/help.rb +0 -2
  867. data/mod/04_settings/set/self/input.rb +0 -2
  868. data/mod/04_settings/set/self/layout.rb +0 -2
  869. data/mod/04_settings/set/self/on_create.rb +0 -2
  870. data/mod/04_settings/set/self/on_delete.rb +0 -2
  871. data/mod/04_settings/set/self/on_update.rb +0 -2
  872. data/mod/04_settings/set/self/options.rb +0 -2
  873. data/mod/04_settings/set/self/options_label.rb +0 -2
  874. data/mod/04_settings/set/self/read.rb +0 -2
  875. data/mod/04_settings/set/self/script.rb +0 -2
  876. data/mod/04_settings/set/self/structure.rb +0 -2
  877. data/mod/04_settings/set/self/style.rb +0 -2
  878. data/mod/04_settings/set/self/table_of_contents.rb +0 -2
  879. data/mod/04_settings/set/self/thanks.rb +0 -2
  880. data/mod/04_settings/set/self/update.rb +0 -2
  881. data/mod/04_settings/set/type/setting.rb +0 -81
  882. data/mod/04_settings/spec/set/right/add_help_spec.rb +0 -5
  883. data/mod/04_settings/spec/set/right/comment_spec.rb +0 -41
  884. data/mod/04_settings/spec/set/right/create_spec.rb +0 -10
  885. data/mod/04_settings/spec/set/right/default_spec.rb +0 -5
  886. data/mod/04_settings/spec/set/right/delete_spec.rb +0 -5
  887. data/mod/04_settings/spec/set/right/help_spec.rb +0 -5
  888. data/mod/04_settings/spec/set/right/read_spec.rb +0 -5
  889. data/mod/04_settings/spec/set/right/script_spec.rb +0 -24
  890. data/mod/04_settings/spec/set/right/structure_spec.rb +0 -17
  891. data/mod/04_settings/spec/set/right/style_spec.rb +0 -29
  892. data/mod/04_settings/spec/set/right/update_spec.rb +0 -5
  893. data/mod/04_settings/spec/set/type/setting_spec.rb +0 -10
  894. data/mod/05_email/format/email_html_format.rb +0 -9
  895. data/mod/05_email/format/email_text_format.rb +0 -11
  896. data/mod/05_email/set/all/email_html.rb +0 -5
  897. data/mod/05_email/set/all/email_text.rb +0 -5
  898. data/mod/05_email/set/right/bcc.rb +0 -45
  899. data/mod/05_email/set/right/cc.rb +0 -3
  900. data/mod/05_email/set/right/from.rb +0 -3
  901. data/mod/05_email/set/right/html_message.rb +0 -3
  902. data/mod/05_email/set/right/to.rb +0 -3
  903. data/mod/05_email/set/type/email_template.rb +0 -113
  904. data/mod/05_standard/file/103/icon-6566.ico +0 -0
  905. data/mod/05_standard/file/103/large-6566.ico +0 -0
  906. data/mod/05_standard/file/103/medium-6566.ico +0 -0
  907. data/mod/05_standard/file/103/original-6566.ico +0 -0
  908. data/mod/05_standard/file/103/small-6566.ico +0 -0
  909. data/mod/05_standard/file/79/icon-6556.png +0 -0
  910. data/mod/05_standard/file/79/large-6556.png +0 -0
  911. data/mod/05_standard/file/79/medium-6556.png +0 -0
  912. data/mod/05_standard/file/79/original-6556.png +0 -0
  913. data/mod/05_standard/file/79/small-6556.png +0 -0
  914. data/mod/05_standard/file/790/icon-6419.png +0 -0
  915. data/mod/05_standard/file/790/large-6419.png +0 -0
  916. data/mod/05_standard/file/790/medium-6419.png +0 -0
  917. data/mod/05_standard/file/790/original-6419.png +0 -0
  918. data/mod/05_standard/file/790/small-6419.png +0 -0
  919. data/mod/05_standard/set/all/account.rb +0 -67
  920. data/mod/05_standard/set/all/attach.rb +0 -142
  921. data/mod/05_standard/set/all/comment.rb +0 -39
  922. data/mod/05_standard/set/all/error.rb +0 -210
  923. data/mod/05_standard/set/all/event_viz.rb +0 -62
  924. data/mod/05_standard/set/all/follow.rb +0 -51
  925. data/mod/05_standard/set/all/history.rb +0 -303
  926. data/mod/05_standard/set/all/links.rb +0 -102
  927. data/mod/05_standard/set/all/observer.rb +0 -27
  928. data/mod/05_standard/set/all/rich_html/content.rb +0 -175
  929. data/mod/05_standard/set/all/rich_html/editing.rb +0 -145
  930. data/mod/05_standard/set/all/rich_html/form.rb +0 -211
  931. data/mod/05_standard/set/all/rich_html/header.rb +0 -58
  932. data/mod/05_standard/set/all/rich_html/wrapper.rb +0 -74
  933. data/mod/05_standard/set/right/account.rb +0 -177
  934. data/mod/05_standard/set/right/email.rb +0 -52
  935. data/mod/05_standard/set/right/password.rb +0 -39
  936. data/mod/05_standard/set/right/salt.rb +0 -5
  937. data/mod/05_standard/set/right/stats.rb +0 -35
  938. data/mod/05_standard/set/right/status.rb +0 -9
  939. data/mod/05_standard/set/right/token.rb +0 -5
  940. data/mod/05_standard/set/right/when_created.rb +0 -5
  941. data/mod/05_standard/set/right/when_last_edited.rb +0 -5
  942. data/mod/05_standard/set/rstar/rules.rb +0 -251
  943. data/mod/05_standard/set/self/account_links.rb +0 -27
  944. data/mod/05_standard/set/self/alerts.rb +0 -5
  945. data/mod/05_standard/set/self/all.rb +0 -21
  946. data/mod/05_standard/set/self/foot.rb +0 -8
  947. data/mod/05_standard/set/self/head.rb +0 -122
  948. data/mod/05_standard/set/self/navbox.rb +0 -20
  949. data/mod/05_standard/set/self/now.rb +0 -6
  950. data/mod/05_standard/set/self/recent.rb +0 -48
  951. data/mod/05_standard/set/self/search.rb +0 -43
  952. data/mod/05_standard/set/self/signin.rb +0 -121
  953. data/mod/05_standard/set/self/stats.rb +0 -91
  954. data/mod/05_standard/set/self/version.rb +0 -8
  955. data/mod/05_standard/set/type/basic.rb +0 -46
  956. data/mod/05_standard/set/type/cardtype.rb +0 -42
  957. data/mod/05_standard/set/type/date.rb +0 -8
  958. data/mod/05_standard/set/type/file.rb +0 -85
  959. data/mod/05_standard/set/type/html.rb +0 -22
  960. data/mod/05_standard/set/type/image.rb +0 -67
  961. data/mod/05_standard/set/type/layout_type.rb +0 -14
  962. data/mod/05_standard/set/type/number.rb +0 -19
  963. data/mod/05_standard/set/type/phrase.rb +0 -3
  964. data/mod/05_standard/set/type/search_type.rb +0 -243
  965. data/mod/05_standard/set/type/set.rb +0 -118
  966. data/mod/05_standard/set/type/signup.rb +0 -144
  967. data/mod/05_standard/set/type/toggle.rb +0 -12
  968. data/mod/05_standard/set/type/uri.rb +0 -11
  969. data/mod/05_standard/set/type/user.rb +0 -62
  970. data/mod/05_standard/spec/chunk/include_spec.rb +0 -186
  971. data/mod/05_standard/spec/chunk/link_spec.rb +0 -61
  972. data/mod/05_standard/spec/format/css_format_spec.rb +0 -5
  973. data/mod/05_standard/spec/format/csv_format_spec.rb +0 -5
  974. data/mod/05_standard/spec/format/email_html_format_spec.rb +0 -5
  975. data/mod/05_standard/spec/format/file_format_spec.rb +0 -5
  976. data/mod/05_standard/spec/format/js_format_spec.rb +0 -3
  977. data/mod/05_standard/spec/format/json_format_spec.rb +0 -5
  978. data/mod/05_standard/spec/format/rss_format_spec.rb +0 -5
  979. data/mod/05_standard/spec/format/xml_format_spec.rb +0 -5
  980. data/mod/05_standard/spec/set/all/account_spec.rb +0 -137
  981. data/mod/05_standard/spec/set/all/attach_spec.rb +0 -9
  982. data/mod/05_standard/spec/set/all/comment_spec.rb +0 -5
  983. data/mod/05_standard/spec/set/all/email_html_spec.rb +0 -15
  984. data/mod/05_standard/spec/set/all/error_spec.rb +0 -7
  985. data/mod/05_standard/spec/set/all/event_viz_spec.rb +0 -9
  986. data/mod/05_standard/spec/set/all/follow_spec.rb +0 -83
  987. data/mod/05_standard/spec/set/all/history_spec.rb +0 -173
  988. data/mod/05_standard/spec/set/all/observer_spec.rb +0 -74
  989. data/mod/05_standard/spec/set/all/rich_html/form_spec.rb +0 -41
  990. data/mod/05_standard/spec/set/all/rich_html/wrapper_spec.rb +0 -26
  991. data/mod/05_standard/spec/set/right/account_spec.rb +0 -162
  992. data/mod/05_standard/spec/set/right/email_spec.rb +0 -55
  993. data/mod/05_standard/spec/set/right/password_spec.rb +0 -45
  994. data/mod/05_standard/spec/set/right/salt_spec.rb +0 -5
  995. data/mod/05_standard/spec/set/right/stats_spec.rb +0 -13
  996. data/mod/05_standard/spec/set/right/status_spec.rb +0 -5
  997. data/mod/05_standard/spec/set/right/token_spec.rb +0 -5
  998. data/mod/05_standard/spec/set/right/when_created_spec.rb +0 -7
  999. data/mod/05_standard/spec/set/right/when_last_edited_spec.rb +0 -7
  1000. data/mod/05_standard/spec/set/rstar/rules_spec.rb +0 -25
  1001. data/mod/05_standard/spec/set/self/account_links_spec.rb +0 -9
  1002. data/mod/05_standard/spec/set/self/alerts_spec.rb +0 -5
  1003. data/mod/05_standard/spec/set/self/all_spec.rb +0 -48
  1004. data/mod/05_standard/spec/set/self/foot_spec.rb +0 -5
  1005. data/mod/05_standard/spec/set/self/head_spec.rb +0 -17
  1006. data/mod/05_standard/spec/set/self/navbox_spec.rb +0 -7
  1007. data/mod/05_standard/spec/set/self/now_spec.rb +0 -7
  1008. data/mod/05_standard/spec/set/self/recent_spec.rb +0 -5
  1009. data/mod/05_standard/spec/set/self/search_spec.rb +0 -5
  1010. data/mod/05_standard/spec/set/self/signin_spec.rb +0 -73
  1011. data/mod/05_standard/spec/set/self/stats_spec.rb +0 -12
  1012. data/mod/05_standard/spec/set/self/version_spec.rb +0 -7
  1013. data/mod/05_standard/spec/set/type/basic_spec.rb +0 -5
  1014. data/mod/05_standard/spec/set/type/cardtype_spec.rb +0 -5
  1015. data/mod/05_standard/spec/set/type/date_spec.rb +0 -7
  1016. data/mod/05_standard/spec/set/type/email_template_spec.rb +0 -199
  1017. data/mod/05_standard/spec/set/type/file_spec.rb +0 -5
  1018. data/mod/05_standard/spec/set/type/html_spec.rb +0 -23
  1019. data/mod/05_standard/spec/set/type/image_spec.rb +0 -16
  1020. data/mod/05_standard/spec/set/type/layout_type_spec.rb +0 -7
  1021. data/mod/05_standard/spec/set/type/number_spec.rb +0 -7
  1022. data/mod/05_standard/spec/set/type/phrase_spec.rb +0 -7
  1023. data/mod/05_standard/spec/set/type/search_type_spec.rb +0 -27
  1024. data/mod/05_standard/spec/set/type/set_spec.rb +0 -26
  1025. data/mod/05_standard/spec/set/type/signup_spec.rb +0 -227
  1026. data/mod/05_standard/spec/set/type/toggle_spec.rb +0 -12
  1027. data/mod/05_standard/spec/set/type/uri_spec.rb +0 -41
  1028. data/mod/05_standard/spec/set/type/user_spec.rb +0 -5
  1029. data/spec/lib/card/action_spec.rb +0 -14
  1030. data/spec/lib/card/auth_spec.rb +0 -17
  1031. data/spec/lib/card/chunk_spec.rb +0 -17
  1032. data/spec/lib/card/codename_spec.rb +0 -25
  1033. data/spec/lib/card/content_spec.rb +0 -314
  1034. data/spec/lib/card/diff_spec.rb +0 -210
  1035. data/spec/lib/card/format_spec.rb +0 -82
  1036. data/spec/lib/card/loader_spec.rb +0 -37
  1037. data/spec/lib/card/name_spec.rb +0 -279
  1038. data/spec/lib/card/query_spec.rb +0 -459
  1039. data/spec/lib/card/reference_spec.rb +0 -213
  1040. data/spec/lib/card/set_pattern_spec.rb +0 -56
  1041. data/spec/lib/card/set_spec.rb +0 -88
  1042. data/spec/lib/wagn/cache_spec.rb +0 -122
  1043. data/spec/lib/wagn/log_spec.rb +0 -262
  1044. data/spec/mailers/mailer_spec.rb +0 -63
  1045. data/spec/models/card/cardtype_spec.rb +0 -216
  1046. data/spec/models/card/create_spec.rb +0 -82
  1047. data/spec/models/card/trash_spec.rb +0 -260
  1048. data/spec/models/card/type_transition_spec.rb +0 -161
  1049. data/spec/models/card/validation_spec.rb +0 -36
  1050. data/spec/models/card_spec.rb +0 -177
  1051. data/spec/spec_helper.rb +0 -129
  1052. data/test/fixtures/.gitkeep +0 -0
  1053. data/test/fixtures/card_actions.yml +0 -4908
  1054. data/test/fixtures/card_acts.yml +0 -685
  1055. data/test/fixtures/card_changes.yml +0 -14683
  1056. data/test/fixtures/card_references.yml +0 -5069
  1057. data/test/fixtures/cards.yml +0 -13271
  1058. data/test/fixtures/mao2.jpg +0 -0
  1059. data/test/fixtures/rails.gif +0 -0
  1060. data/test/seed.rb +0 -170
@@ -1,58 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
-
3
- describe Card::Set::All::Initialize do
4
- describe "new" do
5
- it "handles explicit nil as parameters" do
6
- c = Card.new nil
7
- expect(c).to be_instance_of(Card)
8
- expect(c.name).to eq('')
9
- end
10
-
11
- it "handles nil name" do
12
- c = Card.new :name => nil
13
- expect(c).to be_instance_of(Card)
14
- expect(c.name).to eq('')
15
- end
16
-
17
- it 'handles legit name' do
18
- c = Card.new :name => 'Ceee'
19
- expect(c).to be_instance_of(Card)
20
- expect(c.name).to eq('Ceee')
21
- end
22
- end
23
-
24
-
25
- describe "module inclusion" do
26
- context '(search)' do
27
- before do
28
- @c = Card.new :type=>'Search', :name=>'Module Inclusion Test Card'
29
- end
30
-
31
- it "happens after new" do
32
- expect(@c.respond_to?( :get_query )).to be_truthy
33
- end
34
-
35
- it "happens after save" do
36
- expect(@c.respond_to?( :get_query )).to be_truthy
37
- @c.save!
38
- expect(@c.respond_to?( :get_query )).to be_truthy
39
- end
40
-
41
- it "happens after fetch" do
42
- @c.save!
43
- c = Card.fetch(@c.name)
44
- expect(c.respond_to?( :get_query )).to be_truthy
45
- end
46
- end
47
-
48
- context '(pointer)' do
49
- it "happens with explicit pointer setting" do
50
- expect(Card.new(:type=>'Pointer').respond_to?(:add_item)).to be_truthy
51
- end
52
-
53
- it "happens with implicit pointer setting (from template)" do
54
- expect(Card.new(:name=>'Home+*cc').respond_to?(:add_item)).to be_truthy
55
- end
56
- end
57
- end
58
- end
@@ -1,61 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
-
3
- describe Card::Set::All::Name do
4
- describe 'autoname' do
5
- before do
6
- Card::Auth.as_bot do
7
- @b1 = Card.create! :name=>'Book+*type+*autoname', :content=>'b1'
8
- end
9
- end
10
-
11
- it "should handle cards without names" do
12
- c = Card.create! :type=>'Book'
13
- expect(c.name).to eq('b1')
14
- end
15
-
16
- it "should increment again if name already exists" do
17
- b1 = Card.create! :type=>'Book'
18
- b2 = Card.create! :type=>'Book'
19
- expect(b2.name).to eq('b2')
20
- end
21
-
22
- it "should handle trashed names" do
23
- b1 = Card.create! :type=>'Book'
24
- Card::Auth.as_bot { b1.delete }
25
- b1 = Card.create! :type=>'Book'
26
- expect(b1.name).to eq('b1')
27
- end
28
- end
29
-
30
- describe 'codename' do
31
- before :each do
32
- @card = Card['a']
33
- end
34
-
35
- it 'should require admin permission' do
36
- @card.update_attributes :codename=>'structure'
37
- expect(@card.errors[:codename].first).to match(/only admins/)
38
- end
39
-
40
- it 'should check uniqueness' do
41
- Card::Auth.as_bot do
42
- @card.update_attributes :codename=>'structure'
43
- expect(@card.errors[:codename].first).to match(/already in use/)
44
- end
45
- end
46
-
47
- end
48
-
49
- describe 'repair_key' do
50
- it 'should fix broken keys' do
51
- a = Card['a']
52
- a.update_column 'key', 'broken_a'
53
- a.expire
54
-
55
- a = Card.find a.id
56
- expect(a.key).to eq('broken_a')
57
- a.repair_key
58
- expect(a.key).to eq('a')
59
- end
60
- end
61
- end
@@ -1,199 +0,0 @@
1
- shared_examples_for 'notifications' do
2
- # describe '#change_notice' do
3
- # context 'for new card with subcards' do
4
- # name = "another card with subcards"
5
- # content = "main content {{+s1}} {{+s2}}"
6
- # sub1_content = 'new content of subcard 1'
7
- # sub2_content = 'new content of subcard 2'
8
- # before do
9
- # Card::Auth.as_bot do
10
- # @card = Card.create!(:name=>name, :content=>content,
11
- # :subcards=>{ '+s1'=>{:content=>sub1_content},
12
- # '+s2'=>{:content=>sub2_content} })
13
- # end
14
- # end
15
- # subject { @card.format(format).render_change_notice }
16
- # it { is_expected.to include content }
17
- # it { is_expected.to include sub1_content }
18
- # it { is_expected.to include sub2_content }
19
- #
20
- # context 'and missing permissions' do
21
- # subject { Card.fetch(@card.name).format(format).render_change_notice }
22
- # context 'for subcard' do
23
- # before do
24
- # Card.create_or_update! "#{name}+s1+*self+*read",:type=>'Pointer',:content=>'[[Administrator]]'
25
- # end
26
- # it "excludes subcard content" do
27
- # Card::Auth.as(:joe_user) do
28
- # is_expected.not_to include sub1_content
29
- # is_expected.to include sub2_content
30
- # end
31
- # end
32
- # end
33
- # context 'for main card' do
34
- # before do
35
- # Card.create_or_update! "#{name}+*self+*read",:type=>'Pointer',:content=>'[[Administrator]]'
36
- # Card.create_or_update! "#{name}+s1+*self+*read",:type=>'Pointer',:content=>'[[Anyone]]'
37
- # end
38
- # it 'includes subcard content' do
39
- # Card::Auth.as(:joe_user) do
40
- # is_expected.to include sub1_content
41
- # end
42
- # end
43
- # it "excludes maincard content" do
44
- # Card::Auth.as(:joe_user) do
45
- # is_expected.not_to include content
46
- # is_expected.not_to be_empty
47
- # end
48
- # end
49
- # end
50
- # context 'for all parts' do
51
- # before do
52
- # #Card.create_or_update! "#{name}+s1+*self+*read",:type=>'Pointer',:content=>'[[Administrator]]'
53
- # #Card.create_or_update! "#{name}+s2+*self+*read",:type=>'Pointer',:content=>'[[Administrator]]'
54
- # Card.create_or_update! "s1+*self+*read",:type=>'Pointer',:content=>'[[Administrator]]'
55
- # Card.create_or_update! "s2+*self+*read",:type=>'Pointer',:content=>'[[Administrator]]'
56
- # Card.create_or_update! "#{name}+*self+*read",:type=>'Pointer',:content=>'[[Administrator]]'
57
- # end
58
- # it { is_expected.to be_empty }
59
- # end
60
- # end
61
- # end
62
- # end
63
-
64
- describe '#list_of_changes' do
65
- name = 'subedit notice'
66
- content = 'new content'
67
-
68
- before do
69
- @card = Card.create!(:name=>name, :content=>content)
70
- end
71
- subject { @card.format(format).render_list_of_changes }
72
-
73
- context 'for a new card' do
74
- it { is_expected.to include "content: #{content}" }
75
- it { is_expected.to include 'cardtype: Basic' }
76
- end
77
- context 'for a updated card' do
78
- before { @card.update_attributes!(:name=>'bnn card', :type=>:pointer, :content=>'changed content') }
79
- it { is_expected.to include 'new content: [[changed content]]' }
80
- it { is_expected.to include 'new cardtype: Pointer' }
81
- it { is_expected.to include 'new name: bnn card' }
82
- end
83
- context 'for a deleted card' do
84
- before { @card.delete }
85
- it { is_expected.to be_empty }
86
- end
87
-
88
- context 'for a given action' do
89
- subject do
90
- action = @card.last_action
91
- @card.update_attributes!(:name=>'bnn card', :type=>:pointer, :content=>'changed content')
92
- @card.format(format).render_list_of_changes(:action=>action)
93
- end
94
- it { is_expected.to include "content: #{content}" }
95
- end
96
- context 'for a given action id' do
97
- subject do
98
- action_id = @card.last_action.id
99
- @card.update_attributes!(:name=>'bnn card', :type=>:pointer, :content=>'changed content')
100
- @card.format(format).render_list_of_changes(:action_id=>action_id)
101
- end
102
- it { is_expected.to include "content: #{content}" }
103
- end
104
- end
105
-
106
- describe 'subedit_notice' do
107
- def list_of_changes_for card
108
- card.db_content
109
- end
110
- name = 'subedit notice card'
111
- content = 'new content'
112
- before do
113
- @card = Card.create!(:name=>name, :content=>content)
114
- end
115
- subject { @card.format(format).render_subedit_notice }
116
-
117
- context 'for a new card' do
118
- it { is_expected.to include name }
119
- it { is_expected.to include 'created' }
120
- it { is_expected.to include list_of_changes_for @card }
121
- end
122
-
123
- context 'for a updated card' do
124
- changed_name = 'changed subedit notice'
125
- changed_content = 'changed content'
126
- before { @card.update_attributes!(:name=>changed_name, :content=>changed_content) }
127
- it { is_expected.to include changed_name }
128
- it { is_expected.to include 'updated' }
129
- it { is_expected.to include list_of_changes_for @card }
130
- end
131
-
132
- context 'for a deleted card' do
133
- before { @card.delete }
134
- it { is_expected.to include name }
135
- it { is_expected.to include 'deleted' }
136
- end
137
- end
138
- end
139
-
140
-
141
- describe Card::Set::All::Notify do
142
- describe 'html format' do
143
- include_examples 'notifications' do
144
- let(:format) { 'email_html' }
145
- end
146
-
147
- # it 'contains html' do
148
- # card = Card.create! :name=>'new card'
149
- # expect(card.format(:email_html).render_change_notice).to include '<p>'
150
- # end
151
- end
152
-
153
- describe 'text format' do
154
- include_examples 'notifications' do
155
- let(:format) { 'email_text' }
156
- end
157
-
158
- # it 'does not contain html' do
159
- # card = Card.create! :name=>'new card'
160
- # expect(card.format(:email_text).render_change_notice).not_to match /<\w+>/
161
- # end
162
- # it 'creates well formatted text message' do
163
- # name = "another card with subcards"
164
- # content = "main content {{+s1}} {{+s2}}"
165
- # sub1_content = 'new content of subcard 1'
166
- # sub2_content = 'new content of subcard 2'
167
- # Card::Auth.as_bot do
168
- # @card = Card.create!(:name=>name, :content=>content,
169
- # :subcards=>{ '+s1'=>{:content=>sub1_content},
170
- # '+s2'=>{:content=>sub2_content} })
171
- # end
172
- # result = @card.format(:email_text).render_change_notice
173
- # expect(result).to eq(%{Dear My Wagn user
174
- #
175
- # "another card with subcards"
176
- # was just created by Joe User
177
- # cardtype: Basic
178
- # content: main content {{+s1}} {{+s2}}
179
- #
180
- # This update included the following changes:
181
- #
182
- # another card with subcards+s1 created
183
- # cardtype: Basic
184
- # content: new content of subcard 1
185
- #
186
- #
187
- # another card with subcards+s2 created
188
- # cardtype: Basic
189
- # content: new content of subcard 2
190
- #
191
- #
192
- # See the card: /another_card_with_subcards
193
- #
194
- # You received this email because you're following "".
195
- # Visit /update/+*following?drop_item= to stop receiving these emails.})
196
- # end
197
-
198
- end
199
- end
@@ -1,81 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
-
3
- describe Card::Set::All::Pattern do
4
-
5
- describe :set_names do
6
- it "returns self, type, all for simple cards" do
7
- Card::Auth.as_bot do
8
- card = Card.new( :name => "AnewCard" )
9
- expect(card.set_names).to eq([ "Basic+*type","*all"])
10
- card.save!
11
- card = Card.fetch("AnewCard")
12
- expect(card.set_names).to eq([ "AnewCard+*self","Basic+*type","*all"])
13
- end
14
- end
15
-
16
- it "returns set names for simple star cards" do
17
- Card::Auth.as_bot do
18
- expect(Card.fetch('*update').set_names).to eq([
19
- "*update+*self","*star","Setting+*type","*all"
20
- ])
21
- end
22
- end
23
-
24
- it "returns set names for junction cards" do
25
- Card::Auth.as_bot do
26
- expect(Card.new( :name=>"Iliad+author" ).set_names).to eq([
27
- "Book+author+*type plus right","author+*right","Basic+*type","*all plus","*all"
28
- ])
29
- end
30
- end
31
-
32
- it "returns set names for compound star cards" do
33
- Card::Auth.as_bot do
34
- expect(Card.new( :name=>"Iliad+*to" ).set_names).to eq([
35
- "Book+*to+*type plus right","*to+*right","*rstar","Pointer+*type","*all plus","*all"
36
- ])
37
- end
38
- end
39
-
40
- it "handles type plus right prototypes properly" do #right place for this? really need more prototype tests...
41
- Card::Auth.as_bot do
42
- expect(Card.fetch('Fruit+flavor+*type plus right').prototype.set_names.include?('Fruit+flavor+*type plus right')).to be_truthy
43
- end
44
- end
45
- end
46
-
47
-
48
- describe :rule_set_keys do
49
- it "returns correct set names for new cards" do
50
- card = Card.new :name => "AnewCard"
51
- expect(card.rule_set_keys).to eq([ "#{Card::BasicID}+type", "all"])
52
- end
53
-
54
- end
55
-
56
- describe :safe_set_keys do
57
- it "returns css names for simple star cards" do
58
- Card::Auth.as_bot do
59
- card = Card.new( :name => "*AnewCard")
60
- expect(card.safe_set_keys).to eq("ALL TYPE-basic STAR")
61
- card.save!
62
- card = Card.fetch("*AnewCard")
63
- expect(card.safe_set_keys).to eq("ALL TYPE-basic STAR SELF-Xanew_card")
64
- end
65
- end
66
-
67
- it "returns set names for junction cards" do
68
- card=Card.new( :name=>"Iliad+author" )
69
- expect(card.safe_set_keys).to eq("ALL ALL_PLUS TYPE-basic RIGHT-author TYPE_PLUS_RIGHT-book-author")
70
- card.save!
71
- card = Card.fetch("Iliad+author")
72
- expect(card.safe_set_keys).to eq("ALL ALL_PLUS TYPE-basic RIGHT-author TYPE_PLUS_RIGHT-book-author SELF-iliad-author")
73
- end
74
- end
75
-
76
- describe :label do
77
- it "returns label for name" do
78
- expect(Card.new(:name=>'address+*right').label).to eq(%{All "+address" cards})
79
- end
80
- end
81
- end
@@ -1,505 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
-
3
- class ::Card
4
- def writeable_by(user)
5
- Card::Auth.as(user.id) do
6
- #warn "writeable #{Card::Auth.as_id}, #{user.inspect}"
7
- ok? :update
8
- end
9
- end
10
-
11
- def readable_by(user)
12
- Card::Auth.as(user.id) do
13
- ok? :read
14
- end
15
- end
16
- end
17
-
18
-
19
- module PermissionSpecHelper
20
-
21
- def assert_hidden_from( user, card, msg='')
22
- Card::Auth.as(user.id) { assert_hidden( card, msg ) }
23
- end
24
-
25
- def assert_not_hidden_from( user, card, msg='')
26
- Card::Auth.as(user.id) { assert_not_hidden( card, msg ) }
27
- end
28
-
29
- def assert_locked_from( user, card, msg='')
30
- Card::Auth.as(user.id) { assert_locked( card, msg ) }
31
- end
32
-
33
- def assert_not_locked_from( user, card, msg='')
34
- Card::Auth.as(user.id) { assert_not_locked( card, msg ) }
35
- end
36
-
37
- def assert_hidden( card, msg='' )
38
- assert !card.ok?(:read)
39
- assert_equal [], Card.search(:id=>card.id).map(&:name), msg
40
- end
41
-
42
- def assert_not_hidden( card, msg='' )
43
- assert card.ok?(:read)
44
- assert_equal [card.name], Card.search(:id=>card.id).map(&:name), msg
45
- end
46
-
47
- def assert_locked( card, msg='' )
48
- assert_equal false, card.ok?(:update), msg
49
- end
50
-
51
- def assert_not_locked( card, msg='' )
52
- assert_equal true, card.ok?(:update), msg
53
- end
54
- end
55
-
56
- include PermissionSpecHelper
57
-
58
- describe Card::Set::All::Permissions do
59
-
60
- #FIXME - lots of good tests here, but generally disorganized.
61
-
62
- describe "reader rules" do
63
- before do
64
- @perm_card = Card.new(:name=>'Home+*self+*read', :type=>'Pointer', :content=>'[[Anyone Signed In]]')
65
- end
66
-
67
- it "should be *all+*read by default" do
68
- card = Card.fetch('Home')
69
- expect(card.read_rule_id).to eq(Card.fetch('*all+*read').id)
70
- expect(card.who_can(:read)).to eq([Card::AnyoneID])
71
- Card::Auth.as(:anonymous){ expect(card.ok?(:read)).to be_truthy }
72
- end
73
-
74
- it "should update to role ('Anyone Signed In')" do
75
-
76
- name = @perm_card.name
77
- Card::Auth.as_bot { @perm_card.save! }
78
- pc = Card[name]
79
- card = Card['Home']
80
- #warn "card #{name}, #{card.inspect}, #{pc.inspect}"
81
- expect(pc).to be
82
- expect(card.read_rule_id).to eq(pc.id)
83
- expect(card.who_can(:read)).to eq([Card::AnyoneSignedInID])
84
- Card::Auth.as(:anonymous){ expect(card.ok?(:read)).to be_falsey }
85
- end
86
-
87
- it "should update to user ('Joe Admin')" do
88
- @perm_card.content = '[[Joe Admin]]'
89
- Card::Auth.as_bot { @perm_card.save! }
90
-
91
- card = Card.fetch('Home')
92
- expect(card.read_rule_id).to eq(@perm_card.id)
93
- expect(card.who_can(:read)).to eq([Card['joe_admin'].id])
94
- Card::Auth.as(:anonymous) { expect(card.ok?(:read)).to be_falsey }
95
- Card::Auth.as(:joe_user) { expect(card.ok?(:read)).to be_falsey }
96
- Card::Auth.as(:joe_admin) { expect(card.ok?(:read)).to be_truthy }
97
- Card::Auth.as_bot { expect(card.ok?(:read)).to be_truthy }
98
- end
99
-
100
- it "should revert to more general rule when more specific (self) rule is deleted" do
101
- Card::Auth.as_bot do
102
- @perm_card.save!
103
- @perm_card.delete!
104
- end
105
- card = Card.fetch('Home')
106
- expect(card.read_rule_id).to eq(Card.fetch('*all+*read').id)
107
- end
108
-
109
- it "should revert to more general rule when more specific (right) rule is deleted" do
110
- pc = nil
111
- Card::Auth.as_bot do
112
- pc=Card.create(:name=>'B+*right+*read', :type=>'Pointer', :content=>'[[Anyone Signed In]]')
113
- end
114
- expect(pc).to be
115
- card = Card.fetch('A+B')
116
- expect(card.read_rule_id).to eq(pc.id)
117
- pc = Card.fetch(pc.name) #important to re-fetch to catch issues with detecting change in trash status.
118
- Card::Auth.as_bot { pc.delete }
119
- card = Card.fetch('A+B')
120
- expect(card.read_rule_id).to eq(Card.fetch('*all+*read').id)
121
- end
122
-
123
- it "should revert to more general rule when more specific rule is renamed" do
124
-
125
- Card::Auth.as_bot do
126
- @perm_card.save!
127
- @perm_card = Card[@perm_card.name]
128
- @perm_card.name = 'Something else+*self+*read'
129
- @perm_card.save!
130
- end
131
-
132
- card = Card.fetch('Home')
133
- expect(card.read_rule_id).to eq(Card.fetch('*all+*read').id)
134
- end
135
-
136
- it "should not be overruled by a more general rule added later" do
137
- Card::Auth.as_bot do
138
- @perm_card.save!
139
- c= Card.fetch('Home')
140
- c.type_id = Card::PhraseID
141
- c.save!
142
- Card.create(:name=>'Phrase+*type+*read', :type=>'Pointer', :content=>'[[Joe User]]')
143
- end
144
-
145
- card = Card.fetch('Home')
146
- expect(card.read_rule_id).to eq(@perm_card.id)
147
- end
148
-
149
- it "should get updated when trunk type change makes type-plus-right apply / unapply" do
150
- @perm_card.name = "Phrase+B+*type plus right+*read"
151
- Card::Auth.as_bot { @perm_card.save! }
152
- expect(Card.fetch('A+B').read_rule_id).to eq(Card.fetch('*all+*read').id)
153
- c = Card.fetch('A')
154
- c.type_id = Card::PhraseID
155
- c.save!
156
- expect(Card.fetch('A+B').read_rule_id).to eq(@perm_card.id)
157
- end
158
-
159
- it "should work with relative settings" do
160
- Card::Auth.as_bot do
161
- @perm_card.save!
162
- all_plus = Card.fetch '*all plus+*read', :new=>{:content=>'_left'}
163
- all_plus.save
164
- end
165
- c = Card.new(:name=>'Home+Heart')
166
- expect(c.who_can(:read)).to eq([Card::AnyoneSignedInID])
167
- expect(c.permission_rule_card(:read).first.id).to eq(@perm_card.id)
168
- c.save
169
- expect(c.read_rule_id).to eq(@perm_card.id)
170
- end
171
-
172
- it "should get updated when relative settings change" do
173
- Card::Auth.as_bot do
174
- all_plus = Card.fetch '*all plus+*read', :new=>{:content=>'_left'}
175
- all_plus.save
176
- end
177
- c = Card.new(:name=>'Home+Heart')
178
- expect(c.who_can(:read)).to eq([Card::AnyoneID])
179
- expect(c.permission_rule_card(:read).first.id).to eq(Card.fetch('*all+*read').id)
180
- c.save
181
- expect(c.read_rule_id).to eq(Card.fetch('*all+*read').id)
182
- Card::Auth.as_bot { @perm_card.save! }
183
- c2 = Card.fetch('Home+Heart')
184
- expect(c2.who_can(:read)).to eq([Card::AnyoneSignedInID])
185
- expect(c2.read_rule_id).to eq(@perm_card.id)
186
- expect(Card.fetch('Home+Heart').read_rule_id).to eq(@perm_card.id)
187
- Card::Auth.as_bot{ @perm_card.delete }
188
- expect(Card.fetch('Home').read_rule_id).to eq(Card.fetch('*all+*read').id)
189
- expect(Card.fetch('Home+Heart').read_rule_id).to eq(Card.fetch('*all+*read').id)
190
- end
191
-
192
- it "should insure that class overrides work with relative settings" do
193
- Card::Auth.as_bot do
194
- all_plus = Card.fetch '*all plus+*read', :new => { :content=>'_left' }
195
- all_plus.save
196
- Card::Auth.as_bot { @perm_card.save! }
197
- c = Card.create(:name=>'Home+Heart')
198
- expect(c.read_rule_id).to eq(@perm_card.id)
199
- r = Card.create(:name=>'Heart+*right+*read', :type=>'Pointer', :content=>'[[Administrator]]')
200
- expect(Card.fetch('Home+Heart').read_rule_id).to eq(r.id)
201
- end
202
- end
203
-
204
- it "should work on virtual+virtual cards" do
205
- c = Card.fetch('Number+*type+by name')
206
- expect(c.ok?(:read)).to be_truthy
207
- end
208
-
209
- end
210
-
211
-
212
-
213
- context '??' do
214
- before do
215
- Card::Auth.as_bot do
216
- # Card::Auth.cache.reset
217
- @u1, @u2, @u3, @r1, @r2, @r3, @c1, @c2, @c3 =
218
- %w( u1 u2 u3 r1 r2 r3 c1 c2 c3 ).map do |x| Card[x] end
219
- end
220
- end
221
-
222
-
223
- it "checking ok read should not add to errors" do
224
- Card::Auth.as_bot do
225
- expect(Card::Auth.always_ok?).to eq(true)
226
- end
227
- Card::Auth.as(:joe_user) do
228
- expect(Card::Auth.always_ok?).to eq(false)
229
- end
230
- Card::Auth.as(:joe_admin) do
231
- expect(Card::Auth.always_ok?).to eq(true)
232
- Card.create! :name=>"Hidden"
233
- Card.create(:name=>'Hidden+*self+*read', :type=>'Pointer', :content=>'[[Anyone Signed In]]')
234
- end
235
-
236
- Card::Auth.as(:anonymous) do
237
- h = Card.fetch('Hidden')
238
- expect(h.ok?(:read)).to eq(false)
239
- expect(h.errors.empty?).not_to eq(nil)
240
- end
241
- end
242
-
243
- it "should be granted to admin if to anybody" do
244
- Card::Auth.as_bot do
245
- c1 = Card['c1']
246
- Card.create! :name=>'c1+*self+*comment', :type=>'Pointer', :content=>'[[r1]]'
247
- expect(c1.who_can( :comment )).to eq([Card['r1'].id])
248
- expect(c1.ok?(:comment)).to be_truthy
249
- end
250
- end
251
-
252
- it "reader setting" do
253
- Card.where(:trash=>false).each do |c|
254
- prc = c.permission_rule_card(:read)
255
- #warn "C #{c.inspect}, #{c.read_rule_id}, #{prc.first.id}, #{c.read_rule_class}, #{prc.second}, #{prc.first.inspect}" unless prc.last == c.read_rule_class && prc.first.id == c.read_rule_id
256
- expect(prc.last).to eq(c.read_rule_class)
257
- expect(prc.first.id).to eq(c.read_rule_id)
258
- end
259
- end
260
-
261
-
262
- it "write user permissions" do
263
- Card::Auth.as_bot do
264
- @u1.fetch(:trait=>:roles, :new=>{}).items = [@r1, @r2]
265
- @u2.fetch(:trait=>:roles, :new=>{}).items = [@r1, @r3]
266
- @u3.fetch(:trait=>:roles, :new=>{}).items = [@r1, @r2, @r3]
267
-
268
- cards=[1,2,3].map do |num|
269
- Card.create(:name=>"c#{num}+*self+*update", :type=>'Pointer', :content=>"[[u#{num}]]")
270
- end
271
- end
272
-
273
- @c1 = Card['c1']
274
- assert_not_locked_from( @u1, @c1 )
275
- assert_locked_from( @u2, @c1 )
276
- assert_locked_from( @u3, @c1 )
277
-
278
- @c2 = Card['c2']
279
- assert_locked_from( @u1, @c2 )
280
- assert_not_locked_from( @u2, @c2 )
281
- assert_locked_from( @u3, @c2 )
282
- end
283
-
284
- it "read group permissions" do
285
- Card::Auth.as_bot do
286
- @u1.fetch(:trait=>:roles).items = [@r1, @r2]
287
- @u2.fetch(:trait=>:roles).items = [@r1, @r3]
288
-
289
- [1,2,3].each do |num|
290
- Card.create(:name=>"c#{num}+*self+*read", :type=>'Pointer', :content=>"[[r#{num}]]")
291
- end
292
- end
293
-
294
- assert_not_hidden_from( @u1, @c1 )
295
- assert_not_hidden_from( @u1, @c2 )
296
- assert_hidden_from( @u1, @c3 )
297
-
298
- assert_not_hidden_from( @u2, @c1 )
299
- assert_hidden_from( @u2, @c2 )
300
- assert_not_hidden_from( @u2, @c3 )
301
- end
302
-
303
- it "write group permissions" do
304
- Card::Auth.as_bot do
305
- [1,2,3].each do |num|
306
- Card.create(:name=>"c#{num}+*self+*update", :type=>'Pointer', :content=>"[[r#{num}]]")
307
- end
308
-
309
- @u3.fetch(:trait=>:roles, :new=>{}).items = [@r1]
310
- end
311
-
312
- %{ u1 u2 u3
313
- c1(r1) T T T
314
- c2(r2) T T F
315
- c3(r3) T F F
316
- }
317
-
318
- assert_equal true, @c1.writeable_by(@u1), "c1 writeable by u1"
319
- assert_equal true, @c1.writeable_by(@u2), "c1 writeable by u2"
320
- assert_equal true, @c1.writeable_by(@u3), "c1 writeable by u3"
321
- assert_equal true, @c2.writeable_by(@u1), "c2 writeable by u1"
322
- assert_equal true, @c2.writeable_by(@u2), "c2 writeable by u2"
323
- assert_equal false, @c2.writeable_by(@u3), "c2 writeable by u3"
324
- assert_equal true, @c3.writeable_by(@u1), "c3 writeable by u1"
325
- assert_equal false, @c3.writeable_by(@u2), "c3 writeable by u2"
326
- assert_equal false, @c3.writeable_by(@u3), "c3 writeable by u3"
327
- end
328
-
329
- it "read user permissions" do
330
- Card::Auth.as_bot {
331
- @u1.fetch(:trait=>:roles, :new=>{}).items = [@r1, @r2]
332
- @u2.fetch(:trait=>:roles, :new=>{}).items = [@r1, @r3]
333
- @u3.fetch(:trait=>:roles, :new=>{}).items = [@r1, @r2, @r3]
334
-
335
- [1,2,3].each do |num|
336
- Card.create(:name=>"c#{num}+*self+*read", :type=>'Pointer', :content=>"[[u#{num}]]")
337
- end
338
- }
339
-
340
-
341
- # NOTE: retrieving private cards is known not to work now.
342
- # assert_not_hidden_from( @u1, @c1 )
343
- # assert_not_hidden_from( @u2, @c2 )
344
-
345
- assert_hidden_from( @u2, @c1 )
346
- assert_hidden_from( @u3, @c1 )
347
- assert_hidden_from( @u1, @c2 )
348
- assert_hidden_from( @u3, @c2 )
349
- end
350
-
351
- context "create permissions" do
352
- before do
353
- Card::Auth.as_bot do
354
- Card.create! :name=>'*structure+*right+*create', :type=>'Pointer', :content=>'[[Anyone Signed In]]'
355
- Card.create! :name=>'*self+*right+*create', :type=>'Pointer', :content=>'[[Anyone Signed In]]'
356
- end
357
- end
358
-
359
- it "should inherit" do
360
- Card::Auth.as(:anyone_signed_in) do
361
- expect(Card.fetch( 'A+*self' ).ok?(:create)).to be_truthy #explicitly granted above
362
- expect(Card.fetch( 'A+*right').ok?(:create)).to be_falsey #by default restricted
363
-
364
- expect(Card.fetch( 'A+*self+*structure', :new=>{} ).ok?(:create)).to be_truthy # +*structure granted;
365
- expect(Card.fetch( 'A+*right+*structure', :new=>{} ).ok?(:create)).to be_falsey # can't create A+B, therefore can't create A+B+C
366
- end
367
- end
368
-
369
- end
370
-
371
-
372
- it "private wql" do
373
- # set up cards of type TestType, 2 with nil reader, 1 with role1 reader
374
- Card::Auth.as_bot do
375
- [@c1,@c2,@c3].each do |c|
376
- c.update_attributes :content => 'WeirdWord'
377
- end
378
- Card.create(:name=>"c1+*self+*read", :type=>'Pointer', :content=>"[[u1]]")
379
- end
380
-
381
- Card::Auth.as(@u1) do
382
- expect(Card.search(:content=>'WeirdWord').map(&:name).sort).to eq(%w( c1 c2 c3 ))
383
- end
384
- Card::Auth.as(@u2) do
385
- expect(Card.search(:content=>'WeirdWord').map(&:name).sort).to eq(%w( c2 c3 ))
386
- end
387
- end
388
-
389
- it "role wql" do
390
- #warn "u1 roles #{Card[ @u1.id ].fetch(:trait=>:roles).item_names.inspect}"
391
-
392
- # set up cards of type TestType, 2 with nil reader, 1 with role1 reader
393
- Card::Auth.as_bot do
394
- [@c1,@c2,@c3].each do |c|
395
- c.update_attributes :content => 'WeirdWord'
396
- end
397
- Card.create(:name=>"c1+*self+*read", :type=>'Pointer', :content=>"[[r3]]")
398
- end
399
-
400
- Card::Auth.as(@u1) do
401
- expect(Card.search(:content=>'WeirdWord').map(&:name).sort).to eq(%w( c1 c2 c3 ))
402
- end
403
- Card::Auth.current_id =nil # for Card::Auth.as to be effective, you can't have a logged in user
404
- Card::Auth.as(@u2) do
405
- expect(Card.search(:content=>'WeirdWord').map(&:name).sort).to eq(%w( c2 c3 ))
406
- end
407
- end
408
-
409
- def permission_matrix
410
- # TODO
411
- # generate this graph three ways:
412
- # given a card with editor in group X, can Y edit it?
413
- # given a card with reader in group X, can Y view it?
414
- # given c card with group anon, can Y change the reader/writer to X
415
-
416
- # X,Y in Anon, auth Member, auth Nonmember, admin
417
-
418
- %{
419
- A V C J G
420
- A * * * * *
421
- V * * . * .
422
- C * * * . .
423
- J * * . . .
424
- G * . . . .
425
- }
426
-
427
- end
428
-
429
- end
430
-
431
-
432
-
433
-
434
- it "should let joe view new cards" do
435
- expect(Card.new.ok?(:read)).to be_truthy
436
- end
437
-
438
-
439
- context "default permissions" do
440
- before do
441
- @c = Card.create! :name=>"sky blue"
442
- end
443
-
444
- it "should let anonymous users view basic cards" do
445
- Card::Auth.as :anonymous do
446
- expect(@c.ok?(:read)).to be_truthy
447
- end
448
- end
449
-
450
- it "should let joe user basic cards" do
451
- Card::Auth.as :joe_user do
452
- expect(@c.ok?(:read)).to be_truthy
453
- end
454
- end
455
- end
456
-
457
- it "should allow anyone signed in to create Basic Cards" do
458
- expect(Card.new.ok?(:create)).to be_truthy
459
- end
460
-
461
- it "should not allow someone not signed in to create Basic Cards" do
462
- Card::Auth.as :anonymous do
463
- expect(Card.new.ok?(:create)).not_to be_truthy
464
- end
465
- end
466
-
467
-
468
-
469
- context "settings based permissions" do
470
- before do
471
- Card::Auth.as_bot do
472
- @delete_rule_card = Card.fetch '*all+*delete', :new=>{}
473
- @delete_rule_card.type_id = Card::PointerID
474
- @delete_rule_card.content = '[[Joe_User]]'
475
- @delete_rule_card.save!
476
- end
477
- end
478
-
479
- it "should handle delete as a setting" do
480
- c = Card.new :name=>'whatever'
481
- expect(c.who_can(:delete)).to eq([Card['joe_user'].id])
482
- Card::Auth.as(:joe_user) do
483
- expect(c.ok?(:delete)).to eq(true)
484
- end
485
- Card::Auth.as(:u1) do
486
- expect(c.ok?(:delete)).to eq(false)
487
- end
488
- Card::Auth.as(:anonymous) do
489
- expect(c.ok?(:delete)).to eq(false)
490
- end
491
- Card::Auth.as_bot do
492
- expect(c.ok?(:delete)).to eq(true) #because administrator
493
- end
494
- end
495
- end
496
-
497
-
498
-
499
- end
500
-
501
-
502
- # FIXME-perm
503
-
504
- # need test for
505
- # changing cardtypes gives you correct permissions (changing cardtype in general...)