pgtk 0.12.1 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -47,11 +47,11 @@ GEM
47
47
  benchmark (0.4.0)
48
48
  bigdecimal (3.1.9)
49
49
  builder (3.3.0)
50
- concurrent-ruby (1.3.4)
51
- connection_pool (2.4.1)
50
+ concurrent-ruby (1.3.5)
51
+ connection_pool (2.5.0)
52
52
  crass (1.0.6)
53
53
  date (3.4.1)
54
- diff-lcs (1.5.1)
54
+ diff-lcs (1.6.0)
55
55
  differ (0.1.2)
56
56
  docile (1.4.1)
57
57
  drb (2.2.1)
@@ -59,16 +59,18 @@ GEM
59
59
  loog (> 0)
60
60
  tago (> 0)
61
61
  erubi (1.13.1)
62
- i18n (1.14.6)
62
+ i18n (1.14.7)
63
63
  concurrent-ruby (~> 1.0)
64
64
  io-console (0.8.0)
65
- irb (1.14.3)
65
+ irb (1.15.1)
66
+ pp (>= 0.6.0)
66
67
  rdoc (>= 4.0.0)
67
68
  reline (>= 0.4.2)
68
- json (2.9.1)
69
- language_server-protocol (3.17.0.3)
70
- logger (1.6.4)
71
- loofah (2.23.1)
69
+ json (2.10.1)
70
+ language_server-protocol (3.17.0.4)
71
+ lint_roller (1.1.0)
72
+ logger (1.6.6)
73
+ loofah (2.24.0)
72
74
  crass (~> 1.0.2)
73
75
  nokogiri (>= 1.12.0)
74
76
  loog (0.6.0)
@@ -78,26 +80,33 @@ GEM
78
80
  builder
79
81
  minitest (>= 5.0)
80
82
  ruby-progressbar
81
- nokogiri (1.18.0-arm64-darwin)
83
+ nokogiri (1.18.3-arm64-darwin)
82
84
  racc (~> 1.4)
83
- nokogiri (1.18.0-x86_64-linux-gnu)
85
+ nokogiri (1.18.3-x64-mingw-ucrt)
86
+ racc (~> 1.4)
87
+ nokogiri (1.18.3-x86_64-linux-gnu)
84
88
  racc (~> 1.4)
85
89
  parallel (1.26.3)
86
- parser (3.3.6.0)
90
+ parser (3.3.7.1)
87
91
  ast (~> 2.4.1)
88
92
  racc
89
93
  pg (1.5.9)
90
- psych (5.2.2)
94
+ pg (1.5.9-x64-mingw-ucrt)
95
+ pp (0.6.2)
96
+ prettyprint
97
+ prettyprint (0.2.0)
98
+ psych (5.2.3)
91
99
  date
92
100
  stringio
93
- qbash (0.2.2)
101
+ qbash (0.4.0)
94
102
  backtrace (> 0)
95
103
  elapsed (> 0)
96
104
  loog (> 0)
97
105
  tago (> 0)
98
106
  racc (1.8.1)
99
- rack (3.1.8)
100
- rack-session (2.0.0)
107
+ rack (3.1.10)
108
+ rack-session (2.1.0)
109
+ base64 (>= 0.1.0)
101
110
  rack (>= 3.0.0)
102
111
  rack-test (2.2.0)
103
112
  rack (>= 1.3)
@@ -120,14 +129,15 @@ GEM
120
129
  zeitwerk (~> 2.6)
121
130
  rainbow (3.1.1)
122
131
  rake (13.2.1)
123
- random-port (0.7.1)
124
- rdoc (6.10.0)
132
+ random-port (0.7.5)
133
+ tago (> 0)
134
+ rdoc (6.12.0)
125
135
  psych (>= 4.0.0)
126
136
  regexp_parser (2.10.0)
127
137
  reline (0.6.0)
128
138
  io-console (~> 0.5)
129
- rexml (3.4.0)
130
- rspec-core (3.13.2)
139
+ rexml (3.4.1)
140
+ rspec-core (3.13.3)
131
141
  rspec-support (~> 3.13.0)
132
142
  rspec-expectations (3.13.3)
133
143
  diff-lcs (>= 1.2.0, < 2.0)
@@ -144,20 +154,33 @@ GEM
144
154
  rspec-mocks (~> 3.13)
145
155
  rspec-support (~> 3.13)
146
156
  rspec-support (3.13.2)
147
- rubocop (1.69.2)
157
+ rubocop (1.72.2)
148
158
  json (~> 2.3)
149
- language_server-protocol (>= 3.17.0)
159
+ language_server-protocol (~> 3.17.0.2)
160
+ lint_roller (~> 1.1.0)
150
161
  parallel (~> 1.10)
151
162
  parser (>= 3.3.0.2)
152
163
  rainbow (>= 2.2.2, < 4.0)
153
164
  regexp_parser (>= 2.9.3, < 3.0)
154
- rubocop-ast (>= 1.36.2, < 2.0)
165
+ rubocop-ast (>= 1.38.0, < 2.0)
155
166
  ruby-progressbar (~> 1.7)
156
167
  unicode-display_width (>= 2.4.0, < 4.0)
157
- rubocop-ast (1.37.0)
168
+ rubocop-ast (1.38.0)
158
169
  parser (>= 3.3.1.0)
159
- rubocop-rspec (3.3.0)
160
- rubocop (~> 1.61)
170
+ rubocop-minitest (0.37.1)
171
+ lint_roller (~> 1.1)
172
+ rubocop (>= 1.72.1, < 2.0)
173
+ rubocop-ast (>= 1.38.0, < 2.0)
174
+ rubocop-performance (1.24.0)
175
+ lint_roller (~> 1.1)
176
+ rubocop (>= 1.72.1, < 2.0)
177
+ rubocop-ast (>= 1.38.0, < 2.0)
178
+ rubocop-rake (0.7.1)
179
+ lint_roller (~> 1.1)
180
+ rubocop (>= 1.72.1)
181
+ rubocop-rspec (3.5.0)
182
+ lint_roller (~> 1.1)
183
+ rubocop (~> 1.72, >= 1.72.1)
161
184
  ruby-progressbar (1.13.0)
162
185
  securerandom (0.4.1)
163
186
  simplecov (0.22.0)
@@ -170,41 +193,46 @@ GEM
170
193
  simplecov-html (0.13.1)
171
194
  simplecov_json_formatter (0.1.4)
172
195
  slop (4.10.1)
173
- stringio (3.1.2)
196
+ stringio (3.1.3)
174
197
  tago (0.0.2)
175
198
  thor (1.3.2)
176
199
  tzinfo (2.0.6)
177
200
  concurrent-ruby (~> 1.0)
178
- unicode-display_width (3.1.3)
201
+ unicode-display_width (3.1.4)
179
202
  unicode-emoji (~> 4.0, >= 4.0.4)
180
203
  unicode-emoji (4.0.4)
181
204
  uri (1.0.2)
182
205
  useragent (0.16.11)
183
- xcop (0.7.1)
206
+ xcop (0.8.0)
184
207
  differ (~> 0.1.2)
185
208
  nokogiri (~> 1.10)
186
209
  rainbow (~> 3.0)
187
210
  slop (~> 4.4)
188
211
  yard (0.9.37)
189
- zeitwerk (2.7.1)
212
+ zeitwerk (2.7.2)
190
213
 
191
214
  PLATFORMS
192
215
  arm64-darwin-22
216
+ arm64-darwin-23
193
217
  arm64-darwin-24
218
+ x64-mingw-ucrt
194
219
  x86_64-linux
195
220
 
196
221
  DEPENDENCIES
197
222
  minitest (= 5.25.4)
198
223
  minitest-reporters (~> 1.7)
199
224
  pgtk!
200
- rack (= 3.1.8)
225
+ rack (= 3.1.10)
201
226
  rake (= 13.2.1)
202
227
  rspec-rails (= 7.1.0)
203
- rubocop (= 1.69.2)
204
- rubocop-rspec (= 3.3.0)
228
+ rubocop (= 1.72.2)
229
+ rubocop-minitest (> 0)
230
+ rubocop-performance (> 0)
231
+ rubocop-rake (> 0)
232
+ rubocop-rspec (> 0)
205
233
  simplecov (= 0.22.0)
206
234
  simplecov-cobertura (~> 2.1)
207
- xcop (= 0.7.1)
235
+ xcop (> 0)
208
236
  yard (= 0.9.37)
209
237
 
210
238
  BUNDLED WITH
data/LICENSES/MIT.txt ADDED
@@ -0,0 +1,21 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2019-2025 Yegor Bugayenko
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the 'Software'), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -32,14 +32,14 @@ sudo apt-get install -y postgresql-10 postgresql-client-10
32
32
  sudo apt-get install -y default-jre maven
33
33
  ```
34
34
 
35
- Then, add this to your [`Gemfile`](https://bundler.io/gemfile.html):
35
+ Then, add this to your [Gemfile](https://bundler.io/gemfile.html):
36
36
 
37
37
  ```ruby
38
38
  gem 'pgtk'
39
39
  ```
40
40
 
41
41
  Then, add this to your
42
- [`Rakefile`](https://github.com/ruby/rake/blob/master/doc/rakefile.rdoc):
42
+ [Rakefile](https://github.com/ruby/rake/blob/master/doc/rakefile.rdoc):
43
43
 
44
44
  ```ruby
45
45
  require 'pgtk/pgsql_task'
@@ -73,7 +73,7 @@ Pgtk::LiquibaseTask.new liquibase: :pgsql do |t|
73
73
  end
74
74
  ```
75
75
 
76
- The config.yml file should be in this format:
76
+ The `config.yml` file should be in this format:
77
77
 
78
78
  ```yaml
79
79
  pgsql:
@@ -151,7 +151,14 @@ module Minitest
151
151
  end
152
152
  ```
153
153
 
154
- Should work.
154
+ You can also track all SQL queries sent through, with the help of `Pgtk::Pool`:
155
+
156
+ ```ruby
157
+ require 'pgtk/spy'
158
+ pool = Pgtk::Spy.new(pool) do |sql|
159
+ # here, save this "sql" somewhere
160
+ end
161
+ ```
155
162
 
156
163
  Well, it works in
157
164
  [netbout.com](https://github.com/yegor256/netbout),
data/REUSE.toml ADDED
@@ -0,0 +1,17 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ version = 1
5
+ [[annotations]]
6
+ path = [
7
+ ".gitattributes",
8
+ ".gitignore",
9
+ ".gitleaksignore",
10
+ ".pdd",
11
+ "Gemfile.lock",
12
+ "README.md",
13
+ "renovate.json"
14
+ ]
15
+ precedence = "override"
16
+ SPDX-FileCopyrightText = "Copyright (c) 2025 Yegor Bugayenko"
17
+ SPDX-License-Identifier = "MIT"
data/Rakefile CHANGED
@@ -1,24 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2025 Yegor Bugayenko
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the 'Software'), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  require 'rubygems'
24
7
  require 'rake'
@@ -33,7 +16,7 @@ def version
33
16
  Gem::Specification.load(Dir['*.gemspec'].first).version
34
17
  end
35
18
 
36
- task default: %i[clean test rubocop xcop copyright yard]
19
+ task default: %i[clean test rubocop xcop yard]
37
20
 
38
21
  require 'rake/testtask'
39
22
  desc 'Run all unit tests'
@@ -60,15 +43,6 @@ end
60
43
  require 'xcop/rake_task'
61
44
  desc 'Validate all XML/XSL/XSD/HTML files for formatting'
62
45
  Xcop::RakeTask.new :xcop do |task|
63
- task.license = 'LICENSE.txt'
64
46
  task.includes = ['**/*.xml', '**/*.xsl', '**/*.xsd', '**/*.html']
65
47
  task.excludes = ['target/**/*', 'coverage/**/*', 'vendor/**/*', 'doc/**/*']
66
48
  end
67
-
68
- task :copyright do
69
- sh "grep -q -r '2019-#{Date.today.strftime('%Y')}' \
70
- --include '*.rb' \
71
- --include '*.txt' \
72
- --include 'Rakefile' \
73
- ."
74
- end
data/cucumber.yml CHANGED
@@ -1,22 +1,5 @@
1
- # Copyright (c) 2019-2025 Yegor Bugayenko
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the 'Software'), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in all
11
- # copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
- # SOFTWARE.
1
+ # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
20
3
  ---
21
4
  default: --format pretty
22
5
  travis: --format progress
@@ -1,24 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2025 Yegor Bugayenko
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the 'Software'), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  require 'English'
24
7
  require 'qbash'
@@ -1,24 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2025 Yegor Bugayenko
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the 'Software'), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  require 'cgi'
24
7
  require 'English'
data/lib/pgtk/pool.rb CHANGED
@@ -1,24 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2025 Yegor Bugayenko
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the 'Software'), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  require 'pg'
24
7
  require 'loog'
data/lib/pgtk/spy.rb ADDED
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
5
+
6
+ require 'pg'
7
+ require 'loog'
8
+ require_relative '../pgtk'
9
+ require_relative 'wire'
10
+
11
+ # A pool tha spies on another pool.
12
+ # Author:: Yegor Bugayenko (yegor256@gmail.com)
13
+ # Copyright:: Copyright (c) 2019-2025 Yegor Bugayenko
14
+ # License:: MIT
15
+ class Pgtk::Spy
16
+ def initialize(pool, &block)
17
+ @pool = pool
18
+ @block = block
19
+ end
20
+
21
+ def version
22
+ @pool.version
23
+ end
24
+
25
+ def exec(sql, *args)
26
+ start = Time.now
27
+ ret = @pool.exec(sql, *args)
28
+ @block&.call(sql.is_a?(Array) ? sql.join(' ') : sql, Time.now - start)
29
+ ret
30
+ end
31
+
32
+ def transaction
33
+ @pool.transaction do |t|
34
+ yield Pgtk::Spy.new(t, &@block)
35
+ end
36
+ end
37
+ end
data/lib/pgtk/version.rb CHANGED
@@ -1,24 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2025 Yegor Bugayenko
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the 'Software'), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  require_relative '../pgtk'
24
7
 
@@ -28,5 +11,5 @@ require_relative '../pgtk'
28
11
  # License:: MIT
29
12
  module Pgtk
30
13
  # Current version of the library.
31
- VERSION = '0.12.1'
14
+ VERSION = '0.13.1'
32
15
  end
data/lib/pgtk/wire.rb CHANGED
@@ -1,24 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2025 Yegor Bugayenko
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the 'Software'), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  require 'pg'
24
7
  require 'uri'
data/lib/pgtk.rb CHANGED
@@ -1,24 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2025 Yegor Bugayenko
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the 'Software'), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  # Pgtk main module.
24
7
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
data/pgtk.gemspec CHANGED
@@ -1,24 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2025 Yegor Bugayenko
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the 'Software'), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  require 'English'
24
7
 
data/resources/pom.xml CHANGED
@@ -1,26 +1,7 @@
1
1
  <?xml version="1.0"?>
2
2
  <!--
3
- (The MIT License)
4
-
5
- Copyright (c) 2019-2025 Yegor Bugayenko
6
-
7
- Permission is hereby granted, free of charge, to any person obtaining a copy
8
- of this software and associated documentation files (the 'Software'), to deal
9
- in the Software without restriction, including without limitation the rights
10
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- copies of the Software, and to permit persons to whom the Software is
12
- furnished to do so, subject to the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be included in all
15
- copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- SOFTWARE.
3
+ * SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
4
+ * SPDX-License-Identifier: MIT
24
5
  -->
25
6
  <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26
7
  <modelVersion>4.0.0</modelVersion>
@@ -29,8 +10,8 @@ SOFTWARE.
29
10
  <version>0.0.0</version>
30
11
  <packaging>pom</packaging>
31
12
  <properties>
32
- <postgresql.version>42.7.4</postgresql.version>
33
- <liquibase.version>4.30.0</liquibase.version>
13
+ <postgresql.version>42.7.5</postgresql.version>
14
+ <liquibase.version>4.31.1</liquibase.version>
34
15
  </properties>
35
16
  <dependencies>
36
17
  <dependency>
data/test/test__helper.rb CHANGED
@@ -1,24 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2025 Yegor Bugayenko
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the 'Software'), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  $stdout.sync = true
24
7