unread 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +1 -1
- data/bin/console +2 -0
- data/gemfiles/rails_5_0.gemfile +1 -1
- data/lib/unread/readable.rb +5 -2
- data/lib/unread/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '031127638582f162534dd12b0c7634728d8cbaef'
|
4
|
+
data.tar.gz: 8c142d460544502dfc8c3b6d5be2ab0edb745f49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3eefb5e01849958b959e8982b2f28da7c1264af88a60c8e43a5e28c563b298b7ea5da4440f148a9995d0e0006be7b1485edbfe8cbe2e073ad057931c333b3bf
|
7
|
+
data.tar.gz: 527a7d87fbc85f7edc88178f8d66d50fc38628722c1fac9faa2e7cdad6cc1f263ae77beac94b5bf30f91ecd99608d33701c398bbbb70117d80812def371b7ce6
|
data/Appraisals
CHANGED
data/bin/console
CHANGED
@@ -9,7 +9,9 @@ require 'spec/support/spec_migration.rb'
|
|
9
9
|
|
10
10
|
require 'spec/app/models/reader'
|
11
11
|
require 'spec/app/models/different_reader'
|
12
|
+
require 'spec/app/models/customer'
|
12
13
|
require 'spec/app/models/sti_reader'
|
14
|
+
require 'spec/app/models/document'
|
13
15
|
require 'spec/app/models/email'
|
14
16
|
|
15
17
|
# You can add fixtures and/or initialization code here to make experimenting
|
data/gemfiles/rails_5_0.gemfile
CHANGED
data/lib/unread/readable.rb
CHANGED
@@ -57,7 +57,7 @@ module Unread
|
|
57
57
|
end
|
58
58
|
current_klass
|
59
59
|
end
|
60
|
-
|
60
|
+
|
61
61
|
def cleanup_read_marks!
|
62
62
|
assert_reader_class
|
63
63
|
Unread::GarbageCollector.new(self).run!
|
@@ -68,7 +68,10 @@ module Unread
|
|
68
68
|
|
69
69
|
ReadMark.transaction do
|
70
70
|
reader.read_marks.where(:readable_type => self.readable_parent.name).delete_all
|
71
|
-
reader.read_marks.
|
71
|
+
rm = reader.read_marks.new
|
72
|
+
rm.readable_type = self.readable_parent.name
|
73
|
+
rm.timestamp = Time.current
|
74
|
+
rm.save!
|
72
75
|
end
|
73
76
|
|
74
77
|
reader.forget_memoized_read_mark_global
|
data/lib/unread/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unread
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Georg Ledermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
227
|
version: '0'
|
228
228
|
requirements: []
|
229
229
|
rubyforge_project: unread
|
230
|
-
rubygems_version: 2.6.
|
230
|
+
rubygems_version: 2.6.6
|
231
231
|
signing_key:
|
232
232
|
specification_version: 4
|
233
233
|
summary: Manages read/unread status of ActiveRecord objects
|