snapshotable 0.1.5 → 0.4.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: b7d593d684a203462a5aac3ea7ca9c9cf4f2f9c2
4
- data.tar.gz: 7f83e1a33e51c4689ee96ee69f4da30cd25d4887
2
+ SHA256:
3
+ metadata.gz: cb402f944c463e8c134c13c9832fcc1f4ed2923b21df934f7e91bf4b7a9ef479
4
+ data.tar.gz: 2e9a24c2561c0030c717a7670334292011a5eed8f84712fdab23167d37b020fc
5
5
  SHA512:
6
- metadata.gz: 9c4600bbde056ff8d933b97d89c4be2383d5364b6371ec32576e07125ddda40f381735892b6ceb43de2e13eff85cab54717bfb774f99d6f099ff869a2c3d9bfb
7
- data.tar.gz: 3c4b391a093cb3f79943b74c32b95d049241f243d0ae8d0765a212ee0d323e61fd07ea457e38b9ffe87c5abd080e7f388e06fb3b84e348c188432e842033ca9a
6
+ metadata.gz: 6c34ded93c1a13079738eee170bed1d2b0bf75647cd2cc32400ff08e0fe173e4e413fb74d5617ec1179d94d2154e2ad21d40f93fd7e7a9fb0b86b9219dd03a9e
7
+ data.tar.gz: 11d1b251181f9d3e474f13f40532faf4cefe73a393d360805ae16c45a9e83199d86860f377873db6e282fadba6f7cfe01e4b301b4cac757769bc68e6dee36236
@@ -28,6 +28,7 @@ module Snapshotable
28
28
 
29
29
  def add_foreign_key(snapshot)
30
30
  return false if record.snapshot_foreign_key.nil?
31
+
31
32
  snapshot[record.snapshot_foreign_key.to_s] = record.id
32
33
  end
33
34
 
@@ -58,7 +58,7 @@ module Snapshotable
58
58
  .except(*self.class.attributes_to_ignore_on_diff)
59
59
  .with_indifferent_access
60
60
 
61
- HashDiff.diff(snapshot_to_compare, snapshot.with_indifferent_access).any?
61
+ Hashdiff.diff(snapshot_to_compare, snapshot.with_indifferent_access).any?
62
62
  end
63
63
  end
64
64
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Snapshotable
4
- VERSION = '0.1.5'
4
+ VERSION = '0.4.0'
5
5
  end
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.1.5
4
+ version: 0.4.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: 2018-08-21 00:00:00.000000000 Z
12
+ date: 2021-03-17 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.2'
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.2'
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,41 +50,41 @@ 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: '0.3'
60
+ version: '1'
61
61
  - - "<"
62
62
  - !ruby/object:Gem::Version
63
- version: '1'
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: '0.3'
70
+ version: '1'
71
71
  - - "<"
72
72
  - !ruby/object:Gem::Version
73
- version: '1'
73
+ version: '2'
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: bundler
76
76
  requirement: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
- version: '1.16'
80
+ version: '1.17'
81
81
  type: :development
82
82
  prerelease: false
83
83
  version_requirements: !ruby/object:Gem::Requirement
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: '1.16'
87
+ version: '1.17'
88
88
  - !ruby/object:Gem::Dependency
89
89
  name: factory_bot_rails
90
90
  requirement: !ruby/object:Gem::Requirement
@@ -94,7 +94,7 @@ dependencies:
94
94
  version: '4.0'
95
95
  - - "<"
96
96
  - !ruby/object:Gem::Version
97
- version: '6'
97
+ version: '6.1'
98
98
  type: :development
99
99
  prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
@@ -104,21 +104,21 @@ dependencies:
104
104
  version: '4.0'
105
105
  - - "<"
106
106
  - !ruby/object:Gem::Version
107
- version: '6'
107
+ version: '6.1'
108
108
  - !ruby/object:Gem::Dependency
109
109
  name: pg
110
110
  requirement: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - "~>"
113
113
  - !ruby/object:Gem::Version
114
- version: 0.21.0
114
+ version: 1.2.3
115
115
  type: :development
116
116
  prerelease: false
117
117
  version_requirements: !ruby/object:Gem::Requirement
118
118
  requirements:
119
119
  - - "~>"
120
120
  - !ruby/object:Gem::Version
121
- version: 0.21.0
121
+ version: 1.2.3
122
122
  - !ruby/object:Gem::Dependency
123
123
  name: pry-rails
124
124
  requirement: !ruby/object:Gem::Requirement
@@ -145,14 +145,14 @@ dependencies:
145
145
  requirements:
146
146
  - - "~>"
147
147
  - !ruby/object:Gem::Version
148
- version: '10.0'
148
+ version: '13.0'
149
149
  type: :development
150
150
  prerelease: false
151
151
  version_requirements: !ruby/object:Gem::Requirement
152
152
  requirements:
153
153
  - - "~>"
154
154
  - !ruby/object:Gem::Version
155
- version: '10.0'
155
+ version: '13.0'
156
156
  - !ruby/object:Gem::Dependency
157
157
  name: rspec
158
158
  requirement: !ruby/object:Gem::Requirement
@@ -236,8 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
236
236
  - !ruby/object:Gem::Version
237
237
  version: '0'
238
238
  requirements: []
239
- rubyforge_project:
240
- rubygems_version: 2.6.14
239
+ rubygems_version: 3.1.2
241
240
  signing_key:
242
241
  specification_version: 4
243
242
  summary: Stores a model attributes in a time period.