drg_blog_news_forum 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +65 -0
  4. data/Rakefile +34 -0
  5. data/app/assets/stylesheets/drg_blog_news_forum.css +162 -0
  6. data/app/controllers/drgcms_controls/dc_blog_dc_reply_control.rb +50 -0
  7. data/app/controllers/drgcms_controls/dc_forum_topic_control.rb +50 -0
  8. data/app/controllers/drgcms_controls/dc_forum_topic_dc_reply_control.rb +61 -0
  9. data/app/forms/cms_menu.yml +33 -0
  10. data/app/forms/dc_blog.yml +42 -0
  11. data/app/forms/dc_forum.yml +59 -0
  12. data/app/forms/dc_forum_policy_rule.yml +4 -0
  13. data/app/forms/dc_forum_topic.yml +30 -0
  14. data/app/forms/dc_reply.yml +25 -0
  15. data/app/helpers/dc_blog_renderer.rb +75 -0
  16. data/app/helpers/dc_forum_helper.rb +39 -0
  17. data/app/helpers/dc_forum_renderer.rb +79 -0
  18. data/app/models/dc_blog.rb +83 -0
  19. data/app/models/dc_forum.rb +45 -0
  20. data/app/models/dc_forum_policy_rule.rb +30 -0
  21. data/app/models/dc_forum_topic.rb +47 -0
  22. data/app/models/dc_news.rb +42 -0
  23. data/app/models/dc_reply.rb +39 -0
  24. data/app/models/dc_reply_concern.rb +45 -0
  25. data/app/views/dc_blog/_blog.html.erb +24 -0
  26. data/app/views/dc_blog/_blogers.html.erb +9 -0
  27. data/app/views/dc_blog/_entries.html.erb +13 -0
  28. data/app/views/dc_blog/_entry.html.erb +18 -0
  29. data/app/views/dc_forum/_forums.html.erb +33 -0
  30. data/app/views/dc_forum/_topic.html.erb +51 -0
  31. data/app/views/dc_forum/_topics.html.erb +44 -0
  32. data/app/views/dc_replay/_reply.html.erb +24 -0
  33. data/config/locales/dc_forum_en.yml +44 -0
  34. data/config/locales/dc_forum_sl.yml +45 -0
  35. data/config/locales/models_en.yml +118 -0
  36. data/config/locales/models_sl.yml +101 -0
  37. data/lib/drg_blog_news_forum/engine.rb +4 -0
  38. data/lib/drg_blog_news_forum/version.rb +3 -0
  39. data/lib/drg_blog_news_forum.rb +6 -0
  40. data/lib/tasks/drg_blog_news_forum_tasks.rake +44 -0
  41. data/test/drg_blog_news_forum_test.rb +7 -0
  42. data/test/integration/navigation_test.rb +10 -0
  43. data/test/test_helper.rb +15 -0
  44. metadata +118 -0
@@ -0,0 +1,51 @@
1
+ <div class="forum-topics">
2
+ <div id="back-list">
3
+ <%= link_to( t('dc_forum.forums_list'), {path: params[:path]} ) %> /
4
+ <%= link_to( forum.name, {path: params[:path], forum: forum.id} ) %>
5
+ </div>
6
+ <table id="dc-forum-menu"><tr>
7
+ <td class="dc-link dc-animate" style="white-space: nowrap;">
8
+ <%= link_to( t('dc_forum.new_reply'), { controller: 'cmsedit', table: 'dc_forum_topic;dc_reply',
9
+ formname: 'dc_reply', action: 'new', ids: topic.id, forum: forum._id},
10
+ target: 'iframe_edit') %>
11
+ </td>
12
+ <td style="text-align: right; width: 100%;"><%= paginate replies %></td>
13
+ </tr></table>
14
+
15
+ <div class="forum-title">
16
+ <h1><%= forum.name %></h1></div>
17
+
18
+ <div class="topic-top"><h2><%= topic.subject %></h2>
19
+ <%= t('dc_forum.created_by') %>: <%= topic.created_by_name %> <%= dc_pretty_date(topic.created_at) %>
20
+ </div>
21
+
22
+ <div class="topic-body"><%= topic.body.html_safe %></div>
23
+
24
+ <% for reply in replies %>
25
+ <% oddeven = cycle("odd", "even") %>
26
+
27
+ <div class="reply-top-<%= oddeven %>">
28
+ <span style="float: right; top-margin: 5px;">
29
+ <%= link_to( t('dc_forum.new_reply'), { controller: 'cmsedit', table: 'dc_forum_topic;dc_reply',
30
+ formname: 'dc_reply', action: 'new', ids: topic.id,
31
+ forum: forum._id, reply_to: reply.id}, target: 'iframe_edit') %>
32
+ </span>
33
+ <b><%= reply.subject %></b><br>
34
+ <%= t('dc_forum.replied_by') %>:
35
+ <%= reply.created_by_name %>,
36
+ <%= dc_pretty_date(reply.created_at) %>&nbsp;&nbsp;
37
+ </div>
38
+ <div class="reply-body-<%= oddeven %>"><%= reply.body.html_safe %></div>
39
+ <% end %>
40
+
41
+ <table id="dc-forum-menu"><tr>
42
+ <td class="dc-link dc-animate" style="white-space: nowrap;">
43
+ <%= link_to( t('dc_forum.new_reply'), { controller: 'cmsedit', table: 'dc_forum_topic;dc_reply',
44
+ formname: 'dc_reply', action: 'new', ids: topic.id, forum: forum._id},
45
+ target: 'iframe_edit') %>
46
+ </td>
47
+ <td style="text-align: right; width: 100%;"><%= paginate replies %></td>
48
+ </tr></table>
49
+ </div>
50
+
51
+ <iframe id="iframe_edit" name="iframe_edit" scrolling="no"></iframe>
@@ -0,0 +1,44 @@
1
+ <div class="forum-topics">
2
+ <div id="back-list"><%= link_to( t('dc_forum.forums_list'), { path: params[:path] }) %> </div>
3
+
4
+ <table id="dc-forum-menu"><tr>
5
+ <td class="dc-link dc-animate" style="white-space: nowrap;">
6
+ <%= link_to( t('dc_forum.new_topic'),
7
+ {controller: 'cmsedit', table: 'dc_forum_topic', formname: 'dc_forum_topic',
8
+ action: 'new', forum: forum._id}, target: 'iframe_edit') %>
9
+ </td>
10
+ <td style="text-align: right; width: 100%;"><%= paginate topics %></td>
11
+ </tr></table>
12
+
13
+ <div class="forum-title">
14
+ <h1><%= forum.name %></h1>
15
+ </div>
16
+
17
+ <% for topic in topics %>
18
+ <div class="topic-<%= cycle("odd", "even") %>">
19
+ <%= link_to(topic.subject, { path: params[:path], forum: params[:forum], topic: topic._id } ) %><hr>
20
+ <b><%= t('dc_forum.created_by') %>:</b> <%= topic.created_by_name %>
21
+ <%= dc_pretty_date(topic.created_at) %> &nbsp;|&nbsp;
22
+
23
+ <b><%= t('dc_forum.replies') %>:</b>
24
+ <%= topic.replies %>
25
+
26
+ <% if topic.updated_at != topic.created_at %>
27
+ &nbsp;|&nbsp; <b><%= t('dc_forum.last') %>:</b>
28
+ <%= topic.updated_by_name %>
29
+ <%= dc_pretty_date(topic.updated_at) %>
30
+ <% end %>
31
+ </div>
32
+ <% end %>
33
+
34
+ <table id="dc-forum-menu"><tr>
35
+ <td class="dc-link dc-animate" style="white-space: nowrap;">
36
+ <%= link_to( t('dc_forum.new_topic'),
37
+ {controller: 'cmsedit', table: 'dc_forum_topic', formname: 'dc_forum_topic',
38
+ action: 'new', forum: forum._id}, target: 'iframe_edit') %>
39
+ </td>
40
+ <td style="text-align: right; width: 100%;"><%= paginate topics %></td>
41
+ </tr></table>
42
+ </div>
43
+
44
+ <iframe id="iframe_edit" name="iframe_edit" scrolling="no"></iframe>
@@ -0,0 +1,24 @@
1
+
2
+ <% for reply in replies %>
3
+ <% oddeven = cycle("odd", "even") %>
4
+ <div class="reply-top-<%= oddeven %>">
5
+ <span style="float: right; top-margin: 5px;">
6
+ <%= link_to( t('dc_forum.new_reply'), { controller: 'cmsedit', table: "#{parent_document};dc_reply",
7
+ formname: 'dc_reply', action: 'new', ids: parent_id,
8
+ reply_to: reply.id}, target: 'iframe_edit') %>
9
+ </span>
10
+ <b><%= reply.subject %></b><br>
11
+ <%= t('dc_forum.replied_by') %>: <%= reply.created_by_name %>,
12
+ <%= dc_pretty_date(reply.created_at) %>&nbsp;&nbsp;<br><br>
13
+ <div class="reply-body-<%= oddeven %>"><%= reply.body.html_safe %></div>
14
+ </div>
15
+ <% end %>
16
+
17
+ <table id="dc-reply-menu"><tr>
18
+ <td class="dc-link dc-animate" style="white-space: nowrap;">
19
+ <%= link_to( t('dc_forum.new_reply'), { controller: 'cmsedit', table: "#{parent_document};dc_reply",
20
+ formname: 'dc_reply', action: 'new', ids: parent_id },
21
+ target: 'iframe_edit') %>
22
+ </td>
23
+ <td style="text-align: right; width: 100%;"><%= paginate replies %></td>
24
+ </tr></table>
@@ -0,0 +1,44 @@
1
+ #--
2
+ # Copyright (c) 2014+ Damjan Rems
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
23
+
24
+ # English (en) localization for dc_forum
25
+ en:
26
+ dc_forum:
27
+ forums_list: All forums
28
+ new_reply: New reply
29
+ new_topic: New topic
30
+ created_by: Created by
31
+ updated_by: Updated by
32
+ replied_by: Replied by
33
+ topics: Topics
34
+ replies: Replies
35
+ last: Last
36
+
37
+ dc_blog:
38
+ published: Published on,
39
+ new_entry: New blog entry
40
+ edit_entry: Edit blog entry
41
+ entry_not_found: Blog entry not found
42
+ my_blog: my blog
43
+
44
+
@@ -0,0 +1,45 @@
1
+ #--
2
+ # Copyright (c) 2014+ Damjan Rems
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
23
+
24
+ # English (en) localization for dc_forum
25
+ en:
26
+ dc_forum:
27
+ forums_list: Vsi forumi
28
+ new_reply: Nov odgovor
29
+ new_topic: Nova tema
30
+ created_by: Ustvaril
31
+ updated_by: Spremenil
32
+ replied_by: Odgovoril
33
+ topics: Teme
34
+ replies: Odgovorov
35
+ last: Zadnji
36
+
37
+ dc_blog:
38
+ published: Objava,
39
+ new_entry: Nov vpis v blog
40
+ edit_entry: Uredi vpis v blog
41
+ entry_not_found: Vpis v blog ne obstaja
42
+ my_blog: moj blog
43
+
44
+
45
+
@@ -0,0 +1,118 @@
1
+ #--
2
+ # Copyright (c) 2014+ Damjan Rems
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
23
+
24
+
25
+ en:
26
+ helpers:
27
+ # label, komentarji na obrazcih #############################################
28
+ label:
29
+ dc_forum:
30
+ tabletitle: Forums
31
+
32
+ name: Forum name
33
+ description: Description
34
+ site_id: Site
35
+ dc_forum_policy_rules: Permissions
36
+ order: Order
37
+ topics: No of topics
38
+ active: Active
39
+
40
+ dc_forum_policy_rule:
41
+ tabletitle: Forum access rules
42
+
43
+ active: Active
44
+ updated_by: Updated by
45
+ dc_policy_role_id: User role
46
+ permission: Permission
47
+
48
+ dc_forum_topic:
49
+ tabletitle: Topics
50
+
51
+ subject: Subject
52
+ body: Body
53
+ created_at: Created at
54
+ dc_user_id: User
55
+ dc_forum_id: Forum
56
+ active: Active
57
+ replays: Replays
58
+ views: Views
59
+
60
+ dc_reply:
61
+ tabletitle: Replies
62
+
63
+ subject: Subject
64
+ body: Body
65
+ created_at: Created at
66
+ dc_user_id: User
67
+ dc_forum_topic_id: Topic
68
+ active: Active
69
+
70
+ dc_blog:
71
+ tabletitle: Blogs
72
+
73
+ subject: Subject
74
+ body: Body
75
+ created_at: Created at
76
+ created_by_id: Creator
77
+ created_by_name: Creator
78
+ link: Link
79
+ active: Active
80
+
81
+ help:
82
+ dc_forum:
83
+ name: Forum name (short description)
84
+ description: Long description of what is forum about
85
+ site_id: Site that forums belongs to
86
+ dc_forum_policy_rules: Access permissions for the forum
87
+ active: active
88
+
89
+ dc_forum_policy_rule:
90
+ active: Rule is active
91
+ updated_by: Last updated by
92
+ dc_policy_role_id: User role access defined by this rule
93
+ permission: Access permission
94
+
95
+ dc_forum_topic:
96
+ subject: Subject, short description of topic
97
+ body: Topics body
98
+ created_at: Creation time
99
+ dc_user_id: User who created topic
100
+ dc_forum_id: Forum that topic belongs to
101
+ active: Topic is active
102
+
103
+ dc_reply:
104
+ subject: Subject, short description of reply
105
+ body: Replays body
106
+ created_at: Created at
107
+ dc_user_id: User
108
+ active: Reply is active
109
+
110
+ dc_blog:
111
+ subject: Subject of the blog
112
+ body: Body
113
+ created_at: Time of creation
114
+ created_by: ID of the creator
115
+ created_by_name: Name of the creator
116
+ link: Link to blog entry
117
+ active: Active
118
+
@@ -0,0 +1,101 @@
1
+ #--
2
+ # Copyright (c) 2014+ Damjan Rems
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
23
+
24
+
25
+ sl:
26
+ helpers:
27
+ # label, komentarji na obrazcih #############################################
28
+ label:
29
+ dc_forum:
30
+ tabletitle: Forumi
31
+
32
+ name: Ime foruma
33
+ description: Opis foruma
34
+ site_id: Spletišče
35
+ dc_forum_policy_rules: Dovoljenja
36
+ order: Zaporedje
37
+ active: Aktiven
38
+ topics: Št. zadev
39
+
40
+ dc_forum_policy_rule:
41
+ tabletitle: Pravila za dostop
42
+
43
+ active: Aktiven
44
+ updated_by: Spremenil
45
+ dc_policy_role_id: Vloga
46
+ permission: Dostop
47
+
48
+ dc_forum_topic:
49
+ tabletitle: Tema
50
+
51
+ subject: Zadeva
52
+ body: Vsebina
53
+ created_at: Ustvarjeno
54
+ dc_user_id: Ustvaril
55
+ dc_forum_id: Forum
56
+ active: Aktiven
57
+ replays: Odgovorov
58
+ views: Vpogledov
59
+
60
+ dc_reply:
61
+ tabletitle: Odgovor
62
+
63
+ subject: Zadeva
64
+ body: Vsebina
65
+ created_at: Ustvarjeno
66
+ dc_user_id: Ustvaril
67
+ dc_forum_topic_id: Tema
68
+ active: Aktiven
69
+
70
+ help:
71
+ dc_forum:
72
+ name: Kratek naziv foruma
73
+ description: Daljši opis foruma
74
+ site_id: Stran, ki ji forum pripada
75
+ dc_forum_policy_rules: Pravila za dostop do foruma
76
+ active: Aktiven
77
+
78
+ dc_forum_policy_rule:
79
+ dc_policy_role_id: Uporabnišška vloga
80
+ permission: Dovoljenje za dostop
81
+ active: Aktiven
82
+
83
+ dc_forum_topic:
84
+ subject: Zadeva, naslov teme
85
+ body: Vsebina, tekst
86
+ created_at: Ustvarjeno
87
+ dc_user_id: Ustvaril
88
+ dc_forum_id: Forum
89
+ active: Aktiven
90
+ replays: Odgovorov
91
+ views: Vpogledov
92
+
93
+ dc_reply:
94
+ subject: Zadeva, naslov odgovora
95
+ body: Vsebina odgovora
96
+ created_at: Ustvarjeno
97
+ dc_user_id: Ustvaril
98
+ dc_forum_topic_id: Tema
99
+ active: Aktiven
100
+
101
+
@@ -0,0 +1,4 @@
1
+ module DrgBlogNewsForum
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,3 @@
1
+ module DrgBlogNewsForum
2
+ VERSION = "0.0.3"
3
+ end
@@ -0,0 +1,6 @@
1
+ require "drg_blog_news_forum/engine"
2
+
3
+ module DrgBlogNewsForum
4
+ end
5
+
6
+ DrgCms.add_forms_path File.expand_path("../../app/forms", __FILE__)
@@ -0,0 +1,44 @@
1
+ # desc "Explaining what the task does"
2
+ # task :drg_blog_news_forum do
3
+ # # Task goes here
4
+ # end
5
+
6
+ ########################################################################
7
+ # quick update to names in fourm
8
+ #########################################################################
9
+ namespace :drg_blog_news_forum do
10
+ desc 'Update name in forums'
11
+ task :update_name => :environment do
12
+ DcForum.all.each do |forum|
13
+ if forum.created_by
14
+ user = DcUser.find(forum.created_by)
15
+ forum.created_by_name = user.name
16
+ end
17
+ if forum.updated_by
18
+ user = DcUser.find(forum.updated_by)
19
+ forum.updated_by_name = user.name
20
+ end
21
+ forum.save
22
+ end
23
+ DcForumTopic.all.each do |topic|
24
+ if topic.created_by
25
+ user = DcUser.find(topic.created_by)
26
+ topic.created_by_name = user.name
27
+ end
28
+ if topic.updated_by
29
+ user = DcUser.find(topic.updated_by)
30
+ topic.updated_by_name = user.name
31
+ end
32
+ topic.save
33
+ topic.dc_replies.each do |reply |
34
+ if reply.created_by
35
+ user = DcUser.find(reply.created_by)
36
+ reply.created_by_name = user.name
37
+ reply.save
38
+ end
39
+ end
40
+ end
41
+
42
+ end
43
+
44
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class DrgBlogNewsForumTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, DrgBlogNewsForum
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
metadata ADDED
@@ -0,0 +1,118 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: drg_blog_news_forum
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Damjan Rems
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: drg_cms
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: DrgBlogNewsForum plugin implements basic funcionality for enabling blog,
42
+ news or forum on your web site.
43
+ email:
44
+ - damjan.rems@gmail.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - MIT-LICENSE
50
+ - README.md
51
+ - Rakefile
52
+ - app/assets/stylesheets/drg_blog_news_forum.css
53
+ - app/controllers/drgcms_controls/dc_blog_dc_reply_control.rb
54
+ - app/controllers/drgcms_controls/dc_forum_topic_control.rb
55
+ - app/controllers/drgcms_controls/dc_forum_topic_dc_reply_control.rb
56
+ - app/forms/cms_menu.yml
57
+ - app/forms/dc_blog.yml
58
+ - app/forms/dc_forum.yml
59
+ - app/forms/dc_forum_policy_rule.yml
60
+ - app/forms/dc_forum_topic.yml
61
+ - app/forms/dc_reply.yml
62
+ - app/helpers/dc_blog_renderer.rb
63
+ - app/helpers/dc_forum_helper.rb
64
+ - app/helpers/dc_forum_renderer.rb
65
+ - app/models/dc_blog.rb
66
+ - app/models/dc_forum.rb
67
+ - app/models/dc_forum_policy_rule.rb
68
+ - app/models/dc_forum_topic.rb
69
+ - app/models/dc_news.rb
70
+ - app/models/dc_reply.rb
71
+ - app/models/dc_reply_concern.rb
72
+ - app/views/dc_blog/_blog.html.erb
73
+ - app/views/dc_blog/_blogers.html.erb
74
+ - app/views/dc_blog/_entries.html.erb
75
+ - app/views/dc_blog/_entry.html.erb
76
+ - app/views/dc_forum/_forums.html.erb
77
+ - app/views/dc_forum/_topic.html.erb
78
+ - app/views/dc_forum/_topics.html.erb
79
+ - app/views/dc_replay/_reply.html.erb
80
+ - config/locales/dc_forum_en.yml
81
+ - config/locales/dc_forum_sl.yml
82
+ - config/locales/models_en.yml
83
+ - config/locales/models_sl.yml
84
+ - lib/drg_blog_news_forum.rb
85
+ - lib/drg_blog_news_forum/engine.rb
86
+ - lib/drg_blog_news_forum/version.rb
87
+ - lib/tasks/drg_blog_news_forum_tasks.rake
88
+ - test/drg_blog_news_forum_test.rb
89
+ - test/integration/navigation_test.rb
90
+ - test/test_helper.rb
91
+ homepage: http://www.drgcms.org
92
+ licenses:
93
+ - MIT-LICENSE
94
+ metadata: {}
95
+ post_install_message:
96
+ rdoc_options: []
97
+ require_paths:
98
+ - lib
99
+ required_ruby_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ required_rubygems_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ requirements: []
110
+ rubyforge_project:
111
+ rubygems_version: 2.2.2
112
+ signing_key:
113
+ specification_version: 4
114
+ summary: 'DRG CMS: Blog, news and forum plugin for DRG CMS'
115
+ test_files:
116
+ - test/test_helper.rb
117
+ - test/integration/navigation_test.rb
118
+ - test/drg_blog_news_forum_test.rb