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 +4 -4
- data/lib/zold/remotes.rb +1 -0
- data/lib/zold/version.rb +1 -1
- data/test/test_remotes.rb +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78719fdddf055f0effd86b37349e8a5227833c94e482f5dfdf7eb055098a0914
|
4
|
+
data.tar.gz: aa21bb8f40d6080ecdfa15b7b86730a080c5f39cc232ea44e9acb21efd148e96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 241c8d900b256084f5a39525f1c0736374baa454a45087bfcdb478d3ac6060c27e07136252dece52871a6bdd49cdd8c3f187234524daefb97c62b85431541985
|
7
|
+
data.tar.gz: 8596c0df0d8b2e6f9cc2f316eb373ad70b291b8266af1572c993cdf21033de0621aad81c9e77a8d52bfffa5eba8e14355f4a84cd64268bf109be297988ab7396
|
data/lib/zold/remotes.rb
CHANGED
@@ -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?
|
data/lib/zold/version.rb
CHANGED
data/test/test_remotes.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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
|