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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4b3524d199fabcdbcb114a60fdc5ccb72537dfa
4
- data.tar.gz: b6b4e4073d70fd1328c56758600de98bb702872c
3
+ metadata.gz: 35d1f08b8298e82ae2bcc4e445f9f417229881e0
4
+ data.tar.gz: f7bbece60f1d4e193be5eff4f5429056a6cf209d
5
5
  SHA512:
6
- metadata.gz: 4979c48dcc97d4d3d0bd40cfa2750b4ed8c309e791f9ee670ebe1688b702432a9d55c5c85161190a77e0e789887f336cc07ec82fa38689e5c3c774b962099f83
7
- data.tar.gz: c9549400f7c66178df05cebb6441db3da8b0605e1c124ed938415bee3d1804d79c2d9a9748b2115cad6ae3e0a0e6457614b91aa15f59344f35147d1273f7bd94
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
- if json.nil? || json.length == 0
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.
@@ -1,3 +1,3 @@
1
1
  module OpenAssets
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
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.7
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-05 00:00:00.000000000 Z
11
+ date: 2015-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bitcoin-ruby