zold 0.29.30 → 0.29.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rultor.yml +2 -2
- data/.travis.yml +1 -1
- data/README.md +3 -5
- data/lib/zold/commands/fetch.rb +1 -1
- data/lib/zold/commands/node.rb +1 -1
- data/lib/zold/remotes.rb +2 -2
- data/lib/zold/version.rb +1 -1
- data/test/test__helper.rb +3 -0
- data/zold.gemspec +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c8d9ab1d922956520548b518f1174c388de2f3d7a34fa05c0ad2cbe8974a90e
|
4
|
+
data.tar.gz: 95375ab61faa94f9453602a96b7b9f02d2bff5801778069031f5f275bbaeec29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b034558c8ccf930036bfabfb71b6d790ff7407aac2335b82696119ea6e244051fe98b7c8f196752ff96cb0ccdde61605c1c3f23a7c674d85a7d3f31c39b7658
|
7
|
+
data.tar.gz: c6423d94323ed8cc222588c3cfdb9d3621b59620f6a60b9b5333004d0053e7678a6de1ba05c0fce7cda1c19e1657918d6552039d9a15b1d2f909cfb25836cc35
|
data/.rultor.yml
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
assets:
|
2
|
-
rubygems.yml:
|
2
|
+
rubygems.yml: yegor256/home#assets/rubygems.yml
|
3
3
|
install: |
|
4
4
|
export GEM_HOME=~/.ruby
|
5
5
|
export GEM_PATH=$GEM_HOME:$GEM_PATH
|
6
6
|
sudo apt-get -y update
|
7
7
|
sudo apt-get -y install libcurl4-openssl-dev
|
8
|
-
sudo gem install pdd
|
8
|
+
sudo gem install pdd -v 0.20.5
|
9
9
|
release:
|
10
10
|
script: |-
|
11
11
|
export RUBYOPT="-W0"
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -2,19 +2,19 @@
|
|
2
2
|
|
3
3
|
[![Donate via Zerocracy](https://www.0crat.com/contrib-badge/CAZPZR9FS.svg)](https://www.0crat.com/contrib/CAZPZR9FS)
|
4
4
|
|
5
|
-
[![EO principles respected here](
|
5
|
+
[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
|
6
6
|
[![Managed by Zerocracy](https://www.0crat.com/badge/CAZPZR9FS.svg)](https://www.0crat.com/p/CAZPZR9FS)
|
7
7
|
[![DevOps By Rultor.com](http://www.rultor.com/b/yegor256/zold)](http://www.rultor.com/p/yegor256/zold)
|
8
|
-
[![We recommend RubyMine](
|
8
|
+
[![We recommend RubyMine](https://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/)
|
9
9
|
|
10
10
|
[![Build Status](https://travis-ci.org/zold-io/zold.svg?branch=master)](https://travis-ci.org/zold-io/zold)
|
11
|
-
[![Build status](https://ci.appveyor.com/api/projects/status/15ola3lb03opv14m?svg=true)](https://ci.appveyor.com/project/yegor256/zold-wcn4o)
|
12
11
|
[![PDD status](http://www.0pdd.com/svg?name=zold-io/zold)](http://www.0pdd.com/p?name=zold-io/zold)
|
13
12
|
[![Gem Version](https://badge.fury.io/rb/zold.svg)](http://badge.fury.io/rb/zold)
|
14
13
|
[![Test Coverage](https://img.shields.io/codecov/c/github/zold-io/zold.svg)](https://codecov.io/github/zold-io/zold?branch=master)
|
15
14
|
|
16
15
|
[![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/github/zold-io/zold/master/frames)
|
17
16
|
[![Maintainability](https://api.codeclimate.com/v1/badges/2861728929db934eb376/maintainability)](https://codeclimate.com/github/zold-io/zold/maintainability)
|
17
|
+
[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/takes/blob/master/LICENSE.txt)
|
18
18
|
[![Hits-of-Code](https://hitsofcode.com/github/zold-io/zold)](https://hitsofcode.com/github/zold-io/zold)
|
19
19
|
|
20
20
|
To understand what Zold cryptocurrency is about you may want
|
@@ -40,8 +40,6 @@ You can also find us at the [Bitcointalk](https://bitcointalk.org/index.php?topi
|
|
40
40
|
|
41
41
|
Join our [Telegram group](https://t.me/zold_io) to discuss it all live.
|
42
42
|
|
43
|
-
The license is [MIT](https://github.com/zold-io/zold/blob/master/LICENSE.txt).
|
44
|
-
|
45
43
|
## How to Use
|
46
44
|
|
47
45
|
You can try the web wallet [here](https://wts.zold.io), but the best way
|
data/lib/zold/commands/fetch.rb
CHANGED
@@ -126,7 +126,7 @@ Available options:"
|
|
126
126
|
end
|
127
127
|
unless opts['quiet-if-absent']
|
128
128
|
if done.value.zero?
|
129
|
-
raise NotFound, "No nodes out of #{nodes.value} have the wallet #{id}; \
|
129
|
+
raise NotFound, "No nodes out of #{nodes.value}, incl. #{masters.value} master, have the wallet #{id}; \
|
130
130
|
run 'zold remote update' and try again"
|
131
131
|
end
|
132
132
|
if masters.value.zero? && !opts['tolerate-edges']
|
data/lib/zold/commands/node.rb
CHANGED
@@ -357,7 +357,7 @@ the node won\'t connect to the network like that; try to do "zold remote reset"
|
|
357
357
|
def farmer(opts)
|
358
358
|
case opts['farmer'].downcase.strip
|
359
359
|
when 'plain'
|
360
|
-
@log.debug('"Plain" farmer is used, only one CPU will be utilized')
|
360
|
+
@log.debug('"Plain" farmer is used, only one CPU core will be utilized')
|
361
361
|
Farmers::Plain.new
|
362
362
|
when 'fork'
|
363
363
|
@log.debug('"Fork" farmer is used')
|
data/lib/zold/remotes.rb
CHANGED
@@ -158,9 +158,9 @@ at #{response.headers['X-Zold-Path']}"
|
|
158
158
|
|
159
159
|
def all
|
160
160
|
list = Futex.new(@file).open(false) { load }
|
161
|
-
max_score = list.
|
161
|
+
max_score = list.empty? ? 0 : list.max_by { |r| r[:score] }[:score]
|
162
162
|
max_score = 1 if max_score.zero?
|
163
|
-
max_errors = list.
|
163
|
+
max_errors = list.empty? ? 0 : list.max_by { |r| r[:errors] }[:errors]
|
164
164
|
max_errors = 1 if max_errors.zero?
|
165
165
|
list.sort_by do |r|
|
166
166
|
(1 - r[:errors] / max_errors) * 5 + (r[:score] / max_score)
|
data/lib/zold/version.rb
CHANGED
data/test/test__helper.rb
CHANGED
data/zold.gemspec
CHANGED
@@ -90,6 +90,7 @@ and suggests a different architecture for digital wallet maintenance.'
|
|
90
90
|
s.add_development_dependency 'minitest', '5.11.3'
|
91
91
|
s.add_development_dependency 'minitest-fail-fast', '0.1.0'
|
92
92
|
s.add_development_dependency 'minitest-hooks', '1.5.0'
|
93
|
+
s.add_development_dependency 'minitest-reporters', '1.3.6'
|
93
94
|
s.add_development_dependency 'rake', '12.3.2'
|
94
95
|
s.add_development_dependency 'random-port', '0.3.1'
|
95
96
|
s.add_development_dependency 'rdoc', '6.1.1'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.29.
|
4
|
+
version: 0.29.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backtrace
|
@@ -416,6 +416,20 @@ dependencies:
|
|
416
416
|
- - '='
|
417
417
|
- !ruby/object:Gem::Version
|
418
418
|
version: 1.5.0
|
419
|
+
- !ruby/object:Gem::Dependency
|
420
|
+
name: minitest-reporters
|
421
|
+
requirement: !ruby/object:Gem::Requirement
|
422
|
+
requirements:
|
423
|
+
- - '='
|
424
|
+
- !ruby/object:Gem::Version
|
425
|
+
version: 1.3.6
|
426
|
+
type: :development
|
427
|
+
prerelease: false
|
428
|
+
version_requirements: !ruby/object:Gem::Requirement
|
429
|
+
requirements:
|
430
|
+
- - '='
|
431
|
+
- !ruby/object:Gem::Version
|
432
|
+
version: 1.3.6
|
419
433
|
- !ruby/object:Gem::Dependency
|
420
434
|
name: rake
|
421
435
|
requirement: !ruby/object:Gem::Requirement
|
@@ -813,7 +827,7 @@ licenses:
|
|
813
827
|
- MIT
|
814
828
|
metadata: {}
|
815
829
|
post_install_message: |-
|
816
|
-
Thanks for installing Zold 0.29.
|
830
|
+
Thanks for installing Zold 0.29.31!
|
817
831
|
Study our White Paper: https://papers.zold.io/wp.pdf
|
818
832
|
Read our blog posts: https://blog.zold.io
|
819
833
|
Try ZLD online wallet at: https://wts.zold.io
|