pgtk 0.30.3 → 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: 1b20c15ffe4571146098ac7ca324660d2bc2ea0df21427529691cee7a7e67e0f
4
- data.tar.gz: b4bdcfc177a735badd576601cf4cf74ecc579887e528c3ef198fa5fa48418bb3
3
+ metadata.gz: 5007602ed1eb8c77a95905969c85974f1f89250469008aa6cd92bf52d070a60e
4
+ data.tar.gz: e50a291add3ea16c4a3ac6cedb223ae0247e262adba559b7edea39f788708ccc
5
5
  SHA512:
6
- metadata.gz: d55bbca4388307d2cd02721b11d01c2dfefb33b31435e9e1af689b75de3517c021a368a6b21358160daa351797377308807809ddb2c63b2ae480e69c0ee9539e
7
- data.tar.gz: d8cb3a04bcca0e20dce462db60e2bbc56c0ce69d2530afcecb98e4920a3d97362a05150508cf41deba2480731c42323d7012146fa0a57552d1dbbf6db248a41b
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)
@@ -113,7 +113,7 @@ class Pgtk::Impatient
113
113
  ("with #{args.count} argument#{'s' if args.count > 1}" unless args.empty?),
114
114
  'was terminated after',
115
115
  start.ago,
116
- 'of waiting: ',
116
+ 'of waiting:',
117
117
  sql.ellipsized(50).inspect
118
118
  ].compact.join(' ')
119
119
  end
@@ -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/pool.rb CHANGED
@@ -314,7 +314,7 @@ class Pgtk::Pool
314
314
  end
315
315
  end
316
316
  rescue StandardError => e
317
- @log.error("#{sql} >> #{e.message}")
317
+ @log.error("#{sql} -> #{e.message}")
318
318
  raise e
319
319
  end
320
320
  lag = Time.now - start
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.3' 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
@@ -10,8 +10,8 @@
10
10
  <version>0.0.0</version>
11
11
  <packaging>pom</packaging>
12
12
  <properties>
13
- <postgresql.version>42.7.9</postgresql.version>
14
- <liquibase.version>5.0.1</liquibase.version>
13
+ <postgresql.version>42.7.10</postgresql.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.3
4
+ version: 0.30.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko