substrate_common.rb 0.1.1 → 0.1.2

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: c601856518e431bc9a8a4623a659406c6d7a9d1826fcbb8b6cca5e0a90a06bfa
4
- data.tar.gz: 71d880364a9777dffe1dc3f70b0dedfc2ea44c2bb12e4200d66d55ed5350f38e
3
+ metadata.gz: fddf98e3123d4ae3b85b604051169cfac7e8a32201c6227c610e7b37c1f2aa46
4
+ data.tar.gz: f341edcc18be67925692fd79cc4de277ece89c200560165a388819482f0814ff
5
5
  SHA512:
6
- metadata.gz: b3876a5c03ff8215684cf984c73ace0674045d9964c4d55f1628a66ac2c482f93f0b11ab235dabf71a6c611d15876c2d72a07e297da4bbafdf0eee31239810bd
7
- data.tar.gz: ecefaeb3df900db65c6e48354814cd6a2792b9a144c695e39757e18557e711ea62f75956695d0694f60e1221a300850367b884d0f87b72f96f0e19ff11ea66f6
6
+ metadata.gz: 5f3f145a8d0534ee4ce2d32ccddc21b43a6b12d2dd8a2906d0aae53883d1cd51a2e92755d3fcbc1f4d5a6cee86c729bf9de8e368c34ca2d0256c34841b24113a
7
+ data.tar.gz: 947f53d8fa90fb3f3b0143b6fd51716476056c798853fa9eef2209d2f585fb4d1c07f9db1c6155af2ff5176f439d45ccd759b5b742d9c3c07ae82bab932ce7e1
data/.DS_Store ADDED
Binary file
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.4
1
+ 2.6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- substrate_common.rb (0.1.1)
4
+ substrate_common.rb (0.1.2)
5
5
  base58
6
6
  blake2b
7
7
  xxhash
data/lib/.DS_Store ADDED
Binary file
@@ -1,3 +1,3 @@
1
1
  module SubstrateCommon
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -17,11 +17,6 @@ class Array
17
17
  '0b' + self.map { |b| b.to_s(2).rjust(8, '0') }.join
18
18
  end
19
19
 
20
- def bytes_to_hex
21
- raise "Not a byte array" unless self.is_byte_array?
22
- self.map { |b| b.to_s(16).rjust(2, '0') }
23
- end
24
-
25
20
  def bytes_to_bin
26
21
  raise "Not a byte array" unless self.is_byte_array?
27
22
  self.map { |b| b.to_s(2).rjust(8, '0') }
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wu Minzhe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-29 00:00:00.000000000 Z
11
+ date: 2020-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: blake2b
@@ -101,6 +101,7 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
+ - ".DS_Store"
104
105
  - ".gitignore"
105
106
  - ".ruby-version"
106
107
  - Gemfile
@@ -110,6 +111,7 @@ files:
110
111
  - Rakefile
111
112
  - bin/console
112
113
  - bin/setup
114
+ - lib/.DS_Store
113
115
  - lib/substrate_common.rb
114
116
  - lib/substrate_common/address.rb
115
117
  - lib/substrate_common/version.rb