substrate_common.rb 0.1.3 → 0.1.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: 550d66054249b11b96fa8655d07779bc84ac0aac30d6cc6ba9dbb74780556935
4
- data.tar.gz: 509c388ff296dd1755c4fc110d7cb9c50f5849fb0ddfad72df63c927ca6b145b
3
+ metadata.gz: b498c9f38624f9dec4a75c5be6dcf7300d4eac30f4e102b0b3c5e7df8ce6c179
4
+ data.tar.gz: ce75f39461e45e2326b251052abe3cb8446a0e5259d75c1e90699920e0cb48a4
5
5
  SHA512:
6
- metadata.gz: f31ff5bd15a07051daddd83373211943f944df59de396a4dc3fffdff7d94a87b907e4155f32e718f1ba7508719af5857ae68594d88a15388203f0a9815871a63
7
- data.tar.gz: d53bc533296193d571d4f3df6114cdbaa63ac0d61450c98e7e3230c5fe9d183d60467c07a66f8d8810170a3a15f77d6e90e82c79d0051a51d748494342abf17b
6
+ metadata.gz: 8da3cff9f56dd5e806fb7fb28ee97a299db47c6033ad9165857c9a8dbf881b1b0d475aac3bdbd37599c0c76fa84d5563394f6ead1d66319f7579e50d8827fba3
7
+ data.tar.gz: a3f072e090d242a1216a7b9f34f8613b5cde6f597ddf3f367c6bfdece33be20e68da8dc9d1710a4a7edbed3df4146b2856dc35d434e6f25b642656e458f9e1c3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- substrate_common.rb (0.1.3)
4
+ substrate_common.rb (0.1.4)
5
5
  base58
6
6
  blake2b
7
7
  xxhash
@@ -1,3 +1,3 @@
1
1
  module SubstrateCommon
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -48,7 +48,7 @@ def xxhash128(data)
48
48
  bytes = []
49
49
  2.times do |i|
50
50
  result = XXhash.xxh64 data, i
51
- bytes = bytes + result.to_s(16).rjust(16, '0').to_byte_array.reverse
51
+ bytes = bytes + result.to_s(16).rjust(16, '0').hex_to_bytes.reverse
52
52
  end
53
- bytes.to_hex_string
53
+ bytes.bytes_to_hex
54
54
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: substrate_common.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wu Minzhe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-06 00:00:00.000000000 Z
11
+ date: 2020-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: blake2b