knowledge_base 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +28 -0
  4. data/app/assets/javascripts/knowledge_base/application.js +13 -0
  5. data/app/assets/stylesheets/knowledge_base/application.css +15 -0
  6. data/app/controllers/knowledge_base/application_controller.rb +4 -0
  7. data/app/controllers/knowledge_base/articles_controller.rb +17 -0
  8. data/app/controllers/knowledge_base/categories_controller.rb +13 -0
  9. data/app/helpers/knowledge_base/application_helper.rb +4 -0
  10. data/app/models/knowledge_base/article.rb +13 -0
  11. data/app/models/knowledge_base/category.rb +16 -0
  12. data/app/models/knowledge_base/category_article_association.rb +6 -0
  13. data/app/models/knowledge_base/section.rb +9 -0
  14. data/app/models/knowledge_base/sectionables.rb +7 -0
  15. data/app/models/knowledge_base/sectionables/gallery.rb +5 -0
  16. data/app/models/knowledge_base/sectionables/gallery/image.rb +7 -0
  17. data/app/models/knowledge_base/sectionables/image.rb +5 -0
  18. data/app/models/knowledge_base/sectionables/links.rb +5 -0
  19. data/app/models/knowledge_base/sectionables/links/link.rb +10 -0
  20. data/app/models/knowledge_base/sectionables/list.rb +5 -0
  21. data/app/models/knowledge_base/sectionables/list/item.rb +5 -0
  22. data/app/models/knowledge_base/sectionables/text.rb +4 -0
  23. data/app/models/knowledge_base/sectionables/video.rb +9 -0
  24. data/app/uploaders/knowledge_base/image_uploader.rb +53 -0
  25. data/app/views/knowledge_base/articles/show.html.erb +11 -0
  26. data/app/views/knowledge_base/categories/index.html.erb +11 -0
  27. data/app/views/knowledge_base/categories/show.html.erb +15 -0
  28. data/app/views/knowledge_base/sectionables/galleries/_gallery.html.erb +17 -0
  29. data/app/views/knowledge_base/sectionables/images/_image.html.erb +5 -0
  30. data/app/views/knowledge_base/sectionables/links/_links.html.erb +5 -0
  31. data/app/views/knowledge_base/sectionables/lists/_list.html.erb +17 -0
  32. data/app/views/knowledge_base/sectionables/texts/_text.html.erb +9 -0
  33. data/app/views/knowledge_base/sectionables/videos/_video.html.erb +1 -0
  34. data/app/views/layouts/knowledge_base/application.html.erb +14 -0
  35. data/config/routes.rb +5 -0
  36. data/db/migrate/20140303102920_create_knowledge_base_categories.rb +16 -0
  37. data/db/migrate/20140303152945_create_knowledge_base_articles.rb +13 -0
  38. data/db/migrate/20140305134249_create_knowledge_base_sections.rb +13 -0
  39. data/db/migrate/20140306103853_create_knowledge_base_sectionables_texts.rb +11 -0
  40. data/db/migrate/20140306123236_create_knowledge_base_sectionables_images.rb +10 -0
  41. data/db/migrate/20140306134124_add_article_id_to_sections.rb +7 -0
  42. data/db/migrate/20140306134616_remove_kind_from_sections.rb +5 -0
  43. data/db/migrate/20140306162143_polymorphize_sections.rb +11 -0
  44. data/db/migrate/20140306181906_create_knowledge_base_sectionables_videos.rb +9 -0
  45. data/db/migrate/20140306194339_create_knowledge_base_sectionables_galleries.rb +10 -0
  46. data/db/migrate/20140306194600_create_knowledge_base_sectionables_gallery_images.rb +12 -0
  47. data/db/migrate/20140306200631_create_knowledge_base_sectionables_lists.rb +10 -0
  48. data/db/migrate/20140306210259_create_knowledge_base_sectionables_list_items.rb +12 -0
  49. data/db/migrate/20140307080616_create_knowledge_base_category_article_associations.rb +16 -0
  50. data/db/migrate/20140307092627_create_knowledge_base_sectionables_links.rb +8 -0
  51. data/db/migrate/20140307092719_create_knowledge_base_sectionables_links_links.rb +12 -0
  52. data/lib/knowledge_base.rb +15 -0
  53. data/lib/knowledge_base/configuration.rb +5 -0
  54. data/lib/knowledge_base/engine.rb +15 -0
  55. data/lib/knowledge_base/version.rb +3 -0
  56. data/lib/tasks/knowledge_base_tasks.rake +4 -0
  57. data/spec/controllers/knowledge_base/articles_controller_spec.rb +20 -0
  58. data/spec/controllers/knowledge_base/categories_controller_spec.rb +25 -0
  59. data/spec/dummy/README.rdoc +28 -0
  60. data/spec/dummy/Rakefile +6 -0
  61. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  62. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  63. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  64. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  65. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  66. data/spec/dummy/bin/bundle +3 -0
  67. data/spec/dummy/bin/rails +4 -0
  68. data/spec/dummy/bin/rake +4 -0
  69. data/spec/dummy/config.ru +4 -0
  70. data/spec/dummy/config/application.rb +23 -0
  71. data/spec/dummy/config/boot.rb +5 -0
  72. data/spec/dummy/config/database.yml +30 -0
  73. data/spec/dummy/config/environment.rb +5 -0
  74. data/spec/dummy/config/environments/development.rb +37 -0
  75. data/spec/dummy/config/environments/production.rb +83 -0
  76. data/spec/dummy/config/environments/test.rb +39 -0
  77. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  78. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  79. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  80. data/spec/dummy/config/initializers/inflections.rb +16 -0
  81. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  82. data/spec/dummy/config/initializers/session_store.rb +3 -0
  83. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  84. data/spec/dummy/config/locales/en.yml +23 -0
  85. data/spec/dummy/config/routes.rb +4 -0
  86. data/spec/dummy/config/secrets.yml +22 -0
  87. data/spec/dummy/db/development.sqlite3 +0 -0
  88. data/spec/dummy/db/schema.rb +134 -0
  89. data/spec/dummy/db/seeds.rb +28 -0
  90. data/spec/dummy/log/development.log +12030 -0
  91. data/spec/dummy/log/test.log +917 -0
  92. data/spec/dummy/public/404.html +67 -0
  93. data/spec/dummy/public/422.html +67 -0
  94. data/spec/dummy/public/500.html +66 -0
  95. data/spec/dummy/public/favicon.ico +0 -0
  96. data/spec/dummy/public/uploads/knowledge_base/sectionables/gallery/image/image/1/parrot.png +0 -0
  97. data/spec/dummy/public/uploads/knowledge_base/sectionables/gallery/image/image/2/parrot.png +0 -0
  98. data/spec/dummy/public/uploads/knowledge_base/sectionables/image/image/1/parrot.png +0 -0
  99. data/spec/dummy/tmp/cache/assets/development/sprockets/062b47a3a70e4df7224b893bf001a98f +0 -0
  100. data/spec/dummy/tmp/cache/assets/development/sprockets/183c0bd4fe8641adfc2b9f735484664a +0 -0
  101. data/spec/dummy/tmp/cache/assets/development/sprockets/2f86727a5dfdf38270057bb8a6b140bc +0 -0
  102. data/spec/dummy/tmp/cache/assets/development/sprockets/32c50a0141ffd19eb481b35a22532865 +0 -0
  103. data/spec/dummy/tmp/cache/assets/development/sprockets/806fae72d2de8ab235cdf1503e8c950b +0 -0
  104. data/spec/dummy/tmp/cache/assets/development/sprockets/e9c371dd2bf884ad2ab7c34915daf486 +0 -0
  105. data/spec/dummy/tmp/pids/server.pid +1 -0
  106. data/spec/factories/knowledge_base_articles.rb +9 -0
  107. data/spec/factories/knowledge_base_categories.rb +10 -0
  108. data/spec/factories/knowledge_base_category_article_associations.rb +9 -0
  109. data/spec/factories/knowledge_base_sectionables_galleries.rb +8 -0
  110. data/spec/factories/knowledge_base_sectionables_gallery_images.rb +10 -0
  111. data/spec/factories/knowledge_base_sectionables_images.rb +8 -0
  112. data/spec/factories/knowledge_base_sectionables_links.rb +6 -0
  113. data/spec/factories/knowledge_base_sectionables_links_links.rb +9 -0
  114. data/spec/factories/knowledge_base_sectionables_list_items.rb +10 -0
  115. data/spec/factories/knowledge_base_sectionables_lists.rb +8 -0
  116. data/spec/factories/knowledge_base_sectionables_texts.rb +11 -0
  117. data/spec/factories/knowledge_base_sectionables_videos.rb +7 -0
  118. data/spec/factories/knowledge_base_sections.rb +9 -0
  119. data/spec/fixtures/parrot.png +0 -0
  120. data/spec/lib/knowledge_base/configuration_spec.rb +14 -0
  121. data/spec/models/knowledge_base/article_spec.rb +7 -0
  122. data/spec/models/knowledge_base/category_article_association_spec.rb +7 -0
  123. data/spec/models/knowledge_base/category_spec.rb +7 -0
  124. data/spec/models/knowledge_base/section_spec.rb +7 -0
  125. data/spec/models/knowledge_base/sectionables/gallery/image_spec.rb +7 -0
  126. data/spec/models/knowledge_base/sectionables/gallery_spec.rb +7 -0
  127. data/spec/models/knowledge_base/sectionables/image_spec.rb +7 -0
  128. data/spec/models/knowledge_base/sectionables/links/link_spec.rb +7 -0
  129. data/spec/models/knowledge_base/sectionables/links_spec.rb +7 -0
  130. data/spec/models/knowledge_base/sectionables/list/item_spec.rb +7 -0
  131. data/spec/models/knowledge_base/sectionables/list_spec.rb +7 -0
  132. data/spec/models/knowledge_base/sectionables/text_spec.rb +7 -0
  133. data/spec/models/knowledge_base/sectionables/video_spec.rb +13 -0
  134. data/spec/spec_helper.rb +20 -0
  135. data/spec/views/knowledge_base/articles/show.html.erb_spec.rb +5 -0
  136. data/spec/views/knowledge_base/categories/index.html.erb_spec.rb +5 -0
  137. data/spec/views/knowledge_base/categories/show.html.erb_spec.rb +5 -0
  138. metadata +375 -0

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.