notee 1.1.1 → 1.1.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: 84c2e0deb3b8cc7e9f374fe45a9d15072ae239b6
4
- data.tar.gz: 76b1584309d6456e83411c3e1a515cc39e0f2518
3
+ metadata.gz: 909429fe0b8006227d3ff4e2b29923ca104b12e2
4
+ data.tar.gz: 4ca24b0377728a964b545d25dd264075aede0cdd
5
5
  SHA512:
6
- metadata.gz: bf1ab1f1d1dc171b67699e98b49c792a12db630f55e85da8780d124d0ec98d31257ba569319a92d86ba73aeaa0a6cdb06424f1decb893f81422cec75e90f5b2f
7
- data.tar.gz: 4ba2973053025cd0763c00f3552aa3c3263a482065e7c5f2dfa02ce1214feca575aa9ed3970ab5906f02a6f7ed9dac2b41f522cf7d2c24c3f5ec03d9dd58a4e8
6
+ metadata.gz: 04b80db924026adb3bd28371eff6efcccfb422f6d643ae98d779098d4261e33dc9e4bb290e85e1ed3a600d4086099610f67956634f0059cc4815ab95e44e9408
7
+ data.tar.gz: 89860725995c743f37e59a710c5b267afef9623655e242b7ee4d8c8774ff56f8fe4df8bdd4a0e50d71e846bf08fa281b7a3c73a951a3db5f807a6d678285c99a
@@ -48,7 +48,7 @@ module Notee
48
48
  end_time = Date.parse(tmp_date).end_of_year
49
49
  end
50
50
 
51
- @posts = Notee::Post.where(published_at: begin_time..end_time).order(published_at: :desc)
51
+ @posts = Notee::Post.where(published_at: begin_time..end_time, status: Notee::STATUS[:published], is_deleted: false).order(published_at: :desc)
52
52
  @posts
53
53
  end
54
54
 
@@ -60,7 +60,7 @@ module Notee
60
60
  raise ActiveRecord::RecordNotFound unless writer
61
61
  raise ActiveRecord::RecordNotFound if writer.is_deleted
62
62
 
63
- @posts = writer.posts
63
+ @posts = Notee::Post.where(user_id: writer.id, status: Notee::STATUS[:published], is_deleted: false).order(published_at: :desc)
64
64
  end
65
65
 
66
66
 
data/lib/notee/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Notee
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - funaota