activerecord-pg-extensions 0.8.0 → 0.8.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 89473a4f91df3e31fe06efe9f2dc58f837ffe8276e2c81bc96ecd6726486caf4
|
|
4
|
+
data.tar.gz: 2fddcc87b229fe445ed09aa6fcf943f056313b227322da482a38a41c5780d6f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a2a6d1df2dda0174b06ffe604b51b9059787134b01f937976d3be851d749a51e2d9ada5118d2cf242cbbae9e1881852d9f9c009bfc9a6e8780211693a2f749a2
|
|
7
|
+
data.tar.gz: db1e98fb7e71ab1be32b08927da9b2a758b727765eec470194ac9c85e7acaac6627d19cd527dbeb5888637dd21c595e4c76a9d0f1c244b006a552e885eb9bffd
|
|
@@ -14,10 +14,13 @@ module ActiveRecord
|
|
|
14
14
|
private def #{kind}=(timeout)
|
|
15
15
|
return if @#{kind} == timeout
|
|
16
16
|
|
|
17
|
+
# must precede dirty!, which disables lazy connect; connecting after would discard this transaction
|
|
18
|
+
connection.connect! unless connection.connected?
|
|
19
|
+
|
|
17
20
|
@#{kind} = timeout
|
|
18
21
|
# If we have set an explicit timeout, the transaction has state that must be materialized
|
|
19
22
|
# separately from any other transaction, so it cannot be `restartable`
|
|
20
|
-
dirty!
|
|
23
|
+
dirty!
|
|
21
24
|
return unless materialized?
|
|
22
25
|
connection.set(#{kind.inspect}, "\#{(timeout * 1000).to_i}ms", local: true)
|
|
23
26
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord-pg-extensions
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cody Cutrer
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: bin
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2026-08-11 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: activerecord
|
|
@@ -76,6 +77,7 @@ licenses:
|
|
|
76
77
|
metadata:
|
|
77
78
|
changelog_uri: https://github.com/instructure/activerecord-pg-extensions/blob/main/CHANGELOG.md
|
|
78
79
|
rubygems_mfa_required: 'true'
|
|
80
|
+
post_install_message:
|
|
79
81
|
rdoc_options: []
|
|
80
82
|
require_paths:
|
|
81
83
|
- lib
|
|
@@ -90,7 +92,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
90
92
|
- !ruby/object:Gem::Version
|
|
91
93
|
version: '0'
|
|
92
94
|
requirements: []
|
|
93
|
-
rubygems_version:
|
|
95
|
+
rubygems_version: 3.5.16
|
|
96
|
+
signing_key:
|
|
94
97
|
specification_version: 4
|
|
95
98
|
summary: Several extensions to ActiveRecord's PostgreSQLAdapter.
|
|
96
99
|
test_files: []
|