riverqueue-activerecord 0.12.0 → 0.13.0
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/lib/driver.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '09139d53f5cb109997ed71a4d9a0353ee52760f950a5acedb27ac0c0f8b9e21e'
|
|
4
|
+
data.tar.gz: 768b524dbe9f4b959100dda627137862ec1c53c91709792f02105e63be428bcb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d78a3de101d1942aa0adf46053072c5c9c93f9a0832b5469671a57530f4860cd95f967ed014e7399f6aa23bd787d715b491f95b9d618749a609b3223a9c693cf
|
|
7
|
+
data.tar.gz: c3e0b21846b883f82f8980bd8926744009f810670b1eceb038144500084184e2b5fee6147e1bdd849f4ba71e56f091f387d14e8404cc47c3d7fc6363c3fed730
|
data/lib/driver.rb
CHANGED
|
@@ -180,7 +180,7 @@ module River::Driver
|
|
|
180
180
|
nonce = SecureRandom.hex(8) if capabilities.unique_insert_mode == :metadata_nonce
|
|
181
181
|
res = @job_model.upsert_all(
|
|
182
182
|
insert_params_many.map { |param| postgres_insert_params_to_hash(param, nonce) },
|
|
183
|
-
on_duplicate: Arel.sql("kind =
|
|
183
|
+
on_duplicate: Arel.sql("kind = river_job.kind"),
|
|
184
184
|
returning: Arel.sql("*, #{capabilities.unique_insert_sql} AS unique_skipped_as_duplicate"),
|
|
185
185
|
|
|
186
186
|
# It'd be nice to specify this as `(kind, unique_key) WHERE unique_key
|
|
@@ -319,7 +319,7 @@ module River::Driver
|
|
|
319
319
|
FROM json_each(cast(? AS blob))
|
|
320
320
|
WHERE true
|
|
321
321
|
ON CONFLICT (unique_key) WHERE #{SQLITE_CONFLICT_WHERE}
|
|
322
|
-
DO UPDATE SET kind =
|
|
322
|
+
DO UPDATE SET kind = river_job.kind
|
|
323
323
|
RETURNING #{SQLITE_JOB_COLUMNS}
|
|
324
324
|
SQL
|
|
325
325
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: riverqueue-activerecord
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.13.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Blake Gentry
|
|
@@ -56,14 +56,14 @@ dependencies:
|
|
|
56
56
|
requirements:
|
|
57
57
|
- - '='
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
|
-
version: 0.
|
|
59
|
+
version: 0.13.0
|
|
60
60
|
type: :runtime
|
|
61
61
|
prerelease: false
|
|
62
62
|
version_requirements: !ruby/object:Gem::Requirement
|
|
63
63
|
requirements:
|
|
64
64
|
- - '='
|
|
65
65
|
- !ruby/object:Gem::Version
|
|
66
|
-
version: 0.
|
|
66
|
+
version: 0.13.0
|
|
67
67
|
description: ActiveRecord PostgreSQL and SQLite driver for inserting and working River
|
|
68
68
|
jobs in Ruby.
|
|
69
69
|
email: brandur@brandur.org
|