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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9644dc51d17a2d86e13daa5982fab733cdab79fd1fda78fbe408412a90ccd337
4
- data.tar.gz: f535c500ce4f4f738e6c09102d89a449476407956460c1e5b80d211adb4b66c9
3
+ metadata.gz: 553dc55266366a109d0f4275ed0e70229984d1fb139b858be2828c2d75e0c182
4
+ data.tar.gz: dccb0a53b560b6c3a8eebd29e46e30b816c15002eddfbf0cbf6355838167fd76
5
5
  SHA512:
6
- metadata.gz: d0f7ac0703dd57cd8a837f24adc5c0598cbb5b083a20266c20bd35ae4014a28ee6488ed48e3b30119f01b78c40c063deb7bcbe0f8c61280ef6b7a6bc60d5b3eb
7
- data.tar.gz: ad4faf9f2c337bcdcefd8f18a1dadaa191c327a82a5e7391d7b15f06b15bfeff631115466da7fb690062b35cf5174bf8ad991dd3041800abf6063c840bd241ac
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(*)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveRecord
4
4
  module Bitemporal
5
- VERSION = "7.0.0"
5
+ VERSION = "7.0.1"
6
6
  end
7
7
  end
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.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.7
79
+ rubygems_version: 4.0.10
80
80
  specification_version: 4
81
81
  summary: BiTemporal Data Model for ActiveRecord
82
82
  test_files: []