zache 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: b87b15cc2d21dd690255c612d9e3ea5d28f1b4788cfa19c239f3bcc6b29144e1
4
- data.tar.gz: ea6a615b74dbec67e97d1c8d5db0b467380030d01635964e25c031e13e490fcc
3
+ metadata.gz: c247c0f146ef35562b8d56169fdb69ef0a9a02796d0e49dfb6c8ed83094dfd24
4
+ data.tar.gz: d0b659e1315eee6f19b6c708da5b49073d3e0d9a5d5809a424c9b641d330e992
5
5
  SHA512:
6
- metadata.gz: 6e9c8cb157905d795cb96650b8f5d71cb79b5b0575e03863df23df485c9e708f4e09d552ee0330b4f78fa373c14ef232b16b574d3afb0a310ad02d2f51732f34
7
- data.tar.gz: 97d726f208f8ac511b8ecfac2b9602bae716bec22d0b3e56e9bc77c36ccf97efaaee73ccb4d9057f071f26ea52da9afafb6eafd88f9c2e6c46f2d1c561da3e9c
6
+ metadata.gz: 23c14258f92e749ee9876b4fae20274a954d71a34a95b427dafd9bef201d17c91c1731d1733345ed564f9e7d74e340c68d9325127a55ab73e5d654ac8d5cb866
7
+ data.tar.gz: 9232c93c2027dbe83015974315e5c609f3392216c77a96f465cc13f0ddd309fc11d4147234ff23892037619491bb037bc466e28f0075a8be424ef60c28014327
data/.0pdd.yml CHANGED
@@ -1,3 +1,6 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+ ---
1
4
  errors:
2
5
  - yegor256@gmail.com
3
6
  # alerts:
@@ -0,0 +1,25 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-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,20 +1,25 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
1
3
  ---
4
+ # yamllint disable rule:line-length
2
5
  name: codecov
3
- on:
6
+ 'on':
4
7
  push:
5
8
  branches:
6
9
  - master
7
10
  jobs:
8
11
  codecov:
9
- runs-on: ubuntu-20.04
12
+ timeout-minutes: 15
13
+ runs-on: ubuntu-24.04
10
14
  steps:
11
- - uses: actions/checkout@v3
15
+ - uses: actions/checkout@v4
12
16
  - uses: actions/setup-ruby@v1
13
17
  with:
14
- ruby-version: 3.0
15
- - run: bundle update
18
+ ruby-version: 3.3
19
+ bundler-cache: true
20
+ - run: bundle config set --global path "$(pwd)/vendor/bundle"
21
+ - run: bundle install --no-color
16
22
  - run: bundle exec rake
17
- - uses: codecov/codecov-action@v3
23
+ - uses: codecov/codecov-action@v5
18
24
  with:
19
- file: coverage/.resultset.json
20
- fail_ci_if_error: true
25
+ token: ${{ secrets.CODECOV_TOKEN }}
@@ -0,0 +1,15 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-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.8
@@ -0,0 +1,42 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-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) 2018-$(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
@@ -0,0 +1,23 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-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: articulate/actions-markdownlint@v1
@@ -1,6 +1,9 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
1
3
  ---
4
+ # yamllint disable rule:line-length
2
5
  name: pdd
3
- "on":
6
+ 'on':
4
7
  push:
5
8
  branches:
6
9
  - master
@@ -9,7 +12,8 @@ name: pdd
9
12
  - master
10
13
  jobs:
11
14
  pdd:
12
- runs-on: ubuntu-20.04
15
+ timeout-minutes: 15
16
+ runs-on: ubuntu-24.04
13
17
  steps:
14
- - uses: actions/checkout@v3
15
- - uses: g4s8/pdd-action@master
18
+ - uses: actions/checkout@v4
19
+ - uses: volodya-lombrozo/pdd-action@master
@@ -1,6 +1,9 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
1
3
  ---
4
+ # yamllint disable rule:line-length
2
5
  name: rake
3
- on:
6
+ 'on':
4
7
  push:
5
8
  branches:
6
9
  - master
@@ -9,16 +12,17 @@ on:
9
12
  - master
10
13
  jobs:
11
14
  test:
12
- name: test
13
15
  strategy:
14
16
  matrix:
15
- os: [ubuntu-20.04, macos-12]
16
- ruby: [3.0, 2.7]
17
+ os: [ubuntu-24.04, macos-15]
18
+ ruby: [3.3]
17
19
  runs-on: ${{ matrix.os }}
18
20
  steps:
19
- - uses: actions/checkout@v3
21
+ - uses: actions/checkout@v4
20
22
  - uses: ruby/setup-ruby@v1
21
23
  with:
22
24
  ruby-version: ${{ matrix.ruby }}
23
- - run: bundle update
25
+ bundler-cache: true
26
+ - run: bundle config set --global path "$(pwd)/vendor/bundle"
27
+ - run: bundle install --no-color
24
28
  - run: bundle exec rake
@@ -0,0 +1,19 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-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,4 +1,7 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
1
3
  ---
4
+ # yamllint disable rule:line-length
2
5
  name: xcop
3
6
  "on":
4
7
  push:
@@ -9,9 +12,10 @@ name: xcop
9
12
  - master
10
13
  jobs:
11
14
  xcop:
12
- runs-on: ubuntu-20.04
15
+ timeout-minutes: 15
16
+ runs-on: ubuntu-24.04
13
17
  steps:
14
- - uses: actions/checkout@v3
18
+ - uses: actions/checkout@v4
15
19
  - uses: g4s8/xcop-action@master
16
20
  with:
17
21
  files: '**/*.xml'
@@ -0,0 +1,19 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-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
data/.gitignore CHANGED
@@ -1,7 +1,10 @@
1
- Gemfile.lock
2
1
  *.gem
3
- .bundle/
4
2
  .DS_Store
5
- rdoc/
3
+ .bundle/
6
4
  .idea/
5
+ .yardoc/
7
6
  coverage/
7
+ doc/
8
+ node_modules/
9
+ rdoc/
10
+ vendor/
data/.rubocop.yml CHANGED
@@ -1,24 +1,39 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+ ---
1
4
  AllCops:
5
+ Exclude:
6
+ - 'bin/**/*'
7
+ - 'assets/**/*'
8
+ - 'vendor/**/**'
2
9
  DisplayCopNames: true
3
10
  TargetRubyVersion: 2.5
4
11
  NewCops: enable
5
12
  SuggestExtensions: false
6
-
7
- Metrics/ClassLength:
8
- Exclude:
9
- - 'test/*.rb'
13
+ plugins:
14
+ - rubocop-rake
15
+ - rubocop-minitest
16
+ - rubocop-performance
17
+ Minitest/EmptyLineBeforeAssertionMethods:
18
+ Enabled: false
19
+ Minitest/AssertOperator:
20
+ Enabled: false
10
21
  Layout/EmptyLineAfterGuardClause:
11
22
  Enabled: false
12
23
  Layout/MultilineMethodCallIndentation:
13
24
  Enabled: false
25
+ Metrics/ClassLength:
26
+ Max: 300
27
+ Minitest/MultipleAssertions:
28
+ Max: 5
14
29
  Metrics/AbcSize:
15
30
  Max: 30
16
31
  Metrics/MethodLength:
17
32
  Max: 30
18
33
  Metrics/CyclomaticComplexity:
19
- Max: 12
34
+ Max: 20
20
35
  Metrics/PerceivedComplexity:
21
- Max: 12
36
+ Max: 20
22
37
  Layout/EndOfLine:
23
38
  EnforcedStyle: lf
24
39
  Metrics/BlockLength:
data/.rultor.yml CHANGED
@@ -1,11 +1,16 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+ ---
4
+ # yamllint disable rule:line-length
1
5
  docker:
2
- image: yegor256/rultor-image:1.19.0
6
+ image: yegor256/ruby
3
7
  assets:
4
8
  rubygems.yml: yegor256/home#assets/rubygems.yml
5
9
  install: |
6
10
  pdd -f /dev/null
7
11
  sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"
8
12
  release:
13
+ pre: false
9
14
  script: |-
10
15
  bundle exec rake
11
16
  pdd -f /dev/null
data/Gemfile CHANGED
@@ -1,33 +1,22 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2018-2023 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) 2018-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  source 'https://rubygems.org'
24
7
  gemspec
25
8
 
26
- gem 'concurrent-ruby', '1.2.2', require: false
27
- gem 'minitest', '5.19.0', require: false
28
- gem 'rake', '13.0.6', require: false
29
- gem 'rdoc', '6.5.0', require: false
30
- gem 'rubocop', '1.55.1', require: false
31
- gem 'rubocop-rspec', '2.23.0', require: false
32
- gem 'simplecov', '0.22.0', require: false
33
- gem 'threads', '0.3.0', require: false
9
+ gem 'concurrent-ruby', '~>1.3', require: false
10
+ gem 'minitest', '~>5.25', require: false
11
+ gem 'minitest-reporters', '~>1.7', require: false
12
+ gem 'os', '>0', require: false
13
+ gem 'qbash', '>0', require: false
14
+ gem 'rake', '~>13.2', require: false
15
+ gem 'rubocop', '~>1.75', require: false
16
+ gem 'rubocop-minitest', '>0', require: false
17
+ gem 'rubocop-performance', '>0', require: false
18
+ gem 'rubocop-rake', '>0', require: false
19
+ gem 'simplecov', '~>0.22', require: false
20
+ gem 'simplecov-cobertura', '~>2.1', require: false
21
+ gem 'threads', '~>0.4', require: false
22
+ gem 'yard', '~>0.9', require: false
data/Gemfile.lock ADDED
@@ -0,0 +1,115 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ zache (0.0.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ansi (1.5.0)
10
+ ast (2.4.3)
11
+ backtrace (0.4.0)
12
+ builder (3.3.0)
13
+ concurrent-ruby (1.3.5)
14
+ docile (1.4.1)
15
+ elapsed (0.0.1)
16
+ loog (> 0)
17
+ tago (> 0)
18
+ json (2.10.2)
19
+ language_server-protocol (3.17.0.4)
20
+ lint_roller (1.1.0)
21
+ loog (0.6.0)
22
+ minitest (5.25.5)
23
+ minitest-reporters (1.7.1)
24
+ ansi
25
+ builder
26
+ minitest (>= 5.0)
27
+ ruby-progressbar
28
+ os (1.1.4)
29
+ parallel (1.26.3)
30
+ parser (3.3.7.4)
31
+ ast (~> 2.4.1)
32
+ racc
33
+ prism (1.4.0)
34
+ qbash (0.4.0)
35
+ backtrace (> 0)
36
+ elapsed (> 0)
37
+ loog (> 0)
38
+ tago (> 0)
39
+ racc (1.8.1)
40
+ rainbow (3.1.1)
41
+ rake (13.2.1)
42
+ regexp_parser (2.10.0)
43
+ rexml (3.4.1)
44
+ rubocop (1.75.2)
45
+ json (~> 2.3)
46
+ language_server-protocol (~> 3.17.0.2)
47
+ lint_roller (~> 1.1.0)
48
+ parallel (~> 1.10)
49
+ parser (>= 3.3.0.2)
50
+ rainbow (>= 2.2.2, < 4.0)
51
+ regexp_parser (>= 2.9.3, < 3.0)
52
+ rubocop-ast (>= 1.44.0, < 2.0)
53
+ ruby-progressbar (~> 1.7)
54
+ unicode-display_width (>= 2.4.0, < 4.0)
55
+ rubocop-ast (1.44.1)
56
+ parser (>= 3.3.7.2)
57
+ prism (~> 1.4)
58
+ rubocop-minitest (0.38.0)
59
+ lint_roller (~> 1.1)
60
+ rubocop (>= 1.75.0, < 2.0)
61
+ rubocop-ast (>= 1.38.0, < 2.0)
62
+ rubocop-performance (1.25.0)
63
+ lint_roller (~> 1.1)
64
+ rubocop (>= 1.75.0, < 2.0)
65
+ rubocop-ast (>= 1.38.0, < 2.0)
66
+ rubocop-rake (0.7.1)
67
+ lint_roller (~> 1.1)
68
+ rubocop (>= 1.72.1)
69
+ ruby-progressbar (1.13.0)
70
+ simplecov (0.22.0)
71
+ docile (~> 1.1)
72
+ simplecov-html (~> 0.11)
73
+ simplecov_json_formatter (~> 0.1)
74
+ simplecov-cobertura (2.1.0)
75
+ rexml
76
+ simplecov (~> 0.19)
77
+ simplecov-html (0.13.1)
78
+ simplecov_json_formatter (0.1.4)
79
+ tago (0.1.0)
80
+ threads (0.4.1)
81
+ backtrace (~> 0)
82
+ concurrent-ruby (~> 1.0)
83
+ unicode-display_width (3.1.4)
84
+ unicode-emoji (~> 4.0, >= 4.0.4)
85
+ unicode-emoji (4.0.4)
86
+ yard (0.9.37)
87
+
88
+ PLATFORMS
89
+ arm64-darwin-22
90
+ arm64-darwin-23
91
+ arm64-darwin-24
92
+ x64-mingw-ucrt
93
+ x86_64-darwin-20
94
+ x86_64-darwin-21
95
+ x86_64-linux
96
+
97
+ DEPENDENCIES
98
+ concurrent-ruby (~> 1.3)
99
+ minitest (~> 5.25)
100
+ minitest-reporters (~> 1.7)
101
+ os (> 0)
102
+ qbash (> 0)
103
+ rake (~> 13.2)
104
+ rubocop (~> 1.75)
105
+ rubocop-minitest (> 0)
106
+ rubocop-performance (> 0)
107
+ rubocop-rake (> 0)
108
+ simplecov (~> 0.22)
109
+ simplecov-cobertura (~> 2.1)
110
+ threads (~> 0.4)
111
+ yard (~> 0.9)
112
+ zache!
113
+
114
+ BUNDLED WITH
115
+ 2.5.16
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018-2023 Yegor Bugayenko
3
+ Copyright (c) 2018-2025 Yegor Bugayenko
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/LICENSES/MIT.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018-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
13
+ in all 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 NON-INFRINGEMENT. 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.