better_batch-active_record 1.0.2 → 1.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbe9b288ca345597bef98eb96b6cc5f502d2e3fc80e5cb93d37ae7fa2e58d0f5
|
4
|
+
data.tar.gz: f2630014996f4a63aa776d3c5874ed0069fbb1a132e3c8c56debabbfc156a4e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9f48bb98fa537624fdf5184e1ef79ec71bc5eb7c6057c6d1aaa9779a3e394ca4c522859b22cd5c577cc518dcb22b9ee4116ccc8306858341aec503241a8c8a8
|
7
|
+
data.tar.gz: 9ad9b8c1f33a5c224952a1fba2253b0e955fcf9ca05edce4ca42545c5c1113053cd8515166d21f88e8fb713ce9055ccb64ec1b3813e59c290839c6dc09bff3e3
|
@@ -21,8 +21,8 @@ module BetterBatch
|
|
21
21
|
data.zip(upserted)
|
22
22
|
end
|
23
23
|
|
24
|
-
def set_upserted_pk(data, unique_by:)
|
25
|
-
with_upserted_pk(data, unique_by:).each do |row, pk|
|
24
|
+
def set_upserted_pk(data, unique_by:, except: nil)
|
25
|
+
with_upserted_pk(data, unique_by:, except:).each do |row, pk|
|
26
26
|
row[primary_key] = pk
|
27
27
|
end
|
28
28
|
nil
|
@@ -5,8 +5,10 @@ module BetterBatch
|
|
5
5
|
# this gem is developed/tested inside a rails app
|
6
6
|
# and Rails really wants this file to define this constant
|
7
7
|
# and trying to prevent it from autoloading was a struggle
|
8
|
-
# so,
|
8
|
+
# so, I just did what Rails wanted
|
9
|
+
# because Rails is love, Rails is life, Rails is everything
|
9
10
|
module Version; end
|
10
|
-
|
11
|
+
|
12
|
+
VERSION = '1.0.3'
|
11
13
|
end
|
12
14
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: better_batch-active_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tyler Hartland
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-04-
|
10
|
+
date: 2025-04-17 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: activerecord
|