pgtk 0.9.6 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/actionlint.yml +1 -1
- data/.github/workflows/codecov.yml +4 -4
- data/.github/workflows/copyrights.yml +1 -1
- data/.github/workflows/license.yml +1 -1
- data/.github/workflows/markdown-lint.yml +1 -1
- data/.github/workflows/pdd.yml +1 -1
- data/.github/workflows/rake.yml +4 -4
- data/.github/workflows/xcop.yml +1 -1
- data/.github/workflows/yamllint.yml +1 -1
- data/.rultor.yml +5 -1
- data/.yamllint.yml +1 -1
- data/Gemfile +6 -4
- data/Gemfile.lock +67 -46
- data/lib/pgtk/liquibase_task.rb +3 -3
- data/lib/pgtk/pgsql_task.rb +21 -12
- data/lib/pgtk/version.rb +1 -1
- data/pgtk.gemspec +9 -7
- data/resources/pom.xml +2 -2
- data/test/test__helper.rb +6 -0
- metadata +34 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0e3dc64528c0ea54e3e2cc1d75e142f30ad127bf79ede0fcca307656bc42920
|
4
|
+
data.tar.gz: c671bfbce992f4c922ecbf228211465bea1623d66d54796802d97d17052ad152
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6324e9656ae42a7735fa875fc9daffd306370f0f8afe2630900c9b2c76967eb666ba13b91cdf68eff7581c1f66110c5bf0a6bb617e2483ef5461b6f5e614914
|
7
|
+
data.tar.gz: 7336b30c06b4f34c3a2e4df89ed633a1cdc49f2dcd20020fbb3e65bd9f198508f5a69b6d7729301e0775381d3dd0e8522c41cfe217c3176e2248c1c719c35b1c
|
@@ -25,7 +25,7 @@ on:
|
|
25
25
|
- master
|
26
26
|
jobs:
|
27
27
|
codecov:
|
28
|
-
runs-on: ubuntu-
|
28
|
+
runs-on: ubuntu-24.04
|
29
29
|
steps:
|
30
30
|
- uses: actions/checkout@v4
|
31
31
|
- uses: ruby/setup-ruby@v1
|
@@ -34,9 +34,9 @@ jobs:
|
|
34
34
|
bundler-cache: true
|
35
35
|
- run: |
|
36
36
|
sudo apt-get update
|
37
|
-
sudo apt-get install -y postgresql-
|
38
|
-
sudo ln -s /usr/lib/postgresql
|
39
|
-
sudo ln -s /usr/lib/postgresql
|
37
|
+
sudo apt-get install -y libpq-dev postgresql-client postgresql
|
38
|
+
sudo ln -s "$(realpath /usr/lib/postgresql/*/bin/initdb)" /bin/initdb
|
39
|
+
sudo ln -s "$(realpath /usr/lib/postgresql/*/bin/postgres)" /bin/postgres
|
40
40
|
- run: bundle install
|
41
41
|
- run: bundle exec rake
|
42
42
|
- uses: codecov/codecov-action@v4
|
data/.github/workflows/pdd.yml
CHANGED
data/.github/workflows/rake.yml
CHANGED
@@ -31,16 +31,16 @@ jobs:
|
|
31
31
|
name: test
|
32
32
|
strategy:
|
33
33
|
matrix:
|
34
|
-
os: [ubuntu-
|
34
|
+
os: [ubuntu-24.04]
|
35
35
|
ruby: [3.2]
|
36
36
|
runs-on: ${{ matrix.os }}
|
37
37
|
steps:
|
38
38
|
- uses: actions/checkout@v4
|
39
39
|
- run: |
|
40
40
|
sudo apt-get update
|
41
|
-
sudo apt-get install -y postgresql
|
42
|
-
sudo ln -s /usr/lib/postgresql
|
43
|
-
sudo ln -s /usr/lib/postgresql
|
41
|
+
sudo apt-get install -y postgresql
|
42
|
+
sudo ln -s "$(realpath /usr/lib/postgresql/*/bin/initdb)" /bin/initdb
|
43
|
+
sudo ln -s "$(realpath /usr/lib/postgresql/*/bin/postgres)" /bin/postgres
|
44
44
|
- uses: ruby/setup-ruby@v1
|
45
45
|
with:
|
46
46
|
ruby-version: ${{ matrix.ruby }}
|
data/.github/workflows/xcop.yml
CHANGED
data/.rultor.yml
CHANGED
@@ -19,10 +19,14 @@
|
|
19
19
|
# SOFTWARE.
|
20
20
|
---
|
21
21
|
docker:
|
22
|
-
image: yegor256/rultor-
|
22
|
+
image: yegor256/rultor-java
|
23
23
|
assets:
|
24
24
|
rubygems.yml: yegor256/home#assets/rubygems.yml
|
25
25
|
install: |
|
26
|
+
sudo apt-get -y update
|
27
|
+
sudo apt-get -y install libpq-dev postgresql-client postgresql
|
28
|
+
sudo ln -s "$(realpath /usr/lib/postgresql/*/bin/initdb)" /bin/initdb
|
29
|
+
sudo ln -s "$(realpath /usr/lib/postgresql/*/bin/postgres)" /bin/postgres
|
26
30
|
pdd -f /dev/null
|
27
31
|
bundle install --no-color
|
28
32
|
release:
|
data/.yamllint.yml
CHANGED
data/Gemfile
CHANGED
@@ -23,11 +23,13 @@
|
|
23
23
|
source 'https://rubygems.org'
|
24
24
|
gemspec
|
25
25
|
|
26
|
-
gem 'minitest', '5.
|
26
|
+
gem 'minitest', '5.25.1', require: false
|
27
|
+
gem 'minitest-reporters', '~>1.7', require: false
|
27
28
|
gem 'rack', '3.1.7', require: false
|
28
29
|
gem 'rake', '13.2.1', require: false
|
29
|
-
gem 'rspec-rails', '
|
30
|
-
gem 'rubocop', '1.
|
31
|
-
gem 'rubocop-rspec', '3.0.
|
30
|
+
gem 'rspec-rails', '7.0.1', require: false
|
31
|
+
gem 'rubocop', '1.66.1', require: false
|
32
|
+
gem 'rubocop-rspec', '3.0.5', require: false
|
32
33
|
gem 'simplecov', '0.22.0', require: false
|
34
|
+
gem 'simplecov-cobertura', '~>2.1'
|
33
35
|
gem 'xcop', '0.7.1', require: false
|
data/Gemfile.lock
CHANGED
@@ -2,52 +2,59 @@ PATH
|
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
4
|
pgtk (0.0.0)
|
5
|
-
backtrace (
|
6
|
-
loog (
|
5
|
+
backtrace (> 0)
|
6
|
+
loog (> 0)
|
7
7
|
pg (~> 1.1)
|
8
|
-
|
8
|
+
qbash (> 0)
|
9
|
+
random-port (> 0)
|
9
10
|
|
10
11
|
GEM
|
11
12
|
remote: https://rubygems.org/
|
12
13
|
specs:
|
13
|
-
actionpack (7.1
|
14
|
-
actionview (= 7.1
|
15
|
-
activesupport (= 7.1
|
14
|
+
actionpack (7.2.1)
|
15
|
+
actionview (= 7.2.1)
|
16
|
+
activesupport (= 7.2.1)
|
16
17
|
nokogiri (>= 1.8.5)
|
17
18
|
racc
|
18
|
-
rack (>= 2.2.4)
|
19
|
+
rack (>= 2.2.4, < 3.2)
|
19
20
|
rack-session (>= 1.0.1)
|
20
21
|
rack-test (>= 0.6.3)
|
21
22
|
rails-dom-testing (~> 2.2)
|
22
23
|
rails-html-sanitizer (~> 1.6)
|
23
|
-
|
24
|
-
|
24
|
+
useragent (~> 0.16)
|
25
|
+
actionview (7.2.1)
|
26
|
+
activesupport (= 7.2.1)
|
25
27
|
builder (~> 3.1)
|
26
28
|
erubi (~> 1.11)
|
27
29
|
rails-dom-testing (~> 2.2)
|
28
30
|
rails-html-sanitizer (~> 1.6)
|
29
|
-
activesupport (7.1
|
31
|
+
activesupport (7.2.1)
|
30
32
|
base64
|
31
33
|
bigdecimal
|
32
|
-
concurrent-ruby (~> 1.0, >= 1.
|
34
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
33
35
|
connection_pool (>= 2.2.5)
|
34
36
|
drb
|
35
37
|
i18n (>= 1.6, < 2)
|
38
|
+
logger (>= 1.4.2)
|
36
39
|
minitest (>= 5.1)
|
37
|
-
|
38
|
-
tzinfo (~> 2.0)
|
40
|
+
securerandom (>= 0.3)
|
41
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
42
|
+
ansi (1.5.0)
|
39
43
|
ast (2.4.2)
|
40
44
|
backtrace (0.4.0)
|
41
45
|
base64 (0.2.0)
|
42
46
|
bigdecimal (3.1.8)
|
43
47
|
builder (3.3.0)
|
44
|
-
concurrent-ruby (1.3.
|
48
|
+
concurrent-ruby (1.3.4)
|
45
49
|
connection_pool (2.4.1)
|
46
50
|
crass (1.0.6)
|
47
51
|
diff-lcs (1.5.1)
|
48
52
|
differ (0.1.2)
|
49
53
|
docile (1.4.0)
|
50
54
|
drb (2.2.1)
|
55
|
+
elapsed (0.0.1)
|
56
|
+
loog (> 0)
|
57
|
+
tago (> 0)
|
51
58
|
erubi (1.13.0)
|
52
59
|
i18n (1.14.5)
|
53
60
|
concurrent-ruby (~> 1.0)
|
@@ -57,24 +64,33 @@ GEM
|
|
57
64
|
reline (>= 0.4.2)
|
58
65
|
json (2.7.2)
|
59
66
|
language_server-protocol (3.17.0.3)
|
67
|
+
logger (1.6.1)
|
60
68
|
loofah (2.22.0)
|
61
69
|
crass (~> 1.0.2)
|
62
70
|
nokogiri (>= 1.12.0)
|
63
71
|
loog (0.5.2)
|
64
|
-
minitest (5.
|
65
|
-
|
66
|
-
|
72
|
+
minitest (5.25.1)
|
73
|
+
minitest-reporters (1.7.1)
|
74
|
+
ansi
|
75
|
+
builder
|
76
|
+
minitest (>= 5.0)
|
77
|
+
ruby-progressbar
|
78
|
+
nokogiri (1.16.7-arm64-darwin)
|
67
79
|
racc (~> 1.4)
|
68
|
-
nokogiri (1.16.
|
80
|
+
nokogiri (1.16.7-x86_64-linux)
|
69
81
|
racc (~> 1.4)
|
70
|
-
parallel (1.
|
71
|
-
parser (3.3.
|
82
|
+
parallel (1.26.3)
|
83
|
+
parser (3.3.5.0)
|
72
84
|
ast (~> 2.4.1)
|
73
85
|
racc
|
74
86
|
pg (1.5.6)
|
75
87
|
psych (5.1.2)
|
76
88
|
stringio
|
77
|
-
|
89
|
+
qbash (0.0.4)
|
90
|
+
backtrace (> 0)
|
91
|
+
elapsed (> 0)
|
92
|
+
loog (> 0)
|
93
|
+
racc (1.8.1)
|
78
94
|
rack (3.1.7)
|
79
95
|
rack-session (2.0.0)
|
80
96
|
rack (>= 3.0.0)
|
@@ -90,10 +106,10 @@ GEM
|
|
90
106
|
rails-html-sanitizer (1.6.0)
|
91
107
|
loofah (~> 2.21)
|
92
108
|
nokogiri (~> 1.14)
|
93
|
-
railties (7.1
|
94
|
-
actionpack (= 7.1
|
95
|
-
activesupport (= 7.1
|
96
|
-
irb
|
109
|
+
railties (7.2.1)
|
110
|
+
actionpack (= 7.2.1)
|
111
|
+
activesupport (= 7.2.1)
|
112
|
+
irb (~> 1.13)
|
97
113
|
rackup (>= 1.0.0)
|
98
114
|
rake (>= 12.2)
|
99
115
|
thor (~> 1.0, >= 1.2.2)
|
@@ -106,76 +122,81 @@ GEM
|
|
106
122
|
regexp_parser (2.9.2)
|
107
123
|
reline (0.5.9)
|
108
124
|
io-console (~> 0.5)
|
109
|
-
rexml (3.3.
|
110
|
-
|
111
|
-
rspec-core (3.13.0)
|
125
|
+
rexml (3.3.8)
|
126
|
+
rspec-core (3.13.1)
|
112
127
|
rspec-support (~> 3.13.0)
|
113
|
-
rspec-expectations (3.13.
|
128
|
+
rspec-expectations (3.13.2)
|
114
129
|
diff-lcs (>= 1.2.0, < 2.0)
|
115
130
|
rspec-support (~> 3.13.0)
|
116
131
|
rspec-mocks (3.13.1)
|
117
132
|
diff-lcs (>= 1.2.0, < 2.0)
|
118
133
|
rspec-support (~> 3.13.0)
|
119
|
-
rspec-rails (
|
120
|
-
actionpack (>=
|
121
|
-
activesupport (>=
|
122
|
-
railties (>=
|
134
|
+
rspec-rails (7.0.1)
|
135
|
+
actionpack (>= 7.0)
|
136
|
+
activesupport (>= 7.0)
|
137
|
+
railties (>= 7.0)
|
123
138
|
rspec-core (~> 3.13)
|
124
139
|
rspec-expectations (~> 3.13)
|
125
140
|
rspec-mocks (~> 3.13)
|
126
141
|
rspec-support (~> 3.13)
|
127
142
|
rspec-support (3.13.1)
|
128
|
-
rubocop (1.
|
143
|
+
rubocop (1.66.1)
|
129
144
|
json (~> 2.3)
|
130
145
|
language_server-protocol (>= 3.17.0)
|
131
146
|
parallel (~> 1.10)
|
132
147
|
parser (>= 3.3.0.2)
|
133
148
|
rainbow (>= 2.2.2, < 4.0)
|
134
149
|
regexp_parser (>= 2.4, < 3.0)
|
135
|
-
|
136
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
150
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
137
151
|
ruby-progressbar (~> 1.7)
|
138
152
|
unicode-display_width (>= 2.4.0, < 3.0)
|
139
|
-
rubocop-ast (1.
|
153
|
+
rubocop-ast (1.32.3)
|
140
154
|
parser (>= 3.3.1.0)
|
141
|
-
rubocop-rspec (3.0.
|
155
|
+
rubocop-rspec (3.0.5)
|
142
156
|
rubocop (~> 1.61)
|
143
157
|
ruby-progressbar (1.13.0)
|
158
|
+
securerandom (0.3.1)
|
144
159
|
simplecov (0.22.0)
|
145
160
|
docile (~> 1.1)
|
146
161
|
simplecov-html (~> 0.11)
|
147
162
|
simplecov_json_formatter (~> 0.1)
|
163
|
+
simplecov-cobertura (2.1.0)
|
164
|
+
rexml
|
165
|
+
simplecov (~> 0.19)
|
148
166
|
simplecov-html (0.12.3)
|
149
167
|
simplecov_json_formatter (0.1.4)
|
150
168
|
slop (4.10.1)
|
151
169
|
stringio (3.1.1)
|
152
|
-
|
153
|
-
thor (1.3.
|
170
|
+
tago (0.0.2)
|
171
|
+
thor (1.3.2)
|
154
172
|
tzinfo (2.0.6)
|
155
173
|
concurrent-ruby (~> 1.0)
|
156
174
|
unicode-display_width (2.5.0)
|
175
|
+
useragent (0.16.10)
|
157
176
|
webrick (1.8.1)
|
158
177
|
xcop (0.7.1)
|
159
178
|
differ (~> 0.1.2)
|
160
179
|
nokogiri (~> 1.10)
|
161
180
|
rainbow (~> 3.0)
|
162
181
|
slop (~> 4.4)
|
163
|
-
zeitwerk (2.6.
|
182
|
+
zeitwerk (2.6.18)
|
164
183
|
|
165
184
|
PLATFORMS
|
166
185
|
arm64-darwin-22
|
167
186
|
x86_64-linux
|
168
187
|
|
169
188
|
DEPENDENCIES
|
170
|
-
minitest (= 5.
|
189
|
+
minitest (= 5.25.1)
|
190
|
+
minitest-reporters (~> 1.7)
|
171
191
|
pgtk!
|
172
192
|
rack (= 3.1.7)
|
173
193
|
rake (= 13.2.1)
|
174
|
-
rspec-rails (=
|
175
|
-
rubocop (= 1.
|
176
|
-
rubocop-rspec (= 3.0.
|
194
|
+
rspec-rails (= 7.0.1)
|
195
|
+
rubocop (= 1.66.1)
|
196
|
+
rubocop-rspec (= 3.0.5)
|
177
197
|
simplecov (= 0.22.0)
|
198
|
+
simplecov-cobertura (~> 2.1)
|
178
199
|
xcop (= 0.7.1)
|
179
200
|
|
180
201
|
BUNDLED WITH
|
181
|
-
2.5.
|
202
|
+
2.5.18
|
data/lib/pgtk/liquibase_task.rb
CHANGED
@@ -21,6 +21,7 @@
|
|
21
21
|
# SOFTWARE.
|
22
22
|
|
23
23
|
require 'English'
|
24
|
+
require 'qbash'
|
24
25
|
require 'rake'
|
25
26
|
require 'rake/tasklib'
|
26
27
|
require 'shellwords'
|
@@ -79,7 +80,7 @@ class Pgtk::LiquibaseTask < Rake::TaskLib
|
|
79
80
|
password = yml['pgsql']['password']
|
80
81
|
raise "The 'password' is not set in the config (YAML)" if password.nil?
|
81
82
|
Dir.chdir(File.dirname(@master)) do
|
82
|
-
|
83
|
+
qbash(
|
83
84
|
[
|
84
85
|
'mvn verify',
|
85
86
|
'--errors',
|
@@ -101,9 +102,8 @@ class Pgtk::LiquibaseTask < Rake::TaskLib
|
|
101
102
|
'--define',
|
102
103
|
"liquibase.password=#{Shellwords.escape(password)}",
|
103
104
|
'2>&1'
|
104
|
-
]
|
105
|
+
]
|
105
106
|
)
|
106
107
|
end
|
107
|
-
raise unless $CHILD_STATUS.exitstatus.zero?
|
108
108
|
end
|
109
109
|
end
|
data/lib/pgtk/pgsql_task.rb
CHANGED
@@ -22,6 +22,7 @@
|
|
22
22
|
|
23
23
|
require 'cgi'
|
24
24
|
require 'English'
|
25
|
+
require 'qbash'
|
25
26
|
require 'rake'
|
26
27
|
require 'rake/tasklib'
|
27
28
|
require 'random-port'
|
@@ -66,45 +67,53 @@ class Pgtk::PgsqlTask < Rake::TaskLib
|
|
66
67
|
out = "2>&1 #{@quiet ? '>/dev/null' : ''}"
|
67
68
|
Tempfile.open do |pwfile|
|
68
69
|
File.write(pwfile.path, @password)
|
69
|
-
|
70
|
+
qbash(
|
70
71
|
[
|
71
72
|
'initdb --auth=trust',
|
72
|
-
|
73
|
+
'-D',
|
74
|
+
Shellwords.escape(home),
|
73
75
|
'--username',
|
74
76
|
Shellwords.escape(@user),
|
75
77
|
'--pwfile',
|
76
78
|
Shellwords.escape(pwfile.path),
|
77
79
|
out
|
78
|
-
]
|
80
|
+
]
|
79
81
|
)
|
80
82
|
end
|
81
|
-
raise unless $CHILD_STATUS.exitstatus.zero?
|
82
83
|
port = @port
|
83
84
|
if port.nil?
|
84
85
|
port = RandomPort::Pool::SINGLETON.acquire
|
85
|
-
puts "Random TCP port #{port} is used"
|
86
|
+
puts "Random TCP port #{port} is used for PostgreSQL server" unless @quiet
|
86
87
|
else
|
87
|
-
puts "Required TCP port #{port} is used"
|
88
|
+
puts "Required TCP port #{port} is used for PostgreSQL server" unless @quiet
|
88
89
|
end
|
89
|
-
pid = Process.spawn(
|
90
|
+
pid = Process.spawn(
|
91
|
+
[
|
92
|
+
'postgres',
|
93
|
+
'-k', Shellwords.escape(home),
|
94
|
+
'-D', Shellwords.escape(home),
|
95
|
+
"--port=#{port}"
|
96
|
+
].join(' '),
|
97
|
+
$stdout => File.join(home, 'stdout.txt'),
|
98
|
+
$stderr => File.join(home, 'stderr.txt')
|
99
|
+
)
|
90
100
|
File.write(File.join(@dir, 'pid'), pid)
|
91
101
|
at_exit do
|
92
102
|
`kill -TERM #{pid}`
|
93
|
-
puts "PostgreSQL killed in PID #{pid}"
|
103
|
+
puts "PostgreSQL killed in PID #{pid}" unless @quiet
|
94
104
|
end
|
95
105
|
sleep 1
|
96
106
|
attempt = 0
|
97
107
|
begin
|
98
|
-
|
108
|
+
qbash(
|
99
109
|
[
|
100
110
|
"createdb -h localhost -p #{port}",
|
101
111
|
'--username',
|
102
112
|
Shellwords.escape(@user),
|
103
113
|
Shellwords.escape(@dbname),
|
104
114
|
out
|
105
|
-
]
|
115
|
+
]
|
106
116
|
)
|
107
|
-
raise unless $CHILD_STATUS.exitstatus.zero?
|
108
117
|
rescue StandardError => e
|
109
118
|
puts e.message
|
110
119
|
sleep(5)
|
@@ -128,6 +137,6 @@ class Pgtk::PgsqlTask < Rake::TaskLib
|
|
128
137
|
}
|
129
138
|
}.to_yaml
|
130
139
|
)
|
131
|
-
puts "PostgreSQL has been started in process ##{pid}, port #{port}"
|
140
|
+
puts "PostgreSQL has been started in process ##{pid}, port #{port}" unless @quiet
|
132
141
|
end
|
133
142
|
end
|
data/lib/pgtk/version.rb
CHANGED
data/pgtk.gemspec
CHANGED
@@ -32,9 +32,10 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.version = Pgtk::VERSION
|
33
33
|
s.license = 'MIT'
|
34
34
|
s.summary = 'PostgreSQL ToolKit for Ruby apps'
|
35
|
-
s.description =
|
36
|
-
|
37
|
-
|
35
|
+
s.description =
|
36
|
+
'This small Ruby gem helps you integrate PostgreSQL ' \
|
37
|
+
'with your Ruby web app, through Liquibase. It also adds a simple ' \
|
38
|
+
'connection pool and query processor, to make SQL manipulation simpler.'
|
38
39
|
s.authors = ['Yegor Bugayenko']
|
39
40
|
s.email = 'yegor256@gmail.com'
|
40
41
|
s.homepage = 'http://github.com/yegor256/pgtk'
|
@@ -42,9 +43,10 @@ connection pool and query processor, to make SQL manipulation simpler.'
|
|
42
43
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
43
44
|
s.rdoc_options = ['--charset=UTF-8']
|
44
45
|
s.extra_rdoc_files = ['README.md', 'LICENSE.txt']
|
45
|
-
s.add_dependency 'backtrace', '
|
46
|
-
s.add_dependency 'loog', '
|
47
|
-
s.add_dependency 'pg', '~>
|
48
|
-
s.add_dependency '
|
46
|
+
s.add_dependency 'backtrace', '>0'
|
47
|
+
s.add_dependency 'loog', '>0'
|
48
|
+
s.add_dependency 'pg', '~>1.1'
|
49
|
+
s.add_dependency 'qbash', '>0'
|
50
|
+
s.add_dependency 'random-port', '>0'
|
49
51
|
s.metadata['rubygems_mfa_required'] = 'true'
|
50
52
|
end
|
data/resources/pom.xml
CHANGED
@@ -29,8 +29,8 @@ SOFTWARE.
|
|
29
29
|
<version>0.0.0</version>
|
30
30
|
<packaging>pom</packaging>
|
31
31
|
<properties>
|
32
|
-
<postgresql.version>42.7.
|
33
|
-
<liquibase.version>4.29.
|
32
|
+
<postgresql.version>42.7.4</postgresql.version>
|
33
|
+
<liquibase.version>4.29.2</liquibase.version>
|
34
34
|
</properties>
|
35
35
|
<dependencies>
|
36
36
|
<dependency>
|
data/test/test__helper.rb
CHANGED
@@ -25,5 +25,11 @@ $stdout.sync = true
|
|
25
25
|
require 'simplecov'
|
26
26
|
SimpleCov.start
|
27
27
|
|
28
|
+
require 'simplecov-cobertura'
|
29
|
+
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
|
30
|
+
|
31
|
+
require 'minitest/reporters'
|
32
|
+
Minitest::Reporters.use! [Minitest::Reporters::SpecReporter.new]
|
33
|
+
|
28
34
|
require 'minitest/autorun'
|
29
35
|
require_relative '../lib/pgtk'
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pgtk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backtrace
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: loog
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pg
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,24 +52,37 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: qbash
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: random-port
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
|
-
- - "
|
73
|
+
- - ">"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0
|
75
|
+
version: '0'
|
62
76
|
type: :runtime
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
|
-
- - "
|
80
|
+
- - ">"
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0
|
69
|
-
description:
|
70
|
-
|
71
|
-
|
72
|
-
connection pool and query processor, to make SQL manipulation simpler.
|
82
|
+
version: '0'
|
83
|
+
description: This small Ruby gem helps you integrate PostgreSQL with your Ruby web
|
84
|
+
app, through Liquibase. It also adds a simple connection pool and query processor,
|
85
|
+
to make SQL manipulation simpler.
|
73
86
|
email: yegor256@gmail.com
|
74
87
|
executables: []
|
75
88
|
extensions: []
|
@@ -120,7 +133,7 @@ licenses:
|
|
120
133
|
- MIT
|
121
134
|
metadata:
|
122
135
|
rubygems_mfa_required: 'true'
|
123
|
-
post_install_message:
|
136
|
+
post_install_message:
|
124
137
|
rdoc_options:
|
125
138
|
- "--charset=UTF-8"
|
126
139
|
require_paths:
|
@@ -137,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
150
|
version: '0'
|
138
151
|
requirements: []
|
139
152
|
rubygems_version: 3.4.10
|
140
|
-
signing_key:
|
153
|
+
signing_key:
|
141
154
|
specification_version: 4
|
142
155
|
summary: PostgreSQL ToolKit for Ruby apps
|
143
156
|
test_files: []
|