zold-score 0.4.6 → 0.6.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: 769c801911ea212473ee04a05adc03c69c8a1e07736ba1cd66aade8c1aaa6f66
4
- data.tar.gz: 9344eb2cfab11f3f9be3c0fb56f7c65bd8368ab78424f5f27025ef7398cf57c3
3
+ metadata.gz: dac51b7d65ae8e4850d4fa7377b165f0cc74b1754e07165b1999bbadc6d2c4a5
4
+ data.tar.gz: 2fbf8f49a88f0eec7e91f9bc383eb9d9a4c4e3c184ec3247e8e0860ed78800b2
5
5
  SHA512:
6
- metadata.gz: 835c3b95de4868527ab51f0c0b25e89da143b23e10781a38bc7e54a4e0b2c5a5a05e681d1b8c4d158ac2ffd45f79795060fa299cfe3bccd5d7f7f0bb23e27a4c
7
- data.tar.gz: 1785222f38a0d987fe2210f5016b7807680f4bf7a7f98b5cc9483d5d67d2938d2f772ca65a7ae29162ec96b2c903a3961a7bee915d91d9f01d0c13f2da6cd71d
6
+ metadata.gz: d7419912f9df6476e4c0322449bc32051e8613e5b012941f183f5011c498258f6e634df781ae145e560afbddd9315a9edda5741b84efaa31075c02a70a2d514f
7
+ data.tar.gz: f34c9b86ee7880218632513984815a678db68229313b3dc45ffd9866ffb3222641a1fd4836bd30cd6dd94da0497acb793a248cdfd901e931ea4745e4b782beb7
data/.0pdd.yml CHANGED
@@ -1,3 +1,6 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
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 Zerocracy
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
@@ -0,0 +1,27 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
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: bundle config set --global path "$(pwd)/vendor/bundle"
21
+ - run: bundle install --no-color
22
+ - run: bundle exec rake
23
+ - uses: codecov/codecov-action@v5
24
+ with:
25
+ token: ${{ secrets.CODECOV_TOKEN }}
26
+ files: coverage/.resultset.json
27
+ fail_ci_if_error: true
@@ -0,0 +1,19 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
2
+ # SPDX-License-Identifier: MIT
3
+ ---
4
+ # yamllint disable rule:line-length
5
+ name: copyrights
6
+ 'on':
7
+ push:
8
+ branches:
9
+ - master
10
+ pull_request:
11
+ branches:
12
+ - master
13
+ jobs:
14
+ copyrights:
15
+ timeout-minutes: 15
16
+ runs-on: ubuntu-24.04
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - uses: yegor256/copyrights-action@0.0.12
@@ -0,0 +1,19 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
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
+ jobs:
14
+ markdown-lint:
15
+ timeout-minutes: 15
16
+ runs-on: ubuntu-24.04
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - uses: DavidAnson/markdownlint-cli2-action@v22.0.0
@@ -0,0 +1,19 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
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
@@ -0,0 +1,28 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
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
+ test:
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
+ - uses: ruby/setup-ruby@v1
23
+ with:
24
+ ruby-version: ${{ matrix.ruby }}
25
+ bundler-cache: true
26
+ - run: bundle config set --global path "$(pwd)/vendor/bundle"
27
+ - run: bundle install --no-color
28
+ - run: bundle exec rake
@@ -0,0 +1,19 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
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
@@ -0,0 +1,19 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
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.40.0
@@ -0,0 +1,15 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
2
+ # SPDX-License-Identifier: MIT
3
+ ---
4
+ # yamllint disable rule:line-length
5
+ name: xcop
6
+ 'on':
7
+ push:
8
+ pull_request:
9
+ jobs:
10
+ xcop:
11
+ timeout-minutes: 15
12
+ runs-on: ubuntu-24.04
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: g4s8/xcop-action@master
@@ -0,0 +1,19 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
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,9 +1,14 @@
1
- coverage/
2
- .idea/
3
1
  *.gem
4
2
  .bundle/
3
+ .claude
5
4
  .DS_Store
6
- rdoc/
5
+ .idea/
6
+ .yardoc/
7
+ coverage/
8
+ doc/
7
9
  Gemfile.lock
8
- tmp/
9
10
  lib/score_suffix
11
+ node_modules/
12
+ rdoc/
13
+ tmp/
14
+ vendor/
data/.rubocop.yml CHANGED
@@ -1,7 +1,15 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
2
+ # SPDX-License-Identifier: MIT
3
+ ---
1
4
  AllCops:
2
5
  DisplayCopNames: true
3
6
  TargetRubyVersion: 2.5
4
-
7
+ SuggestExtensions: false
8
+ NewCops: enable
9
+ plugins:
10
+ - rubocop-rake
11
+ - rubocop-minitest
12
+ - rubocop-performance
5
13
  Layout/EmptyLineAfterGuardClause:
6
14
  Enabled: false
7
15
  Layout/EndOfLine:
@@ -16,9 +24,11 @@ Metrics/ClassLength:
16
24
  Max: 180
17
25
  Metrics/ParameterLists:
18
26
  Max: 7
19
- Layout/AlignParameters:
27
+ Layout/ParameterAlignment:
20
28
  Enabled: false
21
29
  Metrics/CyclomaticComplexity:
22
30
  Max: 20
23
31
  Metrics/PerceivedComplexity:
24
32
  Max: 20
33
+ Minitest/EmptyLineBeforeAssertionMethods:
34
+ Enabled: false
data/.rultor.yml CHANGED
@@ -1,12 +1,18 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
2
+ # SPDX-License-Identifier: MIT
3
+ ---
4
+ # yamllint disable rule:line-length
5
+ docker:
6
+ image: yegor256/ruby
1
7
  assets:
2
8
  rubygems.yml: zerocracy/home#assets/rubygems.yml
3
9
  install: |-
4
- export GEM_HOME=~/.ruby
5
- export GEM_PATH=$GEM_HOME:$GEM_PATH
10
+ pdd -f /dev/null
11
+ sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"
6
12
  release:
13
+ pre: false
7
14
  script: |-
8
- bundle install
9
- rake
15
+ bundle exec rake
10
16
  rm -rf *.gem
11
17
  sed -i "s/0\.0\.0/${tag}/g" zold-score.gemspec
12
18
  git add zold-score.gemspec
@@ -14,13 +20,6 @@ release:
14
20
  gem build zold-score.gemspec
15
21
  chmod 0600 ../rubygems.yml
16
22
  gem push *.gem --config-file ../rubygems.yml
17
- commanders:
18
- - yegor256
19
- architect:
20
- - yegor256
21
23
  merge:
22
- commanders: []
23
24
  script: |-
24
- bundle install
25
- rake
26
- deploy: {}
25
+ bundle exec rake
data/.simplecov CHANGED
@@ -1,40 +1,19 @@
1
- # encoding: utf-8
2
- #
3
- # Copyright (c) 2018-2019 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.
1
+ # frozen_string_literal: true
2
+
14
3
  #
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 NONINFINGEMENT. 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.
4
+ # SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy
5
+ # SPDX-License-Identifier: MIT
22
6
 
23
- if Gem.win_platform? then
24
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
25
- SimpleCov::Formatter::HTMLFormatter
26
- ]
27
- SimpleCov.start do
28
- add_filter "/test/"
29
- add_filter "/features/"
30
- end
31
- else
32
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
33
- [SimpleCov::Formatter::HTMLFormatter]
34
- )
35
- SimpleCov.start do
36
- add_filter "/test/"
37
- add_filter "/features/"
38
- # minimum_coverage 30
39
- end
7
+ SimpleCov.formatter = if Gem.win_platform?
8
+ SimpleCov::Formatter::MultiFormatter[
9
+ SimpleCov::Formatter::HTMLFormatter
10
+ ]
11
+ else
12
+ SimpleCov::Formatter::MultiFormatter.new(
13
+ [SimpleCov::Formatter::HTMLFormatter]
14
+ )
15
+ end
16
+ SimpleCov.start do
17
+ add_filter '/test/'
18
+ add_filter '/features/'
40
19
  end
data/Gemfile CHANGED
@@ -1,25 +1,22 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2018-2019 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 Zerocracy
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  source 'https://rubygems.org'
24
- ruby '2.6.0'
25
7
  gemspec
8
+
9
+ gem 'minitest', '~>6.0', require: false
10
+ gem 'minitest-hooks', '~>1.5', require: false
11
+ gem 'minitest-reporters', '~>1.7', require: false
12
+ gem 'rake-compiler', '~>1.2', require: false
13
+ gem 'rdoc', '7.0.2', require: false
14
+ gem 'rspec-rails', '~>6.0', require: false
15
+ gem 'rubocop', '~>1.53', 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 'rubocop-rspec', '~>2.22', require: false
20
+ gem 'simplecov', '~>0.22', require: false
21
+ gem 'simplecov-cobertura', '~>3.0', require: false
22
+ gem 'webmock', '~>3.23', require: false
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2018-2019 Yegor Bugayenko
3
+ Copyright (c) 2018-2025 Zerocracy
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)
2
+
3
+ Copyright (c) 2018-2025 Zerocracy
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
@@ -1,25 +1,24 @@
1
- <img src="http://www.zold.io/logo.svg" width="92px" height="92px"/>
1
+ # Zold Score Calculator, in Ruby and C++
2
2
 
3
- [![Donate via Zerocracy](https://www.0crat.com/contrib-badge/CAZPZR9FS.svg)](https://www.0crat.com/contrib/CAZPZR9FS)
3
+ [![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
4
+ [![DevOps By Rultor.com](https://www.rultor.com/b/yegor256/zold)](https://www.rultor.com/p/yegor256/zold)
5
+ [![We recommend RubyMine](https://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/)
4
6
 
5
- [![EO principles respected here](http://www.elegantobjects.org/badge.svg)](http://www.elegantobjects.org)
6
- [![Managed by Zerocracy](https://www.0crat.com/badge/CAZPZR9FS.svg)](https://www.0crat.com/p/CAZPZR9FS)
7
- [![DevOps By Rultor.com](http://www.rultor.com/b/yegor256/zold)](http://www.rultor.com/p/yegor256/zold)
8
- [![We recommend RubyMine](http://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/)
9
-
10
- [![Build Status](https://travis-ci.org/zold-io/zold-score.svg)](https://travis-ci.org/zold-io/zold-score)
11
- [![Build status](https://ci.appveyor.com/api/projects/status/f4ct91inx6nfb5eg?svg=true)](https://ci.appveyor.com/project/yegor256/zold-score)
12
- [![PDD status](http://www.0pdd.com/svg?name=zold-io/zold-score)](http://www.0pdd.com/p?name=zold-io/zold-score)
13
- [![Gem Version](https://badge.fury.io/rb/zold-score.svg)](http://badge.fury.io/rb/zold-score)
7
+ [![rake](https://github.com/zold-io/zold-score/actions/workflows/rake.yml/badge.svg)](https://github.com/zold-io/zold-score/actions/workflows/rake.yml)
8
+ [![PDD status](https://www.0pdd.com/svg?name=zold-io/zold-score)](https://www.0pdd.com/p?name=zold-io/zold-score)
9
+ [![Gem Version](https://badge.fury.io/rb/zold-score.svg)](https://badge.fury.io/rb/zold-score)
14
10
  [![Test Coverage](https://img.shields.io/codecov/c/github/zold-io/zold-score.svg)](https://codecov.io/github/zold-io/zold-score?branch=master)
11
+ [![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/takes/blob/master/LICENSE.txt)
12
+ [![Hits-of-Code](https://hitsofcode.com/github/zold-io/zold-score)](https://hitsofcode.com/view/github/zold-io/zold-score)
15
13
 
16
14
  Here is the [White Paper](https://papers.zold.io/wp.pdf).
17
15
 
18
16
  Join our [Telegram group](https://t.me/zold_io) to discuss it all live.
19
17
 
20
- The license is [MIT](https://github.com/zold-io/zold-score/blob/master/LICENSE.txt).
21
-
22
- This small Ruby Gem calculates the score for Zold nodes.
18
+ This small Ruby Gem calculates the score for Zold nodes. The idea of the
19
+ "score" is explained in the [White Paper](https://papers.zold.io/wp.pdf).
20
+ To get a better understanding of it you may want to read
21
+ [our blog](https://blog.zold.io).
23
22
 
24
23
  To calculate a new Score you create an object first:
25
24
 
@@ -32,7 +31,8 @@ score = Zold::Score.new(
32
31
  )
33
32
  ```
34
33
 
35
- This score has zero value and the strength of six. Then you just ask it to calculate the next score:
34
+ This score has zero value and the strength of six.
35
+ Then you just ask it to calculate the next score:
36
36
 
37
37
  ```ruby
38
38
  n = score.next
@@ -40,18 +40,22 @@ n = score.next
40
40
 
41
41
  That's it.
42
42
 
43
- This project is actively used in our [main Ruby repo](https://github.com/zold-io/zold).
43
+ This project is actively used in our
44
+ [main Ruby repo](https://github.com/zold-io/zold).
44
45
 
45
- # How to contribute
46
+ ## How to contribute
46
47
 
47
- Read [these guidelines](https://www.yegor256.com/2014/04/15/github-guidelines.html).
48
- Make sure you build is green before you contribute
49
- your pull request. You will need to have [Ruby](https://www.ruby-lang.org/en/) 2.3+ and
50
- [Bundler](https://bundler.io/) installed. Then:
48
+ Read these [guidelines].
49
+ Make sure your build is green before you contribute your pull request.
50
+ You will need to have [Ruby](https://www.ruby-lang.org/en/) 2.3+ and
51
+ [Bundler](https://bundler.io/) installed.
52
+ Then:
51
53
 
52
- ```
53
- $ bundle update
54
- $ rake
54
+ ```bash
55
+ bundle update
56
+ bundle exec rake
55
57
  ```
56
58
 
57
59
  If it's clean and you don't see any error messages, submit your pull request.
60
+
61
+ [guidelines]: https://www.yegor256.com/2014/04/15/github-guidelines.html
data/REUSE.toml ADDED
@@ -0,0 +1,35 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ version = 1
5
+ [[annotations]]
6
+ path = [
7
+ ".DS_Store",
8
+ ".gitattributes",
9
+ ".gitignore",
10
+ ".pdd",
11
+ "**.json",
12
+ "**.md",
13
+ "**.png",
14
+ "**.txt",
15
+ "**/.DS_Store",
16
+ "**/.gitignore",
17
+ "**/.pdd",
18
+ "**/*.csv",
19
+ "**/*.jpg",
20
+ "**/*.json",
21
+ "**/*.md",
22
+ "**/*.pdf",
23
+ "**/*.png",
24
+ "**/*.svg",
25
+ "**/*.txt",
26
+ "**/*.vm",
27
+ "**/CNAME",
28
+ "**/Gemfile.lock",
29
+ "Gemfile.lock",
30
+ "README.md",
31
+ "renovate.json",
32
+ ]
33
+ precedence = "override"
34
+ SPDX-FileCopyrightText = "Copyright (c) 2025 Yegor Bugayenko"
35
+ SPDX-License-Identifier = "MIT"
data/Rakefile CHANGED
@@ -1,24 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2018-2019 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 Zerocracy
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 compile test rubocop copyright]
19
+ task default: %i[clean compile test rubocop]
37
20
 
38
21
  require 'rake/extensiontask'
39
22
  Rake::ExtensionTask.new 'score_suffix' do |ext|
@@ -64,13 +47,4 @@ require 'rubocop/rake_task'
64
47
  desc 'Run RuboCop on all directories'
65
48
  RuboCop::RakeTask.new(:rubocop) do |task|
66
49
  task.fail_on_error = true
67
- task.requires << 'rubocop-rspec'
68
- end
69
-
70
- task :copyright do
71
- sh "grep -q -r '2018-#{Date.today.strftime('%Y')}' \
72
- --include '*.rb' \
73
- --include '*.txt' \
74
- --include 'Rakefile' \
75
- ."
76
50
  end