HornsAndHooves-moribus 0.7.0 → 0.7.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
  SHA256:
3
- metadata.gz: 0d973c4c4d01859f5d577ec5c594b78d36c5e6064885b843804a984670d6e2c4
4
- data.tar.gz: b7a269f5cc0bb99e3833d219f593e726b98be3371904cfe7d1deb16a45af1ee0
3
+ metadata.gz: f2abb615268f2c42283de6414f05bb5de13f1bbd96de147b72a5f78f23ef7cad
4
+ data.tar.gz: 15bac2500a6014c65f6bd9e2d7dbce2ca8a9df37a76d4d282e9abd5e46ed61a4
5
5
  SHA512:
6
- metadata.gz: e193850f47dabd551af7e4cf31ef9b4e92653151533fc4190b8aa2fb0b2a74142c606b7de75821a273a53040402e1cfad9a1498e019cd45bf4886834baf4e3ec
7
- data.tar.gz: e575f9663606d2367b594537a4cbd9222cbe44c36e0386dd6bf40378ba3ec39d66f2e626b0f1914a24850238254ded9905957775ecb1821d99b48a08d8b446e6
6
+ metadata.gz: 908ec06e853f32c14c53efaa2fd9e6eda1e03a992eaec495d84eeb1ec392c23843907a69930de5b983a1be254681c0c097759157839071c2aa10e2a95dd77234
7
+ data.tar.gz: 4b9abac4e3e538999c714284f263bbc7f4180f19fb50fc0185b18522252a41ac72673690a036dc03e08aadf58cd2a99bd10991f0cfec171e1d10dfe2547bbd79
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ["lib"]
21
21
 
22
22
  # specify any dependencies here; for example:
23
- s.add_dependency "rails", "~> 5.0"
23
+ s.add_dependency "rails", "~> 5"
24
24
  s.add_dependency "power_enum", ">= 2.7.0"
25
25
  s.add_dependency "yard", ">= 0"
26
26
 
@@ -96,7 +96,8 @@ module Moribus
96
96
  self.id = existing.id
97
97
  self.created_at = existing.created_at if respond_to?(:created_at)
98
98
  self.updated_at = existing.updated_at if respond_to?(:updated_at)
99
- @changed_attributes = {}
99
+
100
+ clear_changes_information
100
101
  else
101
102
  restore_before_to_new_record_values
102
103
  end
@@ -145,14 +146,10 @@ module Moribus
145
146
 
146
147
  if respond_to?(:updated_at=)
147
148
  self.updated_at = nil
148
- @changed_attributes =
149
- ActiveSupport::HashWithIndifferentAccess.new(changed_attributes.dup.merge(updated_at: nil))
150
149
  end
151
150
 
152
151
  if respond_to?(:created_at=)
153
152
  self.created_at = nil
154
- @changed_attributes =
155
- ActiveSupport::HashWithIndifferentAccess.new(changed_attributes.dup.merge(created_at: nil))
156
153
  end
157
154
 
158
155
  # mark all other attributes is changing
@@ -1,3 +1,3 @@
1
1
  module Moribus # :nodoc:
2
- VERSION = "0.7.0" # :nodoc:
2
+ VERSION = "0.7.1" # :nodoc:
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: HornsAndHooves-moribus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - HornsAndHooves
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-10-18 00:00:00.000000000 Z
14
+ date: 2020-08-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -19,14 +19,14 @@ dependencies:
19
19
  requirements:
20
20
  - - "~>"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.0'
22
+ version: '5'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '5.0'
29
+ version: '5'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: power_enum
32
32
  requirement: !ruby/object:Gem::Requirement