delta_changes 2.1.0 → 2.2.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
- SHA1:
3
- metadata.gz: fb39ad7f3abba78ee87c76a74d4a540ee9b1c7e0
4
- data.tar.gz: 6defc70a469dcb5be9f1ac7c66b93fabf0c2bf31
2
+ SHA256:
3
+ metadata.gz: 6678c9b0ba5d7160cc0a7b109c42998917fd33c965534ff97f62538cd24d3755
4
+ data.tar.gz: cb6cdc0e81c32b968127895d6f6c432b883c28306487df81a2047fa0c2a4d2a8
5
5
  SHA512:
6
- metadata.gz: afa94e43ec507c692f8429a9579a01a307758c9f753c439c0718a779f14d31183f5f0ec4dabbcc10e1901a83cecabbf5f46e460ba45c0072658b6c569c3023c1
7
- data.tar.gz: 7d1581feccc6d27f5f41d1b31399afe309d41a8212436103cba4e14192cc83de07f1915c8afad6aac1fa8973d76a598486305c21543cc594e6ccb6d2ee8603d4
6
+ metadata.gz: 25f93dc419e0f0f5e79d5353d82d562dea9c1a4ad16cdab26d6aa35806297b9a354a00667a4bad60ee6b114c7989dd8b59e1b4d9dec28a020e45d2cb924f5b80
7
+ data.tar.gz: 81c7a3bb5d40a7e9e96af39349c71c0bd9a4fba70fc4738b6d63f95aa005fbb19a0121d19a4b5d3ff06e52fce25b7ef36e4f4b0ee757d2ad6f3ca8ceb56b497a
@@ -84,7 +84,7 @@ module DeltaChanges
84
84
  value = send(attr)
85
85
  value.duplicable? ? value.clone : value
86
86
  else
87
- options[:from] || clone_attribute_value(:read_attribute, attr)
87
+ options[:from] || respond_to?(:clone_attribute_value) ? clone_attribute_value(:read_attribute, attr) : read_attribute(attr).dup
88
88
  end
89
89
  delta_changed_attributes[attr] = attribute_value
90
90
  end
@@ -103,7 +103,7 @@ module DeltaChanges
103
103
  write_attribute_without_delta_changes(attr, value)
104
104
  delta_changed_attributes.delete(attr) unless delta_changes_field_changed?(attr, old, value)
105
105
  else
106
- old = clone_attribute_value(:read_attribute, attr)
106
+ old = respond_to?(:clone_attribute_value) ? clone_attribute_value(:read_attribute, attr) : read_attribute(attr).dup
107
107
  write_attribute_without_delta_changes(attr, value)
108
108
  delta_changed_attributes[attr] = old if delta_changes_field_changed?(attr, old, value)
109
109
  end
@@ -1,3 +1,3 @@
1
1
  module DeltaChanges
2
- VERSION = "2.1.0"
2
+ VERSION = "2.2.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.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-10 00:00:00.000000000 Z
11
+ date: 2021-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 3.2.22
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.1'
22
+ version: '5.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 3.2.22
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.1'
32
+ version: '5.2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rake
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -62,16 +62,16 @@ dependencies:
62
62
  name: sqlite3
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - ">="
65
+ - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '0'
67
+ version: 1.3.6
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ">="
72
+ - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '0'
74
+ version: 1.3.6
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: bump
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -114,7 +114,7 @@ dependencies:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
- description:
117
+ description:
118
118
  email: michael@grosser.it
119
119
  executables: []
120
120
  extensions: []
@@ -122,11 +122,11 @@ extra_rdoc_files: []
122
122
  files:
123
123
  - lib/delta_changes.rb
124
124
  - lib/delta_changes/version.rb
125
- homepage: http://github.com/grosser/delta_changes
125
+ homepage: http://github.com/zendesk/delta_changes
126
126
  licenses:
127
127
  - MIT
128
128
  metadata: {}
129
- post_install_message:
129
+ post_install_message:
130
130
  rdoc_options: []
131
131
  require_paths:
132
132
  - lib
@@ -141,9 +141,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  requirements: []
144
- rubyforge_project:
145
- rubygems_version: 2.5.1
146
- signing_key:
144
+ rubygems_version: 3.1.2
145
+ signing_key:
147
146
  specification_version: 4
148
147
  summary: Additional real/virtual attribute change tracking independent of ActiveRecords
149
148
  test_files: []