snapshotable 0.1.4 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/services/snapshot_creator.rb +1 -0
- data/lib/snapshotable/model.rb +1 -1
- data/lib/snapshotable/version.rb +1 -1
- metadata +23 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2734f4bc2e42716529586c9c31563ad2b7a2cefff99bede552db6b4b0775645d
|
4
|
+
data.tar.gz: a9db0774e79b3d9502ad7c291c4aafdabd999fd4e52d4738538c684bf9ce31e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 605ab56c55243257897995319149ea3166bd2c9a72f0c239c820ff5b84e722f09a636f43f73d118148b77d68a7b56bf73ef3971f640cc733178b085b8141de8f
|
7
|
+
data.tar.gz: db48a7798c03ccef1a36425bca5d075ba6a6d533f381b042cc0d62d355579420eee9cea6e26c4949aa1e5edee5f11ba8c6382d705e395da5184cdc90de59cd1b
|
data/lib/snapshotable/model.rb
CHANGED
@@ -58,7 +58,7 @@ module Snapshotable
|
|
58
58
|
.except(*self.class.attributes_to_ignore_on_diff)
|
59
59
|
.with_indifferent_access
|
60
60
|
|
61
|
-
|
61
|
+
Hashdiff.diff(snapshot_to_compare, snapshot.with_indifferent_access).any?
|
62
62
|
end
|
63
63
|
end
|
64
64
|
end
|
data/lib/snapshotable/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snapshotable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- João Batista Marinho
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-05-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
version: '4.1'
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '6'
|
23
|
+
version: '6.1'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
version: '4.1'
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '6'
|
33
|
+
version: '6.1'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: activesupport
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
version: '4.1'
|
41
41
|
- - "<"
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '6'
|
43
|
+
version: '6.1'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
46
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -50,27 +50,27 @@ dependencies:
|
|
50
50
|
version: '4.1'
|
51
51
|
- - "<"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '6'
|
53
|
+
version: '6.1'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: hashdiff
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '1'
|
61
61
|
- - "<"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '
|
63
|
+
version: '2'
|
64
64
|
type: :runtime
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: '
|
70
|
+
version: '1'
|
71
71
|
- - "<"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: '
|
73
|
+
version: '2'
|
74
74
|
- !ruby/object:Gem::Dependency
|
75
75
|
name: bundler
|
76
76
|
requirement: !ruby/object:Gem::Requirement
|
@@ -89,30 +89,36 @@ dependencies:
|
|
89
89
|
name: factory_bot_rails
|
90
90
|
requirement: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
|
-
- - "
|
92
|
+
- - ">="
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '4.0'
|
95
|
+
- - "<"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '6.1'
|
95
98
|
type: :development
|
96
99
|
prerelease: false
|
97
100
|
version_requirements: !ruby/object:Gem::Requirement
|
98
101
|
requirements:
|
99
|
-
- - "
|
102
|
+
- - ">="
|
100
103
|
- !ruby/object:Gem::Version
|
101
104
|
version: '4.0'
|
105
|
+
- - "<"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '6.1'
|
102
108
|
- !ruby/object:Gem::Dependency
|
103
109
|
name: pg
|
104
110
|
requirement: !ruby/object:Gem::Requirement
|
105
111
|
requirements:
|
106
112
|
- - "~>"
|
107
113
|
- !ruby/object:Gem::Version
|
108
|
-
version:
|
114
|
+
version: 1.2.3
|
109
115
|
type: :development
|
110
116
|
prerelease: false
|
111
117
|
version_requirements: !ruby/object:Gem::Requirement
|
112
118
|
requirements:
|
113
119
|
- - "~>"
|
114
120
|
- !ruby/object:Gem::Version
|
115
|
-
version:
|
121
|
+
version: 1.2.3
|
116
122
|
- !ruby/object:Gem::Dependency
|
117
123
|
name: pry-rails
|
118
124
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,14 +145,14 @@ dependencies:
|
|
139
145
|
requirements:
|
140
146
|
- - "~>"
|
141
147
|
- !ruby/object:Gem::Version
|
142
|
-
version: '
|
148
|
+
version: '13.0'
|
143
149
|
type: :development
|
144
150
|
prerelease: false
|
145
151
|
version_requirements: !ruby/object:Gem::Requirement
|
146
152
|
requirements:
|
147
153
|
- - "~>"
|
148
154
|
- !ruby/object:Gem::Version
|
149
|
-
version: '
|
155
|
+
version: '13.0'
|
150
156
|
- !ruby/object:Gem::Dependency
|
151
157
|
name: rspec
|
152
158
|
requirement: !ruby/object:Gem::Requirement
|
@@ -230,8 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
236
|
- !ruby/object:Gem::Version
|
231
237
|
version: '0'
|
232
238
|
requirements: []
|
233
|
-
|
234
|
-
rubygems_version: 2.6.14
|
239
|
+
rubygems_version: 3.0.6
|
235
240
|
signing_key:
|
236
241
|
specification_version: 4
|
237
242
|
summary: Stores a model attributes in a time period.
|