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 +4 -4
- data/HornsAndHooves-moribus.gemspec +1 -1
- data/lib/moribus.rb +2 -5
- data/lib/moribus/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2abb615268f2c42283de6414f05bb5de13f1bbd96de147b72a5f78f23ef7cad
|
4
|
+
data.tar.gz: 15bac2500a6014c65f6bd9e2d7dbce2ca8a9df37a76d4d282e9abd5e46ed61a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
|
data/lib/moribus.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/moribus/version.rb
CHANGED
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.
|
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:
|
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
|
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
|
29
|
+
version: '5'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: power_enum
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|