drg_blog_news_forum 0.5.5.1 → 0.5.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0f02f8c6b3b45b8f73749b9ceb4b9809d812b30
4
- data.tar.gz: 8f00f97e69d907287e860093fbfbff160ca54303
3
+ metadata.gz: d4aeccbb4208ecd7b1a890680fe8086724371c50
4
+ data.tar.gz: 9b0ef1e69fd3ef3c5980abc0617276f65e4a12ab
5
5
  SHA512:
6
- metadata.gz: b4da2bc2173355bba15e78b222e252cb2e4da68ade4961f67eb22f46bd1253428feccc5531f4e46e0667734299139c51d2a70b16061fd396a04f68b5301222c6
7
- data.tar.gz: b184c9e6151d8d6f4070d7b85c9930dcabf6468f770794f4acab81044747c84575a74209725846f5b3b54693edc222f8d7a8e21fda97cf8e90190dd60d72e25b
6
+ metadata.gz: e9b24236e3936f07f3f12230462af801a424b6b44670eb85a7bf14f0b0814f660c70c84a06d497c2eaf14e29c7a75b82fcedd752d1819f2c282a8d78cb3d69b8
7
+ data.tar.gz: 95fca9a063f545e12a130029ae8b8b0587c48abef97d0cabe934a4d5e16e04eb525a8536c7c0088a380c886d59f70a8464c14d45206385affc453b9b42ee17c2
@@ -65,7 +65,7 @@ end
65
65
  def last_blogs
66
66
  limit = @opts[:limit] || 3
67
67
  entries = DcBlog.only(:created_by_name, :link, :subject, :created_at)
68
- .where(active: true, :created_at.gt => 2.months.ago)
68
+ .where(active: true, :created_at.gt => 6.months.ago)
69
69
  .order_by(created_at: -1).limit(limit).to_a
70
70
  if entries.size > 0
71
71
  # for document link.
@@ -56,7 +56,7 @@ end
56
56
  def last_news
57
57
  limit = @opts[:limit] || 3
58
58
  entries = DcNews.only(:created_by_name, :link, :subject, :created_at)
59
- .where(active: true, :created_at.gt => 2.months.ago)
59
+ .where(active: true, :created_at.gt => 6.months.ago)
60
60
  .order_by(created_at: -1).limit(limit).to_a
61
61
  if entries.size > 0
62
62
  # for document link.
@@ -22,7 +22,20 @@
22
22
  #++
23
23
 
24
24
  #########################################################################
25
- # ActiveSupport::Concern definition for DcBlog class.
25
+ # == Schema information
26
+ #
27
+ # Collection name: dc_blog : Blogs
28
+ #
29
+ # _id BSON::ObjectId _id
30
+ # created_at Time Time of creation
31
+ # updated_at Time updated_at
32
+ # subject String Subject of the blog
33
+ # body String Body
34
+ # active Mongoid::Boolean Active
35
+ # link String Link to blog entry
36
+ # created_by BSON::ObjectId ID of the creator
37
+ # created_by_name String Name of the creator
38
+ # dc_replies Embedded:DcReply dc_replies
26
39
  #########################################################################
27
40
  module DcBlogConcern
28
41
  extend ActiveSupport::Concern
@@ -21,6 +21,28 @@
21
21
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
  #++
23
23
 
24
+ #########################################################################
25
+ # == Schema information
26
+ #
27
+ # Collection name: dc_forum : Forums
28
+ #
29
+ # _id BSON::ObjectId _id
30
+ # created_at Time created_at
31
+ # updated_at Time updated_at
32
+ # name String Forum name (short description)
33
+ # description String Long description of what is forum about
34
+ # site_id BSON::ObjectId Site that forums belongs to
35
+ # order Integer Order
36
+ # topics Integer No of topics
37
+ # replies Integer replies
38
+ # forum_groups Array forum_groups
39
+ # active Mongoid::Boolean active
40
+ # created_by BSON::ObjectId created_by
41
+ # updated_by BSON::ObjectId updated_by
42
+ # created_by_name String created_by_name
43
+ # updated_by_name String updated_by_name
44
+ # dc_policy_rules Embedded:DcPolicyRule dc_policy_rules
45
+ #########################################################################
24
46
  class DcForum
25
47
  include Mongoid::Document
26
48
  include Mongoid::Timestamps
@@ -23,6 +23,17 @@
23
23
 
24
24
  require_dependency DrgCms.model 'dc_policy_rule'
25
25
 
26
+ #########################################################################
27
+ # == Schema information
28
+ #
29
+ # Collection name: dc_forum_policy_rule : Forum access rules
30
+ #
31
+ # _id BSON::ObjectId _id
32
+ # created_at Time created_at
33
+ # updated_at Time updated_at
34
+ # dc_policy_role_id Object User role access defined by this rule
35
+ # permission Integer Access permission
36
+ #########################################################################
26
37
  class DcForumPolicyRule
27
38
  include DcPolicyRuleConcern
28
39
 
@@ -21,6 +21,26 @@
21
21
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
  #++
23
23
 
24
+ #########################################################################
25
+ # == Schema information
26
+ #
27
+ # Collection name: dc_forum_topic : Topics
28
+ #
29
+ # _id BSON::ObjectId _id
30
+ # created_at Time Creation time
31
+ # updated_at Time updated_at
32
+ # subject String Subject, short description of topic
33
+ # body String Topics body
34
+ # replies Integer No of replies
35
+ # views Integer Views
36
+ # dc_forum_id Object Forum that topic belongs to
37
+ # active Mongoid::Boolean Topic is active
38
+ # created_by BSON::ObjectId created_by
39
+ # updated_by BSON::ObjectId updated_by
40
+ # created_by_name String Name
41
+ # updated_by_name String updated_by_name
42
+ # dc_replies Embedded:DcReply dc_replies
43
+ #########################################################################
24
44
  class DcForumTopic
25
45
  include Mongoid::Document
26
46
  include Mongoid::Timestamps
@@ -21,6 +21,25 @@
21
21
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
  #++
23
23
 
24
+ ########################################################################
25
+ # == Schema information
26
+ #
27
+ # Collection name: dc_news : News
28
+ #
29
+ # _id BSON::ObjectId _id
30
+ # created_at Time Time of creation
31
+ # updated_at Time updated_at
32
+ # subject String Subject of the news
33
+ # body String Body
34
+ # active Mongoid::Boolean Active
35
+ # link String Link to blog entry
36
+ # valid_from Date valid_from
37
+ # valid_to Date valid_to
38
+ # categories Array categories
39
+ # created_by BSON::ObjectId ID of the creator
40
+ # created_by_name String Name of the creator
41
+ # dc_replies Embedded:DcReply dc_replies
42
+ ########################################################################
24
43
  class DcNews
25
44
  include Mongoid::Document
26
45
  include Mongoid::Timestamps
@@ -21,6 +21,20 @@
21
21
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
  #++
23
23
 
24
+ ########################################################################
25
+ # == Schema information
26
+ #
27
+ # Collection name: dc_reply : Replies
28
+ #
29
+ # _id BSON::ObjectId _id
30
+ # created_at Time Created at
31
+ # updated_at Time updated_at
32
+ # subject String Subject, short description of reply
33
+ # body String Body text of reply
34
+ # active Mongoid::Boolean Reply is active
35
+ # created_by BSON::ObjectId Created by
36
+ # created_by_name String Reply author's name
37
+ ########################################################################
24
38
  class DcReply
25
39
  include Mongoid::Document
26
40
  include Mongoid::Timestamps
@@ -1,3 +1,3 @@
1
1
  module DrgBlogNewsForum
2
- VERSION = "0.5.5.1"
2
+ VERSION = "0.5.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drg_blog_news_forum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5.1
4
+ version: 0.5.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damjan Rems
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-17 00:00:00.000000000 Z
11
+ date: 2016-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails