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 +4 -4
- data/.DS_Store +0 -0
- data/.ruby-version +1 -1
- data/Gemfile.lock +1 -1
- data/lib/.DS_Store +0 -0
- data/lib/substrate_common/version.rb +1 -1
- data/lib/substrate_common.rb +0 -5
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fddf98e3123d4ae3b85b604051169cfac7e8a32201c6227c610e7b37c1f2aa46
|
4
|
+
data.tar.gz: f341edcc18be67925692fd79cc4de277ece89c200560165a388819482f0814ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f3f145a8d0534ee4ce2d32ccddc21b43a6b12d2dd8a2906d0aae53883d1cd51a2e92755d3fcbc1f4d5a6cee86c729bf9de8e368c34ca2d0256c34841b24113a
|
7
|
+
data.tar.gz: 947f53d8fa90fb3f3b0143b6fd51716476056c798853fa9eef2209d2f585fb4d1c07f9db1c6155af2ff5176f439d45ccd759b5b742d9c3c07ae82bab932ce7e1
|
data/.DS_Store
ADDED
Binary file
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.6
|
1
|
+
2.6
|
data/Gemfile.lock
CHANGED
data/lib/.DS_Store
ADDED
Binary file
|
data/lib/substrate_common.rb
CHANGED
@@ -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.
|
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:
|
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
|