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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c03b187851d427db0ff32c1d8cc721eaf71da732877d096d0e9cc843b54550a
4
- data.tar.gz: 126840e0fc964919ff80a3d403e820958cf81096dca79ff7abd4f40fa603ea27
3
+ metadata.gz: 6034ded2e7c8b1ec28b1632ba21f6245c0e2dc6a96786294bc6883c0cc8bbbcb
4
+ data.tar.gz: 3b6fca0b70c57242aa69136b5d41e7438603a0b30d1dd658ccbbebff8dd3d73d
5
5
  SHA512:
6
- metadata.gz: aac42b7ea34a98bd646c2a2d516f91cd1fc7ca4b86db45fe78e28699ea6dfe0159e7169ed44402be46d7fdcfbe0ff6e2795e69d08df0a5910fc4ceedda0455d8
7
- data.tar.gz: b9a7a842b205529e3bdc89352e9cd505435a009c179bdf54353942747d0b3275d48985628e2347dc31887d85da351a7af0d2d18fd7ac4e89fdcc1074aef73078
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 (2.3.0)
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.5)
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.33
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveRecord
4
4
  module Bitemporal
5
- VERSION = "2.3.0"
5
+ VERSION = "3.0.0"
6
6
  end
7
7
  end
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: 2.3.0
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-30 00:00:00.000000000 Z
11
+ date: 2023-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord