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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecdb1da351f0651000bc274335423714f448538235a3061462059d1f47e4c64f
4
- data.tar.gz: fb3eec37f962b4b9f833e5cf9ec02684609fbf2817102ee224c22bcfb8619f34
3
+ metadata.gz: 71b6eeafcf81b72d27f92a00710fdefe47ab381fe049ea4171a0457bb4ffcb07
4
+ data.tar.gz: 5765213f693b4078686f67f4c9b4231c16087affb10e472f712ef00f59d50fcf
5
5
  SHA512:
6
- metadata.gz: 04f306bb9766b8972f47cc3c66a54924dbe4d4a82d1e6600bbed710319304c9bd584867b1c0128598bad58634ad89a3beddafd501a96a9dd26b80c1672a631c8
7
- data.tar.gz: 8f2572a74a9f7b014c415759d9e58fadcb953312fbcf158dd2d7d94534406c9e38a5d93639f4cf20a565c1573e67999a5f0e25b68c9a5ce5e592dbccabed9305
6
+ metadata.gz: 065ae207162a8406703996c93c53d69a545d3c28a4fbc4bf6f4f886d97bacf74abf74c771eab8917bbc0965830f77cde126e1aa7f0299eb61b65389e2a65e775
7
+ data.tar.gz: 6607b437a59805005275cd49ca592d1cddbf1f40db9beacb2d876301134ada2075870723f109b04f748d9a738cade02717027445fa93652cc19e014801ec15d2
@@ -224,9 +224,9 @@ module Universa
224
224
  end
225
225
 
226
226
  # get errors reported by the network
227
- # @return [Array(String)] possibly empty array
227
+ # @return [Array(Hash)] possibly empty array of error data
228
228
  def errors
229
- @_errors ||= @source.errors&.map(&:to_s) || []
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
- s = get_packed
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
@@ -1,4 +1,4 @@
1
1
  module Universa
2
2
  # Current gem version
3
- VERSION = "3.11.4.3"
3
+ VERSION = "3.11.4.4"
4
4
  end
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.3
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-08-27 00:00:00.000000000 Z
11
+ date: 2019-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: farcall