zold 0.23.10 → 0.23.11

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: f5719b8dfeb390eb155df8e38deaa12243ae7223f31c51a86dbc1a56abd1174d
4
- data.tar.gz: 2c83351b136b14629b2640897d1eecf8bc7a7d3907e1b7b21b3c8ddaa4d9c44d
3
+ metadata.gz: 5849ac3bfc78f34607a15fa94739391b1d655f9c2870d1eb0de3fb9d2eaa2603
4
+ data.tar.gz: 345524d2e2202209dc7a8fcd64835b0168fe58c18035db7d8b208a638e332d88
5
5
  SHA512:
6
- metadata.gz: 85ede5d5163fb9dcb2f14796258ab4efcfd3f1017f1c82f226c695ca66ae74ea6bb9b13aa7f91ef85c05ec225579a3345ead7d2876a6120424e04efe46bb3f31
7
- data.tar.gz: e2b44d53856b92af6503e1c505e044aa76329137bd016b1be2eaabfdbeb2ae514e8dc0bdbf0e4d1e70f75899bd50d73666f7c564ff5d5d61b189418034d75a1a
6
+ metadata.gz: b274dd3d8f5a7441ba06704e1d3b0baaa14f0b96ba431e163864a7e4652b3f85267f763015b0569b51c0eeb2610cadf9a1ec980a8d08a1256a53ca42753251bf
7
+ data.tar.gz: 0e22e857b8a5aee8b06df59f1979bc33d7c740fb6ffd6ef920f587eea59a0e23c5ec04131bbc7cb09fed31afb8bdf785fdc5e91f703f070cb4903d5cfa45d70c
@@ -345,7 +345,7 @@ it's recommended to reboot, but I don't do it because of --never-reboot")
345
345
  end
346
346
 
347
347
  def select(opts)
348
- @remotes.all.sort_by { |r| r[:errors] }.reverse.each_with_index do |r, idx|
348
+ @remotes.all.shuffle.sort_by { |r| r[:errors] }.reverse.each_with_index do |r, idx|
349
349
  next if idx < opts['max-nodes']
350
350
  next if r[:master] && !opts['masters-too']
351
351
  @remotes.remove(r[:host], r[:port])
data/lib/zold/version.rb CHANGED
@@ -25,7 +25,7 @@
25
25
  # Copyright:: Copyright (c) 2018 Yegor Bugayenko
26
26
  # License:: MIT
27
27
  module Zold
28
- VERSION = '0.23.10'
28
+ VERSION = '0.23.11'
29
29
  PROTOCOL = 2
30
30
  REPO = 'zold-io/zold'
31
31
  end
@@ -218,7 +218,7 @@ class TestRemote < Zold::Test
218
218
  cmd.run(%W[remote add localhost #{port}])
219
219
  end
220
220
  assert_equal(11 + File.readlines('resources/masters').count, remotes.all.count)
221
- cmd.run(%w[remote select --max-nodes=5])
221
+ cmd.run(%w[remote select --max-nodes=5 --masters-too])
222
222
  assert_equal(5, remotes.all.count)
223
223
  end
224
224
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zold
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.10
4
+ version: 0.23.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
@@ -753,7 +753,7 @@ licenses:
753
753
  - MIT
754
754
  metadata: {}
755
755
  post_install_message: |-
756
- Thanks for installing Zold 0.23.10!
756
+ Thanks for installing Zold 0.23.11!
757
757
  Study our White Paper: https://papers.zold.io/wp.pdf
758
758
  Read our blog posts: https://blog.zold.io
759
759
  Try ZLD online wallet at: https://wts.zold.io