drg_blog_news_forum 0.5.5 → 0.5.5.1

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: cd8b7a0e95a2859524357b74e8f8b15d9861d3d9
4
- data.tar.gz: 0d1be920499ae56bfd393700add73aa37116fcdd
3
+ metadata.gz: d0f02f8c6b3b45b8f73749b9ceb4b9809d812b30
4
+ data.tar.gz: 8f00f97e69d907287e860093fbfbff160ca54303
5
5
  SHA512:
6
- metadata.gz: 77a2b073594ec416efa51f45fc035aec6cdb605867b344c6f4d7cb606d07b70ee55437e0d93824e23d849bee3f9d4efe6a2ae951867a6737ee2ae11dd1486648
7
- data.tar.gz: 129e7627bff4b50aa2b55f4bf59e742155b038984bf280ce416b3da1eafec0af133ac5b52d3f1cd569247d2d1f9de3b0f9700c1f364eabe6eef0782760fb7473
6
+ metadata.gz: b4da2bc2173355bba15e78b222e252cb2e4da68ade4961f67eb22f46bd1253428feccc5531f4e46e0667734299139c51d2a70b16061fd396a04f68b5301222c6
7
+ data.tar.gz: b184c9e6151d8d6f4070d7b85c9930dcabf6468f770794f4acab81044747c84575a74209725846f5b3b54693edc222f8d7a8e21fda97cf8e90190dd60d72e25b
@@ -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.lt => 2.months.ago)
68
+ .where(active: true, :created_at.gt => 2.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.lt => 2.months.ago)
59
+ .where(active: true, :created_at.gt => 2.months.ago)
60
60
  .order_by(created_at: -1).limit(limit).to_a
61
61
  if entries.size > 0
62
62
  # for document link.
@@ -1,3 +1,3 @@
1
1
  module DrgBlogNewsForum
2
- VERSION = "0.5.5"
2
+ VERSION = "0.5.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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
4
+ version: 0.5.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damjan Rems