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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6fd28e32229a3de0142f496c6babbecdb6cf033
4
- data.tar.gz: ae6d49a71e954a1ae63e7525a48897507cb5bd10
3
+ metadata.gz: '031127638582f162534dd12b0c7634728d8cbaef'
4
+ data.tar.gz: 8c142d460544502dfc8c3b6d5be2ab0edb745f49
5
5
  SHA512:
6
- metadata.gz: be6ec8146d08426dfc114ccbc8fd8508c09cd6486712cb2bbc7657c21020b88d7150e573b76b0b2a51c320b54d508f64900021d7d2f2fe377a17a067ac78ebec
7
- data.tar.gz: 770925b2bb33debb69dbbd56455f6aee01f5601adc1cba9e92033c441897944d523d66252469564053accf549cad562821741df9666446f67b065bf0f589d847
6
+ metadata.gz: c3eefb5e01849958b959e8982b2f28da7c1264af88a60c8e43a5e28c563b298b7ea5da4440f148a9995d0e0006be7b1485edbfe8cbe2e073ad057931c333b3bf
7
+ data.tar.gz: 527a7d87fbc85f7edc88178f8d66d50fc38628722c1fac9faa2e7cdad6cc1f263ae77beac94b5bf30f91ecd99608d33701c398bbbb70117d80812def371b7ce6
data/Appraisals CHANGED
@@ -1,5 +1,5 @@
1
1
  appraise "rails-5-0" do
2
- gem "activerecord", "5.0.0.beta3"
2
+ gem "activerecord", "~> 5.0.0"
3
3
  gem 'mysql2', '>= 0.3.18', '< 0.5'
4
4
  end
5
5
 
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activerecord", "5.0.0.beta3"
5
+ gem "activerecord", "~> 5.0.0"
6
6
  gem "mysql2", ">= 0.3.18", "< 0.5"
7
7
 
8
8
  gemspec :path => "../"
@@ -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.create! :readable_type => self.readable_parent.name, :timestamp => Time.current
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
@@ -1,3 +1,3 @@
1
1
  module Unread
2
- VERSION = '0.8.0'
2
+ VERSION = '0.8.1'
3
3
  end
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.0
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-03-20 00:00:00.000000000 Z
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.2
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