activerecord-bitemporal 2.3.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/Gemfile.lock +3 -3
- data/lib/activerecord-bitemporal/bitemporal.rb +6 -0
- data/lib/activerecord-bitemporal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6034ded2e7c8b1ec28b1632ba21f6245c0e2dc6a96786294bc6883c0cc8bbbcb
|
|
4
|
+
data.tar.gz: 3b6fca0b70c57242aa69136b5d41e7438603a0b30d1dd658ccbbebff8dd3d73d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6783cd51d729e2beb9ab8a8f67039ca2258bee3ad1258b7cf96f8d2b9a86d33daaa3aa6db18b96fdc277b6ee69a224c85d26d47ac5d54fb581c8685e1c4a1459
|
|
7
|
+
data.tar.gz: 4b57fe700e248b0e630cc73959f6817b66977bc93e018445ea0c95e363b28bea770ba5869d4261a5031ae9609c78a883adf98aef821ecba942225e31fa32c991
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
### Breaking Changed
|
|
6
|
+
- [Assign updated bitemporal times to the receiver after update/destroy](https://github.com/kufu/activerecord-bitemporal/pull/118)
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
### Deprecated
|
|
13
|
+
|
|
14
|
+
### Removed
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
3
18
|
## 2.3.0
|
|
4
19
|
|
|
5
20
|
### Breaking Changed
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
activerecord-bitemporal (
|
|
4
|
+
activerecord-bitemporal (3.0.0)
|
|
5
5
|
activerecord (>= 5.2)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -53,7 +53,7 @@ GEM
|
|
|
53
53
|
rspec-support (3.8.0)
|
|
54
54
|
thor (0.20.3)
|
|
55
55
|
timecop (0.9.1)
|
|
56
|
-
tzinfo (2.0.
|
|
56
|
+
tzinfo (2.0.6)
|
|
57
57
|
concurrent-ruby (~> 1.0)
|
|
58
58
|
|
|
59
59
|
PLATFORMS
|
|
@@ -72,4 +72,4 @@ DEPENDENCIES
|
|
|
72
72
|
timecop
|
|
73
73
|
|
|
74
74
|
BUNDLED WITH
|
|
75
|
-
2.2.
|
|
75
|
+
2.2.3
|
|
@@ -326,6 +326,8 @@ module ActiveRecord
|
|
|
326
326
|
@_swapped_id = after_instance.swapped_id
|
|
327
327
|
self.valid_from = after_instance.valid_from
|
|
328
328
|
self.valid_to = after_instance.valid_to
|
|
329
|
+
self.transaction_from = after_instance.transaction_from
|
|
330
|
+
self.transaction_to = after_instance.transaction_to
|
|
329
331
|
|
|
330
332
|
1
|
|
331
333
|
# MEMO: Must return false instead of nil, if `#_update_row` failure.
|
|
@@ -352,6 +354,10 @@ module ActiveRecord
|
|
|
352
354
|
if @destroyed
|
|
353
355
|
@_swapped_id_previously_was = swapped_id
|
|
354
356
|
@_swapped_id = duplicated_instance.swapped_id
|
|
357
|
+
self.valid_from = duplicated_instance.valid_from
|
|
358
|
+
self.valid_to = duplicated_instance.valid_to
|
|
359
|
+
self.transaction_from = duplicated_instance.transaction_from
|
|
360
|
+
self.transaction_to = duplicated_instance.transaction_to
|
|
355
361
|
end
|
|
356
362
|
}
|
|
357
363
|
raise ActiveRecord::RecordInvalid unless @destroyed
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord-bitemporal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SmartHR
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-01
|
|
11
|
+
date: 2023-02-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|