openassets-ruby 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openassets/protocol/transaction_output.rb +2 -5
- data/lib/openassets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35d1f08b8298e82ae2bcc4e445f9f417229881e0
|
4
|
+
data.tar.gz: f7bbece60f1d4e193be5eff4f5429056a6cf209d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccbe3eb5168cd30fccb69e4ed58fc532d3873ddfebd9ea420a4647e48b5e0a0d8a34a3d7c5c5a9b6fadd9cd977b4a46f99b85f837c36fc637ca574b7977f241d
|
7
|
+
data.tar.gz: ab571a435a7ed68a15eb84984f9a2d359d0d5071e8a8b2ab1d963f965f3f83979bd5e4ba9db2e6a20480ed79ed60a8e28590adaa2f37a15b3db8ada4b5036b5f
|
@@ -43,12 +43,9 @@ module OpenAssets
|
|
43
43
|
|
44
44
|
# get divisibility defined by asset definition file.
|
45
45
|
def divisibility
|
46
|
+
return 0 unless @valid_asset_definition
|
46
47
|
json = metadata_to_json
|
47
|
-
|
48
|
-
return 0
|
49
|
-
else
|
50
|
-
return json['divisibility']
|
51
|
-
end
|
48
|
+
(json.nil? || json.length == 0) ? 0 : json['divisibility']
|
52
49
|
end
|
53
50
|
|
54
51
|
# get Asset definition url that is included metadata.
|
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.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- azuchi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bitcoin-ruby
|