activerecord-bitemporal 7.0.0 → 7.0.1
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 +24 -0
- data/lib/activerecord-bitemporal/bitemporal.rb +13 -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: 553dc55266366a109d0f4275ed0e70229984d1fb139b858be2828c2d75e0c182
|
|
4
|
+
data.tar.gz: dccb0a53b560b6c3a8eebd29e46e30b816c15002eddfbf0cbf6355838167fd76
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fcb1d50c24df2103608ff407207145b84a87649f862db1625343ce0f5281dde85f5c2a43af10ab5b72b6b2f118ace4705137a28a774ed159c7472bde4b1b091b
|
|
7
|
+
data.tar.gz: 93fb11c615891a252b597678c4c53049460c093e80003f657e17a9c7ef2149592fd0ae91bc51f80da7619074e3de62f32e6207a7cbd281d48ea44ac23f6646b7
|
data/CHANGELOG.md
CHANGED
|
@@ -16,6 +16,30 @@
|
|
|
16
16
|
|
|
17
17
|
### Chores
|
|
18
18
|
|
|
19
|
+
## 7.0.1
|
|
20
|
+
|
|
21
|
+
### Breaking Changes
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
### Deprecated
|
|
28
|
+
|
|
29
|
+
### Removed
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- [Use bitemporal_id as primary key for Rails 8+ excluding/without #252](https://github.com/kufu/activerecord-bitemporal/pull/252)
|
|
34
|
+
- [Use bitemporal_id as primary key for Rails 8+ AR::Batches #251](https://github.com/kufu/activerecord-bitemporal/pull/251)
|
|
35
|
+
|
|
36
|
+
### Chores
|
|
37
|
+
|
|
38
|
+
- [Bump ruby/setup-ruby from 1.299.0 to 1.300.0 #253](https://github.com/kufu/activerecord-bitemporal/pull/253)
|
|
39
|
+
- [Bump rubygems/release-gem from 1.1.2 to 1.2.0 #250](https://github.com/kufu/activerecord-bitemporal/pull/250)
|
|
40
|
+
- [Bump ruby/setup-ruby from 1.295.0 to 1.299.0 #249](https://github.com/kufu/activerecord-bitemporal/pull/249)
|
|
41
|
+
- [Bump ruby/setup-ruby from 1.288.0 to 1.295.0 #248](https://github.com/kufu/activerecord-bitemporal/pull/248)
|
|
42
|
+
|
|
19
43
|
## 7.0.0
|
|
20
44
|
|
|
21
45
|
### Breaking Changes
|
|
@@ -159,6 +159,19 @@ module ActiveRecord
|
|
|
159
159
|
|
|
160
160
|
if ActiveRecord.version >= Gem::Version.new("8.0.0")
|
|
161
161
|
use_bitemporal_id_as_primary_key :ids
|
|
162
|
+
|
|
163
|
+
# Ensure that AR::Batches
|
|
164
|
+
# (https://github.com/rails/rails/blob/v8.0.5/activerecord/lib/active_record/relation/batches.rb)
|
|
165
|
+
# works with `bitemporal_id` as the primary key in Rails 8+.
|
|
166
|
+
use_bitemporal_id_as_primary_key :find_each
|
|
167
|
+
use_bitemporal_id_as_primary_key :find_in_batches
|
|
168
|
+
use_bitemporal_id_as_primary_key :in_batches
|
|
169
|
+
|
|
170
|
+
# Ensure that `#excluding` and `#without`
|
|
171
|
+
# (https://github.com/rails/rails/blob/v8.0.5/activerecord/lib/active_record/relation/query_methods.rb#L1548-L1591)
|
|
172
|
+
# work with `bitemporal_id` as the primary key in Rails 8+.
|
|
173
|
+
use_bitemporal_id_as_primary_key :excluding
|
|
174
|
+
use_bitemporal_id_as_primary_key :without
|
|
162
175
|
end
|
|
163
176
|
|
|
164
177
|
def build_arel(*)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord-bitemporal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.0.
|
|
4
|
+
version: 7.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SmartHR
|
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
76
76
|
- !ruby/object:Gem::Version
|
|
77
77
|
version: '0'
|
|
78
78
|
requirements: []
|
|
79
|
-
rubygems_version: 4.0.
|
|
79
|
+
rubygems_version: 4.0.10
|
|
80
80
|
specification_version: 4
|
|
81
81
|
summary: BiTemporal Data Model for ActiveRecord
|
|
82
82
|
test_files: []
|