deimos-ruby 2.1.5 → 2.1.6

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: 9eea206c2cadcb906acc693cfa531265c5b716ccdd0aa6507726b462460b32ce
4
- data.tar.gz: 5d1d97dd70d8be536f62c0900d58ae34aa2faf498461104baaadba6b4ee4f382
3
+ metadata.gz: 83e7562bf4350bb2a223a8aaa6c4ad710c2c20741b39a8349132f4bac131100c
4
+ data.tar.gz: 5238a10a42512e0588c3295c2aea72888a203012906967f1c9aec71059123db9
5
5
  SHA512:
6
- metadata.gz: 63afb1d64b6247d25e52365f8e43e3ffd365c1b682c00271400b4ea76fe437cc9e4cd327dfb9781ded873a40705dbef59fc1bef705da3bc4228fef39eb728429
7
- data.tar.gz: c04688a0cc8b3ffe78612a16ad60b5df4d071da39bac9b877d7a3bcfae3ed6922ba5098bea1887aa2fdeedd5b23827daa88e2d32e42f9b211fa7854ca63e430a
6
+ metadata.gz: 73bd43e24c3d2ff030ee3e09c572e68f18fb41da135df627d13e8298de2a888c3a69e7a4e7f51d15f6a687c01c26a5858724118dc4ea156033c5ec4fba01be8a
7
+ data.tar.gz: cd177bc3f323848882a1a31c9d1bdb526c8e75f21ce10f78361927cd6d9bce3eeb0bc3b30646f3e9f6112bd3dc256d279c91d6519f756c088a2d46e081140fbc
data/CHANGELOG.md CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## UNRELEASED
9
9
 
10
+ # 2.1.6 - 2025-07-23
11
+
12
+ - Fix: Allows rails to handle querying bulk_import_id when replacing associations for non-string bulk_import_ids
13
+
10
14
  # 2.1.5 - 2025-07-23
11
15
 
12
16
  - Fix: Schema classes with required fields caused a crash in the `Deimos.schema_backend` method.
@@ -76,10 +76,9 @@ module Deimos
76
76
  return if self.batch_records.none?
77
77
 
78
78
  primary_keys = self.primary_keys(assoc.name)
79
- assoc.klass.
80
- where(assoc.foreign_key => primary_keys).
81
- where("#{self.bulk_import_column} != ?", import_id).
82
- delete_all
79
+ assoc.klass.where(assoc.foreign_key => primary_keys).merge(
80
+ assoc.klass.where.not(self.bulk_import_column => import_id)
81
+ ).delete_all
83
82
  end
84
83
 
85
84
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '2.1.5'
4
+ VERSION = '2.1.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deimos-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.5
4
+ version: 2.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner