universa 3.11.4.3 → 3.11.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/universa/client.rb +2 -2
- data/lib/universa/keys.rb +9 -3
- data/lib/universa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71b6eeafcf81b72d27f92a00710fdefe47ab381fe049ea4171a0457bb4ffcb07
|
4
|
+
data.tar.gz: 5765213f693b4078686f67f4c9b4231c16087affb10e472f712ef00f59d50fcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 065ae207162a8406703996c93c53d69a545d3c28a4fbc4bf6f4f886d97bacf74abf74c771eab8917bbc0965830f77cde126e1aa7f0299eb61b65389e2a65e775
|
7
|
+
data.tar.gz: 6607b437a59805005275cd49ca592d1cddbf1f40db9beacb2d876301134ada2075870723f109b04f748d9a738cade02717027445fa93652cc19e014801ec15d2
|
data/lib/universa/client.rb
CHANGED
@@ -224,9 +224,9 @@ module Universa
|
|
224
224
|
end
|
225
225
|
|
226
226
|
# get errors reported by the network
|
227
|
-
# @return [Array(
|
227
|
+
# @return [Array(Hash)] possibly empty array of error data
|
228
228
|
def errors
|
229
|
-
@_errors ||= @source.errors
|
229
|
+
@_errors ||= @source.errors || []
|
230
230
|
rescue
|
231
231
|
"failed to extract errors: #$!"
|
232
232
|
end
|
data/lib/universa/keys.rb
CHANGED
@@ -158,9 +158,7 @@ module Universa
|
|
158
158
|
# returns binary representation. It is not a string representation!
|
159
159
|
# @return [String] binary string representation
|
160
160
|
def packed
|
161
|
-
|
162
|
-
s.force_encoding 'binary'
|
163
|
-
s
|
161
|
+
@packed ||= get_packed.force_encoding 'binary'
|
164
162
|
end
|
165
163
|
|
166
164
|
# Compare KeyAddress with another KeyAddress or its string or even binary representation.
|
@@ -182,6 +180,14 @@ module Universa
|
|
182
180
|
end
|
183
181
|
end
|
184
182
|
|
183
|
+
def hash
|
184
|
+
to_s.hash
|
185
|
+
end
|
186
|
+
|
187
|
+
def eql?(other)
|
188
|
+
self == other
|
189
|
+
end
|
190
|
+
|
185
191
|
end
|
186
192
|
|
187
193
|
end
|
data/lib/universa/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: universa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.11.4.
|
4
|
+
version: 3.11.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sergeych
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: farcall
|