deimos-ruby 2.1.4 → 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: 3b6f32c7658a4b3cc134cc544bb0d4291b90e6424df288f4b4fcfd7fa93c630f
4
- data.tar.gz: 2f3ebc77c9c622f5256d77448fec7c7303134519acaa1611f985002838f0278e
3
+ metadata.gz: 83e7562bf4350bb2a223a8aaa6c4ad710c2c20741b39a8349132f4bac131100c
4
+ data.tar.gz: 5238a10a42512e0588c3295c2aea72888a203012906967f1c9aec71059123db9
5
5
  SHA512:
6
- metadata.gz: 4654cbbe510338b52186bf6eb507c930cb932293c0018f4ca5cda83acb1b901ecc646af7adbed3ca167ea1d756b1c3a19857cc727ac7de902028718fad13b9cd
7
- data.tar.gz: b4cc6c4f30a5c6e5d94b2c56f194ee3fc1b04467f577928f89e6550fca1d0aee2b078c6b616a68db820c132d67a985fbe444302143eed7c218cae50f91d920fd
6
+ metadata.gz: 73bd43e24c3d2ff030ee3e09c572e68f18fb41da135df627d13e8298de2a888c3a69e7a4e7f51d15f6a687c01c26a5858724118dc4ea156033c5ec4fba01be8a
7
+ data.tar.gz: cd177bc3f323848882a1a31c9d1bdb526c8e75f21ce10f78361927cd6d9bce3eeb0bc3b30646f3e9f6112bd3dc256d279c91d6519f756c088a2d46e081140fbc
data/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ 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
+
14
+ # 2.1.5 - 2025-07-23
15
+
16
+ - Fix: Schema classes with required fields caused a crash in the `Deimos.schema_backend` method.
17
+
10
18
  # 2.1.4 - 2025-07-22
11
19
 
12
20
  - Feature: Add interrogation methods (e.g. `approved?`) for schema class enums.
@@ -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.4'
4
+ VERSION = '2.1.6'
5
5
  end
data/lib/deimos.rb CHANGED
@@ -75,7 +75,7 @@ module Deimos
75
75
  if schema_class.nil?
76
76
  schema_backend_class.new(schema: schema, namespace: namespace)
77
77
  else
78
- schema_instance = schema_class.new
78
+ schema_instance = schema_class.allocate
79
79
  schema_backend_class.new(schema: schema_instance.schema, namespace: schema_instance.namespace)
80
80
  end
81
81
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deimos-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-22 00:00:00.000000000 Z
11
+ date: 2025-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro_turf