cita-sdk-ruby 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/README.md +4 -0
- data/lib/cita/rpc.rb +3 -1
- data/lib/cita/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ea59119ebcab716aa5c329e63aee5a25bcdd93705240ff623925b9447bb25e4
|
|
4
|
+
data.tar.gz: e29755492412d1dd392d77918e76194622538096dc65ef6db341d6bffae31866
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d47ca1bfe3369010cba48fe50ac53026cd7a3cb8ace96778ed0718441181a6a062e0101a3162aea0d87858e25de59d1e23143629fcc8403c3859d6c6c7528008
|
|
7
|
+
data.tar.gz: 1aff39ad3732460b827b3260c01d5cd28cef74533f79066b2d411ca3187c35fb054534349aaa402ce6923fa0289659344a11ea1b05d201293958b30fb9f14937
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
cita-sdk-ruby (0.
|
|
4
|
+
cita-sdk-ruby (0.23.0)
|
|
5
5
|
activesupport (~> 5.2.1)
|
|
6
6
|
ciri-crypto (= 0.1.1)
|
|
7
7
|
faraday (~> 0.15.3)
|
|
@@ -11,7 +11,7 @@ PATH
|
|
|
11
11
|
GEM
|
|
12
12
|
remote: https://rubygems.org/
|
|
13
13
|
specs:
|
|
14
|
-
activesupport (5.2.
|
|
14
|
+
activesupport (5.2.3)
|
|
15
15
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
16
16
|
i18n (>= 0.7, < 2)
|
|
17
17
|
minitest (~> 5.1)
|
|
@@ -26,13 +26,13 @@ GEM
|
|
|
26
26
|
ciri-utils (0.2.2)
|
|
27
27
|
digest-sha3 (~> 1.1.0)
|
|
28
28
|
coderay (1.1.2)
|
|
29
|
-
concurrent-ruby (1.1.
|
|
29
|
+
concurrent-ruby (1.1.5)
|
|
30
30
|
diff-lcs (1.3)
|
|
31
31
|
digest-sha3 (1.1.0)
|
|
32
32
|
faraday (0.15.4)
|
|
33
33
|
multipart-post (>= 1.2, < 3)
|
|
34
34
|
ffi (1.10.0)
|
|
35
|
-
google-protobuf (3.7.
|
|
35
|
+
google-protobuf (3.7.1)
|
|
36
36
|
i18n (1.6.0)
|
|
37
37
|
concurrent-ruby (~> 1.0)
|
|
38
38
|
jaro_winkler (1.5.1)
|
|
@@ -92,4 +92,4 @@ DEPENDENCIES
|
|
|
92
92
|
rubocop (~> 0.59)
|
|
93
93
|
|
|
94
94
|
BUNDLED WITH
|
|
95
|
-
1.17.
|
|
95
|
+
1.17.3
|
data/README.md
CHANGED
data/lib/cita/rpc.rb
CHANGED
|
@@ -5,7 +5,7 @@ module CITA
|
|
|
5
5
|
class RPC
|
|
6
6
|
attr_reader :url, :http
|
|
7
7
|
|
|
8
|
-
# CITA v0.
|
|
8
|
+
# CITA v0.23 RPC list
|
|
9
9
|
METHOD_NAMES = %w(
|
|
10
10
|
peerCount
|
|
11
11
|
blockNumber
|
|
@@ -29,6 +29,8 @@ module CITA
|
|
|
29
29
|
getMetaData
|
|
30
30
|
getBlockHeader
|
|
31
31
|
getStateProof
|
|
32
|
+
getVersion
|
|
33
|
+
peersInfo
|
|
32
34
|
).freeze
|
|
33
35
|
|
|
34
36
|
def initialize(url)
|
data/lib/cita/version.rb
CHANGED