activerecord-pg-extensions 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +4 -5
- data/lib/active_record/pg_extensions/transaction.rb +3 -0
- data/lib/active_record/pg_extensions/version.rb +1 -1
- metadata +26 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2632672aa90250e56e764e29cdf8ca9243832dff7a9fa813b46605e3333d4711
|
4
|
+
data.tar.gz: 4d14d3da70f7d7a438cdf85a0f45eb76e2a32ef5cdfdc68f1bd48b845b0da60b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86a6351a84012b498a0865c01d383c44160489797d9a9a45676412c1cec5202f257ead1766f6746580f1ce07e61da95808d2e542510d83a1da73584288825b72
|
7
|
+
data.tar.gz: 208af17e08591b52361deac44845e110e9c51152916c256f2ec261a4bc4e1a7e93ad9c908de11f852e3fbb801a3439ca6f75554768294044658663e73e3f115f
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -16,14 +16,13 @@ See individual classes for available methods.
|
|
16
16
|
|
17
17
|
## Development
|
18
18
|
|
19
|
-
|
20
|
-
as described at https://www.postgresql.org/docs/current/libpq-envars.html to configure it. The database will be created automatically.
|
19
|
+
Development requires Docker. After checking out the repo, run `docker compose build` to install dependencies.
|
21
20
|
|
22
|
-
`rake` will run both tests and Rubocop.
|
21
|
+
`docker compose run --rm app rake` will run both tests and Rubocop.
|
23
22
|
|
24
|
-
|
23
|
+
If using Visual Studio Code, simply click "Reopen in Container" when it pops up.
|
25
24
|
|
26
|
-
To
|
25
|
+
To release a new version, update the version number in `version.rb`, and then run `rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
27
26
|
|
28
27
|
## Contributing
|
29
28
|
|
@@ -15,6 +15,9 @@ module ActiveRecord
|
|
15
15
|
return if @#{kind} == timeout
|
16
16
|
|
17
17
|
@#{kind} = timeout
|
18
|
+
# If we have set an explicit timeout, the transaction has state that must be materialized
|
19
|
+
# separately from any other transaction, so it cannot be `restartable`
|
20
|
+
dirty! unless ::Rails.version < '7.1'
|
18
21
|
return unless materialized?
|
19
22
|
connection.set(#{kind.inspect}, "\#{(timeout * 1000).to_i}ms", local: true)
|
20
23
|
end
|
metadata
CHANGED
@@ -1,43 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-pg-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '7.0'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: 7.
|
22
|
+
version: '7.2'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '7.0'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: 7.
|
32
|
+
version: '7.2'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: railties
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - "
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '7.0'
|
40
|
+
- - "<"
|
32
41
|
- !ruby/object:Gem::Version
|
33
|
-
version: 7.
|
42
|
+
version: '7.2'
|
34
43
|
type: :runtime
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
|
-
- - "
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '7.0'
|
50
|
+
- - "<"
|
39
51
|
- !ruby/object:Gem::Version
|
40
|
-
version: 7.
|
52
|
+
version: '7.2'
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
54
|
name: appraisal
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,19 +65,19 @@ dependencies:
|
|
53
65
|
- !ruby/object:Gem::Version
|
54
66
|
version: '2.4'
|
55
67
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
68
|
+
name: debug
|
57
69
|
requirement: !ruby/object:Gem::Requirement
|
58
70
|
requirements:
|
59
71
|
- - "~>"
|
60
72
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
73
|
+
version: '1.8'
|
62
74
|
type: :development
|
63
75
|
prerelease: false
|
64
76
|
version_requirements: !ruby/object:Gem::Requirement
|
65
77
|
requirements:
|
66
78
|
- - "~>"
|
67
79
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
80
|
+
version: '1.8'
|
69
81
|
- !ruby/object:Gem::Dependency
|
70
82
|
name: pg
|
71
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -191,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
203
|
- !ruby/object:Gem::Version
|
192
204
|
version: '0'
|
193
205
|
requirements: []
|
194
|
-
rubygems_version: 3.4.
|
206
|
+
rubygems_version: 3.4.20
|
195
207
|
signing_key:
|
196
208
|
specification_version: 4
|
197
209
|
summary: Several extensions to ActiveRecord's PostgreSQLAdapter.
|