delta_changes 2.0.0 → 2.1.0

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: f722d8be9e14ffadad47521a4db8ddab44a35300
4
- data.tar.gz: 7eae375050f5af8f4090ce310a0205b114e292a7
3
+ metadata.gz: fb39ad7f3abba78ee87c76a74d4a540ee9b1c7e0
4
+ data.tar.gz: 6defc70a469dcb5be9f1ac7c66b93fabf0c2bf31
5
5
  SHA512:
6
- metadata.gz: 299ca74a9af437f53bb81c32a2d227add2c587e0dc282c5af18bc471d2fea7d9538185805af6d926749bea120cc3961b48bb48111b09ba08e8e5269ca082d859
7
- data.tar.gz: d9cbf8b6ba85d2bb8bd7b6c35d96d3ca0c8182eb8adbb6ee4e2def43392a561b46826bb28263b4725aec0fa273dc677e3ceedca8150a21f3ccb0209512db0e95
6
+ metadata.gz: afa94e43ec507c692f8429a9579a01a307758c9f753c439c0718a779f14d31183f5f0ec4dabbcc10e1901a83cecabbf5f46e460ba45c0072658b6c569c3023c1
7
+ data.tar.gz: 7d1581feccc6d27f5f41d1b31399afe309d41a8212436103cba4e14192cc83de07f1915c8afad6aac1fa8973d76a598486305c21543cc594e6ccb6d2ee8603d4
@@ -110,7 +110,7 @@ module DeltaChanges
110
110
  end
111
111
 
112
112
  def delta_changes_field_changed?(attr, old, value)
113
- return true if old.nil? && !value.nil?
113
+ return true if !old.present? && value.present?
114
114
  if ActiveRecord::VERSION::STRING < '4.2.0'
115
115
  _field_changed?(attr, old, value)
116
116
  elsif ActiveRecord::VERSION::MAJOR < 5
@@ -1,3 +1,3 @@
1
1
  module DeltaChanges
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delta_changes
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-10 00:00:00.000000000 Z
11
+ date: 2017-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project:
145
- rubygems_version: 2.4.5.1
145
+ rubygems_version: 2.5.1
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Additional real/virtual attribute change tracking independent of ActiveRecords