zold-score 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zold/score.rb +6 -2
- data/zold-score.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc8bc53e8775df93481fb2ab2f06f57a359e1afbf02a7fbaab819ae01e055a17
|
4
|
+
data.tar.gz: ef6b9058b2a56cfdc66d59c9eb02f474db228de82dd4c33ad3bf1962e0ff9fae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eb3d24322a6de5d5c133d8d379fe55aeb250adbf9f85c89d5bfceb3757d56361de1849a13bb8aa39f84b4b5e3c3d3a1db490386d6e7e411e51dfcb81dfed08e
|
7
|
+
data.tar.gz: 4357042ffebe3175e6b1f97391a52fff38d47aa069a9f729bf0a688a5321e97a3507fd59752c519ed5b53465764e3f2ded82d56ce9b5f8801a9647e194cb6017
|
data/lib/zold/score.rb
CHANGED
@@ -41,8 +41,12 @@ require 'time'
|
|
41
41
|
module Zold
|
42
42
|
# Score
|
43
43
|
class Score
|
44
|
-
# Default strength for the entire system, in production mode.
|
45
|
-
|
44
|
+
# Default strength for the entire system, in production mode. The larger
|
45
|
+
# the number, the more difficult it is to find the next score for
|
46
|
+
# a node. If the number if too small, the values of the score will be
|
47
|
+
# big and the amount of data to be transferred from node to node will
|
48
|
+
# increase. The number is set empirically.
|
49
|
+
STRENGTH = 7
|
46
50
|
|
47
51
|
attr_reader :time, :host, :port, :invoice, :suffixes, :strength, :created
|
48
52
|
|
data/zold-score.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
s.rubygems_version = '2.2'
|
28
28
|
s.required_ruby_version = '>=2.3'
|
29
29
|
s.name = 'zold-score'
|
30
|
-
s.version = '0.3.
|
30
|
+
s.version = '0.3.4'
|
31
31
|
s.license = 'MIT'
|
32
32
|
s.summary = 'Zold score'
|
33
33
|
s.description = 'Score calculating Ruby Gem for Zold'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zold-score
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: codecov
|