tezos_client 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +1 -1
- data/lib/tezos_client/tools/convert_to_hash/option.rb +20 -0
- data/lib/tezos_client/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e2dc6502a81aa8acb23cab552f03edbb1c94d7e21bfa2e653f9d662b0f2f5b5
|
4
|
+
data.tar.gz: 807c964c0919c93331e3e45610195705bed3ead65ca71a51f46b13d557ba4b14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b8d7f60f470bc533c3305cc33c007614b87461c5c0ec64e9d0a535ded2ba5707108cd5c359b89b5f292d215a2aa1ed2eaeffed9c55efa6a0c8f0dd51b46d08a
|
7
|
+
data.tar.gz: 80532f0a06a7f8d4e810c80ef4c90ddac5e1bf4513bb17e10bc2b1659ed0e7319ed620649f655285d03fe34b1e5a971359d7fa676192f02b0089c17a08f8bd39
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5
|
1
|
+
2.6.5
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class TezosClient
|
4
|
+
module Tools
|
5
|
+
class ConvertToHash < ActiveInteraction::Base
|
6
|
+
class Option < Base
|
7
|
+
def decode
|
8
|
+
if data[:prim] == "None"
|
9
|
+
return nil
|
10
|
+
elsif data[:prim] == "Some"
|
11
|
+
TezosClient::Tools::ConvertToHash::Base.new(
|
12
|
+
data: data[:args][0],
|
13
|
+
type: type[:args][0]
|
14
|
+
).value
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/tezos_client/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tezos_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pierre Michard
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -285,6 +285,7 @@ files:
|
|
285
285
|
- lib/tezos_client/tools/convert_to_hash/list.rb
|
286
286
|
- lib/tezos_client/tools/convert_to_hash/map.rb
|
287
287
|
- lib/tezos_client/tools/convert_to_hash/nat.rb
|
288
|
+
- lib/tezos_client/tools/convert_to_hash/option.rb
|
288
289
|
- lib/tezos_client/tools/convert_to_hash/pair.rb
|
289
290
|
- lib/tezos_client/tools/convert_to_hash/signature.rb
|
290
291
|
- lib/tezos_client/tools/convert_to_hash/string.rb
|
@@ -316,8 +317,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
316
317
|
- !ruby/object:Gem::Version
|
317
318
|
version: '0'
|
318
319
|
requirements: []
|
319
|
-
|
320
|
-
rubygems_version: 2.7.6
|
320
|
+
rubygems_version: 3.0.3
|
321
321
|
signing_key:
|
322
322
|
specification_version: 4
|
323
323
|
summary: Wrapper to the tezos client.
|