pgtk 0.30.4 → 0.30.5

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: 8e35bea15cccc76c3b1e2d0496e162fe045549b7c3ac556d6b719d19766042be
4
- data.tar.gz: 82c1e3496717f4de5ab72786728d48f338b046eeecad2ad0db4b03fc55dd2fbb
3
+ metadata.gz: 5007602ed1eb8c77a95905969c85974f1f89250469008aa6cd92bf52d070a60e
4
+ data.tar.gz: e50a291add3ea16c4a3ac6cedb223ae0247e262adba559b7edea39f788708ccc
5
5
  SHA512:
6
- metadata.gz: '0938af5f031c224108c51ddb68bea735da5e52b31a47f6f0223086667e2d380d51d30f20b77ce9c7cf443d53449b839cd152a03cc4697cc4968ff3660d48b5ac'
7
- data.tar.gz: 20d22b5ee65b3bcbfce88845cbe357c7c4424f9fab8210fc2e78cca013891bf4c022911948b69424d03d08be2ebbf6b9de43e5c51d9f529910b10d516b890375
6
+ metadata.gz: d2345f24e3fe662dc6d1f9fca7fc01505b9ab892cbfe8bb527ac8b743f34bdfac28bd0568a3b41d1ec869796fbec24987f9bf17245c99db30f140abad53514a0
7
+ data.tar.gz: eb61998f1a3af79cb76a6adb1d88bf88a525660c1681e7871c083d0ddbaf60e2d0e9eda42e34bc9cff80c9ab141a7831919eda04a2808e82a886f447cdaced94
data/Gemfile CHANGED
@@ -12,7 +12,7 @@ gem 'minitest-reporters', '~>1.7', require: false
12
12
  gem 'minitest-stub-const', '~>0.6', require: false
13
13
  gem 'os', '~>1.1', require: false
14
14
  gem 'qbash', '~>0.0', require: false
15
- gem 'rack', '~>3.1', require: false
15
+ gem 'rack', '~>3.2', require: false
16
16
  gem 'rake', '~>13.2', require: false
17
17
  gem 'rubocop', '~>1.73', require: false
18
18
  gem 'rubocop-minitest', '~>0.38', require: false
data/Gemfile.lock CHANGED
@@ -18,7 +18,7 @@ PATH
18
18
  GEM
19
19
  remote: https://rubygems.org/
20
20
  specs:
21
- ansi (1.5.0)
21
+ ansi (1.6.0)
22
22
  ast (2.4.3)
23
23
  backtrace (0.4.1)
24
24
  builder (3.3.0)
@@ -29,32 +29,34 @@ GEM
29
29
  backtrace (~> 0.3)
30
30
  os (~> 1.1)
31
31
  qbash (~> 0.3)
32
+ drb (2.2.3)
32
33
  elapsed (0.3.1)
33
34
  loog (~> 0.6)
34
35
  tago (~> 0.1)
35
36
  ellipsized (0.3.0)
36
37
  joined (0.4.0)
37
- json (2.18.0)
38
+ json (2.19.2)
38
39
  language_server-protocol (3.17.0.5)
39
40
  lint_roller (1.1.0)
40
41
  logger (1.7.0)
41
- loog (0.7.2)
42
+ loog (0.8.0)
42
43
  ellipsized
43
44
  logger (~> 1.0)
44
- minitest (6.0.1)
45
+ minitest (6.0.3)
46
+ drb (~> 2.0)
45
47
  prism (~> 1.5)
46
48
  minitest-mock (5.27.0)
47
- minitest-reporters (1.7.1)
49
+ minitest-reporters (1.8.0)
48
50
  ansi
49
51
  builder
50
- minitest (>= 5.0)
52
+ minitest (>= 5.0, < 7)
51
53
  ruby-progressbar
52
54
  minitest-stub-const (0.6)
53
- nokogiri (1.19.0-arm64-darwin)
55
+ nokogiri (1.19.1-arm64-darwin)
54
56
  racc (~> 1.4)
55
- nokogiri (1.19.0-x64-mingw-ucrt)
57
+ nokogiri (1.19.1-x64-mingw-ucrt)
56
58
  racc (~> 1.4)
57
- nokogiri (1.19.0-x86_64-linux-gnu)
59
+ nokogiri (1.19.1-x86_64-linux-gnu)
58
60
  racc (~> 1.4)
59
61
  os (1.1.4)
60
62
  parallel (1.27.0)
@@ -65,13 +67,13 @@ GEM
65
67
  pg (1.6.3-x64-mingw-ucrt)
66
68
  pg (1.6.3-x86_64-linux)
67
69
  prism (1.9.0)
68
- qbash (0.7.2)
70
+ qbash (0.8.1)
69
71
  backtrace (> 0)
70
72
  elapsed (> 0)
71
73
  loog (> 0)
72
74
  tago (> 0)
73
75
  racc (1.8.1)
74
- rack (3.2.4)
76
+ rack (3.2.6)
75
77
  rainbow (3.1.1)
76
78
  rake (13.3.1)
77
79
  random-port (0.7.6)
@@ -118,7 +120,7 @@ GEM
118
120
  threads (0.5.0)
119
121
  backtrace (~> 0)
120
122
  concurrent-ruby (~> 1.0)
121
- timeout (0.6.0)
123
+ timeout (0.6.1)
122
124
  unicode-display_width (3.2.0)
123
125
  unicode-emoji (~> 4.1)
124
126
  unicode-emoji (4.2.0)
@@ -145,7 +147,7 @@ DEPENDENCIES
145
147
  os (~> 1.1)
146
148
  pgtk!
147
149
  qbash (~> 0.0)
148
- rack (~> 3.1)
150
+ rack (~> 3.2)
149
151
  rake (~> 13.2)
150
152
  rubocop (~> 1.73)
151
153
  rubocop-minitest (~> 0.38)
@@ -103,6 +103,8 @@ class Pgtk::LiquibaseTask < Rake::TaskLib
103
103
  old = @liquibase_version.match?(/^[1-3]\..+$/)
104
104
  url = yml['pgsql']['url']
105
105
  raise "The 'url' is not set in the config (YAML)" if url.nil?
106
+ username = yml['pgsql']['user']
107
+ raise "The 'user' is not set in the config (YAML)" if username.nil?
106
108
  password = yml['pgsql']['password']
107
109
  raise "The 'password' is not set in the config (YAML)" if password.nil?
108
110
  Dir.chdir(File.dirname(@master)) do
@@ -125,6 +127,8 @@ class Pgtk::LiquibaseTask < Rake::TaskLib
125
127
  '--define',
126
128
  Shellwords.escape("liquibase.url=#{url}"),
127
129
  '--define',
130
+ Shellwords.escape("liquibase.username=#{username}"),
131
+ '--define',
128
132
  Shellwords.escape("liquibase.password=#{password}"),
129
133
  '--define',
130
134
  Shellwords.escape("liquibase.contexts=#{@contexts}"),
data/lib/pgtk/version.rb CHANGED
@@ -11,5 +11,5 @@ require_relative '../pgtk'
11
11
  # License:: MIT
12
12
  module Pgtk
13
13
  # Current version of the library.
14
- VERSION = '0.30.4' unless defined?(VERSION)
14
+ VERSION = '0.30.5' unless defined?(VERSION)
15
15
  end
data/lib/pgtk/wire.rb CHANGED
@@ -70,7 +70,7 @@ class Pgtk::Wire::Env
70
70
  uri = URI(@value)
71
71
  Pgtk::Wire::Direct.new(
72
72
  host: CGI.unescape(uri.host),
73
- port: uri.port,
73
+ port: uri.port || 5432,
74
74
  dbname: CGI.unescape(uri.path[1..]),
75
75
  user: CGI.unescape(uri.userinfo.split(':')[0]),
76
76
  password: CGI.unescape(uri.userinfo.split(':')[1])
data/resources/pom.xml CHANGED
@@ -11,7 +11,7 @@
11
11
  <packaging>pom</packaging>
12
12
  <properties>
13
13
  <postgresql.version>42.7.10</postgresql.version>
14
- <liquibase.version>5.0.1</liquibase.version>
14
+ <liquibase.version>5.0.2</liquibase.version>
15
15
  </properties>
16
16
  <dependencies>
17
17
  <dependency>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pgtk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.4
4
+ version: 0.30.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko