activerecord-pg-extensions 0.5.4 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2632672aa90250e56e764e29cdf8ca9243832dff7a9fa813b46605e3333d4711
4
- data.tar.gz: 4d14d3da70f7d7a438cdf85a0f45eb76e2a32ef5cdfdc68f1bd48b845b0da60b
3
+ metadata.gz: 4afe6f86c7d6e70fbe8bf563f3a1a936f037e95843d0a28f40c4cf0116063d09
4
+ data.tar.gz: f698a408ffd364bed38e9b481106f3d585c0b211732d0f200962ffa25abcb13d
5
5
  SHA512:
6
- metadata.gz: 86a6351a84012b498a0865c01d383c44160489797d9a9a45676412c1cec5202f257ead1766f6746580f1ce07e61da95808d2e542510d83a1da73584288825b72
7
- data.tar.gz: 208af17e08591b52361deac44845e110e9c51152916c256f2ec261a4bc4e1a7e93ad9c908de11f852e3fbb801a3439ca6f75554768294044658663e73e3f115f
6
+ metadata.gz: 4c1edbd6eaeb219958aad2e9c10313c74597f91d47c088f151d2b5aa716fbfa02d13a37196b93fc1f01a20861ba6bc4dc461b9437cbee950aa98d4647c4273c9
7
+ data.tar.gz: 3362f3d6025a904b697793182e83135eca5c667af94dceeefad5039ebb582f8fe1524791f26ce01f8324fd25f7da63d8cad4a019e324e98b9a00c5ad5706136c
@@ -112,9 +112,10 @@ module ActiveRecord
112
112
  else
113
113
  old_search_path = schema_search_path
114
114
  manual_rollback = false
115
+ result = nil
115
116
  transaction(requires_new: true) do
116
117
  self.schema_search_path += ",#{schema}"
117
- yield
118
+ result = yield
118
119
  self.schema_search_path = old_search_path
119
120
  rescue ActiveRecord::StatementInvalid, ActiveRecord::Rollback => e
120
121
  # the transaction rolling back will revert the search path change;
@@ -126,6 +127,8 @@ module ActiveRecord
126
127
  # the transaction call will swallow ActiveRecord::Rollback,
127
128
  # but we want it this method to be transparent
128
129
  raise manual_rollback if manual_rollback
130
+
131
+ result
129
132
  end
130
133
  end
131
134
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveRecord
4
4
  module PGExtensions
5
- VERSION = "0.5.4"
5
+ VERSION = "0.6.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-pg-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.6.0
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-10-05 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '7.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.2'
22
+ version: '8.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '7.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.2'
32
+ version: '8.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: railties
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '7.0'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '7.2'
42
+ version: '8.1'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,21 +49,7 @@ dependencies:
49
49
  version: '7.0'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '7.2'
53
- - !ruby/object:Gem::Dependency
54
- name: appraisal
55
- requirement: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '2.4'
60
- type: :development
61
- prerelease: false
62
- version_requirements: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - "~>"
65
- - !ruby/object:Gem::Version
66
- version: '2.4'
52
+ version: '8.1'
67
53
  - !ruby/object:Gem::Dependency
68
54
  name: debug
69
55
  requirement: !ruby/object:Gem::Requirement
@@ -203,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
189
  - !ruby/object:Gem::Version
204
190
  version: '0'
205
191
  requirements: []
206
- rubygems_version: 3.4.20
192
+ rubygems_version: 3.4.10
207
193
  signing_key:
208
194
  specification_version: 4
209
195
  summary: Several extensions to ActiveRecord's PostgreSQLAdapter.