blocky 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +20 -0
  3. data/README.md +59 -0
  4. data/Rakefile +34 -0
  5. data/app/assets/javascripts/blocky/application.js +21 -0
  6. data/app/assets/javascripts/blocky/flash_messages.js +20 -0
  7. data/app/assets/stylesheets/blocky/_imports.scss +3 -0
  8. data/app/assets/stylesheets/blocky/_variables.scss +37 -0
  9. data/app/assets/stylesheets/blocky/application.css.scss +20 -0
  10. data/app/assets/stylesheets/blocky/application/content_blocks/edit.scss +13 -0
  11. data/app/assets/stylesheets/blocky/application/content_blocks/index.scss +81 -0
  12. data/app/assets/stylesheets/blocky/application/layout.scss +30 -0
  13. data/app/assets/stylesheets/blocky/shared/buttons.scss +119 -0
  14. data/app/assets/stylesheets/blocky/shared/flash_messages.scss +28 -0
  15. data/app/assets/stylesheets/blocky/shared/typography/body.scss +91 -0
  16. data/app/assets/stylesheets/blocky/shared/typography/forms.scss +81 -0
  17. data/app/assets/stylesheets/blocky/shared/typography/headings.scss +38 -0
  18. data/app/assets/stylesheets/blocky/shared/typography/lists.scss +22 -0
  19. data/app/controllers/blocky/application_controller.rb +7 -0
  20. data/app/controllers/blocky/content_blocks_controller.rb +44 -0
  21. data/app/controllers/concerns/blocky/auth.rb +53 -0
  22. data/app/helpers/blocky/application_helper.rb +26 -0
  23. data/app/helpers/blocky_helper.rb +18 -0
  24. data/app/models/blocky/ability.rb +11 -0
  25. data/app/models/blocky/content_block.rb +27 -0
  26. data/app/views/blocky/content_blocks/_content_block.html.erb +1 -0
  27. data/app/views/blocky/content_blocks/edit.html.erb +44 -0
  28. data/app/views/blocky/content_blocks/index.html.erb +84 -0
  29. data/app/views/layouts/blocky/_flash_messages.html.erb +13 -0
  30. data/app/views/layouts/blocky/application.html.erb +20 -0
  31. data/config/jshint.json +28 -0
  32. data/config/routes.rb +3 -0
  33. data/db/migrate/20140326210255_create_blocky_content_blocks.rb +12 -0
  34. data/lib/blocky.rb +8 -0
  35. data/lib/blocky/engine.rb +19 -0
  36. data/lib/blocky/version.rb +3 -0
  37. data/lib/generators/blocky/install_generator.rb +94 -0
  38. data/lib/tasks/blocky_tasks.rake +4 -0
  39. data/spec/dummy/README.rdoc +28 -0
  40. data/spec/dummy/Rakefile +6 -0
  41. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  42. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  43. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  44. data/spec/dummy/app/controllers/static_pages_controller.rb +7 -0
  45. data/spec/dummy/app/helpers/application_helper.rb +3 -0
  46. data/spec/dummy/app/models/blocky/ability.rb +9 -0
  47. data/spec/dummy/app/views/layouts/application.html.erb +25 -0
  48. data/spec/dummy/app/views/static_pages/contact.html.erb +5 -0
  49. data/spec/dummy/app/views/static_pages/home.html.erb +7 -0
  50. data/spec/dummy/bin/bundle +3 -0
  51. data/spec/dummy/bin/rails +4 -0
  52. data/spec/dummy/bin/rake +4 -0
  53. data/spec/dummy/config.ru +4 -0
  54. data/spec/dummy/config/application.rb +23 -0
  55. data/spec/dummy/config/boot.rb +5 -0
  56. data/spec/dummy/config/database.yml +25 -0
  57. data/spec/dummy/config/environment.rb +5 -0
  58. data/spec/dummy/config/environments/development.rb +29 -0
  59. data/spec/dummy/config/environments/production.rb +80 -0
  60. data/spec/dummy/config/environments/test.rb +36 -0
  61. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  62. data/spec/dummy/config/initializers/blocky.rb +4 -0
  63. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  64. data/spec/dummy/config/initializers/inflections.rb +16 -0
  65. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  66. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  67. data/spec/dummy/config/initializers/session_store.rb +3 -0
  68. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  69. data/spec/dummy/config/locales/en.yml +23 -0
  70. data/spec/dummy/config/routes.rb +5 -0
  71. data/spec/dummy/db/development.sqlite3 +0 -0
  72. data/spec/dummy/db/migrate/20140326211453_create_blocky_content_blocks.blocky.rb +13 -0
  73. data/spec/dummy/db/schema.rb +25 -0
  74. data/spec/dummy/db/test.sqlite3 +0 -0
  75. data/spec/dummy/log/development.log +14038 -0
  76. data/spec/dummy/log/test.log +151 -0
  77. data/spec/dummy/public/404.html +58 -0
  78. data/spec/dummy/public/422.html +58 -0
  79. data/spec/dummy/public/500.html +57 -0
  80. data/spec/dummy/public/favicon.ico +0 -0
  81. data/spec/dummy/tmp/cache/E76/DE0/blocky%2Fcontent_blocks%2F1-20140326211612204255000 +1 -0
  82. data/spec/dummy/tmp/cache/E79/630/blocky%2Fcontent_blocks%2F5-20140326220740803013000 +0 -0
  83. data/spec/dummy/tmp/cache/E7D/2C0/blocky%2Fcontent_blocks%2F2-20140326211803501817000 +1 -0
  84. data/spec/dummy/tmp/cache/E7F/480/blocky%2Fcontent_blocks%2F2-20140326211735204743000 +0 -0
  85. data/spec/dummy/tmp/cache/E83/720/blocky%2Fcontent_blocks%2F3-20140326212218805733000 +0 -0
  86. data/spec/dummy/tmp/cache/E85/4F0/blocky%2Fcontent_blocks%2F1-20140326211503578725000 +0 -0
  87. data/spec/dummy/tmp/cache/E8A/C50/blocky%2Fcontent_blocks%2F6-20140520152442627674000 +0 -0
  88. data/spec/dummy/tmp/cache/E8F/EE0/blocky%2Fcontent_blocks%2F4-20140326214706659274000 +0 -0
  89. data/spec/dummy/tmp/cache/E95/020/blocky%2Fcontent_blocks%2F4-20140520170832796695000 +2 -0
  90. data/spec/dummy/tmp/cache/assets/development/sass/1330522281c54fc4f0f88c06856f0cc8052c25e8/buttons.scssc +0 -0
  91. data/spec/dummy/tmp/cache/assets/development/sass/1330522281c54fc4f0f88c06856f0cc8052c25e8/flash_messages.scssc +0 -0
  92. data/spec/dummy/tmp/cache/assets/development/sass/16328cd177fa77f37d597cddc166b9d61ed7bdc6/_compact.scssc +0 -0
  93. data/spec/dummy/tmp/cache/assets/development/sass/16328cd177fa77f37d597cddc166b9d61ed7bdc6/_flex-grid.scssc +0 -0
  94. data/spec/dummy/tmp/cache/assets/development/sass/16328cd177fa77f37d597cddc166b9d61ed7bdc6/_grid-width.scssc +0 -0
  95. data/spec/dummy/tmp/cache/assets/development/sass/16328cd177fa77f37d597cddc166b9d61ed7bdc6/_linear-gradient.scssc +0 -0
  96. data/spec/dummy/tmp/cache/assets/development/sass/16328cd177fa77f37d597cddc166b9d61ed7bdc6/_modular-scale.scssc +0 -0
  97. data/spec/dummy/tmp/cache/assets/development/sass/16328cd177fa77f37d597cddc166b9d61ed7bdc6/_px-to-em.scssc +0 -0
  98. data/spec/dummy/tmp/cache/assets/development/sass/16328cd177fa77f37d597cddc166b9d61ed7bdc6/_radial-gradient.scssc +0 -0
  99. data/spec/dummy/tmp/cache/assets/development/sass/16328cd177fa77f37d597cddc166b9d61ed7bdc6/_tint-shade.scssc +0 -0
  100. data/spec/dummy/tmp/cache/assets/development/sass/16328cd177fa77f37d597cddc166b9d61ed7bdc6/_transition-property-name.scssc +0 -0
  101. data/spec/dummy/tmp/cache/assets/development/sass/2ed2f1a12f96a5966a3f2f4a226be3068f8e609b/_bordered-pulled.scssc +0 -0
  102. data/spec/dummy/tmp/cache/assets/development/sass/2ed2f1a12f96a5966a3f2f4a226be3068f8e609b/_core.scssc +0 -0
  103. data/spec/dummy/tmp/cache/assets/development/sass/2ed2f1a12f96a5966a3f2f4a226be3068f8e609b/_fixed-width.scssc +0 -0
  104. data/spec/dummy/tmp/cache/assets/development/sass/2ed2f1a12f96a5966a3f2f4a226be3068f8e609b/_icons.scssc +0 -0
  105. data/spec/dummy/tmp/cache/assets/development/sass/2ed2f1a12f96a5966a3f2f4a226be3068f8e609b/_larger.scssc +0 -0
  106. data/spec/dummy/tmp/cache/assets/development/sass/2ed2f1a12f96a5966a3f2f4a226be3068f8e609b/_list.scssc +0 -0
  107. data/spec/dummy/tmp/cache/assets/development/sass/2ed2f1a12f96a5966a3f2f4a226be3068f8e609b/_mixins.scssc +0 -0
  108. data/spec/dummy/tmp/cache/assets/development/sass/2ed2f1a12f96a5966a3f2f4a226be3068f8e609b/_path.scssc +0 -0
  109. data/spec/dummy/tmp/cache/assets/development/sass/2ed2f1a12f96a5966a3f2f4a226be3068f8e609b/_rotated-flipped.scssc +0 -0
  110. data/spec/dummy/tmp/cache/assets/development/sass/2ed2f1a12f96a5966a3f2f4a226be3068f8e609b/_spinning.scssc +0 -0
  111. data/spec/dummy/tmp/cache/assets/development/sass/2ed2f1a12f96a5966a3f2f4a226be3068f8e609b/_stacked.scssc +0 -0
  112. data/spec/dummy/tmp/cache/assets/development/sass/2ed2f1a12f96a5966a3f2f4a226be3068f8e609b/_variables.scssc +0 -0
  113. data/spec/dummy/tmp/cache/assets/development/sass/3fb34f29991e8a63348b29fade50f1de29147c8f/_fill-parent.scssc +0 -0
  114. data/spec/dummy/tmp/cache/assets/development/sass/3fb34f29991e8a63348b29fade50f1de29147c8f/_grid.scssc +0 -0
  115. data/spec/dummy/tmp/cache/assets/development/sass/3fb34f29991e8a63348b29fade50f1de29147c8f/_media.scssc +0 -0
  116. data/spec/dummy/tmp/cache/assets/development/sass/3fb34f29991e8a63348b29fade50f1de29147c8f/_omega.scssc +0 -0
  117. data/spec/dummy/tmp/cache/assets/development/sass/3fb34f29991e8a63348b29fade50f1de29147c8f/_outer-container.scssc +0 -0
  118. data/spec/dummy/tmp/cache/assets/development/sass/3fb34f29991e8a63348b29fade50f1de29147c8f/_pad.scssc +0 -0
  119. data/spec/dummy/tmp/cache/assets/development/sass/3fb34f29991e8a63348b29fade50f1de29147c8f/_private.scssc +0 -0
  120. data/spec/dummy/tmp/cache/assets/development/sass/3fb34f29991e8a63348b29fade50f1de29147c8f/_reset.scssc +0 -0
  121. data/spec/dummy/tmp/cache/assets/development/sass/3fb34f29991e8a63348b29fade50f1de29147c8f/_row.scssc +0 -0
  122. data/spec/dummy/tmp/cache/assets/development/sass/3fb34f29991e8a63348b29fade50f1de29147c8f/_shift.scssc +0 -0
  123. data/spec/dummy/tmp/cache/assets/development/sass/3fb34f29991e8a63348b29fade50f1de29147c8f/_span-columns.scssc +0 -0
  124. data/spec/dummy/tmp/cache/assets/development/sass/3fb34f29991e8a63348b29fade50f1de29147c8f/_to-deprecate.scssc +0 -0
  125. data/spec/dummy/tmp/cache/assets/development/sass/3fb34f29991e8a63348b29fade50f1de29147c8f/_visual-grid.scssc +0 -0
  126. data/spec/dummy/tmp/cache/assets/development/sass/45a8d9925ba36450f7e3862c914588ae8720003e/_imports.scssc +0 -0
  127. data/spec/dummy/tmp/cache/assets/development/sass/45a8d9925ba36450f7e3862c914588ae8720003e/_variables.scssc +0 -0
  128. data/spec/dummy/tmp/cache/assets/development/sass/45a8d9925ba36450f7e3862c914588ae8720003e/application.css.scssc +0 -0
  129. data/spec/dummy/tmp/cache/assets/development/sass/4808b00b5a9150b9a854e6877435916328f1da81/_deprecated-webkit-gradient.scssc +0 -0
  130. data/spec/dummy/tmp/cache/assets/development/sass/4808b00b5a9150b9a854e6877435916328f1da81/_gradient-positions-parser.scssc +0 -0
  131. data/spec/dummy/tmp/cache/assets/development/sass/4808b00b5a9150b9a854e6877435916328f1da81/_linear-positions-parser.scssc +0 -0
  132. data/spec/dummy/tmp/cache/assets/development/sass/4808b00b5a9150b9a854e6877435916328f1da81/_radial-arg-parser.scssc +0 -0
  133. data/spec/dummy/tmp/cache/assets/development/sass/4808b00b5a9150b9a854e6877435916328f1da81/_radial-positions-parser.scssc +0 -0
  134. data/spec/dummy/tmp/cache/assets/development/sass/4808b00b5a9150b9a854e6877435916328f1da81/_render-gradients.scssc +0 -0
  135. data/spec/dummy/tmp/cache/assets/development/sass/4808b00b5a9150b9a854e6877435916328f1da81/_shape-size-stripper.scssc +0 -0
  136. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_animation.scssc +0 -0
  137. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_appearance.scssc +0 -0
  138. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_backface-visibility.scssc +0 -0
  139. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_background-image.scssc +0 -0
  140. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_background.scssc +0 -0
  141. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_border-image.scssc +0 -0
  142. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_border-radius.scssc +0 -0
  143. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_box-sizing.scssc +0 -0
  144. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_columns.scssc +0 -0
  145. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_flex-box.scssc +0 -0
  146. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_font-face.scssc +0 -0
  147. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_hidpi-media-query.scssc +0 -0
  148. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_image-rendering.scssc +0 -0
  149. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_inline-block.scssc +0 -0
  150. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_keyframes.scssc +0 -0
  151. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_linear-gradient.scssc +0 -0
  152. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_perspective.scssc +0 -0
  153. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_placeholder.scssc +0 -0
  154. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_radial-gradient.scssc +0 -0
  155. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_transform.scssc +0 -0
  156. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_transition.scssc +0 -0
  157. data/spec/dummy/tmp/cache/assets/development/sass/5e68b12f5742e819b59fae21d1dedfbc3da30721/_user-select.scssc +0 -0
  158. data/spec/dummy/tmp/cache/assets/development/sass/7c52080b507114ff73ac654c0177e1dca603143b/body.scssc +0 -0
  159. data/spec/dummy/tmp/cache/assets/development/sass/7c52080b507114ff73ac654c0177e1dca603143b/forms.scssc +0 -0
  160. data/spec/dummy/tmp/cache/assets/development/sass/7c52080b507114ff73ac654c0177e1dca603143b/headings.scssc +0 -0
  161. data/spec/dummy/tmp/cache/assets/development/sass/7c52080b507114ff73ac654c0177e1dca603143b/lists.scssc +0 -0
  162. data/spec/dummy/tmp/cache/assets/development/sass/86088d5ecf0a5701fd22ac3b30255eb2bb94f550/_bourbon-deprecated-upcoming.scssc +0 -0
  163. data/spec/dummy/tmp/cache/assets/development/sass/9de1036a47599e1de75fdb2094e4960ffb18ffcf/_grid.scssc +0 -0
  164. data/spec/dummy/tmp/cache/assets/development/sass/9de1036a47599e1de75fdb2094e4960ffb18ffcf/_visual-grid.scssc +0 -0
  165. data/spec/dummy/tmp/cache/assets/development/sass/9e0f22094073a2727149869ee451bf5155b6b1de/_bourbon.scssc +0 -0
  166. data/spec/dummy/tmp/cache/assets/development/sass/9e0f22094073a2727149869ee451bf5155b6b1de/_neat.scssc +0 -0
  167. data/spec/dummy/tmp/cache/assets/development/sass/9e0f22094073a2727149869ee451bf5155b6b1de/font-awesome.scssc +0 -0
  168. data/spec/dummy/tmp/cache/assets/development/sass/ab9fa2e8e2c4d0592ca80a0885630a538ee36082/_neat-helpers.scssc +0 -0
  169. data/spec/dummy/tmp/cache/assets/development/sass/ccd8e9094d6c3af8a9493bb7fee8eae1bf9b4c52/_new-breakpoint.scssc +0 -0
  170. data/spec/dummy/tmp/cache/assets/development/sass/ccd8e9094d6c3af8a9493bb7fee8eae1bf9b4c52/_private.scssc +0 -0
  171. data/spec/dummy/tmp/cache/assets/development/sass/e32eee285e5a7bcd847a61263245c70a38794724/edit.scssc +0 -0
  172. data/spec/dummy/tmp/cache/assets/development/sass/e32eee285e5a7bcd847a61263245c70a38794724/index.scssc +0 -0
  173. data/spec/dummy/tmp/cache/assets/development/sass/e792c58dcbc932d7b0bbb62be67c59da9796d04b/_button.scssc +0 -0
  174. data/spec/dummy/tmp/cache/assets/development/sass/e792c58dcbc932d7b0bbb62be67c59da9796d04b/_clearfix.scssc +0 -0
  175. data/spec/dummy/tmp/cache/assets/development/sass/e792c58dcbc932d7b0bbb62be67c59da9796d04b/_font-family.scssc +0 -0
  176. data/spec/dummy/tmp/cache/assets/development/sass/e792c58dcbc932d7b0bbb62be67c59da9796d04b/_hide-text.scssc +0 -0
  177. data/spec/dummy/tmp/cache/assets/development/sass/e792c58dcbc932d7b0bbb62be67c59da9796d04b/_html5-input-types.scssc +0 -0
  178. data/spec/dummy/tmp/cache/assets/development/sass/e792c58dcbc932d7b0bbb62be67c59da9796d04b/_position.scssc +0 -0
  179. data/spec/dummy/tmp/cache/assets/development/sass/e792c58dcbc932d7b0bbb62be67c59da9796d04b/_prefixer.scssc +0 -0
  180. data/spec/dummy/tmp/cache/assets/development/sass/e792c58dcbc932d7b0bbb62be67c59da9796d04b/_retina-image.scssc +0 -0
  181. data/spec/dummy/tmp/cache/assets/development/sass/e792c58dcbc932d7b0bbb62be67c59da9796d04b/_size.scssc +0 -0
  182. data/spec/dummy/tmp/cache/assets/development/sass/e792c58dcbc932d7b0bbb62be67c59da9796d04b/_timing-functions.scssc +0 -0
  183. data/spec/dummy/tmp/cache/assets/development/sass/e792c58dcbc932d7b0bbb62be67c59da9796d04b/_triangle.scssc +0 -0
  184. data/spec/dummy/tmp/cache/assets/development/sass/f6aab6f5c59ff0b3c4ff7e11237d10cd45b5353c/layout.scssc +0 -0
  185. data/spec/dummy/tmp/cache/assets/development/sprockets/00b315c99e05fd17eb6ee63c05874610 +0 -0
  186. data/spec/dummy/tmp/cache/assets/development/sprockets/0427945c7b4a3a10bc1b628680c1ac11 +0 -0
  187. data/spec/dummy/tmp/cache/assets/development/sprockets/07a7381ab720b1fcdf48d09e6f4aca3f +0 -0
  188. data/spec/dummy/tmp/cache/assets/development/sprockets/0cba4b819c78286147e22cce1cff06de +0 -0
  189. data/spec/dummy/tmp/cache/assets/development/sprockets/0d045cc286244754010ae01a766487a9 +0 -0
  190. data/spec/dummy/tmp/cache/assets/development/sprockets/0f027312d7555aefd043bc94e678e35d +0 -0
  191. data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  192. data/spec/dummy/tmp/cache/assets/development/sprockets/1590fdab706270c5d350582acc774711 +0 -0
  193. data/spec/dummy/tmp/cache/assets/development/sprockets/17d324480cb2a2a47bedc3ef4d022b6d +0 -0
  194. data/spec/dummy/tmp/cache/assets/development/sprockets/21eee9c5050e081a5a1cf91cea7d268f +0 -0
  195. data/spec/dummy/tmp/cache/assets/development/sprockets/2510376ff2d7b20d23bc38a46fcfa055 +0 -0
  196. data/spec/dummy/tmp/cache/assets/development/sprockets/26dfb7b51a72e95c414c783f2ba69222 +0 -0
  197. data/spec/dummy/tmp/cache/assets/development/sprockets/2a12abb42fb17b6520d9d9ad589a20af +0 -0
  198. data/spec/dummy/tmp/cache/assets/development/sprockets/2a87faf509efd55dfdbd16b0fa8239b4 +0 -0
  199. data/spec/dummy/tmp/cache/assets/development/sprockets/2c9e3b499f8c7da0a3d3de2510f78846 +0 -0
  200. data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  201. data/spec/dummy/tmp/cache/assets/development/sprockets/2fd51b2bfa391389108d8de69733d84b +0 -0
  202. data/spec/dummy/tmp/cache/assets/development/sprockets/3075115024bd10f7adb951b3baec184c +0 -0
  203. data/spec/dummy/tmp/cache/assets/development/sprockets/309a524a7494382fd3346a82b810c20b +0 -0
  204. data/spec/dummy/tmp/cache/assets/development/sprockets/346918a665641c5e32c0bb368f032b07 +0 -0
  205. data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  206. data/spec/dummy/tmp/cache/assets/development/sprockets/359a931a346dd73a40ea88a3e145e4b3 +0 -0
  207. data/spec/dummy/tmp/cache/assets/development/sprockets/3a8c2654e77e18a35f25642e5e3bcb88 +0 -0
  208. data/spec/dummy/tmp/cache/assets/development/sprockets/3a8ecba67750b8ad7df3ba9362857756 +0 -0
  209. data/spec/dummy/tmp/cache/assets/development/sprockets/3aa302111c6bea14859db6fea34cdb94 +0 -0
  210. data/spec/dummy/tmp/cache/assets/development/sprockets/3b05198beb41d8fc2b4a207128140f89 +0 -0
  211. data/spec/dummy/tmp/cache/assets/development/sprockets/3cc020c5e2e8ab2e4acd1b5a9fdc16ab +0 -0
  212. data/spec/dummy/tmp/cache/assets/development/sprockets/3d89aed04c6cdc16f097a2aabfa2b867 +0 -0
  213. data/spec/dummy/tmp/cache/assets/development/sprockets/420c2d9425469c305387fa81d5ef1b30 +0 -0
  214. data/spec/dummy/tmp/cache/assets/development/sprockets/43272d99260411613e550de399f08be8 +0 -0
  215. data/spec/dummy/tmp/cache/assets/development/sprockets/4443d626de6926b2b0e97011a9d3283b +0 -0
  216. data/spec/dummy/tmp/cache/assets/development/sprockets/44ee5490907c6fdf6530eeea203a3908 +0 -0
  217. data/spec/dummy/tmp/cache/assets/development/sprockets/4c016d0efbbfe9fa01bc4d8d800f8548 +0 -0
  218. data/spec/dummy/tmp/cache/assets/development/sprockets/4f41b46926dc79b6d378c60e5e12b1ee +0 -0
  219. data/spec/dummy/tmp/cache/assets/development/sprockets/4ffbbdb75e91e3ef76f0356bd8c9fdb9 +0 -0
  220. data/spec/dummy/tmp/cache/assets/development/sprockets/530a0c5b0d469facb66e00ca952d9069 +0 -0
  221. data/spec/dummy/tmp/cache/assets/development/sprockets/562b764135bc28106a524123de319fac +0 -0
  222. data/spec/dummy/tmp/cache/assets/development/sprockets/59cc9befd7bad256dc0139dc7c32cf34 +0 -0
  223. data/spec/dummy/tmp/cache/assets/development/sprockets/5d455edb538f158d67b710d4c8fb9674 +0 -0
  224. data/spec/dummy/tmp/cache/assets/development/sprockets/5ea0f006a9c4f5744aa307242e43d11a +0 -0
  225. data/spec/dummy/tmp/cache/assets/development/sprockets/5f1b58c3d1b05b422b95fad6ff1236ad +0 -0
  226. data/spec/dummy/tmp/cache/assets/development/sprockets/5f9c0944ded3ac10412c77764c4f83a2 +0 -0
  227. data/spec/dummy/tmp/cache/assets/development/sprockets/613e23bb1e9f2c8dbd8166803b85c57c +0 -0
  228. data/spec/dummy/tmp/cache/assets/development/sprockets/61ac9eefcbf748e59c79b6e84835babd +0 -0
  229. data/spec/dummy/tmp/cache/assets/development/sprockets/64b57c4794688cd1dd9723c89f564ad7 +0 -0
  230. data/spec/dummy/tmp/cache/assets/development/sprockets/65e56fb427fa0e3e148515a9ea998426 +0 -0
  231. data/spec/dummy/tmp/cache/assets/development/sprockets/7344269d882a3e910b3806b007dd9d71 +0 -0
  232. data/spec/dummy/tmp/cache/assets/development/sprockets/74104d7c75a8966708478065693bcca8 +0 -0
  233. data/spec/dummy/tmp/cache/assets/development/sprockets/7415c9f0125deaebddd1c12b2c26367d +0 -0
  234. data/spec/dummy/tmp/cache/assets/development/sprockets/7703867f0dd6cf86b9eb01bce45d1f02 +0 -0
  235. data/spec/dummy/tmp/cache/assets/development/sprockets/7871e5235770cb3607023e3646149255 +0 -0
  236. data/spec/dummy/tmp/cache/assets/development/sprockets/7ce4b6005f5a1535c297ebe897723551 +0 -0
  237. data/spec/dummy/tmp/cache/assets/development/sprockets/8035b3603b1f603513ce0491ef5ee98c +0 -0
  238. data/spec/dummy/tmp/cache/assets/development/sprockets/87b0d0df42a2bb5d08a5417fd0274a6e +0 -0
  239. data/spec/dummy/tmp/cache/assets/development/sprockets/88b8972e085bc284af152cf7b158334c +0 -0
  240. data/spec/dummy/tmp/cache/assets/development/sprockets/8b94d81de8f6f238037cab9a4a1a0c30 +0 -0
  241. data/spec/dummy/tmp/cache/assets/development/sprockets/8bd0f5b2d316327657d6709cf130a550 +0 -0
  242. data/spec/dummy/tmp/cache/assets/development/sprockets/8efc9dce2839c7874c8c1bb8a662acc9 +0 -0
  243. data/spec/dummy/tmp/cache/assets/development/sprockets/8f4e3d9674b96cae9b98843cd6ff18c8 +0 -0
  244. data/spec/dummy/tmp/cache/assets/development/sprockets/92a576a2bd81929a26b143cc02e430aa +0 -0
  245. data/spec/dummy/tmp/cache/assets/development/sprockets/9e58e917e624e0cd3b2154f01fd24962 +0 -0
  246. data/spec/dummy/tmp/cache/assets/development/sprockets/a0c1f9e3d33f8de75d0a594321456c9b +0 -0
  247. data/spec/dummy/tmp/cache/assets/development/sprockets/a147199745f7229dc608d3cefce5df45 +0 -0
  248. data/spec/dummy/tmp/cache/assets/development/sprockets/a72bca95d5c7b54e61fa4e0ebc869d4e +0 -0
  249. data/spec/dummy/tmp/cache/assets/development/sprockets/abe150382a2bf6466264fe8866f34157 +0 -0
  250. data/spec/dummy/tmp/cache/assets/development/sprockets/afa453539adb4bc1f7d844dcb361460d +0 -0
  251. data/spec/dummy/tmp/cache/assets/development/sprockets/b0352a0c3bd6f28326a7fc34fa51fa16 +0 -0
  252. data/spec/dummy/tmp/cache/assets/development/sprockets/b0f77fd26cd7fd672f25ec90ed445fe9 +0 -0
  253. data/spec/dummy/tmp/cache/assets/development/sprockets/b0f88bcdb6579681288ffc314d36281b +0 -0
  254. data/spec/dummy/tmp/cache/assets/development/sprockets/b304f5f5248fd1b0910adaeaf4430da9 +0 -0
  255. data/spec/dummy/tmp/cache/assets/development/sprockets/b5dd7a2c9cdd592440c578b49edff2cb +0 -0
  256. data/spec/dummy/tmp/cache/assets/development/sprockets/b7f85043b18466180fb325cbc7e709c8 +0 -0
  257. data/spec/dummy/tmp/cache/assets/development/sprockets/b8096cbfaf0aa44715d5411926461117 +0 -0
  258. data/spec/dummy/tmp/cache/assets/development/sprockets/b95fb213c4dd9e7f1fdfe6120e88e2e8 +0 -0
  259. data/spec/dummy/tmp/cache/assets/development/sprockets/be95835376c06f09fdd2a3afc3dd195e +0 -0
  260. data/spec/dummy/tmp/cache/assets/development/sprockets/bfacd7859276780db88488d7d7e41b59 +0 -0
  261. data/spec/dummy/tmp/cache/assets/development/sprockets/c954e3a10a9a27d22bbde51534852ce1 +0 -0
  262. data/spec/dummy/tmp/cache/assets/development/sprockets/cee17b1df9168d8c9075ec7c74d54cb5 +0 -0
  263. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  264. data/spec/dummy/tmp/cache/assets/development/sprockets/d101f82ff4e2f7db4eb46cc760aa1d3f +0 -0
  265. data/spec/dummy/tmp/cache/assets/development/sprockets/d1689f5fa7ff2ae20077f9de7fd130e1 +0 -0
  266. data/spec/dummy/tmp/cache/assets/development/sprockets/d31431b0b9739b7fa0843ccfd02d002b +0 -0
  267. data/spec/dummy/tmp/cache/assets/development/sprockets/d410c298186b4110d38ff3d89b29c925 +0 -0
  268. data/spec/dummy/tmp/cache/assets/development/sprockets/d4b45f77d1eed50fcf90f8c5511b99b6 +0 -0
  269. data/spec/dummy/tmp/cache/assets/development/sprockets/d62a46b4d21da7c9091dcbd8fa01da34 +0 -0
  270. data/spec/dummy/tmp/cache/assets/development/sprockets/d6477bff4412a5abb06c8acf405c8a87 +0 -0
  271. data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  272. data/spec/dummy/tmp/cache/assets/development/sprockets/d985df74e53b12bfa3af9ea8608eacb2 +0 -0
  273. data/spec/dummy/tmp/cache/assets/development/sprockets/d9db27d114516b1b698ad3520e97d1f9 +0 -0
  274. data/spec/dummy/tmp/cache/assets/development/sprockets/da4c7a7a685a765695e1d781590e6a5a +0 -0
  275. data/spec/dummy/tmp/cache/assets/development/sprockets/dbe056c885afef869a46852b1faa9e60 +0 -0
  276. data/spec/dummy/tmp/cache/assets/development/sprockets/df0a14f77c1e0b39c4284d6d6fce9c97 +0 -0
  277. data/spec/dummy/tmp/cache/assets/development/sprockets/e01e232c8b2f8d1711bcd44d6e017dab +0 -0
  278. data/spec/dummy/tmp/cache/assets/development/sprockets/e333f0976af05d7bc7eca78d1383c2af +0 -0
  279. data/spec/dummy/tmp/cache/assets/development/sprockets/e95f94b756f854b191f179bd558ce3c6 +0 -0
  280. data/spec/dummy/tmp/cache/assets/development/sprockets/eb20aca7df145f553b39afab67d5c0a0 +0 -0
  281. data/spec/dummy/tmp/cache/assets/development/sprockets/edaff551a27cde6faf69cc45ba5de859 +0 -0
  282. data/spec/dummy/tmp/cache/assets/development/sprockets/ee44b9ce0a9a1e5e56418ab84da62277 +0 -0
  283. data/spec/dummy/tmp/cache/assets/development/sprockets/f345273bfd8088c36038c49a5fae3218 +0 -0
  284. data/spec/dummy/tmp/cache/assets/development/sprockets/f3a1691881f9395089d43324197ff863 +0 -0
  285. data/spec/dummy/tmp/cache/assets/development/sprockets/f4e80d0621ebd9be1b2b595ce543037f +0 -0
  286. data/spec/dummy/tmp/cache/assets/development/sprockets/f521da421cda5fe4162aeec62e594eca +0 -0
  287. data/spec/dummy/tmp/cache/assets/development/sprockets/f6fcfc1f4419ff69a85c86234ba475cf +0 -0
  288. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  289. data/spec/dummy/tmp/cache/assets/development/sprockets/f8c2ccce91ab7c89ad8922be93c6f363 +0 -0
  290. data/spec/dummy/tmp/cache/assets/development/sprockets/fa0df232aba62e841f6077c735cec1aa +0 -0
  291. data/spec/dummy/tmp/cache/assets/development/sprockets/fb892eb8050ec923cc8084138b1e6e28 +0 -0
  292. data/spec/factories/content_block_factory.rb +13 -0
  293. data/spec/models/blocky/content_block_spec.rb +37 -0
  294. data/spec/spec_helper.rb +34 -0
  295. data/vendor/assets/fonts/blocky/FontAwesome.otf +0 -0
  296. data/vendor/assets/fonts/blocky/fontawesome-webfont.eot +0 -0
  297. data/vendor/assets/fonts/blocky/fontawesome-webfont.svg +414 -0
  298. data/vendor/assets/fonts/blocky/fontawesome-webfont.ttf +0 -0
  299. data/vendor/assets/fonts/blocky/fontawesome-webfont.woff +0 -0
  300. data/vendor/assets/javascripts/blocky/bootstrap.js +1951 -0
  301. data/vendor/assets/javascripts/blocky/codemirror/closebrackets.js +84 -0
  302. data/vendor/assets/javascripts/blocky/codemirror/codemirror.js +4442 -0
  303. data/vendor/assets/javascripts/blocky/codemirror/formatting.js +1 -0
  304. data/vendor/assets/javascripts/blocky/codemirror/xml.js +1 -0
  305. data/vendor/assets/javascripts/blocky/jquery.js +10338 -0
  306. data/vendor/assets/javascripts/blocky/jquery_ujs.js +398 -0
  307. data/vendor/assets/javascripts/blocky/summernote.js +3922 -0
  308. data/vendor/assets/stylesheets/blocky/_bourbon.scss +59 -0
  309. data/vendor/assets/stylesheets/blocky/_neat.scss +21 -0
  310. data/vendor/assets/stylesheets/blocky/bootstrap.css +5785 -0
  311. data/vendor/assets/stylesheets/blocky/bootstrap.css.map +1 -0
  312. data/vendor/assets/stylesheets/blocky/bourbon/_bourbon-deprecated-upcoming.scss +13 -0
  313. data/vendor/assets/stylesheets/blocky/bourbon/addons/_button.scss +273 -0
  314. data/vendor/assets/stylesheets/blocky/bourbon/addons/_clearfix.scss +29 -0
  315. data/vendor/assets/stylesheets/blocky/bourbon/addons/_font-family.scss +5 -0
  316. data/vendor/assets/stylesheets/blocky/bourbon/addons/_hide-text.scss +5 -0
  317. data/vendor/assets/stylesheets/blocky/bourbon/addons/_html5-input-types.scss +56 -0
  318. data/vendor/assets/stylesheets/blocky/bourbon/addons/_position.scss +42 -0
  319. data/vendor/assets/stylesheets/blocky/bourbon/addons/_prefixer.scss +49 -0
  320. data/vendor/assets/stylesheets/blocky/bourbon/addons/_retina-image.scss +32 -0
  321. data/vendor/assets/stylesheets/blocky/bourbon/addons/_size.scss +44 -0
  322. data/vendor/assets/stylesheets/blocky/bourbon/addons/_timing-functions.scss +32 -0
  323. data/vendor/assets/stylesheets/blocky/bourbon/addons/_triangle.scss +45 -0
  324. data/vendor/assets/stylesheets/blocky/bourbon/css3/_animation.scss +52 -0
  325. data/vendor/assets/stylesheets/blocky/bourbon/css3/_appearance.scss +3 -0
  326. data/vendor/assets/stylesheets/blocky/bourbon/css3/_backface-visibility.scss +6 -0
  327. data/vendor/assets/stylesheets/blocky/bourbon/css3/_background-image.scss +48 -0
  328. data/vendor/assets/stylesheets/blocky/bourbon/css3/_background.scss +103 -0
  329. data/vendor/assets/stylesheets/blocky/bourbon/css3/_border-image.scss +55 -0
  330. data/vendor/assets/stylesheets/blocky/bourbon/css3/_border-radius.scss +22 -0
  331. data/vendor/assets/stylesheets/blocky/bourbon/css3/_box-sizing.scss +4 -0
  332. data/vendor/assets/stylesheets/blocky/bourbon/css3/_columns.scss +47 -0
  333. data/vendor/assets/stylesheets/blocky/bourbon/css3/_flex-box.scss +52 -0
  334. data/vendor/assets/stylesheets/blocky/bourbon/css3/_font-face.scss +23 -0
  335. data/vendor/assets/stylesheets/blocky/bourbon/css3/_hidpi-media-query.scss +10 -0
  336. data/vendor/assets/stylesheets/blocky/bourbon/css3/_image-rendering.scss +13 -0
  337. data/vendor/assets/stylesheets/blocky/bourbon/css3/_inline-block.scss +8 -0
  338. data/vendor/assets/stylesheets/blocky/bourbon/css3/_keyframes.scss +43 -0
  339. data/vendor/assets/stylesheets/blocky/bourbon/css3/_linear-gradient.scss +41 -0
  340. data/vendor/assets/stylesheets/blocky/bourbon/css3/_perspective.scss +8 -0
  341. data/vendor/assets/stylesheets/blocky/bourbon/css3/_placeholder.scss +29 -0
  342. data/vendor/assets/stylesheets/blocky/bourbon/css3/_radial-gradient.scss +44 -0
  343. data/vendor/assets/stylesheets/blocky/bourbon/css3/_transform.scss +15 -0
  344. data/vendor/assets/stylesheets/blocky/bourbon/css3/_transition.scss +34 -0
  345. data/vendor/assets/stylesheets/blocky/bourbon/css3/_user-select.scss +3 -0
  346. data/vendor/assets/stylesheets/blocky/bourbon/functions/_compact.scss +11 -0
  347. data/vendor/assets/stylesheets/blocky/bourbon/functions/_flex-grid.scss +39 -0
  348. data/vendor/assets/stylesheets/blocky/bourbon/functions/_grid-width.scss +13 -0
  349. data/vendor/assets/stylesheets/blocky/bourbon/functions/_linear-gradient.scss +13 -0
  350. data/vendor/assets/stylesheets/blocky/bourbon/functions/_modular-scale.scss +40 -0
  351. data/vendor/assets/stylesheets/blocky/bourbon/functions/_px-to-em.scss +8 -0
  352. data/vendor/assets/stylesheets/blocky/bourbon/functions/_radial-gradient.scss +23 -0
  353. data/vendor/assets/stylesheets/blocky/bourbon/functions/_tint-shade.scss +9 -0
  354. data/vendor/assets/stylesheets/blocky/bourbon/functions/_transition-property-name.scss +22 -0
  355. data/vendor/assets/stylesheets/blocky/bourbon/helpers/_deprecated-webkit-gradient.scss +39 -0
  356. data/vendor/assets/stylesheets/blocky/bourbon/helpers/_gradient-positions-parser.scss +13 -0
  357. data/vendor/assets/stylesheets/blocky/bourbon/helpers/_linear-positions-parser.scss +61 -0
  358. data/vendor/assets/stylesheets/blocky/bourbon/helpers/_radial-arg-parser.scss +69 -0
  359. data/vendor/assets/stylesheets/blocky/bourbon/helpers/_radial-positions-parser.scss +18 -0
  360. data/vendor/assets/stylesheets/blocky/bourbon/helpers/_render-gradients.scss +26 -0
  361. data/vendor/assets/stylesheets/blocky/bourbon/helpers/_shape-size-stripper.scss +10 -0
  362. data/vendor/assets/stylesheets/blocky/codemirror/codemirror.css +1 -0
  363. data/vendor/assets/stylesheets/blocky/codemirror/monokai.css +1 -0
  364. data/vendor/assets/stylesheets/blocky/font-awesome.scss +17 -0
  365. data/vendor/assets/stylesheets/blocky/font-awesome/_bordered-pulled.scss +16 -0
  366. data/vendor/assets/stylesheets/blocky/font-awesome/_core.scss +12 -0
  367. data/vendor/assets/stylesheets/blocky/font-awesome/_fixed-width.scss +6 -0
  368. data/vendor/assets/stylesheets/blocky/font-awesome/_icons.scss +412 -0
  369. data/vendor/assets/stylesheets/blocky/font-awesome/_larger.scss +13 -0
  370. data/vendor/assets/stylesheets/blocky/font-awesome/_list.scss +19 -0
  371. data/vendor/assets/stylesheets/blocky/font-awesome/_mixins.scss +20 -0
  372. data/vendor/assets/stylesheets/blocky/font-awesome/_path.scss +13 -0
  373. data/vendor/assets/stylesheets/blocky/font-awesome/_rotated-flipped.scss +9 -0
  374. data/vendor/assets/stylesheets/blocky/font-awesome/_spinning.scss +30 -0
  375. data/vendor/assets/stylesheets/blocky/font-awesome/_stacked.scss +20 -0
  376. data/vendor/assets/stylesheets/blocky/font-awesome/_variables.scss +381 -0
  377. data/vendor/assets/stylesheets/blocky/neat/_neat-helpers.scss +7 -0
  378. data/vendor/assets/stylesheets/blocky/neat/functions/_new-breakpoint.scss +16 -0
  379. data/vendor/assets/stylesheets/blocky/neat/functions/_private.scss +125 -0
  380. data/vendor/assets/stylesheets/blocky/neat/grid/_fill-parent.scss +7 -0
  381. data/vendor/assets/stylesheets/blocky/neat/grid/_grid.scss +5 -0
  382. data/vendor/assets/stylesheets/blocky/neat/grid/_media.scss +51 -0
  383. data/vendor/assets/stylesheets/blocky/neat/grid/_omega.scss +79 -0
  384. data/vendor/assets/stylesheets/blocky/neat/grid/_outer-container.scss +8 -0
  385. data/vendor/assets/stylesheets/blocky/neat/grid/_pad.scss +8 -0
  386. data/vendor/assets/stylesheets/blocky/neat/grid/_private.scss +50 -0
  387. data/vendor/assets/stylesheets/blocky/neat/grid/_reset.scss +12 -0
  388. data/vendor/assets/stylesheets/blocky/neat/grid/_row.scss +17 -0
  389. data/vendor/assets/stylesheets/blocky/neat/grid/_shift.scss +16 -0
  390. data/vendor/assets/stylesheets/blocky/neat/grid/_span-columns.scss +45 -0
  391. data/vendor/assets/stylesheets/blocky/neat/grid/_to-deprecate.scss +57 -0
  392. data/vendor/assets/stylesheets/blocky/neat/grid/_visual-grid.scss +41 -0
  393. data/vendor/assets/stylesheets/blocky/neat/settings/_grid.scss +7 -0
  394. data/vendor/assets/stylesheets/blocky/neat/settings/_visual-grid.scss +5 -0
  395. data/vendor/assets/stylesheets/blocky/normalize.css +423 -0
  396. data/vendor/assets/stylesheets/blocky/summernote.css +1 -0
  397. metadata +991 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 089381daded3ec34ea21f974304efe6d00a6e302
4
+ data.tar.gz: 1fa8b37080dc81097f4ed3e00a167e5fedcc8b60
5
+ SHA512:
6
+ metadata.gz: e62369eca3ea91377be162f7e7a47d6ac721823bd950ae97689d1d8da57237e84856384e2b673842a1aefb497c299778cc7eff1a02530f19417e6b7c1b813a76
7
+ data.tar.gz: 34b739c83c99a224b951130f9d3fb580378879cf99d2b09d5506131566b10b15d4ff75b7bebcb61db098bfcb49c82b5ffed06f8819514be22141972cb6025f92
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2014 Brian Pattison
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,59 @@
1
+ # Blocky
2
+
3
+ [![Build Status](https://travis-ci.org/codelation/blocky.png?branch=master)](https://travis-ci.org/codelation/blocky)
4
+ [![Code Climate](https://codeclimate.com/github/codelation/blocky.png)](https://codeclimate.com/github/codelation/blocky)
5
+
6
+ Blocky is a mountable `Rails::Engine` for managing editable content blocks throughout your application.
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ ```ruby
13
+ gem "blocky"
14
+ ```
15
+
16
+ Install the Blocky gem with Bundler:
17
+
18
+ ```bash
19
+ $ bundle install
20
+ ```
21
+
22
+ Use the install generator to set up Blocky:
23
+
24
+ ```bash
25
+ $ rails g blocky:install
26
+ ```
27
+
28
+ ## Configuration
29
+
30
+ The install generator will create `config/initializers/blocky.rb`:
31
+
32
+ ```ruby
33
+ Blocky.user_class = "User"
34
+ Blocky.s3_access_key_id = ENV["BLOCKY_S3_KEY"]
35
+ Blocky.s3_secret_access_key = ENV["BLOCKY_S3_SECRET"]
36
+ Blocky.s3_bucket = ENV["BLOCKY_S3_BUCKET"]
37
+ ```
38
+
39
+ ### Authentication
40
+
41
+ Blocky does not include authentication because there's a good chance
42
+ you've already added authentication to your Rails app.
43
+
44
+ TODO: Add info about requirements/configuration.
45
+
46
+ ### Authorization
47
+
48
+ Blocky uses [CanCan](https://github.com/ryanb/cancan) for authorization.
49
+ By default, any logged in user can create, update, and delete any content block.
50
+
51
+ TODO: Add example for limiting access to admin users.
52
+
53
+ ## Contributing
54
+
55
+ 1. Fork it
56
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
57
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
58
+ 4. Push to the branch (`git push origin my-new-feature`)
59
+ 5. Create new Pull Request
@@ -0,0 +1,34 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'Blocky'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.rdoc')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+ APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
18
+ load 'rails/tasks/engine.rake'
19
+
20
+
21
+
22
+ Bundler::GemHelper.install_tasks
23
+
24
+ require 'rake/testtask'
25
+
26
+ Rake::TestTask.new(:test) do |t|
27
+ t.libs << 'lib'
28
+ t.libs << 'test'
29
+ t.pattern = 'test/**/*_test.rb'
30
+ t.verbose = false
31
+ end
32
+
33
+
34
+ task default: :test
@@ -0,0 +1,21 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require blocky/jquery
14
+ //= require blocky/jquery_ujs
15
+ //= require blocky/bootstrap
16
+ //= require blocky/codemirror/codemirror
17
+ //= require blocky/codemirror/closebrackets
18
+ //= require blocky/codemirror/xml
19
+ //= require blocky/codemirror/formatting
20
+ //= require blocky/summernote
21
+ //= require_tree .
@@ -0,0 +1,20 @@
1
+ (function() {
2
+ "use strict";
3
+
4
+ $(function() {
5
+ $('.flash-alert i, .flash-notice i').click(function() {
6
+ var flashElement = $(this).parent();
7
+ flashElement.animate({
8
+ borderWidth: 0,
9
+ height: 0,
10
+ marginBottom: 0,
11
+ marginTop: 0,
12
+ opacity: 0,
13
+ paddingBottom: 0,
14
+ paddingTop: 0
15
+ });
16
+ return false;
17
+ });
18
+ });
19
+
20
+ })();
@@ -0,0 +1,3 @@
1
+ @import "blocky/bourbon";
2
+ @import "blocky/variables";
3
+ @import "blocky/neat";
@@ -0,0 +1,37 @@
1
+ @import "blocky/bourbon";
2
+
3
+ // Typography
4
+ $sans-serif: $helvetica;
5
+ $serif: $georgia;
6
+
7
+ $base-font-family: $sans-serif;
8
+ $header-font-family: $base-font-family;
9
+
10
+ // Sizes
11
+ $base-font-size: 16px;
12
+ $base-padding: 14px;
13
+ $base-line-height: $base-font-size * 1.5;
14
+ $base-border-radius: em(3);
15
+ $max-width: 900px;
16
+
17
+ // Body Color
18
+ $base-body-color: #fff;
19
+
20
+ // Font Colors
21
+ $base-font-color: #4f4f4f;
22
+ $base-accent-color: #4fa1d3;
23
+
24
+ // Text Link Colors
25
+ $base-link-color: $base-accent-color;
26
+ $hover-link-color: darken($base-accent-color, 8%);
27
+
28
+ // Border color
29
+ $base-border-color: #ddd;
30
+
31
+ // Flash Colors
32
+ $alert-color: #db0026;
33
+ $notice-color: #0074d9;
34
+
35
+ // Button Colors
36
+ $cancel-button-color: adjust-hue($base-accent-color, 160deg);
37
+ $save-button-color: $base-accent-color;
@@ -0,0 +1,20 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+ *= require blocky/normalize
13
+ *= require blocky/bootstrap
14
+ *= require blocky/font-awesome
15
+ *= require blocky/codemirror/codemirror
16
+ *= require blocky/codemirror/monokai
17
+ *= require blocky/summernote
18
+ *= require_tree ./shared
19
+ *= require_tree ./application
20
+ */
@@ -0,0 +1,13 @@
1
+ @import "blocky/imports";
2
+
3
+ body.blocky.content_blocks.edit {
4
+ .buttons {
5
+ margin-top: 1em;
6
+ text-align: right;
7
+ }
8
+
9
+ .CodeMirror {
10
+ font-size: 0.9em;
11
+ line-height: 1.3em;
12
+ }
13
+ }
@@ -0,0 +1,81 @@
1
+ @import "blocky/imports";
2
+
3
+ body.blocky.content_blocks.index {
4
+ td {
5
+ border: 1px solid $base-border-color;
6
+ padding: 0.5em 1.5em;
7
+ }
8
+
9
+ th {
10
+ background-color: $base-accent-color;
11
+ border: 1px solid darken($base-accent-color, 10%);
12
+ color: #fff;
13
+ font-size: 1.1em;
14
+ padding: 0.3em 1.1em;
15
+ -webkit-font-smoothing: antialiased;
16
+ }
17
+
18
+ tr:hover {
19
+ background-color: darken($base-body-color, 3%);
20
+ }
21
+
22
+ td.page {
23
+ font-weight: bold;
24
+
25
+ a {
26
+ color: $base-font-color;
27
+ display: block;
28
+ text-decoration: none;
29
+
30
+ &:hover {
31
+ color: $base-accent-color;
32
+ }
33
+ }
34
+ }
35
+
36
+ tr.per-page.page-start td {
37
+ border-top: 10px solid lighten($base-accent-color, 30%);
38
+ }
39
+
40
+ td code {
41
+ margin-left: -4px;
42
+ margin-right: -2px;
43
+ }
44
+
45
+ td .button {
46
+ padding: 4px 15px 5px;
47
+ }
48
+ }
49
+
50
+ body.blocky.content_blocks.index .help {
51
+ margin-top: 4em;
52
+
53
+ h5 {
54
+ border-bottom: 1px solid $base-border-color;
55
+ margin-bottom: 1.2em;
56
+ padding-bottom: 0.2em;
57
+ }
58
+
59
+ code {
60
+ color: $base-font-color;
61
+
62
+ .keyword {
63
+ font-weight: bold;
64
+ }
65
+ .method {
66
+ color: adjust-hue($base-accent-color, 70deg);
67
+ }
68
+ .symbol {
69
+ color: $base-accent-color;
70
+ }
71
+ .tag {
72
+ color: #888;
73
+ }
74
+ }
75
+
76
+ code.code-block {
77
+ display: block;
78
+ padding: 1em;
79
+ margin-bottom: 3em;
80
+ }
81
+ }
@@ -0,0 +1,30 @@
1
+ @import "blocky/imports";
2
+
3
+ body.blocky {
4
+ .breadcrumbs {
5
+ @include outer-container;
6
+ border-bottom: 1px solid $base-border-color;
7
+ font-size: 1.2em;
8
+ margin: 1em 0 2em;
9
+ padding-bottom: 0.5em;
10
+
11
+ .fa-caret-right {
12
+ margin: 0 5px;
13
+ }
14
+
15
+ code {
16
+ position: relative;
17
+ top: -1px;
18
+ }
19
+ }
20
+
21
+ .flash-alert,
22
+ .flash-notice {
23
+ margin: 1em 2em 0;
24
+ }
25
+
26
+ main {
27
+ @include outer-container;
28
+ padding: 1em 2em;
29
+ }
30
+ }
@@ -0,0 +1,119 @@
1
+ @import "blocky/imports";
2
+
3
+ .button,
4
+ .promise-button,
5
+ button,
6
+ input[type="submit"] {
7
+ @include appearance(none);
8
+ background-color: $base-accent-color;
9
+ border: 1px solid darken($base-accent-color, 5%);
10
+ border-radius: $base-border-radius;
11
+ color: #fff;
12
+ cursor: pointer;
13
+ display: inline-block;
14
+ font-size: $base-font-size;
15
+ font-weight: bold;
16
+ line-height: normal;
17
+ padding: (($base-padding / 2) - 1px) $base-padding ($base-padding / 2);
18
+ text-align: center;
19
+ text-decoration: none;
20
+ user-select: none;
21
+ vertical-align: middle;
22
+ white-space: nowrap;
23
+ -webkit-font-smoothing: antialiased;
24
+ @include transition(all 0.1s ease);
25
+
26
+ & > * {
27
+ border-radius: ($base-border-radius / 2);
28
+ }
29
+
30
+ &:hover {
31
+ background-color: lighten($base-accent-color, 8%);
32
+ border-color: lighten($base-accent-color, 3%);
33
+ color: #fff;
34
+ text-decoration: none;
35
+ }
36
+
37
+ &:active {
38
+ background-color: darken($base-accent-color, 10%);
39
+ border-color: darken($base-accent-color, 10%);
40
+ color: #fff;
41
+ }
42
+
43
+ &.cancel {
44
+ background-color: transparent;
45
+ border: 1px solid $cancel-button-color;
46
+ color: $cancel-button-color;
47
+
48
+ &:hover {
49
+ background-color: lighten($cancel-button-color, 8%);
50
+ border-color: lighten($cancel-button-color, 8%);
51
+ color: #fff;
52
+ }
53
+
54
+ &:active {
55
+ background-color: darken($cancel-button-color, 10%);
56
+ border: 1px solid darken($cancel-button-color, 10%);
57
+ color: #fff;
58
+ }
59
+ }
60
+
61
+ &.destroy {
62
+ background-color: #fff;
63
+ border-color: $alert-color;
64
+ color: darken($alert-color, 3%);
65
+ margin-right: 0;
66
+
67
+ .saving {
68
+ background-color: $alert-color;
69
+ color: $base-body-color;
70
+ }
71
+
72
+ .confirm {
73
+ background-color: $alert-color;
74
+ }
75
+
76
+ .yes {
77
+ background-color: $alert-color;
78
+
79
+ &:hover {
80
+ background-color: darken($alert-color, 5%);
81
+ }
82
+
83
+ &:active {
84
+ background-color: darken($alert-color, 10%);
85
+ }
86
+ }
87
+
88
+ .no {
89
+ background-color: #fff;
90
+ color: $alert-color;
91
+
92
+ &:hover {
93
+ color: darken($alert-color, 5%);
94
+ }
95
+
96
+ &:active {
97
+ color: darken($alert-color, 10%);
98
+ }
99
+ }
100
+ }
101
+
102
+ &.save {
103
+ background-color: $save-button-color;
104
+ border: 1px solid darken($save-button-color, 5%);
105
+ color: #fff;
106
+
107
+ &:hover {
108
+ background-color: lighten($save-button-color, 8%);
109
+ border-color: lighten($save-button-color, 3%);
110
+ color: #fff;
111
+ }
112
+
113
+ &:active {
114
+ background-color: darken($save-button-color, 10%);
115
+ border: 1px solid darken($save-button-color, 10%);
116
+ color: #fff;
117
+ }
118
+ }
119
+ }