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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8992caf9c49759f4570f940681277fea22aaccbff145607b844135c07a61303d
4
- data.tar.gz: b470b0309a2c9511f2864e3d39f7c1c5c74c8e5ab9e91df2df7810ffe2f0954b
3
+ metadata.gz: 4c8d9ab1d922956520548b518f1174c388de2f3d7a34fa05c0ad2cbe8974a90e
4
+ data.tar.gz: 95375ab61faa94f9453602a96b7b9f02d2bff5801778069031f5f275bbaeec29
5
5
  SHA512:
6
- metadata.gz: 2cd60c6d9d282e647d17462b17171d0810055488f3be3696f08a240cca063dc2f55b6222bdc4579f14839dfb47438442fe5faec5842d890c2eb2c0a280b0ed30
7
- data.tar.gz: 57d55fe077b47b27ebed7fe8d15ae357b525978394ff455f9451b54186fa9428b79c5b72034d2f9477ae995934b2b93c9695853713fa6f6e670061136d6e1eef
6
+ metadata.gz: 9b034558c8ccf930036bfabfb71b6d790ff7407aac2335b82696119ea6e244051fe98b7c8f196752ff96cb0ccdde61605c1c3f23a7c674d85a7d3f31c39b7658
7
+ data.tar.gz: c6423d94323ed8cc222588c3cfdb9d3621b59620f6a60b9b5333004d0053e7678a6de1ba05c0fce7cda1c19e1657918d6552039d9a15b1d2f909cfb25836cc35
@@ -1,11 +1,11 @@
1
1
  assets:
2
- rubygems.yml: zerocracy/home#assets/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"
@@ -7,7 +7,7 @@ branches:
7
7
  - master
8
8
  install:
9
9
  - travis_retry bundle update
10
- - gem install pdd
10
+ - gem install pdd -v 0.20.5
11
11
  script:
12
12
  - pdd -f /dev/null
13
13
  - export RUBYOPT="-W0"
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](http://www.elegantobjects.org/badge.svg)](http://www.elegantobjects.org)
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](http://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/)
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
@@ -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']
@@ -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')
@@ -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.map { |r| r[:score] }.max || 0
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.map { |r| r[:errors] }.max || 0
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)
@@ -25,7 +25,7 @@
25
25
  # Copyright:: Copyright (c) 2018 Yegor Bugayenko
26
26
  # License:: MIT
27
27
  module Zold
28
- VERSION = '0.29.30'
28
+ VERSION = '0.29.31'
29
29
  PROTOCOL = 2
30
30
  REPO = 'zold-io/zold'
31
31
  end
@@ -43,6 +43,9 @@ end
43
43
  require_relative '../lib/zold/hands'
44
44
  Zold::Hands.start
45
45
 
46
+ require 'minitest/reporters'
47
+ Minitest::Reporters.use! [Minitest::Reporters::SpecReporter.new]
48
+
46
49
  module Zold
47
50
  class Test < Minitest::Test
48
51
  include Minitest::Hooks
@@ -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.30
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-05-21 00:00:00.000000000 Z
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.30!
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