openassets-ruby 0.3.7 → 0.3.8
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d1e35fccc881b677dbfe5131861df8680afd943
|
4
|
+
data.tar.gz: cc3dcd2477325aaa0af9d376258933debb7dae38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e78a8b5c3532dcb483d1b2b8365dd07fc0e2a42e6698b2e8fcc8b069106628f5ef776ff79754e189938fd6c8bd1ad6f8f7ec26697a153fda35349ce04e03c647
|
7
|
+
data.tar.gz: b2f68b2e7f30035952fa8a51205f61b89d5715c84a1d38dc0460b0921051345338f8876c5e23d20f489f6fd5f7b7e908b3cf340e77e1de96b4c24ad7ed1e13ad
|
data/lib/openassets/api.rb
CHANGED
@@ -12,6 +12,16 @@ module OpenAssets
|
|
12
12
|
self.constants.map{|name|self.const_get(name)}
|
13
13
|
end
|
14
14
|
|
15
|
+
def self.output_type_label(type)
|
16
|
+
case type
|
17
|
+
when UNCOLORED then 'uncolored'
|
18
|
+
when MARKER_OUTPUT then 'marker'
|
19
|
+
when ISSUANCE then 'issuance'
|
20
|
+
when TRANSFER then 'transfer'
|
21
|
+
else 'uncolored'
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
15
25
|
end
|
16
26
|
end
|
17
27
|
end
|
@@ -65,7 +65,8 @@ module OpenAssets
|
|
65
65
|
'asset_amount' => asset_amount.to_s,
|
66
66
|
'account' => @account,
|
67
67
|
'asset_definition_url' => @asset_definition_url,
|
68
|
-
'proof_of_authenticity' => proof_of_authenticity
|
68
|
+
'proof_of_authenticity' => proof_of_authenticity,
|
69
|
+
'output_type' => OpenAssets::Protocol::OutputType.output_type_label(@output_type)
|
69
70
|
}
|
70
71
|
end
|
71
72
|
|
data/lib/openassets/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openassets-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- azuchi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bitcoin-ruby
|