HornsAndHooves-moribus 0.7.1 → 0.7.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
  SHA256:
3
- metadata.gz: f2abb615268f2c42283de6414f05bb5de13f1bbd96de147b72a5f78f23ef7cad
4
- data.tar.gz: 15bac2500a6014c65f6bd9e2d7dbce2ca8a9df37a76d4d282e9abd5e46ed61a4
3
+ metadata.gz: 030306473aaa6548bb98b95cce958cc4861fbf923ac99e33df4c31c5e5e54298
4
+ data.tar.gz: 8fa274a49fd8f7aaefdb30fb388281c089c0029fb0d861299ca760d5544d3ed8
5
5
  SHA512:
6
- metadata.gz: 908ec06e853f32c14c53efaa2fd9e6eda1e03a992eaec495d84eeb1ec392c23843907a69930de5b983a1be254681c0c097759157839071c2aa10e2a95dd77234
7
- data.tar.gz: 4b9abac4e3e538999c714284f263bbc7f4180f19fb50fc0185b18522252a41ac72673690a036dc03e08aadf58cd2a99bd10991f0cfec171e1d10dfe2547bbd79
6
+ metadata.gz: e541ea1a31728d2156e52602601abb8a1e24181b7dcd90a0799e6a588cc78e48e2ba7833e236ca7a4230ac8fc29ea50e741e2914adaedb8f21291f4e924c6929
7
+ data.tar.gz: 0e744f9a43ac59e002928c05fe12c8ee69d06245733ad85d7417042ccf1d1a544a9c56f0b40cfad97d48e4f7476cefdb5c1d6e742b6edf14aeebf2f50c7ca473
data/lib/moribus.rb CHANGED
@@ -100,6 +100,9 @@ module Moribus
100
100
  clear_changes_information
101
101
  else
102
102
  restore_before_to_new_record_values
103
+
104
+ clear_attribute_change(:created_at) if respond_to?(:created_at)
105
+ clear_attribute_change(:updated_at) if respond_to?(:updated_at)
103
106
  end
104
107
  @new_record = false
105
108
  true
@@ -146,10 +149,12 @@ module Moribus
146
149
 
147
150
  if respond_to?(:updated_at=)
148
151
  self.updated_at = nil
152
+ self.updated_at_will_change!
149
153
  end
150
154
 
151
155
  if respond_to?(:created_at=)
152
156
  self.created_at = nil
157
+ self.created_at_will_change!
153
158
  end
154
159
 
155
160
  # mark all other attributes is changing
@@ -1,3 +1,3 @@
1
1
  module Moribus # :nodoc:
2
- VERSION = "0.7.1" # :nodoc:
2
+ VERSION = "0.7.2" # :nodoc:
3
3
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: HornsAndHooves-moribus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - HornsAndHooves
8
8
  - Arthur Shagall
9
9
  - Artem Kuzko
10
10
  - Sergey Potapov
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-08-07 00:00:00.000000000 Z
14
+ date: 2021-03-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -192,7 +192,7 @@ homepage: https://github.com/HornsAndHooves/moribus
192
192
  licenses:
193
193
  - MIT
194
194
  metadata: {}
195
- post_install_message:
195
+ post_install_message:
196
196
  rdoc_options: []
197
197
  require_paths:
198
198
  - lib
@@ -207,9 +207,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
209
  requirements: []
210
- rubyforge_project:
210
+ rubyforge_project:
211
211
  rubygems_version: 2.7.9
212
- signing_key:
212
+ signing_key:
213
213
  specification_version: 4
214
214
  summary: Introduces Aggregated and Tracked behavior to ActiveRecord::Base models
215
215
  test_files: