zold 0.29.28 → 0.29.29

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: 8fc5f47657b08c4e98a026b0b71def6da39a322e3f24666614a4f35d7f4580aa
4
- data.tar.gz: da6bac2fdec7446e025e96ba6df2ada4a41122152eabf1f3748a0c80628d4fec
3
+ metadata.gz: 78719fdddf055f0effd86b37349e8a5227833c94e482f5dfdf7eb055098a0914
4
+ data.tar.gz: aa21bb8f40d6080ecdfa15b7b86730a080c5f39cc232ea44e9acb21efd148e96
5
5
  SHA512:
6
- metadata.gz: c5c081dd571630428327bc2ae02ff0a47bab44e4d288f6ca6bfe9852cad9dd1c5300183f8c00b26de7e167af62281dcb3fc1c38691e1f656e02a3405d54fac44
7
- data.tar.gz: 787d7d4d98ff67a4b26297ed3e1a3ec7dd5993e012585f2ac4755e5c69543cfb70f328497801cedb100576b3f1d70fb6ef13e71564c88d766ecb54659662d63d
6
+ metadata.gz: 241c8d900b256084f5a39525f1c0736374baa454a45087bfcdb478d3ac6060c27e07136252dece52871a6bdd49cdd8c3f187234524daefb97c62b85431541985
7
+ data.tar.gz: 8596c0df0d8b2e6f9cc2f316eb373ad70b291b8266af1572c993cdf21033de0621aad81c9e77a8d52bfffa5eba8e14355f4a84cd64268bf109be297988ab7396
@@ -316,6 +316,7 @@ at #{response.headers['X-Zold-Path']}"
316
316
  def assert_host_info(host, port)
317
317
  raise 'Host can\'t be nil' if host.nil?
318
318
  raise 'Host can\'t be empty' if host.empty?
319
+ raise 'Host IP is wrong, can\'t be all zeros' if host == '0.0.0.0'
319
320
  raise 'Port can\'t be nil' if port.nil?
320
321
  raise 'Port has to be of type Integer' unless port.is_a?(Integer)
321
322
  raise 'Port can\'t be zero' if port.zero?
@@ -25,7 +25,7 @@
25
25
  # Copyright:: Copyright (c) 2018 Yegor Bugayenko
26
26
  # License:: MIT
27
27
  module Zold
28
- VERSION = '0.29.28'
28
+ VERSION = '0.29.29'
29
29
  PROTOCOL = 2
30
30
  REPO = 'zold-io/zold'
31
31
  end
@@ -76,7 +76,7 @@ class TestRemotes < Zold::Test
76
76
  FileUtils.touch(file)
77
77
  remotes = Zold::Remotes.new(file: file)
78
78
  ips = (0..50)
79
- ips.each { |i| remotes.add("0.0.0.#{i}", 9999) }
79
+ ips.each { |i| remotes.add("0.0.0.#{i + 1}", 9999) }
80
80
  remotes.iterate(Zold::Log::NULL) { raise 'Intended' }
81
81
  ips.each { |i| assert(1, remotes.all[i][:errors]) }
82
82
  end
@@ -87,7 +87,7 @@ class TestRemotes < Zold::Test
87
87
  file = File.join(dir, 'remotes')
88
88
  FileUtils.touch(file)
89
89
  remotes = Zold::Remotes.new(file: file)
90
- 5.times { |i| remotes.add("0.0.0.#{i}", 9999) }
90
+ 5.times { |i| remotes.add("0.0.0.#{i + 1}", 9999) }
91
91
  total = 0
92
92
  remotes.iterate(Zold::Log::NULL) do
93
93
  total += 1
@@ -102,7 +102,7 @@ class TestRemotes < Zold::Test
102
102
  file = File.join(dir, 'remotes')
103
103
  FileUtils.touch(file)
104
104
  remotes = Zold::Remotes.new(file: file)
105
- 5.times { |i| remotes.add("0.0.0.#{i}", 9999) }
105
+ 5.times { |i| remotes.add("0.0.0.#{i + 1}", 9999) }
106
106
  total = 0
107
107
  remotes.iterate(Zold::Log::NULL) do
108
108
  sleep 0.25
@@ -116,7 +116,7 @@ class TestRemotes < Zold::Test
116
116
  Dir.mktmpdir do |dir|
117
117
  remotes = Zold::Remotes.new(file: File.join(dir, 'rrr.csv'))
118
118
  remotes.clean
119
- 5.times { |i| remotes.add("0.0.0.#{i}", 8080) }
119
+ 5.times { |i| remotes.add("0.0.0.#{i + 1}", 8080) }
120
120
  total = 0
121
121
  remotes.iterate(test_log) do
122
122
  sleep 0.25
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.28
4
+ version: 0.29.29
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-14 00:00:00.000000000 Z
11
+ date: 2019-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace
@@ -813,7 +813,7 @@ licenses:
813
813
  - MIT
814
814
  metadata: {}
815
815
  post_install_message: |-
816
- Thanks for installing Zold 0.29.28!
816
+ Thanks for installing Zold 0.29.29!
817
817
  Study our White Paper: https://papers.zold.io/wp.pdf
818
818
  Read our blog posts: https://blog.zold.io
819
819
  Try ZLD online wallet at: https://wts.zold.io