pgtk 0.18.1 → 0.18.2

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: 82c748e501e64031a5809d1bf9de16e1a84c34355e900d7402d6f1e0041f958a
4
- data.tar.gz: 493f523e2c414d38448b8d64d1a3b32a22c1fb8aed1f502955759907747b1091
3
+ metadata.gz: ffaf4c44a63b471c11803b43d5e9774a25d7d261136f69e9d4a03bd99b4bd2f7
4
+ data.tar.gz: d3a3eee3b145b4edf8f4b3cf715efcb668b6d2b4c56574f8f23542484128b3a2
5
5
  SHA512:
6
- metadata.gz: 41553fc9dc6f702ff4c04ce2165077dd172afc76d585b72957321daa7a9608082705d86e48393d469f58c87d92a92dbd36e915d088e73ea68d7530c9090c5053
7
- data.tar.gz: 7d064ca8fa4c3ab44d7b536a5eb63284badc44b7643da8451be5839e0fa5fe791254b0a9f119a69e3456cf7038d14b732870725eed658cb64c061b3ff9a3990c
6
+ metadata.gz: 30982738a66af8cc678f7833a8497ff77d4745bf2f54dda935b4929e2d19d413f6c30ff37228aae42ce98537fa78649b45d0811e2d393ff95f6d00f3b3c799b3
7
+ data.tar.gz: 030365d8a107dae67836b4f27cb6abef084c0d7bc9f60cbc1f8cc7e84b962cebd4b6eb3262d0a916b1a6bc8a0936b58a2d1196fb00c4e832621f6e04ece59bb3
data/Gemfile CHANGED
@@ -15,7 +15,7 @@ gem 'rubocop-minitest', '~>0.38', require: false
15
15
  gem 'rubocop-performance', '~>1.25', require: false
16
16
  gem 'rubocop-rake', '~>0.7', require: false
17
17
  gem 'simplecov', '~>0.22', require: false
18
- gem 'simplecov-cobertura', '~>2.1'
18
+ gem 'simplecov-cobertura', '~>3.0'
19
19
  gem 'timeout', '~>0.4'
20
20
  gem 'xcop', '~>0.8', require: false
21
21
  gem 'yard', '~>0.9', require: false
data/Gemfile.lock CHANGED
@@ -22,49 +22,50 @@ GEM
22
22
  concurrent-ruby (1.3.5)
23
23
  differ (0.1.2)
24
24
  docile (1.4.1)
25
- elapsed (0.1.0)
26
- loog (> 0)
27
- tago (> 0)
28
- joined (0.3.0)
29
- json (2.12.2)
25
+ elapsed (0.2.0)
26
+ loog (~> 0.6)
27
+ tago (~> 0.1)
28
+ joined (0.4.0)
29
+ json (2.15.1)
30
30
  language_server-protocol (3.17.0.5)
31
31
  lint_roller (1.1.0)
32
32
  logger (1.7.0)
33
33
  loog (0.6.1)
34
34
  logger (~> 1.0)
35
- minitest (5.25.5)
35
+ minitest (5.26.0)
36
36
  minitest-reporters (1.7.1)
37
37
  ansi
38
38
  builder
39
39
  minitest (>= 5.0)
40
40
  ruby-progressbar
41
- nokogiri (1.18.8-arm64-darwin)
41
+ nokogiri (1.18.10-arm64-darwin)
42
42
  racc (~> 1.4)
43
- nokogiri (1.18.8-x64-mingw-ucrt)
43
+ nokogiri (1.18.10-x64-mingw-ucrt)
44
44
  racc (~> 1.4)
45
- nokogiri (1.18.8-x86_64-linux-gnu)
45
+ nokogiri (1.18.10-x86_64-linux-gnu)
46
46
  racc (~> 1.4)
47
47
  parallel (1.27.0)
48
- parser (3.3.8.0)
48
+ parser (3.3.9.0)
49
49
  ast (~> 2.4.1)
50
50
  racc
51
- pg (1.5.9)
52
- pg (1.5.9-x64-mingw-ucrt)
53
- prism (1.4.0)
51
+ pg (1.6.2-arm64-darwin)
52
+ pg (1.6.2-x64-mingw-ucrt)
53
+ pg (1.6.2-x86_64-linux)
54
+ prism (1.6.0)
54
55
  qbash (0.4.5)
55
56
  backtrace (> 0)
56
57
  elapsed (> 0)
57
58
  loog (> 0)
58
59
  tago (> 0)
59
60
  racc (1.8.1)
60
- rack (3.1.16)
61
+ rack (3.2.3)
61
62
  rainbow (3.1.1)
62
63
  rake (13.3.0)
63
- random-port (0.7.5)
64
- tago (> 0)
65
- regexp_parser (2.10.0)
66
- rexml (3.4.1)
67
- rubocop (1.77.0)
64
+ random-port (0.7.6)
65
+ tago (~> 0.0)
66
+ regexp_parser (2.11.3)
67
+ rexml (3.4.4)
68
+ rubocop (1.81.6)
68
69
  json (~> 2.3)
69
70
  language_server-protocol (~> 3.17.0.2)
70
71
  lint_roller (~> 1.1.0)
@@ -72,20 +73,20 @@ GEM
72
73
  parser (>= 3.3.0.2)
73
74
  rainbow (>= 2.2.2, < 4.0)
74
75
  regexp_parser (>= 2.9.3, < 3.0)
75
- rubocop-ast (>= 1.45.1, < 2.0)
76
+ rubocop-ast (>= 1.47.1, < 2.0)
76
77
  ruby-progressbar (~> 1.7)
77
78
  unicode-display_width (>= 2.4.0, < 4.0)
78
- rubocop-ast (1.45.1)
79
+ rubocop-ast (1.47.1)
79
80
  parser (>= 3.3.7.2)
80
81
  prism (~> 1.4)
81
- rubocop-minitest (0.38.1)
82
+ rubocop-minitest (0.38.2)
82
83
  lint_roller (~> 1.1)
83
84
  rubocop (>= 1.75.0, < 2.0)
84
85
  rubocop-ast (>= 1.38.0, < 2.0)
85
- rubocop-performance (1.25.0)
86
+ rubocop-performance (1.26.1)
86
87
  lint_roller (~> 1.1)
87
88
  rubocop (>= 1.75.0, < 2.0)
88
- rubocop-ast (>= 1.38.0, < 2.0)
89
+ rubocop-ast (>= 1.47.1, < 2.0)
89
90
  rubocop-rake (0.7.1)
90
91
  lint_roller (~> 1.1)
91
92
  rubocop (>= 1.72.1)
@@ -94,17 +95,17 @@ GEM
94
95
  docile (~> 1.1)
95
96
  simplecov-html (~> 0.11)
96
97
  simplecov_json_formatter (~> 0.1)
97
- simplecov-cobertura (2.1.0)
98
+ simplecov-cobertura (3.1.0)
98
99
  rexml
99
100
  simplecov (~> 0.19)
100
- simplecov-html (0.13.1)
101
+ simplecov-html (0.13.2)
101
102
  simplecov_json_formatter (0.1.4)
102
103
  slop (4.10.1)
103
- tago (0.1.0)
104
+ tago (0.3.0)
104
105
  timeout (0.4.3)
105
- unicode-display_width (3.1.4)
106
- unicode-emoji (~> 4.0, >= 4.0.4)
107
- unicode-emoji (4.0.4)
106
+ unicode-display_width (3.2.0)
107
+ unicode-emoji (~> 4.1)
108
+ unicode-emoji (4.1.0)
108
109
  xcop (0.8.0)
109
110
  differ (~> 0.1.2)
110
111
  nokogiri (~> 1.10)
@@ -130,7 +131,7 @@ DEPENDENCIES
130
131
  rubocop-performance (~> 1.25)
131
132
  rubocop-rake (~> 0.7)
132
133
  simplecov (~> 0.22)
133
- simplecov-cobertura (~> 2.1)
134
+ simplecov-cobertura (~> 3.0)
134
135
  timeout (~> 0.4)
135
136
  xcop (~> 0.8)
136
137
  yard (~> 0.9)
data/lib/pgtk/stash.rb CHANGED
@@ -44,9 +44,11 @@ class Pgtk::Stash
44
44
  # @param [Integer] result Should be 0 for text results, 1 for binary
45
45
  # @return [PG::Result] Query result
46
46
  def exec(query, params = [], result = 0)
47
+ mods = %w[INSERT DELETE UPDATE LOCK VACUUM TRANSACTION COMMIT ROLLBACK REINDEX TRUNCATE CREATE ALTER DROP SET]
48
+ alts = ['UPDATE', 'INSERT INTO', 'DELETE FROM', 'TRUNCATE', 'ALTER TABLE', 'DROP TABLE']
47
49
  pure = (query.is_a?(Array) ? query.join(' ') : query).gsub(/\s+/, ' ').strip
48
- if /(^|\s)(INSERT|DELETE|UPDATE|LOCK)\s/.match?(pure) || /(^|\s)pg_[a-z_]+\(/.match?(pure)
49
- tables = pure.scan(/(?<=^|\s)(?:UPDATE|INSERT INTO|DELETE FROM|TRUNCATE)\s([a-z]+)(?=[^a-z]|$)/).map(&:first).uniq
50
+ if Regexp.new("(^|\\s)(#{mods.join('|')})(\\s|$)").match?(pure) || /(^|\s)pg_[a-z_]+\(/.match?(pure)
51
+ tables = pure.scan(Regexp.new("(?<=^|\\s)(?:#{alts.join('|')})\\s([a-z]+)(?=[^a-z]|$)")).map(&:first).uniq
50
52
  ret = @pgsql.exec(pure, params, result)
51
53
  @entrance.with_write_lock do
52
54
  tables.each do |t|
@@ -62,7 +64,7 @@ class Pgtk::Stash
62
64
  ret = @stash[:queries][pure][key]
63
65
  if ret.nil?
64
66
  ret = @pgsql.exec(pure, params, result)
65
- if pure.start_with?('SELECT ') && !pure.include?(' NOW() ')
67
+ unless pure.include?(' NOW() ')
66
68
  @entrance.with_write_lock do
67
69
  @stash[:queries][pure] ||= {}
68
70
  @stash[:queries][pure][key] = ret
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.18.1'
14
+ VERSION = '0.18.2'
15
15
  end
data/pgtk.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.authors = ['Yegor Bugayenko']
23
23
  s.email = 'yegor256@gmail.com'
24
24
  s.homepage = 'https://github.com/yegor256/pgtk'
25
- s.files = `git ls-files`.split($RS)
25
+ s.files = `git ls-files | grep -v -E '^(test/|\\.|renovate)'`.split($RS)
26
26
  s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
27
27
  s.rdoc_options = ['--charset=UTF-8']
28
28
  s.extra_rdoc_files = ['README.md', 'LICENSE.txt']
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.7</postgresql.version>
14
- <liquibase.version>4.32.0</liquibase.version>
13
+ <postgresql.version>42.7.8</postgresql.version>
14
+ <liquibase.version>5.0.1</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.18.1
4
+ version: 0.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
@@ -145,24 +145,6 @@ extra_rdoc_files:
145
145
  - LICENSE.txt
146
146
  - README.md
147
147
  files:
148
- - ".0pdd.yml"
149
- - ".gitattributes"
150
- - ".github/workflows/actionlint.yml"
151
- - ".github/workflows/codecov.yml"
152
- - ".github/workflows/copyrights.yml"
153
- - ".github/workflows/license.yml"
154
- - ".github/workflows/markdown-lint.yml"
155
- - ".github/workflows/pdd.yml"
156
- - ".github/workflows/rake.yml"
157
- - ".github/workflows/reuse.yml"
158
- - ".github/workflows/typos.yml"
159
- - ".github/workflows/xcop.yml"
160
- - ".github/workflows/yamllint.yml"
161
- - ".gitignore"
162
- - ".pdd"
163
- - ".rubocop.yml"
164
- - ".rultor.yml"
165
- - ".yamllint.yml"
166
148
  - Gemfile
167
149
  - Gemfile.lock
168
150
  - LICENSE.txt
@@ -182,18 +164,9 @@ files:
182
164
  - lib/pgtk/version.rb
183
165
  - lib/pgtk/wire.rb
184
166
  - pgtk.gemspec
185
- - renovate.json
186
167
  - resources/pom.xml
187
168
  - test-resources/2019/01-test.xml
188
169
  - test-resources/master.xml
189
- - test/test__helper.rb
190
- - test/test_impatient.rb
191
- - test/test_liquibase_task.rb
192
- - test/test_pgsql_task.rb
193
- - test/test_pool.rb
194
- - test/test_retry.rb
195
- - test/test_stash.rb
196
- - test/test_wire.rb
197
170
  homepage: https://github.com/yegor256/pgtk
198
171
  licenses:
199
172
  - MIT
@@ -214,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
187
  - !ruby/object:Gem::Version
215
188
  version: '0'
216
189
  requirements: []
217
- rubygems_version: 3.6.7
190
+ rubygems_version: 3.6.9
218
191
  specification_version: 4
219
192
  summary: PostgreSQL ToolKit for Ruby apps
220
193
  test_files: []
data/.0pdd.yml DELETED
@@ -1,12 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
2
- # SPDX-License-Identifier: MIT
3
- ---
4
- errors:
5
- - yegor256@gmail.com
6
- # alerts:
7
- # github:
8
- # - yegor256
9
-
10
- tags:
11
- - pdd
12
- - bug
data/.gitattributes DELETED
@@ -1,7 +0,0 @@
1
- # Check out all text files in UNIX format, with LF as end of line
2
- # Don't change this file. If you have any ideas about it, please
3
- # submit a separate issue about it and we'll discuss.
4
-
5
- * text=auto eol=lf
6
- *.rb ident
7
- *.xml ident
@@ -1,25 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
2
- # SPDX-License-Identifier: MIT
3
- ---
4
- # yamllint disable rule:line-length
5
- name: actionlint
6
- 'on':
7
- push:
8
- branches:
9
- - master
10
- pull_request:
11
- branches:
12
- - master
13
- jobs:
14
- actionlint:
15
- timeout-minutes: 15
16
- runs-on: ubuntu-24.04
17
- steps:
18
- - uses: actions/checkout@v4
19
- - name: Download actionlint
20
- id: get_actionlint
21
- run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
22
- shell: bash
23
- - name: Check workflow files
24
- run: ${{ steps.get_actionlint.outputs.executable }} -color
25
- shell: bash
@@ -1,31 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
2
- # SPDX-License-Identifier: MIT
3
- ---
4
- # yamllint disable rule:line-length
5
- name: codecov
6
- 'on':
7
- push:
8
- branches:
9
- - master
10
- jobs:
11
- codecov:
12
- timeout-minutes: 15
13
- runs-on: ubuntu-24.04
14
- steps:
15
- - uses: actions/checkout@v4
16
- - uses: ruby/setup-ruby@v1
17
- with:
18
- ruby-version: 3.3
19
- bundler-cache: true
20
- - run: |
21
- sudo apt-get update --yes --fix-missing
22
- sudo apt-get install --yes libpq-dev postgresql-client postgresql
23
- sudo ln -s "$(realpath /usr/lib/postgresql/*/bin/initdb)" /bin/initdb
24
- sudo ln -s "$(realpath /usr/lib/postgresql/*/bin/postgres)" /bin/postgres
25
- sudo ln -s "$(realpath /usr/lib/postgresql/*/bin/pg_ctl)" /bin/pg_ctl
26
- - run: bundle config set --global path "$(pwd)/vendor/bundle"
27
- - run: bundle install --no-color
28
- - run: bundle exec rake
29
- - uses: codecov/codecov-action@v5
30
- with:
31
- token: ${{ secrets.CODECOV_TOKEN }}
@@ -1,15 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
2
- # SPDX-License-Identifier: MIT
3
- ---
4
- # yamllint disable rule:line-length
5
- name: copyrights
6
- 'on':
7
- push:
8
- pull_request:
9
- jobs:
10
- copyrights:
11
- timeout-minutes: 15
12
- runs-on: ubuntu-24.04
13
- steps:
14
- - uses: actions/checkout@v4
15
- - uses: yegor256/copyrights-action@0.0.12
@@ -1,42 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
2
- # SPDX-License-Identifier: MIT
3
- ---
4
- # yamllint disable rule:line-length
5
- name: license
6
- 'on':
7
- push:
8
- branches:
9
- - master
10
- pull_request:
11
- branches:
12
- - master
13
- jobs:
14
- license:
15
- timeout-minutes: 15
16
- runs-on: ubuntu-24.04
17
- steps:
18
- - uses: actions/checkout@v4
19
- - shell: bash
20
- run: |
21
- header="Copyright (c) 2019-$(date +%Y) Yegor Bugayenko"
22
- failed="false"
23
- while IFS= read -r file; do
24
- if ! grep -q "${header}" "${file}"; then
25
- failed="true"
26
- echo "⚠️ Copyright header is not found in: ${file}"
27
- else
28
- echo "File looks good: ${file}"
29
- fi
30
- done < <(find . -type f \( \
31
- -name "Dockerfile" -o \
32
- -name "LICENSE.txt" -o \
33
- -name "Makefile" -o \
34
- -name "Rakefile" -o \
35
- -name "*.sh" -o \
36
- -name "*.rb" -o \
37
- -name "*.fe" -o \
38
- -name "*.yml" \
39
- \) -print)
40
- if [ "${failed}" = "true" ]; then
41
- exit 1
42
- fi
@@ -1,23 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
2
- # SPDX-License-Identifier: MIT
3
- ---
4
- # yamllint disable rule:line-length
5
- name: markdown-lint
6
- 'on':
7
- push:
8
- branches:
9
- - master
10
- pull_request:
11
- branches:
12
- - master
13
- paths-ignore: ['paper/**', 'sandbox/**']
14
- concurrency:
15
- group: markdown-lint-${{ github.ref }}
16
- cancel-in-progress: true
17
- jobs:
18
- markdown-lint:
19
- timeout-minutes: 15
20
- runs-on: ubuntu-24.04
21
- steps:
22
- - uses: actions/checkout@v4
23
- - uses: DavidAnson/markdownlint-cli2-action@v20.0.0
@@ -1,19 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
2
- # SPDX-License-Identifier: MIT
3
- ---
4
- # yamllint disable rule:line-length
5
- name: pdd
6
- 'on':
7
- push:
8
- branches:
9
- - master
10
- pull_request:
11
- branches:
12
- - master
13
- jobs:
14
- pdd:
15
- timeout-minutes: 15
16
- runs-on: ubuntu-24.04
17
- steps:
18
- - uses: actions/checkout@v4
19
- - uses: volodya-lombrozo/pdd-action@master
@@ -1,34 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
2
- # SPDX-License-Identifier: MIT
3
- ---
4
- # yamllint disable rule:line-length
5
- name: rake
6
- 'on':
7
- push:
8
- branches:
9
- - master
10
- pull_request:
11
- branches:
12
- - master
13
- jobs:
14
- rake:
15
- strategy:
16
- matrix:
17
- os: [ubuntu-24.04]
18
- ruby: [3.3]
19
- runs-on: ${{ matrix.os }}
20
- steps:
21
- - uses: actions/checkout@v4
22
- - run: |
23
- sudo apt-get update --yes --fix-missing
24
- sudo apt-get install --yes libpq-dev postgresql-client postgresql
25
- sudo ln -s "$(realpath /usr/lib/postgresql/*/bin/initdb)" /bin/initdb
26
- sudo ln -s "$(realpath /usr/lib/postgresql/*/bin/postgres)" /bin/postgres
27
- sudo ln -s "$(realpath /usr/lib/postgresql/*/bin/pg_ctl)" /bin/pg_ctl
28
- - uses: ruby/setup-ruby@v1
29
- with:
30
- ruby-version: ${{ matrix.ruby }}
31
- bundler-cache: true
32
- - run: bundle config set --global path "$(pwd)/vendor/bundle"
33
- - run: bundle install --no-color
34
- - run: bundle exec rake
@@ -1,19 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
2
- # SPDX-License-Identifier: MIT
3
- ---
4
- # yamllint disable rule:line-length
5
- name: reuse
6
- 'on':
7
- push:
8
- branches:
9
- - master
10
- pull_request:
11
- branches:
12
- - master
13
- jobs:
14
- reuse:
15
- timeout-minutes: 15
16
- runs-on: ubuntu-24.04
17
- steps:
18
- - uses: actions/checkout@v4
19
- - uses: fsfe/reuse-action@v5
@@ -1,19 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
2
- # SPDX-License-Identifier: MIT
3
- ---
4
- # yamllint disable rule:line-length
5
- name: typos
6
- 'on':
7
- push:
8
- branches:
9
- - master
10
- pull_request:
11
- branches:
12
- - master
13
- jobs:
14
- typos:
15
- timeout-minutes: 15
16
- runs-on: ubuntu-24.04
17
- steps:
18
- - uses: actions/checkout@v4
19
- - uses: crate-ci/typos@v1.34.0
@@ -1,21 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
2
- # SPDX-License-Identifier: MIT
3
- ---
4
- # yamllint disable rule:line-length
5
- name: xcop
6
- "on":
7
- push:
8
- branches:
9
- - master
10
- pull_request:
11
- branches:
12
- - master
13
- jobs:
14
- xcop:
15
- timeout-minutes: 15
16
- runs-on: ubuntu-24.04
17
- steps:
18
- - uses: actions/checkout@v4
19
- - uses: g4s8/xcop-action@master
20
- with:
21
- files: '**/*.xml'
@@ -1,21 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
2
- # SPDX-License-Identifier: MIT
3
- ---
4
- # yamllint disable rule:line-length
5
- name: yamllint
6
- 'on':
7
- push:
8
- branches:
9
- - master
10
- pull_request:
11
- branches:
12
- - master
13
- jobs:
14
- yamllint:
15
- timeout-minutes: 15
16
- runs-on: ubuntu-24.04
17
- steps:
18
- - uses: actions/checkout@v4
19
- - uses: ibiqlik/action-yamllint@v3
20
- with:
21
- config_file: .yamllint.yml
data/.gitignore DELETED
@@ -1,12 +0,0 @@
1
-
2
- .bundle/
3
- .DS_Store
4
- .idea/
5
- .yardoc/
6
- *.gem
7
- **/.claude/settings.local.json
8
- coverage/
9
- doc/
10
- node_modules/
11
- rdoc/
12
- vendor/
data/.pdd DELETED
@@ -1,7 +0,0 @@
1
- --source=.
2
- --verbose
3
- --exclude target/**/*
4
- --exclude coverage/**/*
5
- --rule min-words:20
6
- --rule min-estimate:15
7
- --rule max-estimate:90
data/.rubocop.yml DELETED
@@ -1,39 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
2
- # SPDX-License-Identifier: MIT
3
- ---
4
- AllCops:
5
- Exclude:
6
- - 'bin/**/**'
7
- - 'assets/**/**'
8
- - 'vendor/**/**'
9
- DisplayCopNames: true
10
- TargetRubyVersion: 2.3
11
- SuggestExtensions: false
12
- NewCops: enable
13
- plugins:
14
- - rubocop-rake
15
- - rubocop-minitest
16
- - rubocop-performance
17
- Minitest/EmptyLineBeforeAssertionMethods:
18
- Enabled: false
19
- Style/ClassAndModuleChildren:
20
- Enabled: false
21
- Layout/EndOfLine:
22
- EnforcedStyle: lf
23
- Metrics/BlockLength:
24
- Max: 100
25
- Layout/EmptyLineAfterGuardClause:
26
- Enabled: false
27
- Metrics/AbcSize:
28
- Max: 100
29
- Metrics/CyclomaticComplexity:
30
- Max: 20
31
- Metrics/ClassLength:
32
- Max: 200
33
- Metrics/MethodLength:
34
- Max: 100
35
- Metrics/PerceivedComplexity:
36
- Max: 20
37
- Metrics/ParameterLists:
38
- Max: 6
39
- require: []
data/.rultor.yml DELETED
@@ -1,31 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
2
- # SPDX-License-Identifier: MIT
3
- ---
4
- # yamllint disable rule:line-length
5
- docker:
6
- image: yegor256/java
7
- assets:
8
- rubygems.yml: yegor256/home#assets/rubygems.yml
9
- install: |
10
- sudo apt-get update --yes --fix-missing
11
- sudo apt-get install --yes libpq-dev postgresql-client postgresql
12
- sudo ln -s "$(realpath /usr/lib/postgresql/*/bin/initdb)" /bin/initdb
13
- sudo ln -s "$(realpath /usr/lib/postgresql/*/bin/postgres)" /bin/postgres
14
- sudo ln -s "$(realpath /usr/lib/postgresql/*/bin/pg_ctl)" /bin/pg_ctl
15
- pdd -f /dev/null
16
- bundle install --no-color
17
- release:
18
- pre: false
19
- script: |-
20
- [[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
21
- bundle exec rake
22
- rm -rf *.gem
23
- sed -i "s/0\.0\.0/${tag}/g" lib/pgtk/version.rb
24
- git add lib/pgtk/version.rb
25
- git commit -m "version set to ${tag}"
26
- gem build pgtk.gemspec
27
- chmod 0600 ../rubygems.yml
28
- gem push *.gem --config-file ../rubygems.yml
29
- merge:
30
- script: |-
31
- bundle exec rake
data/.yamllint.yml DELETED
@@ -1,7 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
2
- # SPDX-License-Identifier: MIT
3
- ---
4
- rules:
5
- line-length:
6
- max: 200
7
- allow-non-breakable-words: true