pgtk 0.13.1 → 0.14.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 119d9d36d6cb4602525162faaa1651d440a1d6d961e6fd752d98d386654e0040
4
- data.tar.gz: '079362616ac7e1d6f9c0af0e02d3ed07147efe7b6529795076bd3ab3951fb257'
3
+ metadata.gz: 49420b7b7c01a8b32c8d7557ca7a7520cfaeca0a389b7ed9fc613728ce961e19
4
+ data.tar.gz: b2a61b0c8c6412bea801612a07b14ae67e9549c5060d3364c907a9dceb4ab040
5
5
  SHA512:
6
- metadata.gz: 0c5477226ff48e6de9d3eb7a3d56c22710e86bb43376d7f5faae71c6b1706421a2e1c2687a6ec2cca11e17719aa707d2da1519f91ad46885ffad56bffa10d687
7
- data.tar.gz: 419345b54d9ecf5a495f81c2b7f3b705d8dd64e9c66046c22360acc0dc8bfefbb0c5c5763bca60271258e59c33e11ce2c469628ea53ff2e772bef275d0a548ba
6
+ metadata.gz: cc8fb8ab39be7276878f5031680cb9d9f2e4471863e87289a0d939aaf0c21a5b4cf4ec066c2a74fef959df6c1bafa74dba5309fc7abdacc201dd7eb214cb9b3e
7
+ data.tar.gz: 128dbf6deb488e9798afc7ca7a76b9f409703591c2e16839e70755dac4c50b9a88baabe308d0503a0aafed241422fa53b2cfe2499172ce6cd81b7fad69ba0185
@@ -1,5 +1,3 @@
1
- # (The MIT License)
2
- #
3
1
  # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
4
2
  # SPDX-License-Identifier: MIT
5
3
  ---
data/.gitignore CHANGED
@@ -1,8 +1,10 @@
1
- coverage/
2
- .idea/
3
1
  *.gem
4
- .bundle/
5
2
  .DS_Store
6
- rdoc/
7
- doc/
3
+ .bundle/
4
+ .idea/
8
5
  .yardoc/
6
+ coverage/
7
+ doc/
8
+ node_modules/
9
+ rdoc/
10
+ vendor/
data/.rubocop.yml CHANGED
@@ -36,3 +36,4 @@ plugins:
36
36
  - rubocop-rake
37
37
  - rubocop-minitest
38
38
  - rubocop-performance
39
+ require: []
data/.rultor.yml CHANGED
@@ -3,7 +3,7 @@
3
3
  ---
4
4
  # yamllint disable rule:line-length
5
5
  docker:
6
- image: yegor256/rultor-java
6
+ image: yegor256/java
7
7
  assets:
8
8
  rubygems.yml: yegor256/home#assets/rubygems.yml
9
9
  install: |
data/Gemfile CHANGED
@@ -6,17 +6,16 @@
6
6
  source 'https://rubygems.org'
7
7
  gemspec
8
8
 
9
- gem 'minitest', '5.25.4', require: false
9
+ gem 'minitest', '~>5.25', require: false
10
10
  gem 'minitest-reporters', '~>1.7', require: false
11
- gem 'rack', '3.1.10', require: false
12
- gem 'rake', '13.2.1', require: false
13
- gem 'rspec-rails', '7.1.0', require: false
14
- gem 'rubocop', '1.72.2', require: false
11
+ gem 'rack', '~>3.1', require: false
12
+ gem 'rake', '~>13.2', require: false
13
+ gem 'rubocop', '~>1.73', require: false
15
14
  gem 'rubocop-minitest', '>0', require: false
16
15
  gem 'rubocop-performance', '>0', require: false
17
16
  gem 'rubocop-rake', '>0', require: false
18
17
  gem 'rubocop-rspec', '>0', require: false
19
- gem 'simplecov', '0.22.0', require: false
18
+ gem 'simplecov', '~>0.22', require: false
20
19
  gem 'simplecov-cobertura', '~>2.1'
21
20
  gem 'xcop', '>0', require: false
22
- gem 'yard', '0.9.37', require: false
21
+ gem 'yard', '~>0.9', require: false
data/Gemfile.lock CHANGED
@@ -11,150 +11,52 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- actionpack (8.0.1)
15
- actionview (= 8.0.1)
16
- activesupport (= 8.0.1)
17
- nokogiri (>= 1.8.5)
18
- rack (>= 2.2.4)
19
- rack-session (>= 1.0.1)
20
- rack-test (>= 0.6.3)
21
- rails-dom-testing (~> 2.2)
22
- rails-html-sanitizer (~> 1.6)
23
- useragent (~> 0.16)
24
- actionview (8.0.1)
25
- activesupport (= 8.0.1)
26
- builder (~> 3.1)
27
- erubi (~> 1.11)
28
- rails-dom-testing (~> 2.2)
29
- rails-html-sanitizer (~> 1.6)
30
- activesupport (8.0.1)
31
- base64
32
- benchmark (>= 0.3)
33
- bigdecimal
34
- concurrent-ruby (~> 1.0, >= 1.3.1)
35
- connection_pool (>= 2.2.5)
36
- drb
37
- i18n (>= 1.6, < 2)
38
- logger (>= 1.4.2)
39
- minitest (>= 5.1)
40
- securerandom (>= 0.3)
41
- tzinfo (~> 2.0, >= 2.0.5)
42
- uri (>= 0.13.1)
43
14
  ansi (1.5.0)
44
- ast (2.4.2)
15
+ ast (2.4.3)
45
16
  backtrace (0.4.0)
46
- base64 (0.2.0)
47
- benchmark (0.4.0)
48
- bigdecimal (3.1.9)
49
17
  builder (3.3.0)
50
- concurrent-ruby (1.3.5)
51
- connection_pool (2.5.0)
52
- crass (1.0.6)
53
- date (3.4.1)
54
- diff-lcs (1.6.0)
55
18
  differ (0.1.2)
56
19
  docile (1.4.1)
57
- drb (2.2.1)
58
20
  elapsed (0.0.1)
59
21
  loog (> 0)
60
22
  tago (> 0)
61
- erubi (1.13.1)
62
- i18n (1.14.7)
63
- concurrent-ruby (~> 1.0)
64
- io-console (0.8.0)
65
- irb (1.15.1)
66
- pp (>= 0.6.0)
67
- rdoc (>= 4.0.0)
68
- reline (>= 0.4.2)
69
- json (2.10.1)
23
+ json (2.10.2)
70
24
  language_server-protocol (3.17.0.4)
71
25
  lint_roller (1.1.0)
72
- logger (1.6.6)
73
- loofah (2.24.0)
74
- crass (~> 1.0.2)
75
- nokogiri (>= 1.12.0)
76
26
  loog (0.6.0)
77
- minitest (5.25.4)
27
+ minitest (5.25.5)
78
28
  minitest-reporters (1.7.1)
79
29
  ansi
80
30
  builder
81
31
  minitest (>= 5.0)
82
32
  ruby-progressbar
83
- nokogiri (1.18.3-arm64-darwin)
33
+ nokogiri (1.18.6-arm64-darwin)
84
34
  racc (~> 1.4)
85
- nokogiri (1.18.3-x64-mingw-ucrt)
35
+ nokogiri (1.18.6-x64-mingw-ucrt)
86
36
  racc (~> 1.4)
87
- nokogiri (1.18.3-x86_64-linux-gnu)
37
+ nokogiri (1.18.6-x86_64-linux-gnu)
88
38
  racc (~> 1.4)
89
39
  parallel (1.26.3)
90
- parser (3.3.7.1)
40
+ parser (3.3.7.3)
91
41
  ast (~> 2.4.1)
92
42
  racc
93
43
  pg (1.5.9)
94
44
  pg (1.5.9-x64-mingw-ucrt)
95
- pp (0.6.2)
96
- prettyprint
97
- prettyprint (0.2.0)
98
- psych (5.2.3)
99
- date
100
- stringio
45
+ prism (1.4.0)
101
46
  qbash (0.4.0)
102
47
  backtrace (> 0)
103
48
  elapsed (> 0)
104
49
  loog (> 0)
105
50
  tago (> 0)
106
51
  racc (1.8.1)
107
- rack (3.1.10)
108
- rack-session (2.1.0)
109
- base64 (>= 0.1.0)
110
- rack (>= 3.0.0)
111
- rack-test (2.2.0)
112
- rack (>= 1.3)
113
- rackup (2.2.1)
114
- rack (>= 3)
115
- rails-dom-testing (2.2.0)
116
- activesupport (>= 5.0.0)
117
- minitest
118
- nokogiri (>= 1.6)
119
- rails-html-sanitizer (1.6.2)
120
- loofah (~> 2.21)
121
- nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
122
- railties (8.0.1)
123
- actionpack (= 8.0.1)
124
- activesupport (= 8.0.1)
125
- irb (~> 1.13)
126
- rackup (>= 1.0.0)
127
- rake (>= 12.2)
128
- thor (~> 1.0, >= 1.2.2)
129
- zeitwerk (~> 2.6)
52
+ rack (3.1.12)
130
53
  rainbow (3.1.1)
131
54
  rake (13.2.1)
132
55
  random-port (0.7.5)
133
56
  tago (> 0)
134
- rdoc (6.12.0)
135
- psych (>= 4.0.0)
136
57
  regexp_parser (2.10.0)
137
- reline (0.6.0)
138
- io-console (~> 0.5)
139
58
  rexml (3.4.1)
140
- rspec-core (3.13.3)
141
- rspec-support (~> 3.13.0)
142
- rspec-expectations (3.13.3)
143
- diff-lcs (>= 1.2.0, < 2.0)
144
- rspec-support (~> 3.13.0)
145
- rspec-mocks (3.13.2)
146
- diff-lcs (>= 1.2.0, < 2.0)
147
- rspec-support (~> 3.13.0)
148
- rspec-rails (7.1.0)
149
- actionpack (>= 7.0)
150
- activesupport (>= 7.0)
151
- railties (>= 7.0)
152
- rspec-core (~> 3.13)
153
- rspec-expectations (~> 3.13)
154
- rspec-mocks (~> 3.13)
155
- rspec-support (~> 3.13)
156
- rspec-support (3.13.2)
157
- rubocop (1.72.2)
59
+ rubocop (1.75.1)
158
60
  json (~> 2.3)
159
61
  language_server-protocol (~> 3.17.0.2)
160
62
  lint_roller (~> 1.1.0)
@@ -162,11 +64,12 @@ GEM
162
64
  parser (>= 3.3.0.2)
163
65
  rainbow (>= 2.2.2, < 4.0)
164
66
  regexp_parser (>= 2.9.3, < 3.0)
165
- rubocop-ast (>= 1.38.0, < 2.0)
67
+ rubocop-ast (>= 1.43.0, < 2.0)
166
68
  ruby-progressbar (~> 1.7)
167
69
  unicode-display_width (>= 2.4.0, < 4.0)
168
- rubocop-ast (1.38.0)
169
- parser (>= 3.3.1.0)
70
+ rubocop-ast (1.43.0)
71
+ parser (>= 3.3.7.2)
72
+ prism (~> 1.4)
170
73
  rubocop-minitest (0.37.1)
171
74
  lint_roller (~> 1.1)
172
75
  rubocop (>= 1.72.1, < 2.0)
@@ -182,7 +85,6 @@ GEM
182
85
  lint_roller (~> 1.1)
183
86
  rubocop (~> 1.72, >= 1.72.1)
184
87
  ruby-progressbar (1.13.0)
185
- securerandom (0.4.1)
186
88
  simplecov (0.22.0)
187
89
  docile (~> 1.1)
188
90
  simplecov-html (~> 0.11)
@@ -193,23 +95,16 @@ GEM
193
95
  simplecov-html (0.13.1)
194
96
  simplecov_json_formatter (0.1.4)
195
97
  slop (4.10.1)
196
- stringio (3.1.3)
197
- tago (0.0.2)
198
- thor (1.3.2)
199
- tzinfo (2.0.6)
200
- concurrent-ruby (~> 1.0)
98
+ tago (0.1.0)
201
99
  unicode-display_width (3.1.4)
202
100
  unicode-emoji (~> 4.0, >= 4.0.4)
203
101
  unicode-emoji (4.0.4)
204
- uri (1.0.2)
205
- useragent (0.16.11)
206
102
  xcop (0.8.0)
207
103
  differ (~> 0.1.2)
208
104
  nokogiri (~> 1.10)
209
105
  rainbow (~> 3.0)
210
106
  slop (~> 4.4)
211
107
  yard (0.9.37)
212
- zeitwerk (2.7.2)
213
108
 
214
109
  PLATFORMS
215
110
  arm64-darwin-22
@@ -219,21 +114,20 @@ PLATFORMS
219
114
  x86_64-linux
220
115
 
221
116
  DEPENDENCIES
222
- minitest (= 5.25.4)
117
+ minitest (~> 5.25)
223
118
  minitest-reporters (~> 1.7)
224
119
  pgtk!
225
- rack (= 3.1.10)
226
- rake (= 13.2.1)
227
- rspec-rails (= 7.1.0)
228
- rubocop (= 1.72.2)
120
+ rack (~> 3.1)
121
+ rake (~> 13.2)
122
+ rubocop (~> 1.73)
229
123
  rubocop-minitest (> 0)
230
124
  rubocop-performance (> 0)
231
125
  rubocop-rake (> 0)
232
126
  rubocop-rspec (> 0)
233
- simplecov (= 0.22.0)
127
+ simplecov (~> 0.22)
234
128
  simplecov-cobertura (~> 2.1)
235
129
  xcop (> 0)
236
- yard (= 0.9.37)
130
+ yard (~> 0.9)
237
131
 
238
132
  BUNDLED WITH
239
133
  2.5.16
data/README.md CHANGED
@@ -50,6 +50,7 @@ Pgtk::PgsqlTask.new :pgsql do |t|
50
50
  t.password = 'test'
51
51
  t.dbname = 'test'
52
52
  t.yaml = 'target/pgsql-config.yml' # YAML file to be created with connection details
53
+ t.contexts = '!test' # list of contexts or empty if all
53
54
  t.config = { # list of PostgreSQL configuration options
54
55
  log_min_messages: 'ERROR',
55
56
  log_filename: 'target/pg.log'
data/REUSE.toml CHANGED
@@ -4,13 +4,30 @@
4
4
  version = 1
5
5
  [[annotations]]
6
6
  path = [
7
+ "**.json",
8
+ "**.md",
9
+ "**.txt",
10
+ "**/*.csv",
11
+ "**/*.jpg",
12
+ "**/*.json",
13
+ "**/*.md",
14
+ "**/*.pdf",
15
+ "**/*.png",
16
+ "**/*.svg",
17
+ "**/*.txt",
18
+ "**/*.vm",
19
+ "**/.DS_Store",
20
+ "**/.gitignore",
21
+ "**/.pdd",
22
+ "**/CNAME",
23
+ "**/Gemfile.lock",
24
+ ".DS_Store",
7
25
  ".gitattributes",
8
26
  ".gitignore",
9
- ".gitleaksignore",
10
27
  ".pdd",
11
28
  "Gemfile.lock",
12
29
  "README.md",
13
- "renovate.json"
30
+ "renovate.json",
14
31
  ]
15
32
  precedence = "override"
16
33
  SPDX-FileCopyrightText = "Copyright (c) 2025 Yegor Bugayenko"
@@ -16,12 +16,13 @@ require_relative '../pgtk'
16
16
  # Copyright:: Copyright (c) 2019-2025 Yegor Bugayenko
17
17
  # License:: MIT
18
18
  class Pgtk::LiquibaseTask < Rake::TaskLib
19
- attr_accessor :name, :master, :yaml, :quiet, :liquibase_version, :postgresql_version
19
+ attr_accessor :name, :master, :yaml, :quiet, :liquibase_version, :postgresql_version, :contexts
20
20
 
21
21
  def initialize(*args, &task_block)
22
22
  super()
23
23
  @name = args.shift || :liquibase
24
24
  @quiet = false
25
+ @contexts = ''
25
26
  @liquibase_version = '3.2.2'
26
27
  @postgresql_version = '42.7.0'
27
28
  desc 'Deploy Liquibase changes to the running PostgreSQL server' unless ::Rake.application.last_description
@@ -83,7 +84,9 @@ class Pgtk::LiquibaseTask < Rake::TaskLib
83
84
  '--define',
84
85
  Shellwords.escape("liquibase.url=#{url}"),
85
86
  '--define',
86
- Shellwords.escape("liquibase.password=#{password}")
87
+ Shellwords.escape("liquibase.password=#{password}"),
88
+ '--define',
89
+ Shellwords.escape("liquibase.contexts=#{@contexts}")
87
90
  ]
88
91
  )
89
92
  end
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.13.1'
14
+ VERSION = '0.14.0'
15
15
  end
data/resources/pom.xml CHANGED
@@ -1,4 +1,4 @@
1
- <?xml version="1.0"?>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
2
  <!--
3
3
  * SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
4
4
  * SPDX-License-Identifier: MIT
@@ -32,6 +32,7 @@ class TestLiquibaseTask < Minitest::Test
32
32
  t.quiet = true
33
33
  t.postgresql_version = '42.7.0'
34
34
  t.liquibase_version = '3.2.2'
35
+ t.contexts = '!test'
35
36
  end
36
37
  Rake::Task['liquibase2'].invoke
37
38
  end
@@ -1,4 +1,4 @@
1
- <?xml version="1.0"?>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
2
  <!--
3
3
  * SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
4
4
  * SPDX-License-Identifier: MIT
@@ -1,4 +1,4 @@
1
- <?xml version="1.0"?>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
2
  <!--
3
3
  * SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
4
4
  * SPDX-License-Identifier: MIT
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pgtk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-02-19 00:00:00.000000000 Z
10
+ date: 2025-03-27 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: backtrace
@@ -137,7 +136,6 @@ licenses:
137
136
  - MIT
138
137
  metadata:
139
138
  rubygems_mfa_required: 'true'
140
- post_install_message:
141
139
  rdoc_options:
142
140
  - "--charset=UTF-8"
143
141
  require_paths:
@@ -153,8 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
151
  - !ruby/object:Gem::Version
154
152
  version: '0'
155
153
  requirements: []
156
- rubygems_version: 3.4.10
157
- signing_key:
154
+ rubygems_version: 3.6.2
158
155
  specification_version: 4
159
156
  summary: PostgreSQL ToolKit for Ruby apps
160
157
  test_files: []