semian-postgres 0.1.8 → 0.2.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/semian/pg/version.rb +1 -1
- data/lib/semian/pg.rb +7 -7
- metadata +20 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8fba5ab32f27eb1eef4c3fb2fdcfe52e4461f4d920547797699c0cf5f0b6c9d9
|
|
4
|
+
data.tar.gz: e496ebe261b10709ea8d8842f61afed8b489361312842c948477457fab55534c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98eb1a84b14427375a4e2e2e060a77650e841f8f4c5dcce6172e290dba576fce226b4f4ed7e9ef7049f7d59a5bb1a7ebe6db81cff5f863d6d0b1ac8912d36551
|
|
7
|
+
data.tar.gz: ee1f5dc92c98ddac4274f9e11bdf9d0ddc4c05ac45c1158b6f0bc0f476e4048733135c5e2cc3f71bcb70febf1e506a33f11890ec354ee7651fea57e92fda0b29
|
data/lib/semian/pg/version.rb
CHANGED
data/lib/semian/pg.rb
CHANGED
|
@@ -15,8 +15,8 @@ module PG
|
|
|
15
15
|
|
|
16
16
|
# This allows us to use semian as a drop-in replacement.
|
|
17
17
|
class SemianError < PG::Error
|
|
18
|
-
def initialize(semian_identifier, *
|
|
19
|
-
super(*
|
|
18
|
+
def initialize(semian_identifier, *)
|
|
19
|
+
super(*)
|
|
20
20
|
@semian_identifier = semian_identifier
|
|
21
21
|
end
|
|
22
22
|
end
|
|
@@ -81,7 +81,7 @@ module Semian
|
|
|
81
81
|
[::PG::ConnectionBad, ::PG::QueryCanceled].freeze
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
-
def async_connect_or_reset(*
|
|
84
|
+
def async_connect_or_reset(*)
|
|
85
85
|
acquire_semian_resource(adapter: :pg, scope: :connection) do
|
|
86
86
|
super
|
|
87
87
|
end
|
|
@@ -125,16 +125,16 @@ module Semian
|
|
|
125
125
|
|
|
126
126
|
# The pg gem defines some necessary methods on class level, which is why we have to hook into them.
|
|
127
127
|
module ClassMethods
|
|
128
|
-
def connect_start(*
|
|
128
|
+
def connect_start(*)
|
|
129
129
|
conn = super
|
|
130
|
-
conn.instance_variable_set(:@iopts, _iopts(*
|
|
130
|
+
conn.instance_variable_set(:@iopts, _iopts(*))
|
|
131
131
|
conn
|
|
132
132
|
end
|
|
133
133
|
|
|
134
134
|
private
|
|
135
135
|
|
|
136
|
-
def _iopts(*
|
|
137
|
-
option_string = parse_connect_args(*
|
|
136
|
+
def _iopts(*) # rubocop:disable Metrics/AbcSize
|
|
137
|
+
option_string = parse_connect_args(*)
|
|
138
138
|
iopts = conninfo_parse(option_string).each_with_object({}) do |h, o|
|
|
139
139
|
o[h[:keyword].to_sym] = h[:val] if h[:val]
|
|
140
140
|
end
|
metadata
CHANGED
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: semian-postgres
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Manuel Schönlaub
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-10-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pg
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: 1.5.0
|
|
20
|
+
- - "<"
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: 1.7.0
|
|
20
23
|
type: :runtime
|
|
21
24
|
prerelease: false
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
26
|
requirements:
|
|
24
|
-
- - "
|
|
27
|
+
- - ">="
|
|
25
28
|
- !ruby/object:Gem::Version
|
|
26
29
|
version: 1.5.0
|
|
30
|
+
- - "<"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: 1.7.0
|
|
27
33
|
- !ruby/object:Gem::Dependency
|
|
28
34
|
name: semian
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -31,9 +37,9 @@ dependencies:
|
|
|
31
37
|
- - ">="
|
|
32
38
|
- !ruby/object:Gem::Version
|
|
33
39
|
version: 0.16.0
|
|
34
|
-
- - "
|
|
40
|
+
- - "<="
|
|
35
41
|
- !ruby/object:Gem::Version
|
|
36
|
-
version: 0.
|
|
42
|
+
version: 0.25.4
|
|
37
43
|
type: :runtime
|
|
38
44
|
prerelease: false
|
|
39
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -41,10 +47,10 @@ dependencies:
|
|
|
41
47
|
- - ">="
|
|
42
48
|
- !ruby/object:Gem::Version
|
|
43
49
|
version: 0.16.0
|
|
44
|
-
- - "
|
|
50
|
+
- - "<="
|
|
45
51
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 0.
|
|
47
|
-
description:
|
|
52
|
+
version: 0.25.4
|
|
53
|
+
description:
|
|
48
54
|
email:
|
|
49
55
|
- manuel.schonlaub@prodigygame.com
|
|
50
56
|
executables: []
|
|
@@ -64,7 +70,7 @@ metadata:
|
|
|
64
70
|
changelog_uri: https://github.com/mschoenlaub/semian-postgres/blob/main/CHANGELOG.md
|
|
65
71
|
github_repo: ssh://github.com/mschoenlaub/semian-postgres
|
|
66
72
|
rubygems_mfa_required: 'true'
|
|
67
|
-
post_install_message:
|
|
73
|
+
post_install_message:
|
|
68
74
|
rdoc_options: []
|
|
69
75
|
require_paths:
|
|
70
76
|
- lib
|
|
@@ -72,15 +78,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
72
78
|
requirements:
|
|
73
79
|
- - ">="
|
|
74
80
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 2.
|
|
81
|
+
version: 3.2.0
|
|
76
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
83
|
requirements:
|
|
78
84
|
- - ">="
|
|
79
85
|
- !ruby/object:Gem::Version
|
|
80
86
|
version: '0'
|
|
81
87
|
requirements: []
|
|
82
|
-
rubygems_version: 3.
|
|
83
|
-
signing_key:
|
|
88
|
+
rubygems_version: 3.4.1
|
|
89
|
+
signing_key:
|
|
84
90
|
specification_version: 4
|
|
85
91
|
summary: Semian adapter for Postgres
|
|
86
92
|
test_files: []
|