knowledge_base 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +3 -1
- data/app/models/knowledge_base/category_article_association.rb +1 -2
- data/app/models/knowledge_base/section.rb +1 -5
- data/app/models/knowledge_base/sectionables/attachments.rb +7 -0
- data/app/models/knowledge_base/sectionables/attachments/attachment.rb +5 -0
- data/app/models/knowledge_base/sectionables/attachments/list.rb +5 -0
- data/app/models/knowledge_base/sectionables/gallery.rb +3 -7
- data/app/models/knowledge_base/sectionables/gallery/image.rb +1 -3
- data/app/models/knowledge_base/sectionables/image.rb +3 -7
- data/app/models/knowledge_base/sectionables/links.rb +3 -5
- data/app/models/knowledge_base/sectionables/links/link.rb +1 -6
- data/app/models/knowledge_base/sectionables/links/list.rb +5 -0
- data/app/models/knowledge_base/sectionables/list.rb +3 -7
- data/app/models/knowledge_base/sectionables/list/item.rb +1 -1
- data/app/models/knowledge_base/sectionables/sectionable.rb +3 -7
- data/app/models/knowledge_base/sectionables/text.rb +3 -5
- data/app/models/knowledge_base/sectionables/video.rb +3 -11
- data/app/uploaders/knowledge_base/generic_file_uploader.rb +7 -0
- data/app/uploaders/knowledge_base/image_uploader.rb +0 -48
- data/app/views/knowledge_base/articles/_article.html.erb +3 -3
- data/app/views/knowledge_base/articles/_search.html.erb +6 -0
- data/app/views/knowledge_base/articles/index.html.erb +11 -0
- data/app/views/knowledge_base/categories/_category.html.erb +2 -2
- data/app/views/knowledge_base/sectionables/attachments/lists/_list.html.erb +14 -0
- data/app/views/knowledge_base/sectionables/links/lists/_list.html.erb +13 -0
- data/app/views/knowledge_base/sectionables/lists/_list.html.erb +4 -0
- data/app/views/knowledge_base/sectionables/texts/_text.html.erb +4 -0
- data/app/views/knowledge_base/sectionables/videos/_video.html.erb +4 -1
- data/config/locales/en.yml +131 -0
- data/config/locales/nb.yml +94 -15
- data/config/routes.rb +2 -0
- data/db/migrate/20140318125210_default_position_fields.rb +10 -0
- data/db/migrate/20140318210722_change_knowledge_base_gallery_description_to_text.rb +9 -0
- data/db/migrate/20140320125825_add_image_to_texts.rb +5 -0
- data/db/migrate/20140325083548_add_image_to_sectionables_lists.rb +5 -0
- data/db/migrate/20140404234850_create_knowledge_base_sectionables_attachments.rb +8 -0
- data/db/migrate/20140410184906_create_knowledge_base_sectionables_attachment_lists.rb +7 -0
- data/db/migrate/20140410185528_add_attachment_list_reference_to_knowledge_base_sectionables_attachments.rb +8 -0
- data/db/migrate/20140410191611_migrate_attachments_over_to_lists.rb +49 -0
- data/db/migrate/20140410203342_rename_attachment_lists_to_attachments_lists.rb +5 -0
- data/db/migrate/20140410205056_rename_attachments_to_attachments_attachments.rb +5 -0
- data/db/migrate/20140410224403_rename_links_to_links_lists.rb +5 -0
- data/db/migrate/20140410231048_fix_sectionable_types_for_attachments.rb +13 -0
- data/db/migrate/20140410231433_fix_sectionable_types_for_links.rb +13 -0
- data/db/migrate/20140430112603_add_description_to_knowledge_base_attachments_attachment.rb +5 -0
- data/db/migrate/20140430112633_add_description_to_knowledge_base_links_link.rb +5 -0
- data/db/migrate/20140820114750_add_custom_style_to_knowledge_base_sectionables.rb +21 -0
- data/db/migrate/20140821081854_remove_custom_style_from_non_sectionables.rb +8 -0
- data/db/migrate/20140821085102_rename_custom_style_to_style.rb +11 -0
- data/db/migrate/20140821151832_add_title_to_knowledge_base_sectionables_videos.rb +5 -0
- data/db/migrate/20140930121510_add_title_to_attachment_lists.rb +5 -0
- data/fixtures/parrot.png +0 -0
- data/fixtures/sample.pdf +0 -0
- data/lib/generators/knowledge_base/active_admin/USAGE +8 -0
- data/lib/generators/knowledge_base/active_admin/active_admin_generator.rb +9 -0
- data/lib/generators/knowledge_base/active_admin/templates/article.rb +92 -0
- data/lib/generators/knowledge_base/active_admin/templates/category.rb +70 -0
- data/lib/generators/knowledge_base/active_admin/templates/sectionables/attachments/list.rb +25 -0
- data/lib/generators/knowledge_base/active_admin/templates/sectionables/gallery.rb +44 -0
- data/lib/generators/knowledge_base/active_admin/templates/sectionables/image.rb +37 -0
- data/lib/generators/knowledge_base/active_admin/templates/sectionables/links/list.rb +35 -0
- data/lib/generators/knowledge_base/active_admin/templates/sectionables/list.rb +48 -0
- data/lib/generators/knowledge_base/active_admin/templates/sectionables/text.rb +42 -0
- data/lib/generators/knowledge_base/active_admin/templates/sectionables/video.rb +20 -0
- data/lib/knowledge_base.rb +3 -0
- data/lib/knowledge_base/concerns/controllers/articles_controller.rb +21 -2
- data/lib/knowledge_base/concerns/controllers/categories_controller.rb +3 -2
- data/lib/knowledge_base/concerns/models.rb +31 -0
- data/lib/knowledge_base/concerns/models/article.rb +4 -3
- data/lib/knowledge_base/concerns/models/category.rb +2 -3
- data/lib/knowledge_base/concerns/models/category_article_association.rb +8 -0
- data/lib/knowledge_base/concerns/models/section.rb +13 -0
- data/lib/knowledge_base/concerns/models/sectionables/attachments/attachment.rb +11 -0
- data/lib/knowledge_base/concerns/models/sectionables/attachments/list.rb +15 -0
- data/lib/knowledge_base/concerns/models/sectionables/gallery.rb +17 -0
- data/lib/knowledge_base/concerns/models/sectionables/gallery/image.rb +9 -0
- data/lib/knowledge_base/concerns/models/sectionables/image.rb +13 -0
- data/lib/knowledge_base/concerns/models/sectionables/links/link.rb +7 -0
- data/lib/knowledge_base/concerns/models/sectionables/links/list.rb +15 -0
- data/lib/knowledge_base/concerns/models/sectionables/list.rb +17 -0
- data/lib/knowledge_base/concerns/models/sectionables/list/item.rb +7 -0
- data/lib/knowledge_base/concerns/models/sectionables/sectionable.rb +28 -0
- data/lib/knowledge_base/concerns/models/sectionables/text.rb +13 -0
- data/lib/knowledge_base/concerns/models/sectionables/video.rb +15 -0
- data/lib/knowledge_base/configuration.rb +10 -17
- data/lib/knowledge_base/engine.rb +4 -0
- data/lib/knowledge_base/seeds.rb +7 -3
- data/lib/knowledge_base/version.rb +1 -1
- data/spec/controllers/knowledge_base/articles_controller_spec.rb +15 -4
- data/spec/controllers/knowledge_base/categories_controller_spec.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +39 -13
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +887 -0
- data/spec/dummy/log/test.log +999 -0
- data/spec/factories/knowledge_base_articles.rb +3 -3
- data/spec/factories/knowledge_base_categories.rb +3 -3
- data/spec/factories/knowledge_base_sectionables_attachment_lists.rb +6 -0
- data/spec/lib/knowledge_base/configuration_spec.rb +32 -8
- data/spec/lib/knowledge_base_spec.rb +3 -3
- data/spec/models/knowledge_base/article_spec.rb +0 -1
- data/spec/models/knowledge_base/category_article_association_spec.rb +0 -1
- data/spec/models/knowledge_base/category_spec.rb +0 -1
- data/spec/models/knowledge_base/section_spec.rb +0 -1
- data/spec/models/knowledge_base/sectionables/attachments/attachment_spec.rb +6 -0
- data/spec/models/knowledge_base/sectionables/attachments/list_spec.rb +13 -0
- data/spec/models/knowledge_base/sectionables/gallery/image_spec.rb +0 -1
- data/spec/models/knowledge_base/sectionables/gallery_spec.rb +0 -1
- data/spec/models/knowledge_base/sectionables/image_spec.rb +0 -1
- data/spec/models/knowledge_base/sectionables/links/link_spec.rb +0 -1
- data/spec/models/knowledge_base/sectionables/links_spec.rb +0 -1
- data/spec/models/knowledge_base/sectionables/list/item_spec.rb +0 -1
- data/spec/models/knowledge_base/sectionables/list_spec.rb +0 -1
- data/spec/models/knowledge_base/sectionables/sectionable_spec.rb +34 -0
- data/spec/models/knowledge_base/sectionables/text_spec.rb +0 -1
- data/spec/models/knowledge_base/sectionables/video_spec.rb +0 -7
- data/spec/spec_helper.rb +3 -0
- data/spec/views/knowledge_base/articles/show.html.erb_spec.rb +0 -1
- data/spec/views/knowledge_base/categories/index.html.erb_spec.rb +0 -1
- data/spec/views/knowledge_base/categories/show.html.erb_spec.rb +0 -1
- metadata +179 -7
- data/app/views/knowledge_base/sectionables/links/_links.html.erb +0 -5