knitkit 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. data/README.md +22 -0
  2. data/app/controllers/knitkit/base_controller.rb +15 -2
  3. data/app/controllers/knitkit/blogs_controller.rb +4 -4
  4. data/app/controllers/knitkit/erp_app/desktop/app_controller.rb +16 -2
  5. data/app/controllers/knitkit/erp_app/desktop/articles_controller.rb +198 -57
  6. data/app/controllers/knitkit/erp_app/desktop/content_controller.rb +25 -11
  7. data/app/controllers/knitkit/erp_app/desktop/file_assets_controller.rb +123 -44
  8. data/app/controllers/knitkit/erp_app/desktop/image_assets_controller.rb +83 -9
  9. data/app/controllers/knitkit/erp_app/desktop/online_document_sections_controller.rb +38 -0
  10. data/app/controllers/knitkit/erp_app/desktop/position_controller.rb +15 -6
  11. data/app/controllers/knitkit/erp_app/desktop/theme_controller.rb +185 -98
  12. data/app/controllers/knitkit/erp_app/desktop/versions_controller.rb +38 -16
  13. data/app/controllers/knitkit/erp_app/desktop/website_controller.rb +126 -68
  14. data/app/controllers/knitkit/erp_app/desktop/website_nav_controller.rb +154 -107
  15. data/app/controllers/knitkit/erp_app/desktop/website_section_controller.rb +113 -54
  16. data/app/controllers/knitkit/online_document_sections_controller.rb +45 -0
  17. data/app/controllers/knitkit/unauthorized_controller.rb +5 -0
  18. data/app/controllers/knitkit/website_sections_controller.rb +8 -9
  19. data/app/mailers/document_mailer.rb +10 -0
  20. data/app/models/article.rb +1 -1
  21. data/app/models/content.rb +35 -3
  22. data/app/models/document.rb +8 -0
  23. data/app/models/document_type.rb +3 -0
  24. data/app/models/documented_content.rb +29 -0
  25. data/app/models/documented_item.rb +31 -0
  26. data/app/models/extensions/configuration.rb +5 -0
  27. data/app/models/extensions/party.rb +13 -0
  28. data/app/models/online_document_section.rb +40 -0
  29. data/app/models/theme.rb +22 -26
  30. data/app/models/valid_document.rb +4 -0
  31. data/app/models/website.rb +158 -119
  32. data/app/models/website_inquiry.rb +7 -2
  33. data/app/models/website_inquiry_mailer.rb +4 -3
  34. data/app/models/website_party_role.rb +5 -0
  35. data/app/models/website_section.rb +76 -38
  36. data/app/views/document_mailer/email_document.html.erb +12 -0
  37. data/app/views/knitkit/blogs/_add_comment.html.erb +2 -2
  38. data/app/views/knitkit/online_document_sections/index.html.erb +149 -0
  39. data/app/views/knitkit/website_sections/index.html.erb +0 -1
  40. data/app/views/layouts/knitkit/base.html.erb +4 -2
  41. data/app/views/layouts/knitkit/online_document_sections.html.erb +59 -0
  42. data/app/views/menus/knitkit/_default_menu.html.erb +1 -1
  43. data/app/views/menus/knitkit/_default_section_menu.html.erb +1 -1
  44. data/app/views/menus/knitkit/_default_sub_menu.html.erb +2 -2
  45. data/app/views/menus/knitkit/_default_sub_section_menu.html.erb +1 -1
  46. data/app/widgets/contact_us/base.rb +5 -5
  47. data/app/widgets/contact_us/javascript/contact_us.js +2 -1
  48. data/app/widgets/google_map/base.rb +0 -4
  49. data/app/widgets/google_map/javascript/google_map.js +4 -3
  50. data/app/widgets/login/base.rb +0 -5
  51. data/app/widgets/login/javascript/login.js +155 -153
  52. data/app/widgets/login/views/index.html.erb +3 -3
  53. data/app/widgets/login/views/reset_password.html.erb +2 -2
  54. data/app/widgets/manage_profile/base.rb +46 -67
  55. data/app/widgets/manage_profile/javascript/manage_profile.js +2 -1
  56. data/app/widgets/manage_profile/views/_user_information_form.html.erb +5 -1
  57. data/app/widgets/reset_password/base.rb +4 -6
  58. data/app/widgets/reset_password/javascript/reset_password.js +2 -1
  59. data/app/widgets/reset_password/views/index.html.erb +4 -3
  60. data/app/widgets/search/base.rb +1 -5
  61. data/app/widgets/search/javascript/search.js +2 -1
  62. data/app/widgets/search/views/show.html.erb +2 -2
  63. data/app/widgets/signup/base.rb +7 -6
  64. data/app/widgets/signup/javascript/signup.js +2 -1
  65. data/app/widgets/signup/views/error.html.erb +1 -1
  66. data/config/routes.rb +6 -2
  67. data/db/data_migrations/20110509223702_add_publisher_role.rb +10 -0
  68. data/db/data_migrations/20111118182910_setup_knitkit_capabilities.rb +84 -0
  69. data/db/data_migrations/20120127144444_create_website_role_types.rb +13 -0
  70. data/db/data_migrations/20120127150505_create_website_default_configuration.rb +72 -0
  71. data/db/data_migrations/20120127150506_add_primary_host_to_website_configuration.rb +33 -0
  72. data/db/data_migrations/20120316150424_add_is_template_to_default_website_config.rb +16 -0
  73. data/db/data_migrations/upgrade/20120210195616_add_website_configs.rb +19 -0
  74. data/db/data_migrations/upgrade/20120213205519_populate_website_iids.rb +17 -0
  75. data/db/migrate/20110211002317_setup_knitkit.rb +22 -5
  76. data/db/migrate/20111207161928_create_documented_items_table.rb +13 -0
  77. data/db/migrate/20111208180539_add_document_id_to_documented_item.rb +9 -0
  78. data/db/migrate/20120315163736_add_document.rb +32 -0
  79. data/db/migrate/20120503183431_create_valid_documents.rb +16 -0
  80. data/db/migrate/upgrade/20120116201510_add_render_base_layout_flag.rb +13 -0
  81. data/db/migrate/upgrade/20120127143745_create_website_party_roles.rb +24 -0
  82. data/db/migrate/upgrade/20120213184509_add_iid_to_websites.rb +14 -0
  83. data/lib/knitkit.rb +2 -0
  84. data/lib/knitkit/config.rb +31 -0
  85. data/lib/knitkit/engine.rb +12 -3
  86. data/lib/knitkit/extensions.rb +1 -3
  87. data/lib/knitkit/extensions/action_controller/theme_support/acts_as_themed_controller.rb +2 -3
  88. data/lib/knitkit/extensions/active_record/acts_as_document.rb +63 -0
  89. data/lib/knitkit/extensions/active_record/acts_as_publishable.rb +5 -4
  90. data/lib/knitkit/extensions/compass_ae/widgets/base.rb +70 -0
  91. data/lib/knitkit/extensions/railties/action_view.rb +22 -10
  92. data/lib/knitkit/extensions/railties/theme_support/asset_tag_helper.rb +3 -3
  93. data/lib/knitkit/extensions/railties/theme_support/theme_file_resolver.rb +8 -3
  94. data/lib/knitkit/routing_filter/section_router.rb +16 -6
  95. data/lib/knitkit/version.rb +7 -1
  96. data/public/images/check.png +0 -0
  97. data/public/images/credit_card.png +0 -0
  98. data/public/images/knitkit/tooltip.gif +0 -0
  99. data/public/javascripts/ajax_pagination.js +33 -0
  100. data/public/javascripts/datepicker.js +6 -1
  101. data/public/javascripts/erp_app/desktop/applications/knitkit/articles_grid_panel.js +731 -258
  102. data/public/javascripts/erp_app/desktop/applications/knitkit/center_region.js +289 -238
  103. data/public/javascripts/erp_app/desktop/applications/knitkit/comments_grid_panel.js +2 -4
  104. data/public/javascripts/erp_app/desktop/applications/knitkit/east_region.js +29 -3
  105. data/public/javascripts/erp_app/desktop/applications/knitkit/file_assets_panel.js +193 -21
  106. data/public/javascripts/erp_app/desktop/applications/knitkit/image_assets_data_view.js +27 -26
  107. data/public/javascripts/erp_app/desktop/applications/knitkit/image_assets_panel.js +167 -20
  108. data/public/javascripts/erp_app/desktop/applications/knitkit/inquiries_grid_panel.js +1 -2
  109. data/public/javascripts/erp_app/desktop/applications/knitkit/module.js +5 -1
  110. data/public/javascripts/erp_app/desktop/applications/knitkit/publish_window.js +2 -2
  111. data/public/javascripts/erp_app/desktop/applications/knitkit/published_grid_panel.js +20 -11
  112. data/public/javascripts/erp_app/desktop/applications/knitkit/section_articles_grid_panel.js +279 -228
  113. data/public/javascripts/erp_app/desktop/applications/knitkit/themes_tree_panel.js +40 -40
  114. data/public/javascripts/erp_app/desktop/applications/knitkit/versions_grid_panel.js +83 -76
  115. data/public/javascripts/erp_app/desktop/applications/knitkit/west_region.js +1961 -1397
  116. data/public/javascripts/erp_app/desktop/applications/knitkit/widgets_panel.js +47 -43
  117. data/public/javascripts/knitkit/helpers.js +26 -0
  118. data/public/stylesheets/erp_app/desktop/applications/knitkit/knitkit.css +1 -2
  119. data/public/stylesheets/knitkit/documentation.css +50 -0
  120. data/public/stylesheets/knitkit/style.css +23 -1
  121. data/spec/controllers/knitkit/erp_app/desktop/articles_controller_spec.rb +8 -0
  122. data/spec/controllers/knitkit/erp_app/desktop/website_controller_spec.rb +396 -0
  123. data/spec/controllers/knitkit/erp_app/desktop/website_nav_controller_spec.rb +260 -0
  124. data/spec/controllers/knitkit/erp_app/desktop/website_section_controller_spec.rb +222 -0
  125. data/spec/dummy/Rakefile +7 -0
  126. data/spec/dummy/app/assets/javascripts/application.js +9 -0
  127. data/spec/dummy/app/assets/stylesheets/application.css +7 -0
  128. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  129. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  130. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  131. data/spec/dummy/config.ru +4 -0
  132. data/spec/dummy/config/application.rb +43 -0
  133. data/spec/dummy/config/boot.rb +10 -0
  134. data/spec/dummy/config/database.yml +8 -0
  135. data/spec/dummy/config/environment.rb +5 -0
  136. data/spec/dummy/config/environments/spec.rb +27 -0
  137. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  138. data/spec/dummy/config/initializers/inflections.rb +10 -0
  139. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  140. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  141. data/spec/dummy/config/initializers/session_store.rb +8 -0
  142. data/spec/dummy/config/initializers/wrap_parameters.rb +12 -0
  143. data/spec/dummy/config/locales/en.yml +5 -0
  144. data/spec/dummy/config/routes.rb +4 -0
  145. data/spec/dummy/config/workflow.yml +1 -0
  146. data/spec/dummy/public/404.html +26 -0
  147. data/spec/dummy/public/422.html +26 -0
  148. data/spec/dummy/public/500.html +26 -0
  149. data/spec/dummy/public/favicon.ico +0 -0
  150. data/spec/dummy/script/rails +6 -0
  151. data/spec/factories/article.rb +4 -0
  152. data/spec/factories/basic.rb +3 -0
  153. data/spec/factories/blog.rb +5 -0
  154. data/spec/factories/documented_content.rb +4 -0
  155. data/spec/factories/documented_item.rb +4 -0
  156. data/spec/factories/online_document_section.rb +6 -0
  157. data/spec/factories/published_website.rb +4 -0
  158. data/spec/factories/theme.rb +6 -0
  159. data/spec/factories/website.rb +5 -0
  160. data/spec/factories/website_host.rb +4 -0
  161. data/spec/factories/website_nav.rb +5 -0
  162. data/spec/factories/website_nav_item.rb +4 -0
  163. data/spec/factories/website_section.rb +5 -0
  164. data/spec/models/article_spec.rb +35 -0
  165. data/spec/models/attribute_type_spec.rb +55 -0
  166. data/spec/models/attribute_value_spec.rb +114 -0
  167. data/spec/models/blog_spec.rb +16 -0
  168. data/spec/models/comment_spec.rb +11 -0
  169. data/spec/models/content_spec.rb +187 -0
  170. data/spec/models/documented_item_spec.rb +29 -0
  171. data/spec/models/online_document_section_spec.rb +34 -0
  172. data/spec/models/published_element_spec.rb +11 -0
  173. data/spec/models/published_website_spec.rb +11 -0
  174. data/spec/models/theme_spec.rb +12 -0
  175. data/spec/models/website_host_spec.rb +11 -0
  176. data/spec/models/website_inquiry_spec.rb +24 -0
  177. data/spec/models/website_nav_item_spec.rb +11 -0
  178. data/spec/models/website_nav_spec.rb +11 -0
  179. data/spec/models/website_section_content_spec.rb +11 -0
  180. data/spec/models/website_section_spec.rb +49 -0
  181. data/spec/models/website_spec.rb +146 -0
  182. data/spec/spec_helper.rb +61 -0
  183. metadata +391 -154
  184. data/app/controllers/knitkit/articles_controller.rb +0 -7
  185. data/lib/knitkit/extensions/compass/widgets/base.rb +0 -53
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe PublishedElement do
4
+ it "can be instantiated" do
5
+ PublishedElement.new.should be_an_instance_of(PublishedElement)
6
+ end
7
+
8
+ it "can be saved successfully" do
9
+ PublishedElement.create().should be_persisted
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe PublishedWebsite do
4
+ it "can be instantiated" do
5
+ PublishedWebsite.new.should be_an_instance_of(PublishedWebsite)
6
+ end
7
+
8
+ it "can be saved successfully" do
9
+ PublishedWebsite.create().should be_persisted
10
+ end
11
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe Theme do
4
+ it "can be instantiated" do
5
+ Theme.new.should be_an_instance_of(Theme)
6
+ end
7
+
8
+ #it "can be saved successfully" do
9
+ # website = Website.create(:name => 'Test Site')
10
+ # Theme.create(:name => 'Test', :website => website).should be_persisted
11
+ #end
12
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe WebsiteHost do
4
+ it "can be instantiated" do
5
+ WebsiteHost.new.should be_an_instance_of(WebsiteHost)
6
+ end
7
+
8
+ it "can be saved successfully" do
9
+ WebsiteHost.create().should be_persisted
10
+ end
11
+ end
@@ -0,0 +1,24 @@
1
+ require 'spec_helper'
2
+
3
+ describe WebsiteInquiry do
4
+ before do
5
+ @website = Website.create(:name => "Some Site")
6
+ end
7
+ it "can be instantiated" do
8
+ WebsiteInquiry.new.should be_an_instance_of(WebsiteInquiry)
9
+ end
10
+
11
+ it "can be saved successfully" do
12
+ WebsiteInquiry.create().should be_persisted
13
+ end
14
+
15
+ describe "send_email" do
16
+ it "should call WebsiteInquiryMailer.inquiry (ask adam about this)" #do
17
+ #@website_inquiry = WebsiteInquiry.create
18
+ #@website.website_inquiries << @website_inquiry
19
+ #WebsiteInquiryMailer.should_receive(:inquiry).with(@website_inquiry).and_return()
20
+ #@website_inquiry.send_email
21
+
22
+ #end
23
+ end
24
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe WebsiteNavItem do
4
+ it "can be instantiated" do
5
+ WebsiteNavItem.new.should be_an_instance_of(WebsiteNavItem)
6
+ end
7
+
8
+ it "can be saved successfully" do
9
+ WebsiteNavItem.create().should be_persisted
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe WebsiteNav do
4
+ it "can be instantiated" do
5
+ WebsiteNav.new.should be_an_instance_of(WebsiteNav)
6
+ end
7
+
8
+ it "can be saved successfully" do
9
+ WebsiteNav.create().should be_persisted
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe WebsiteSectionContent do
4
+ it "can be instantiated" do
5
+ WebsiteSectionContent.new.should be_an_instance_of(WebsiteSectionContent)
6
+ end
7
+
8
+ it "can be saved successfully" do
9
+ WebsiteSectionContent.create().should be_persisted
10
+ end
11
+ end
@@ -0,0 +1,49 @@
1
+ require 'spec_helper'
2
+
3
+ describe WebsiteSection do
4
+ it "can be instantiated" do
5
+ WebsiteSection.new.should be_an_instance_of(WebsiteSection)
6
+ end
7
+
8
+ it "can be saved successfully" do
9
+ WebsiteSection.create(:title => "Some Title").should be_persisted
10
+ end
11
+ end
12
+
13
+ describe WebsiteSection, "is_section? and is_document_section?" do
14
+ let(:page) { Factory.create(:website_section) }
15
+ let(:blog) { Factory.create(:blog) }
16
+ let(:document) { Factory.create(:online_document_section) }
17
+
18
+ describe WebsiteSection, "is_section?" do
19
+ it "should return true for the page" do
20
+ page.is_section?.should be_true
21
+ end
22
+
23
+ it "should return true for the blog" do
24
+ blog.is_section?.should be_true
25
+ end
26
+
27
+ it "should return false for the document" do
28
+ document.is_section?.should be_false
29
+ end
30
+ end
31
+
32
+ describe WebsiteSection, "is_document_section?" do
33
+ it "should return true for the page" do
34
+ page.is_document_section?.should be_false
35
+ end
36
+
37
+ it "should return true for the blog" do
38
+ blog.is_document_section?.should be_false
39
+ end
40
+
41
+ it "should return false for the document" do
42
+ document.is_document_section?.should be_true
43
+ end
44
+ end
45
+
46
+
47
+ end
48
+
49
+
@@ -0,0 +1,146 @@
1
+ require 'spec_helper'
2
+
3
+ describe Website do
4
+ before(:all) do
5
+ @current_user = User.create(:username => "some_user_name")
6
+ end
7
+ before do
8
+ @website = Website.create(:name => "Some Site")
9
+ @website.hosts << WebsiteHost.create(:host => "some_host")
10
+ end
11
+
12
+ it "can be instantiated" do
13
+ Website.new.should be_an_instance_of(Website)
14
+ end
15
+
16
+ it "can be saved successfully" do
17
+ Website.create(:name => 'Test Site').should be_persisted
18
+ end
19
+
20
+ describe "self.find_by_host" do
21
+ it "should return a Website object associated to the given host" do
22
+
23
+ Website.find_by_host("some_host").should eq(@website)
24
+ end
25
+ end
26
+
27
+ describe "deactivate_themes!" do
28
+ it "should set :active = false on all themes associated to the website (cant create a theme from inside test)" #do
29
+ #@theme = Factory.create(:theme)
30
+ #@website.themes << @theme
31
+
32
+ #@website.themes.each do |theme|
33
+ # theme.active = true
34
+ # theme.save
35
+ #end
36
+
37
+ #@website.deactivate_themes!
38
+
39
+ #@website.themes.each do |theme|
40
+ # theme.active.should eq(false)
41
+ #end
42
+ #end
43
+ end
44
+
45
+ describe "publish_element" do
46
+ it "should add record to published_elements for given element" do
47
+ comment = "some comment"
48
+ WorkflowProcess.create(:internal_identifier => "test_content_mgmt", :process_template => true)
49
+ WorkflowStep.create(:internal_identifier => "Start", :executable_command_id => 1, :executable_command_type => "ManualWorkflowStep", :workflow_process_id => 1, :initial_step => true)
50
+ element = Article.create(:title => "some_article", :created_by_id => 1)
51
+ version = 1
52
+
53
+ @website.publish_element(comment, element, version, @current_user)
54
+ @published_element = PublishedElement.find_by_published_element_record_id(element.id)
55
+ @published_element.published_element_record_type.should eq("Content")
56
+ @published_element.version.should eq(1)
57
+ @published_element.published_by_id.should eq(@current_user.id)
58
+ end
59
+ end
60
+
61
+ describe "publish" do
62
+ it "should add record to published_websites for given website" do
63
+ comment = "some comment"
64
+
65
+ @website.publish(comment, @current_user)
66
+ @published_website = PublishedWebsite.find_all_by_website_id(@website.id).last
67
+ @published_website.published_by_id.should eq(@current_user.id)
68
+ @published_website.comment.should eq(comment)
69
+ end
70
+ end
71
+
72
+ describe "set_publication_version" do
73
+ it "should set published_website.active to true for the given version (PublishedWebsite.activate doesnt ever save the data)" #do
74
+ #@website.publish("some comment", @current_user)
75
+ #@published_website = PublishedWebsite.find_by_comment("some comment")
76
+ #version = @published_website.version
77
+ #@test = PublishedWebsite.where('website_id = ?', @website.id).all
78
+ #@test.should eq(version)
79
+ #@published_website = PublishedWebsite.find_by_version_and_website_id(version, @website.id)
80
+ #@published_website.active = false
81
+ #@published_website.save
82
+ #@published_website.active.should eq(false)
83
+
84
+ #PublishedWebsite.activate(@website, version, @current_user)
85
+ #@published_website.active.should eq(true)
86
+ #end
87
+ end
88
+
89
+ describe "active_publication" do
90
+ it "should return the active published website" do
91
+ @active_website = @website.published_websites.find_all_by_active(true)
92
+ @active_website.count.should eq(1)
93
+ @website.active_publication.should eq(@active_website[0])
94
+ end
95
+ end
96
+
97
+ describe "role" do
98
+ it "should return a Role active record object with internal_identifier = website_websitename_access" do
99
+ @website_role = @website.role
100
+ @website_role.should be_a(Role)
101
+ @website_role.internal_identifier.should eq("website_#{@website.name.downcase}_access")
102
+ end
103
+ end
104
+
105
+ describe "setup_default_pages" do
106
+ it "should create a section for ContactUs Search ManageProfile Login and Signup and link them to website" do
107
+ count = 0
108
+ @website.setup_default_pages
109
+
110
+ @website.website_sections.each do |section|
111
+ case
112
+ when section.title == "Contact Us"
113
+ count +=1 if section.website_id == @website.id
114
+ when section.title == "Search"
115
+ count +=1 if section.website_id == @website.id
116
+ when section.title == "Manage Profile"
117
+ count +=1 if section.website_id == @website.id
118
+ when section.title == "Login"
119
+ count +=1 if section.website_id == @website.id
120
+ when section.title == "Sign Up"
121
+ count +=1 if section.website_id == @website.id
122
+ when section.title == "Reset Password"
123
+ count +=1 if section.website_id == @website.id
124
+ end
125
+ end
126
+
127
+ count.should eq(@website.website_sections.count)
128
+ end
129
+
130
+ it "should set all new sections as in_menu except for Login Sign Up and Reset Password" do
131
+ @website.setup_default_pages
132
+
133
+ @website.website_sections.each do |section|
134
+ section.in_menu.should eq(true) unless section.title == "Login" or section.title == "Sign Up" or section.title == "Reset Password"
135
+ end
136
+ end
137
+
138
+ it "should update the paths" do
139
+ @website.setup_default_pages
140
+
141
+ @website.website_sections.each do |section|
142
+ section.path.should eq("/#{section.internal_identifier}")
143
+ end
144
+ end
145
+ end
146
+ end
@@ -0,0 +1,61 @@
1
+ require 'spork'
2
+ require 'rake'
3
+
4
+ Spork.prefork do
5
+ # Loading more in this block will cause your tests to run faster. However,
6
+ # if you change any configuration or code from libraries loaded here, you'll
7
+ # need to restart spork for it take effect.
8
+
9
+ ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
10
+ DUMMY_APP_ROOT=File.join(File.dirname(__FILE__), '/dummy')
11
+
12
+ require 'active_support'
13
+ require 'active_model'
14
+ require 'active_record'
15
+ require 'action_controller'
16
+
17
+ # Configure Rails Envinronment
18
+ ENV["RAILS_ENV"] = "spec"
19
+ require File.expand_path(DUMMY_APP_ROOT + "/config/environment.rb", __FILE__)
20
+
21
+ ActiveRecord::Base.configurations = YAML::load(IO.read(DUMMY_APP_ROOT + "/config/database.yml"))
22
+ ActiveRecord::Base.establish_connection(ENV["DB"] || "spec")
23
+ ActiveRecord::Migration.verbose = false
24
+
25
+ # Requires supporting ruby files with custom matchers and macros, etc,
26
+ # in spec/support/ and its subdirectories.
27
+ Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
28
+
29
+ require 'rspec/rails'
30
+ require 'erp_dev_svcs'
31
+
32
+ RSpec.configure do |config|
33
+ config.use_transactional_fixtures = true
34
+ config.include Sorcery::TestHelpers::Rails
35
+ config.include ErpDevSvcs
36
+ config.include ErpDevSvcs::ControllerSupport, :type => :controller
37
+ end
38
+ end
39
+
40
+ Spork.each_run do
41
+ #We have to execute the migrations from dummy app directory
42
+ Dir.chdir DUMMY_APP_ROOT
43
+ `rake db:drop`
44
+ Dir.chdir ENGINE_RAILS_ROOT
45
+
46
+ #We have to execute the migrations from dummy app directory
47
+ Dir.chdir DUMMY_APP_ROOT
48
+ `rake db:migrate`
49
+ `rake db:migrate_data`
50
+ Dir.chdir ENGINE_RAILS_ROOT
51
+
52
+ ErpDevSvcs::FactorySupport.load_engine_factories
53
+
54
+ require 'simplecov'
55
+ SimpleCov.start 'rails' do
56
+ add_filter "spec/"
57
+ end
58
+ #Need to explictly load the files in lib/ until we figure out how to
59
+ #get rails to autoload them for spec like it used to...
60
+ Dir[File.join(ENGINE_RAILS_ROOT, "lib/**/*.rb")].each {|f| load f}
61
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knitkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,33 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-06 00:00:00.000000000Z
12
+ date: 2012-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: erp_forms
16
+ requirement: &76338960 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - =
20
+ - !ruby/object:Gem::Version
21
+ version: 2.0.1
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *76338960
25
+ - !ruby/object:Gem::Dependency
26
+ name: erp_dev_svcs
27
+ requirement: &76338500 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - =
31
+ - !ruby/object:Gem::Version
32
+ version: 3.0.1
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *76338500
14
36
  - !ruby/object:Gem::Dependency
15
37
  name: routing-filter
16
- requirement: &2165190040 !ruby/object:Gem::Requirement
38
+ requirement: &76337500 !ruby/object:Gem::Requirement
17
39
  none: false
18
40
  requirements:
19
41
  - - =
@@ -21,10 +43,10 @@ dependencies:
21
43
  version: 0.2.4
22
44
  type: :runtime
23
45
  prerelease: false
24
- version_requirements: *2165190040
46
+ version_requirements: *76337500
25
47
  - !ruby/object:Gem::Dependency
26
48
  name: nokogiri
27
- requirement: &2165188420 !ruby/object:Gem::Requirement
49
+ requirement: &76368550 !ruby/object:Gem::Requirement
28
50
  none: false
29
51
  requirements:
30
52
  - - =
@@ -32,10 +54,10 @@ dependencies:
32
54
  version: 1.5.0
33
55
  type: :runtime
34
56
  prerelease: false
35
- version_requirements: *2165188420
57
+ version_requirements: *76368550
36
58
  - !ruby/object:Gem::Dependency
37
59
  name: rubyzip
38
- requirement: &2165187300 !ruby/object:Gem::Requirement
60
+ requirement: &76366840 !ruby/object:Gem::Requirement
39
61
  none: false
40
62
  requirements:
41
63
  - - =
@@ -43,10 +65,10 @@ dependencies:
43
65
  version: 0.9.4
44
66
  type: :runtime
45
67
  prerelease: false
46
- version_requirements: *2165187300
68
+ version_requirements: *76366840
47
69
  - !ruby/object:Gem::Dependency
48
70
  name: permalink_fu
49
- requirement: &2165186500 !ruby/object:Gem::Requirement
71
+ requirement: &76387450 !ruby/object:Gem::Requirement
50
72
  none: false
51
73
  requirements:
52
74
  - - =
@@ -54,40 +76,95 @@ dependencies:
54
76
  version: 1.0.0
55
77
  type: :runtime
56
78
  prerelease: false
57
- version_requirements: *2165186500
79
+ version_requirements: *76387450
58
80
  - !ruby/object:Gem::Dependency
59
- name: acts-as-taggable-on
60
- requirement: &2165185640 !ruby/object:Gem::Requirement
81
+ name: railties
82
+ requirement: &76385760 !ruby/object:Gem::Requirement
61
83
  none: false
62
84
  requirements:
63
- - - =
85
+ - - ~>
64
86
  - !ruby/object:Gem::Version
65
- version: 2.2.0
87
+ version: 3.1.0
66
88
  type: :runtime
67
89
  prerelease: false
68
- version_requirements: *2165185640
90
+ version_requirements: *76385760
69
91
  - !ruby/object:Gem::Dependency
70
- name: erp_forms
71
- requirement: &2165184980 !ruby/object:Gem::Requirement
92
+ name: actionmailer
93
+ requirement: &76383250 !ruby/object:Gem::Requirement
72
94
  none: false
73
95
  requirements:
74
- - - ! '>='
96
+ - - ~>
75
97
  - !ruby/object:Gem::Version
76
- version: '0'
98
+ version: 3.1.0
77
99
  type: :runtime
78
100
  prerelease: false
79
- version_requirements: *2165184980
101
+ version_requirements: *76383250
80
102
  - !ruby/object:Gem::Dependency
81
- name: erp_dev_svcs
82
- requirement: &2165184040 !ruby/object:Gem::Requirement
103
+ name: actionpack
104
+ requirement: &76381870 !ruby/object:Gem::Requirement
83
105
  none: false
84
106
  requirements:
85
- - - ! '>='
107
+ - - ~>
86
108
  - !ruby/object:Gem::Version
87
- version: '0'
88
- type: :development
109
+ version: 3.1.0
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: *76381870
113
+ - !ruby/object:Gem::Dependency
114
+ name: activerecord
115
+ requirement: &76392920 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ~>
119
+ - !ruby/object:Gem::Version
120
+ version: 3.1.0
121
+ type: :runtime
122
+ prerelease: false
123
+ version_requirements: *76392920
124
+ - !ruby/object:Gem::Dependency
125
+ name: activeresource
126
+ requirement: &76390660 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ~>
130
+ - !ruby/object:Gem::Version
131
+ version: 3.1.0
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: *76390660
135
+ - !ruby/object:Gem::Dependency
136
+ name: activesupport
137
+ requirement: &76422200 !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ~>
141
+ - !ruby/object:Gem::Version
142
+ version: 3.1.0
143
+ type: :runtime
144
+ prerelease: false
145
+ version_requirements: *76422200
146
+ - !ruby/object:Gem::Dependency
147
+ name: rails
148
+ requirement: &76420880 !ruby/object:Gem::Requirement
149
+ none: false
150
+ requirements:
151
+ - - ~>
152
+ - !ruby/object:Gem::Version
153
+ version: 3.1.0
154
+ type: :runtime
89
155
  prerelease: false
90
- version_requirements: *2165184040
156
+ version_requirements: *76420880
157
+ - !ruby/object:Gem::Dependency
158
+ name: acts-as-taggable-on
159
+ requirement: &76418010 !ruby/object:Gem::Requirement
160
+ none: false
161
+ requirements:
162
+ - - =
163
+ - !ruby/object:Gem::Version
164
+ version: 2.1.1
165
+ type: :runtime
166
+ prerelease: false
167
+ version_requirements: *76418010
91
168
  description: Knitkit is CompassAE's content and digital asset management application.
92
169
  It is based on ideas and code adapted from Mephisto and adva_cms, with significant
93
170
  changes to integrate with the CompassAE object-relational layer and to harmonize
@@ -98,170 +175,268 @@ executables: []
98
175
  extensions: []
99
176
  extra_rdoc_files: []
100
177
  files:
101
- - public/images/knitkit/bullet.png
102
- - public/images/knitkit/content.png
178
+ - public/stylesheets/erp_app/desktop/applications/knitkit/knitkit.css
179
+ - public/stylesheets/knitkit/documentation.css
180
+ - public/stylesheets/knitkit/style.css
181
+ - public/stylesheets/extjs/resources/css/knitkit_extjs_4.css
182
+ - public/stylesheets/datepicker.css
183
+ - public/images/check.png
103
184
  - public/images/knitkit/footer.png
104
- - public/images/knitkit/graphic.png
105
- - public/images/knitkit/greyFadeDown.png
106
- - public/images/knitkit/link.png
107
- - public/images/knitkit/logo.png
185
+ - public/images/knitkit/tooltip.gif
108
186
  - public/images/knitkit/menu.png
187
+ - public/images/knitkit/logo.png
188
+ - public/images/knitkit/greyFadeDown.png
109
189
  - public/images/knitkit/menu_select.png
190
+ - public/images/knitkit/content.png
191
+ - public/images/knitkit/link.png
110
192
  - public/images/knitkit/search.png
111
- - public/javascripts/datepicker.js
112
- - public/javascripts/erp_app/desktop/applications/knitkit/articles_grid_panel.js
113
- - public/javascripts/erp_app/desktop/applications/knitkit/center_region.js
114
- - public/javascripts/erp_app/desktop/applications/knitkit/comments_grid_panel.js
115
- - public/javascripts/erp_app/desktop/applications/knitkit/east_region.js
116
- - public/javascripts/erp_app/desktop/applications/knitkit/file_assets_panel.js
193
+ - public/images/knitkit/bullet.png
194
+ - public/images/knitkit/graphic.png
195
+ - public/images/credit_card.png
196
+ - public/javascripts/erp_app/desktop/applications/knitkit/themes_tree_panel.js
117
197
  - public/javascripts/erp_app/desktop/applications/knitkit/image_assets_data_view.js
118
- - public/javascripts/erp_app/desktop/applications/knitkit/image_assets_panel.js
119
198
  - public/javascripts/erp_app/desktop/applications/knitkit/inquiries_grid_panel.js
199
+ - public/javascripts/erp_app/desktop/applications/knitkit/comments_grid_panel.js
200
+ - public/javascripts/erp_app/desktop/applications/knitkit/file_assets_panel.js
120
201
  - public/javascripts/erp_app/desktop/applications/knitkit/module.js
121
- - public/javascripts/erp_app/desktop/applications/knitkit/publish_window.js
202
+ - public/javascripts/erp_app/desktop/applications/knitkit/east_region.js
122
203
  - public/javascripts/erp_app/desktop/applications/knitkit/published_grid_panel.js
123
- - public/javascripts/erp_app/desktop/applications/knitkit/section_articles_grid_panel.js
124
- - public/javascripts/erp_app/desktop/applications/knitkit/themes_tree_panel.js
125
- - public/javascripts/erp_app/desktop/applications/knitkit/versions_grid_panel.js
126
204
  - public/javascripts/erp_app/desktop/applications/knitkit/west_region.js
127
205
  - public/javascripts/erp_app/desktop/applications/knitkit/widgets_panel.js
128
- - public/stylesheets/datepicker.css
129
- - public/stylesheets/erp_app/desktop/applications/knitkit/knitkit.css
130
- - public/stylesheets/extjs/resources/css/knitkit_extjs_4.css
131
- - public/stylesheets/knitkit/style.css
132
- - app/assets/javascripts/knitkit/application.js
133
- - app/assets/stylesheets/knitkit/application.css
134
- - app/controllers/knitkit/articles_controller.rb
135
- - app/controllers/knitkit/base_controller.rb
136
- - app/controllers/knitkit/blogs_controller.rb
137
- - app/controllers/knitkit/comments_controller.rb
138
- - app/controllers/knitkit/erp_app/desktop/app_controller.rb
139
- - app/controllers/knitkit/erp_app/desktop/articles_controller.rb
140
- - app/controllers/knitkit/erp_app/desktop/comments_controller.rb
141
- - app/controllers/knitkit/erp_app/desktop/content_controller.rb
142
- - app/controllers/knitkit/erp_app/desktop/file_assets_controller.rb
143
- - app/controllers/knitkit/erp_app/desktop/image_assets_controller.rb
144
- - app/controllers/knitkit/erp_app/desktop/inquiries_controller.rb
145
- - app/controllers/knitkit/erp_app/desktop/position_controller.rb
146
- - app/controllers/knitkit/erp_app/desktop/theme_controller.rb
147
- - app/controllers/knitkit/erp_app/desktop/versions_controller.rb
148
- - app/controllers/knitkit/erp_app/desktop/website_controller.rb
149
- - app/controllers/knitkit/erp_app/desktop/website_nav_controller.rb
150
- - app/controllers/knitkit/erp_app/desktop/website_section_controller.rb
151
- - app/controllers/knitkit/unauthorized_controller.rb
152
- - app/controllers/knitkit/website_sections_controller.rb
153
- - app/helpers/application_helper.rb
154
- - app/models/article.rb
155
- - app/models/blog.rb
156
- - app/models/comment.rb
157
- - app/models/content.rb
158
- - app/models/extensions/user.rb
159
- - app/models/published_element.rb
160
- - app/models/published_website.rb
161
- - app/models/theme.rb
162
- - app/models/website.rb
163
- - app/models/website_host.rb
164
- - app/models/website_inquiry.rb
165
- - app/models/website_inquiry_mailer.rb
166
- - app/models/website_nav.rb
167
- - app/models/website_nav_item.rb
168
- - app/models/website_section.rb
169
- - app/models/website_section_content.rb
170
- - app/views/knitkit/articles/index.html.erb
171
- - app/views/knitkit/articles/show.html.erb
172
- - app/views/knitkit/blogs/_add_comment.html.erb
173
- - app/views/knitkit/blogs/_comment.html.erb
174
- - app/views/knitkit/blogs/index.html.erb
175
- - app/views/knitkit/blogs/index.rss.builder
176
- - app/views/knitkit/blogs/show.html.erb
177
- - app/views/knitkit/unauthorized/index.html.erb
178
- - app/views/knitkit/website_sections/index.html.erb
179
- - app/views/layouts/knitkit/base.html.erb
180
- - app/views/menus/knitkit/_default_menu.html.erb
181
- - app/views/menus/knitkit/_default_section_menu.html.erb
182
- - app/views/menus/knitkit/_default_sub_menu.html.erb
183
- - app/views/menus/knitkit/_default_sub_section_menu.html.erb
184
- - app/views/shared/knitkit/_bread_crumb.html.erb
185
- - app/views/shared/knitkit/_footer.html.erb
186
- - app/views/website_inquiry_mailer/inquiry.erb
187
- - app/widgets/contact_us/base.rb
188
- - app/widgets/contact_us/javascript/contact_us.js
189
- - app/widgets/contact_us/views/_contact_form.html.erb
190
- - app/widgets/contact_us/views/error.html.erb
206
+ - public/javascripts/erp_app/desktop/applications/knitkit/articles_grid_panel.js
207
+ - public/javascripts/erp_app/desktop/applications/knitkit/section_articles_grid_panel.js
208
+ - public/javascripts/erp_app/desktop/applications/knitkit/versions_grid_panel.js
209
+ - public/javascripts/erp_app/desktop/applications/knitkit/image_assets_panel.js
210
+ - public/javascripts/erp_app/desktop/applications/knitkit/center_region.js
211
+ - public/javascripts/erp_app/desktop/applications/knitkit/publish_window.js
212
+ - public/javascripts/ajax_pagination.js
213
+ - public/javascripts/knitkit/helpers.js
214
+ - public/javascripts/datepicker.js
215
+ - app/widgets/search/views/index.html.erb
216
+ - app/widgets/search/views/show.html.erb
217
+ - app/widgets/search/views/layouts/base.html.erb
218
+ - app/widgets/search/views/_search.html.erb
219
+ - app/widgets/search/base.rb
220
+ - app/widgets/search/javascript/search.js
221
+ - app/widgets/google_map/views/index.html.erb
222
+ - app/widgets/google_map/base.rb
223
+ - app/widgets/google_map/javascript/google_map.js
191
224
  - app/widgets/contact_us/views/index.html.erb
225
+ - app/widgets/contact_us/views/error.html.erb
192
226
  - app/widgets/contact_us/views/layouts/base.html.erb
193
227
  - app/widgets/contact_us/views/success.html.erb
194
- - app/widgets/google_map/base.rb
195
- - app/widgets/google_map/javascript/google_map.js
196
- - app/widgets/google_map/views/index.html.erb
197
- - app/widgets/login/base.rb
198
- - app/widgets/login/javascript/login.js
228
+ - app/widgets/contact_us/views/_contact_form.html.erb
229
+ - app/widgets/contact_us/base.rb
230
+ - app/widgets/contact_us/javascript/contact_us.js
199
231
  - app/widgets/login/views/index.html.erb
200
232
  - app/widgets/login/views/layouts/base.html.erb
201
233
  - app/widgets/login/views/login_header.html.erb
202
234
  - app/widgets/login/views/reset_password.html.erb
203
- - app/widgets/manage_profile/base.rb
204
- - app/widgets/manage_profile/javascript/manage_profile.js
205
- - app/widgets/manage_profile/views/_contact_information_form.html.erb
206
- - app/widgets/manage_profile/views/_password_form.html.erb
207
- - app/widgets/manage_profile/views/_user_information_form.html.erb
208
- - app/widgets/manage_profile/views/contact_type_in_use.html.erb
209
- - app/widgets/manage_profile/views/default_type_error.html.erb
210
- - app/widgets/manage_profile/views/error.html.erb
235
+ - app/widgets/login/base.rb
236
+ - app/widgets/login/javascript/login.js
237
+ - app/widgets/signup/views/index.html.erb
238
+ - app/widgets/signup/views/error.html.erb
239
+ - app/widgets/signup/views/layouts/base.html.erb
240
+ - app/widgets/signup/views/success.html.erb
241
+ - app/widgets/signup/views/_signup_form.html.erb
242
+ - app/widgets/signup/base.rb
243
+ - app/widgets/signup/javascript/signup.js
211
244
  - app/widgets/manage_profile/views/index.html.erb
245
+ - app/widgets/manage_profile/views/error.html.erb
246
+ - app/widgets/manage_profile/views/default_type_error.html.erb
212
247
  - app/widgets/manage_profile/views/layouts/base.html.erb
248
+ - app/widgets/manage_profile/views/success.html.erb
249
+ - app/widgets/manage_profile/views/contact_type_in_use.html.erb
250
+ - app/widgets/manage_profile/views/_password_form.html.erb
251
+ - app/widgets/manage_profile/views/password_success.html.erb
213
252
  - app/widgets/manage_profile/views/password_blank.html.erb
253
+ - app/widgets/manage_profile/views/_user_information_form.html.erb
254
+ - app/widgets/manage_profile/views/_contact_information_form.html.erb
214
255
  - app/widgets/manage_profile/views/password_invalid.html.erb
215
- - app/widgets/manage_profile/views/password_success.html.erb
216
- - app/widgets/manage_profile/views/success.html.erb
217
- - app/widgets/reset_password/base.rb
218
- - app/widgets/reset_password/javascript/reset_password.js
256
+ - app/widgets/manage_profile/base.rb
257
+ - app/widgets/manage_profile/javascript/manage_profile.js
219
258
  - app/widgets/reset_password/views/index.html.erb
220
259
  - app/widgets/reset_password/views/layouts/base.html.erb
221
- - app/widgets/search/base.rb
222
- - app/widgets/search/javascript/search.js
223
- - app/widgets/search/views/_search.html.erb
224
- - app/widgets/search/views/index.html.erb
225
- - app/widgets/search/views/layouts/base.html.erb
226
- - app/widgets/search/views/show.html.erb
227
- - app/widgets/signup/base.rb
228
- - app/widgets/signup/javascript/signup.js
229
- - app/widgets/signup/views/_signup_form.html.erb
230
- - app/widgets/signup/views/error.html.erb
231
- - app/widgets/signup/views/index.html.erb
232
- - app/widgets/signup/views/layouts/base.html.erb
233
- - app/widgets/signup/views/success.html.erb
234
- - config/environment.rb
260
+ - app/widgets/reset_password/base.rb
261
+ - app/widgets/reset_password/javascript/reset_password.js
262
+ - app/assets/stylesheets/knitkit/application.css
263
+ - app/assets/javascripts/knitkit/application.js
264
+ - app/views/menus/knitkit/_default_sub_section_menu.html.erb
265
+ - app/views/menus/knitkit/_default_menu.html.erb
266
+ - app/views/menus/knitkit/_default_sub_menu.html.erb
267
+ - app/views/menus/knitkit/_default_section_menu.html.erb
268
+ - app/views/layouts/knitkit/base.html.erb
269
+ - app/views/layouts/knitkit/online_document_sections.html.erb
270
+ - app/views/website_inquiry_mailer/inquiry.erb
271
+ - app/views/knitkit/website_sections/index.html.erb
272
+ - app/views/knitkit/unauthorized/index.html.erb
273
+ - app/views/knitkit/blogs/_add_comment.html.erb
274
+ - app/views/knitkit/blogs/index.rss.builder
275
+ - app/views/knitkit/blogs/index.html.erb
276
+ - app/views/knitkit/blogs/show.html.erb
277
+ - app/views/knitkit/blogs/_comment.html.erb
278
+ - app/views/knitkit/articles/index.html.erb
279
+ - app/views/knitkit/articles/show.html.erb
280
+ - app/views/knitkit/online_document_sections/index.html.erb
281
+ - app/views/shared/knitkit/_bread_crumb.html.erb
282
+ - app/views/shared/knitkit/_footer.html.erb
283
+ - app/views/document_mailer/email_document.html.erb
284
+ - app/models/blog.rb
285
+ - app/models/documented_content.rb
286
+ - app/models/document_type.rb
287
+ - app/models/website_inquiry.rb
288
+ - app/models/document.rb
289
+ - app/models/published_element.rb
290
+ - app/models/documented_item.rb
291
+ - app/models/article.rb
292
+ - app/models/online_document_section.rb
293
+ - app/models/website_host.rb
294
+ - app/models/valid_document.rb
295
+ - app/models/website.rb
296
+ - app/models/theme.rb
297
+ - app/models/website_section.rb
298
+ - app/models/website_party_role.rb
299
+ - app/models/website_nav_item.rb
300
+ - app/models/published_website.rb
301
+ - app/models/website_nav.rb
302
+ - app/models/content.rb
303
+ - app/models/website_inquiry_mailer.rb
304
+ - app/models/comment.rb
305
+ - app/models/website_section_content.rb
306
+ - app/models/extensions/user.rb
307
+ - app/models/extensions/party.rb
308
+ - app/models/extensions/configuration.rb
309
+ - app/mailers/document_mailer.rb
310
+ - app/helpers/application_helper.rb
311
+ - app/controllers/knitkit/website_sections_controller.rb
312
+ - app/controllers/knitkit/erp_app/desktop/articles_controller.rb
313
+ - app/controllers/knitkit/erp_app/desktop/app_controller.rb
314
+ - app/controllers/knitkit/erp_app/desktop/website_controller.rb
315
+ - app/controllers/knitkit/erp_app/desktop/content_controller.rb
316
+ - app/controllers/knitkit/erp_app/desktop/file_assets_controller.rb
317
+ - app/controllers/knitkit/erp_app/desktop/online_document_sections_controller.rb
318
+ - app/controllers/knitkit/erp_app/desktop/versions_controller.rb
319
+ - app/controllers/knitkit/erp_app/desktop/website_section_controller.rb
320
+ - app/controllers/knitkit/erp_app/desktop/theme_controller.rb
321
+ - app/controllers/knitkit/erp_app/desktop/position_controller.rb
322
+ - app/controllers/knitkit/erp_app/desktop/image_assets_controller.rb
323
+ - app/controllers/knitkit/erp_app/desktop/website_nav_controller.rb
324
+ - app/controllers/knitkit/erp_app/desktop/comments_controller.rb
325
+ - app/controllers/knitkit/erp_app/desktop/inquiries_controller.rb
326
+ - app/controllers/knitkit/base_controller.rb
327
+ - app/controllers/knitkit/online_document_sections_controller.rb
328
+ - app/controllers/knitkit/blogs_controller.rb
329
+ - app/controllers/knitkit/unauthorized_controller.rb
330
+ - app/controllers/knitkit/comments_controller.rb
235
331
  - config/routes.rb
332
+ - config/environment.rb
333
+ - db/migrate/20120315163736_add_document.rb
334
+ - db/migrate/20111208180539_add_document_id_to_documented_item.rb
335
+ - db/migrate/20111207161928_create_documented_items_table.rb
336
+ - db/migrate/20120503183431_create_valid_documents.rb
337
+ - db/migrate/upgrade/20111014201502_add_published_by_to_published_elements.rb
338
+ - db/migrate/upgrade/20120213184509_add_iid_to_websites.rb
339
+ - db/migrate/upgrade/20111017133851_add_iid_to_section.rb
340
+ - db/migrate/upgrade/20120116201510_add_render_base_layout_flag.rb
341
+ - db/migrate/upgrade/20120127143745_create_website_party_roles.rb
342
+ - db/migrate/upgrade/20111014190442_update_contents.rb
343
+ - db/migrate/upgrade/20111027145006_add_in_menu_to_section.rb
344
+ - db/migrate/20110211002317_setup_knitkit.rb
345
+ - db/data_migrations/20120316150424_add_is_template_to_default_website_config.rb
236
346
  - db/data_migrations/20110509223702_add_publisher_role.rb
237
- - db/data_migrations/20110816153456_add_knitkit_application.rb
347
+ - db/data_migrations/20120127150505_create_website_default_configuration.rb
348
+ - db/data_migrations/20111118182910_setup_knitkit_capabilities.rb
238
349
  - db/data_migrations/upgrade/20111011203718_create_paths_for_sections.rb
350
+ - db/data_migrations/upgrade/20120210195616_add_website_configs.rb
239
351
  - db/data_migrations/upgrade/20111216192114_add_secured_models_to_menu_items.rb
240
352
  - db/data_migrations/upgrade/20111216202819_set_contents_iid_to_permalink_where_null.rb
241
- - db/migrate/20110211002317_setup_knitkit.rb
242
- - db/migrate/upgrade/20111014190442_update_contents.rb
243
- - db/migrate/upgrade/20111014201502_add_published_by_to_published_elements.rb
244
- - db/migrate/upgrade/20111017133851_add_iid_to_section.rb
245
- - db/migrate/upgrade/20111027145006_add_in_menu_to_section.rb
353
+ - db/data_migrations/upgrade/20120213205519_populate_website_iids.rb
354
+ - db/data_migrations/20120127150506_add_primary_host_to_website_configuration.rb
355
+ - db/data_migrations/20120127144444_create_website_role_types.rb
356
+ - db/data_migrations/20110816153456_add_knitkit_application.rb
357
+ - lib/knitkit.rb
358
+ - lib/knitkit/syntax_validator.rb
359
+ - lib/knitkit/routing_filter/section_router.rb
246
360
  - lib/knitkit/engine.rb
361
+ - lib/knitkit/config.rb
362
+ - lib/knitkit/extensions.rb
363
+ - lib/knitkit/extensions/core/array.rb
364
+ - lib/knitkit/extensions/compass_ae/widgets/base.rb
365
+ - lib/knitkit/extensions/railties/theme_support/theme_file_resolver.rb
366
+ - lib/knitkit/extensions/railties/theme_support/asset_tag_helper.rb
367
+ - lib/knitkit/extensions/railties/action_view.rb
247
368
  - lib/knitkit/extensions/action_controller/theme_support/acts_as_themed_controller.rb
369
+ - lib/knitkit/extensions/active_record/acts_as_document.rb
248
370
  - lib/knitkit/extensions/active_record/acts_as_commentable.rb
249
- - lib/knitkit/extensions/active_record/acts_as_publishable.rb
250
371
  - lib/knitkit/extensions/active_record/theme_support/has_many_themes.rb
251
- - lib/knitkit/extensions/compass/widgets/base.rb
252
- - lib/knitkit/extensions/core/array.rb
253
- - lib/knitkit/extensions/railties/action_view.rb
254
- - lib/knitkit/extensions/railties/theme_support/asset_tag_helper.rb
255
- - lib/knitkit/extensions/railties/theme_support/theme_file_resolver.rb
256
- - lib/knitkit/extensions.rb
257
- - lib/knitkit/routing_filter/section_router.rb
258
- - lib/knitkit/syntax_validator.rb
372
+ - lib/knitkit/extensions/active_record/acts_as_publishable.rb
259
373
  - lib/knitkit/version.rb
260
- - lib/knitkit.rb
261
374
  - lib/tasks/knitkit_tasks.rake
262
375
  - GPL-3-LICENSE
263
376
  - Rakefile
264
377
  - README.md
378
+ - spec/factories/blog.rb
379
+ - spec/factories/documented_content.rb
380
+ - spec/factories/documented_item.rb
381
+ - spec/factories/article.rb
382
+ - spec/factories/online_document_section.rb
383
+ - spec/factories/basic.rb
384
+ - spec/factories/website_host.rb
385
+ - spec/factories/website.rb
386
+ - spec/factories/theme.rb
387
+ - spec/factories/website_section.rb
388
+ - spec/factories/website_nav_item.rb
389
+ - spec/factories/published_website.rb
390
+ - spec/factories/website_nav.rb
391
+ - spec/spec_helper.rb
392
+ - spec/models/comment_spec.rb
393
+ - spec/models/attribute_value_spec.rb
394
+ - spec/models/online_document_section_spec.rb
395
+ - spec/models/content_spec.rb
396
+ - spec/models/published_element_spec.rb
397
+ - spec/models/attribute_type_spec.rb
398
+ - spec/models/website_inquiry_spec.rb
399
+ - spec/models/theme_spec.rb
400
+ - spec/models/documented_item_spec.rb
401
+ - spec/models/website_section_content_spec.rb
402
+ - spec/models/article_spec.rb
403
+ - spec/models/website_host_spec.rb
404
+ - spec/models/website_nav_item_spec.rb
405
+ - spec/models/blog_spec.rb
406
+ - spec/models/website_section_spec.rb
407
+ - spec/models/website_nav_spec.rb
408
+ - spec/models/published_website_spec.rb
409
+ - spec/models/website_spec.rb
410
+ - spec/dummy/public/422.html
411
+ - spec/dummy/public/404.html
412
+ - spec/dummy/public/500.html
413
+ - spec/dummy/public/favicon.ico
414
+ - spec/dummy/config.ru
415
+ - spec/dummy/app/assets/stylesheets/application.css
416
+ - spec/dummy/app/assets/javascripts/application.js
417
+ - spec/dummy/app/views/layouts/application.html.erb
418
+ - spec/dummy/app/helpers/application_helper.rb
419
+ - spec/dummy/app/controllers/application_controller.rb
420
+ - spec/dummy/config/routes.rb
421
+ - spec/dummy/config/locales/en.yml
422
+ - spec/dummy/config/workflow.yml
423
+ - spec/dummy/config/boot.rb
424
+ - spec/dummy/config/application.rb
425
+ - spec/dummy/config/environments/spec.rb
426
+ - spec/dummy/config/initializers/mime_types.rb
427
+ - spec/dummy/config/initializers/session_store.rb
428
+ - spec/dummy/config/initializers/backtrace_silencers.rb
429
+ - spec/dummy/config/initializers/wrap_parameters.rb
430
+ - spec/dummy/config/initializers/inflections.rb
431
+ - spec/dummy/config/initializers/secret_token.rb
432
+ - spec/dummy/config/environment.rb
433
+ - spec/dummy/config/database.yml
434
+ - spec/dummy/Rakefile
435
+ - spec/dummy/script/rails
436
+ - spec/controllers/knitkit/erp_app/desktop/articles_controller_spec.rb
437
+ - spec/controllers/knitkit/erp_app/desktop/website_nav_controller_spec.rb
438
+ - spec/controllers/knitkit/erp_app/desktop/website_section_controller_spec.rb
439
+ - spec/controllers/knitkit/erp_app/desktop/website_controller_spec.rb
265
440
  homepage: http://development.compassagile.com
266
441
  licenses: []
267
442
  post_install_message:
@@ -286,4 +461,66 @@ rubygems_version: 1.8.10
286
461
  signing_key:
287
462
  specification_version: 3
288
463
  summary: CMS built for the Compass AE framework
289
- test_files: []
464
+ test_files:
465
+ - spec/factories/blog.rb
466
+ - spec/factories/documented_content.rb
467
+ - spec/factories/documented_item.rb
468
+ - spec/factories/article.rb
469
+ - spec/factories/online_document_section.rb
470
+ - spec/factories/basic.rb
471
+ - spec/factories/website_host.rb
472
+ - spec/factories/website.rb
473
+ - spec/factories/theme.rb
474
+ - spec/factories/website_section.rb
475
+ - spec/factories/website_nav_item.rb
476
+ - spec/factories/published_website.rb
477
+ - spec/factories/website_nav.rb
478
+ - spec/spec_helper.rb
479
+ - spec/models/comment_spec.rb
480
+ - spec/models/attribute_value_spec.rb
481
+ - spec/models/online_document_section_spec.rb
482
+ - spec/models/content_spec.rb
483
+ - spec/models/published_element_spec.rb
484
+ - spec/models/attribute_type_spec.rb
485
+ - spec/models/website_inquiry_spec.rb
486
+ - spec/models/theme_spec.rb
487
+ - spec/models/documented_item_spec.rb
488
+ - spec/models/website_section_content_spec.rb
489
+ - spec/models/article_spec.rb
490
+ - spec/models/website_host_spec.rb
491
+ - spec/models/website_nav_item_spec.rb
492
+ - spec/models/blog_spec.rb
493
+ - spec/models/website_section_spec.rb
494
+ - spec/models/website_nav_spec.rb
495
+ - spec/models/published_website_spec.rb
496
+ - spec/models/website_spec.rb
497
+ - spec/dummy/public/422.html
498
+ - spec/dummy/public/404.html
499
+ - spec/dummy/public/500.html
500
+ - spec/dummy/public/favicon.ico
501
+ - spec/dummy/config.ru
502
+ - spec/dummy/app/assets/stylesheets/application.css
503
+ - spec/dummy/app/assets/javascripts/application.js
504
+ - spec/dummy/app/views/layouts/application.html.erb
505
+ - spec/dummy/app/helpers/application_helper.rb
506
+ - spec/dummy/app/controllers/application_controller.rb
507
+ - spec/dummy/config/routes.rb
508
+ - spec/dummy/config/locales/en.yml
509
+ - spec/dummy/config/workflow.yml
510
+ - spec/dummy/config/boot.rb
511
+ - spec/dummy/config/application.rb
512
+ - spec/dummy/config/environments/spec.rb
513
+ - spec/dummy/config/initializers/mime_types.rb
514
+ - spec/dummy/config/initializers/session_store.rb
515
+ - spec/dummy/config/initializers/backtrace_silencers.rb
516
+ - spec/dummy/config/initializers/wrap_parameters.rb
517
+ - spec/dummy/config/initializers/inflections.rb
518
+ - spec/dummy/config/initializers/secret_token.rb
519
+ - spec/dummy/config/environment.rb
520
+ - spec/dummy/config/database.yml
521
+ - spec/dummy/Rakefile
522
+ - spec/dummy/script/rails
523
+ - spec/controllers/knitkit/erp_app/desktop/articles_controller_spec.rb
524
+ - spec/controllers/knitkit/erp_app/desktop/website_nav_controller_spec.rb
525
+ - spec/controllers/knitkit/erp_app/desktop/website_section_controller_spec.rb
526
+ - spec/controllers/knitkit/erp_app/desktop/website_controller_spec.rb