zold-score 0.4.6 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/codecov.yml +20 -0
- data/.github/workflows/pdd.yml +11 -0
- data/.github/workflows/rake.yml +23 -0
- data/.github/workflows/xcop.yml +11 -0
- data/.rultor.yml +4 -8
- data/.simplecov +1 -1
- data/Gemfile +10 -2
- data/LICENSE.txt +1 -1
- data/README.md +10 -11
- data/Rakefile +1 -1
- data/ext/score_suffix/ScoreSuffix.cpp +1 -1
- data/ext/score_suffix/extconf.rb +1 -1
- data/lib/zold/score.rb +16 -14
- data/test/test__helper.rb +28 -0
- data/test/zold/test_score.rb +2 -2
- data/zold-score.gemspec +2 -10
- metadata +10 -118
- data/.travis.yml +0 -20
- data/appveyor.yml +0 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40c626e1e9548df5b68c7a7ef8838c17da7d1922c9e84001da16ef44f68b92bd
|
4
|
+
data.tar.gz: 43bee09ba07edb706dd36b6b68cc54771dd42f623ecd6eaa25a5bbf30595c1e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f306461a07c4bf6f5b6bb5933d3f424e440db4f1629d95ec0cf68620c8848672dcee5c50d38473cdc5244254536da0d1c64ee57c6eed188564c48cd84aec3515
|
7
|
+
data.tar.gz: 64fc40a4c7e241fe3f5724311098a52bc8e2acec28482efd1b4aac5ee53e581f987d4edc83013927d20ad88e2e7b33e54b087ab01f7c3cf42dc49c6b80b4096d
|
@@ -0,0 +1,20 @@
|
|
1
|
+
---
|
2
|
+
name: codecov
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
jobs:
|
8
|
+
codecov:
|
9
|
+
runs-on: ubuntu-20.04
|
10
|
+
steps:
|
11
|
+
- uses: actions/checkout@v3
|
12
|
+
- uses: ruby/setup-ruby@v1
|
13
|
+
with:
|
14
|
+
ruby-version: 2.7
|
15
|
+
- run: bundle update
|
16
|
+
- run: bundle exec rake
|
17
|
+
- uses: codecov/codecov-action@v3
|
18
|
+
with:
|
19
|
+
file: coverage/.resultset.json
|
20
|
+
fail_ci_if_error: true
|
@@ -0,0 +1,23 @@
|
|
1
|
+
---
|
2
|
+
name: rake
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
branches:
|
9
|
+
- master
|
10
|
+
jobs:
|
11
|
+
test:
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
os: [ubuntu-20.04]
|
15
|
+
ruby: ['3.0']
|
16
|
+
runs-on: ${{ matrix.os }}
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v3
|
19
|
+
- uses: ruby/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
ruby-version: ${{ matrix.ruby }}
|
22
|
+
- run: bundle update
|
23
|
+
- run: bundle exec rake
|
data/.rultor.yml
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
+
docker:
|
2
|
+
image: yegor256/rultor-image:1.20.0
|
1
3
|
assets:
|
2
4
|
rubygems.yml: zerocracy/home#assets/rubygems.yml
|
3
5
|
install: |-
|
4
|
-
|
5
|
-
|
6
|
+
pdd -f /dev/null
|
7
|
+
sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"
|
6
8
|
release:
|
7
9
|
script: |-
|
8
10
|
bundle install
|
@@ -14,13 +16,7 @@ release:
|
|
14
16
|
gem build zold-score.gemspec
|
15
17
|
chmod 0600 ../rubygems.yml
|
16
18
|
gem push *.gem --config-file ../rubygems.yml
|
17
|
-
commanders:
|
18
|
-
- yegor256
|
19
|
-
architect:
|
20
|
-
- yegor256
|
21
19
|
merge:
|
22
|
-
commanders: []
|
23
20
|
script: |-
|
24
21
|
bundle install
|
25
22
|
rake
|
26
|
-
deploy: {}
|
data/.simplecov
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2023 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/Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2023 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
|
@@ -21,5 +21,13 @@
|
|
21
21
|
# SOFTWARE.
|
22
22
|
|
23
23
|
source 'https://rubygems.org'
|
24
|
-
ruby '2.6.0'
|
25
24
|
gemspec
|
25
|
+
|
26
|
+
gem 'minitest', '5.11.3', require: false
|
27
|
+
gem 'minitest-hooks', '1.5.0', require: false
|
28
|
+
gem 'rake-compiler', '1.0.4', require: false
|
29
|
+
gem 'rdoc', '4.3.0', require: false
|
30
|
+
gem 'rspec-rails', '3.8.1', require: false
|
31
|
+
gem 'rubocop', '0.62.0', require: false
|
32
|
+
gem 'rubocop-rspec', '1.31.0', require: false
|
33
|
+
gem 'simplecov', '0.22.0', require: false
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,25 +1,24 @@
|
|
1
|
-
<img src="
|
2
|
-
|
3
|
-
[![Donate via Zerocracy](https://www.0crat.com/contrib-badge/CAZPZR9FS.svg)](https://www.0crat.com/contrib/CAZPZR9FS)
|
1
|
+
<img src="https://www.zold.io/logo.svg" width="92px" height="92px"/>
|
4
2
|
|
5
3
|
[![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
4
|
[![DevOps By Rultor.com](http://www.rultor.com/b/yegor256/zold)](http://www.rultor.com/p/yegor256/zold)
|
8
5
|
[![We recommend RubyMine](http://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/)
|
9
6
|
|
10
|
-
[![
|
11
|
-
[![Build status](https://ci.appveyor.com/api/projects/status/f4ct91inx6nfb5eg?svg=true)](https://ci.appveyor.com/project/yegor256/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)
|
12
8
|
[![PDD status](http://www.0pdd.com/svg?name=zold-io/zold-score)](http://www.0pdd.com/p?name=zold-io/zold-score)
|
13
9
|
[![Gem Version](https://badge.fury.io/rb/zold-score.svg)](http://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
|
-
|
21
|
-
|
22
|
-
|
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). To
|
20
|
+
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
|
|
@@ -42,7 +41,7 @@ That's it.
|
|
42
41
|
|
43
42
|
This project is actively used in our [main Ruby repo](https://github.com/zold-io/zold).
|
44
43
|
|
45
|
-
|
44
|
+
## How to contribute
|
46
45
|
|
47
46
|
Read [these guidelines](https://www.yegor256.com/2014/04/15/github-guidelines.html).
|
48
47
|
Make sure you build is green before you contribute
|
@@ -51,7 +50,7 @@ your pull request. You will need to have [Ruby](https://www.ruby-lang.org/en/) 2
|
|
51
50
|
|
52
51
|
```
|
53
52
|
$ bundle update
|
54
|
-
$ rake
|
53
|
+
$ bundle exec rake
|
55
54
|
```
|
56
55
|
|
57
56
|
If it's clean and you don't see any error messages, submit your pull request.
|
data/Rakefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2023 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/ext/score_suffix/extconf.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2023 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/lib/zold/score.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2023 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
|
@@ -36,7 +36,7 @@ require 'time'
|
|
36
36
|
# {White Paper}[https://papers.zold.io/wp.pdf].
|
37
37
|
#
|
38
38
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
39
|
-
# Copyright:: Copyright (c) 2018-
|
39
|
+
# Copyright:: Copyright (c) 2018-2023 Yegor Bugayenko
|
40
40
|
# License:: MIT
|
41
41
|
module Zold
|
42
42
|
# Score
|
@@ -164,18 +164,20 @@ module Zold
|
|
164
164
|
# Parses it back from the text generated by <tt>to_s</tt>.
|
165
165
|
def self.parse(text)
|
166
166
|
raise 'Can\'t parse nil' if text.nil?
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
167
|
+
begin
|
168
|
+
parts = text.split(' ', 7)
|
169
|
+
raise 'Invalid score, not enough parts' if parts.length < 6
|
170
|
+
Score.new(
|
171
|
+
time: Time.at(parts[1].hex),
|
172
|
+
host: parts[2],
|
173
|
+
port: parts[3].hex,
|
174
|
+
invoice: "#{parts[4]}@#{parts[5]}",
|
175
|
+
suffixes: parts[6] ? parts[6].split(' ') : [],
|
176
|
+
strength: parts[0].to_i
|
177
|
+
)
|
178
|
+
rescue StandardError => e
|
179
|
+
raise CantParse, "#{e.message} in #{text.inspect}"
|
180
|
+
end
|
179
181
|
end
|
180
182
|
|
181
183
|
# Returns its crypto hash. Read the White Paper for more information.
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
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 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.
|
22
|
+
|
23
|
+
$stdout.sync = true
|
24
|
+
|
25
|
+
require 'simplecov'
|
26
|
+
SimpleCov.start
|
27
|
+
|
28
|
+
require 'minitest/autorun'
|
data/test/zold/test_score.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2023 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
|
@@ -29,7 +29,7 @@ require_relative '../../lib/zold/score'
|
|
29
29
|
|
30
30
|
# Score test.
|
31
31
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
32
|
-
# Copyright:: Copyright (c) 2018-
|
32
|
+
# Copyright:: Copyright (c) 2018-2023 Yegor Bugayenko
|
33
33
|
# License:: MIT
|
34
34
|
class TestScore < Minitest::Test
|
35
35
|
include Minitest::Hooks
|
data/zold-score.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2023 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
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
|
|
29
29
|
s.rubygems_version = '2.2'
|
30
30
|
s.required_ruby_version = '>=2.5'
|
31
31
|
s.name = 'zold-score'
|
32
|
-
s.version = '0.
|
32
|
+
s.version = '0.5.0'
|
33
33
|
s.license = 'MIT'
|
34
34
|
s.summary = 'Zold score'
|
35
35
|
s.description = 'Score calculating Ruby Gem for Zold'
|
@@ -42,12 +42,4 @@ Gem::Specification.new do |s|
|
|
42
42
|
s.test_files = s.files.grep(%r{^(test|features)/})
|
43
43
|
s.rdoc_options = ['--charset=UTF-8']
|
44
44
|
s.extra_rdoc_files = ['README.md', 'LICENSE.txt']
|
45
|
-
s.add_development_dependency 'codecov', '0.1.14'
|
46
|
-
s.add_development_dependency 'minitest', '5.11.3'
|
47
|
-
s.add_development_dependency 'minitest-hooks', '1.5.0'
|
48
|
-
s.add_development_dependency 'rake-compiler', '1.0.4'
|
49
|
-
s.add_development_dependency 'rdoc', '4.3.0'
|
50
|
-
s.add_development_dependency 'rspec-rails', '3.8.1'
|
51
|
-
s.add_development_dependency 'rubocop', '0.62.0'
|
52
|
-
s.add_development_dependency 'rubocop-rspec', '1.31.0'
|
53
45
|
end
|
metadata
CHANGED
@@ -1,127 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zold-score
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: codecov
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - '='
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 0.1.14
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - '='
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 0.1.14
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: minitest
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - '='
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 5.11.3
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - '='
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 5.11.3
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: minitest-hooks
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - '='
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 1.5.0
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - '='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 1.5.0
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rake-compiler
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - '='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 1.0.4
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - '='
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 1.0.4
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rdoc
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - '='
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 4.3.0
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - '='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 4.3.0
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rspec-rails
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - '='
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 3.8.1
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - '='
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 3.8.1
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rubocop
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - '='
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 0.62.0
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - '='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 0.62.0
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rubocop-rspec
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - '='
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 1.31.0
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - '='
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: 1.31.0
|
11
|
+
date: 2023-06-25 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
125
13
|
description: Score calculating Ruby Gem for Zold
|
126
14
|
email: yegor256@gmail.com
|
127
15
|
executables: []
|
@@ -133,20 +21,23 @@ extra_rdoc_files:
|
|
133
21
|
files:
|
134
22
|
- ".0pdd.yml"
|
135
23
|
- ".gitattributes"
|
24
|
+
- ".github/workflows/codecov.yml"
|
25
|
+
- ".github/workflows/pdd.yml"
|
26
|
+
- ".github/workflows/rake.yml"
|
27
|
+
- ".github/workflows/xcop.yml"
|
136
28
|
- ".gitignore"
|
137
29
|
- ".pdd"
|
138
30
|
- ".rubocop.yml"
|
139
31
|
- ".rultor.yml"
|
140
32
|
- ".simplecov"
|
141
|
-
- ".travis.yml"
|
142
33
|
- Gemfile
|
143
34
|
- LICENSE.txt
|
144
35
|
- README.md
|
145
36
|
- Rakefile
|
146
|
-
- appveyor.yml
|
147
37
|
- ext/score_suffix/ScoreSuffix.cpp
|
148
38
|
- ext/score_suffix/extconf.rb
|
149
39
|
- lib/zold/score.rb
|
40
|
+
- test/test__helper.rb
|
150
41
|
- test/zold/test_score.rb
|
151
42
|
- zold-score.gemspec
|
152
43
|
homepage: http://github.com/zold-io/zold-score
|
@@ -169,9 +60,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
60
|
- !ruby/object:Gem::Version
|
170
61
|
version: '0'
|
171
62
|
requirements: []
|
172
|
-
rubygems_version: 3.
|
63
|
+
rubygems_version: 3.2.15
|
173
64
|
signing_key:
|
174
65
|
specification_version: 2
|
175
66
|
summary: Zold score
|
176
67
|
test_files:
|
68
|
+
- test/test__helper.rb
|
177
69
|
- test/zold/test_score.rb
|
data/.travis.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.3.1
|
4
|
-
- 2.3.3
|
5
|
-
- 2.4.5
|
6
|
-
cache: bundler
|
7
|
-
branches:
|
8
|
-
only:
|
9
|
-
- master
|
10
|
-
install:
|
11
|
-
- travis_retry bundle update
|
12
|
-
- gem install pdd
|
13
|
-
- sudo apt-get install cppcheck
|
14
|
-
script:
|
15
|
-
- pdd -f /dev/null
|
16
|
-
- cppcheck --enable=all --quiet --suppress=unusedFunction .
|
17
|
-
- export RUBYOPT="-W0"
|
18
|
-
- rake --quiet
|
19
|
-
after_success:
|
20
|
-
- "bash <(curl -s https://codecov.io/bash)"
|
data/appveyor.yml
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
version: '{build}'
|
2
|
-
skip_tags: true
|
3
|
-
clone_depth: 10
|
4
|
-
branches:
|
5
|
-
only:
|
6
|
-
- master
|
7
|
-
except:
|
8
|
-
- gh-pages
|
9
|
-
os: Windows Server 2012
|
10
|
-
environment:
|
11
|
-
MAKE: mingw32-make
|
12
|
-
matrix:
|
13
|
-
- ruby_version: "23-x64"
|
14
|
-
- ruby_version: "24-x64"
|
15
|
-
- ruby_version: "25-x64"
|
16
|
-
install:
|
17
|
-
- ps: |
|
18
|
-
$Env:PATH = "C:\Ruby${Env:ruby_version}\bin;C:\msys64\mingw64\bin;${Env:PATH}"
|
19
|
-
if ($Env:ruby_version -match "^23" ) {
|
20
|
-
# RubyInstaller; download OpenSSL headers from OpenKnapsack Project
|
21
|
-
$Env:openssl_dir = "C:\Ruby${Env:ruby_version}"
|
22
|
-
appveyor DownloadFile http://dl.bintray.com/oneclick/OpenKnapsack/x64/openssl-1.0.2j-x64-windows.tar.lzma
|
23
|
-
7z e openssl-1.0.2j-x64-windows.tar.lzma
|
24
|
-
7z x -y -oC:\Ruby${Env:ruby_version} openssl-1.0.2j-x64-windows.tar
|
25
|
-
} else {
|
26
|
-
# RubyInstaller2; openssl package seems to be installed already
|
27
|
-
$Env:openssl_dir = "C:\msys64\mingw64"
|
28
|
-
}
|
29
|
-
- bundle config --local path vendor/bundle
|
30
|
-
- bundle config build.openssl --with-openssl-dir=%openssl_dir%
|
31
|
-
- ruby -v
|
32
|
-
- bundle -v
|
33
|
-
build_script:
|
34
|
-
- bundle update
|
35
|
-
- bundle install
|
36
|
-
test_script:
|
37
|
-
- bundle exec rake --trace
|
38
|
-
cache:
|
39
|
-
- vendor/bundle
|