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: be63c63a3bfe0780a804ba00d816147129783e9a
4
- data.tar.gz: 3d54a151c15b709b83b1db2f81fdad42c9b618c2
3
+ metadata.gz: 3d1e35fccc881b677dbfe5131861df8680afd943
4
+ data.tar.gz: cc3dcd2477325aaa0af9d376258933debb7dae38
5
5
  SHA512:
6
- metadata.gz: cfe274b099f00dd77959109bc64b720dac4495e1a550c3e9097973022a4858091c84fdf950d762465e070e586f847c82c432ead9056f24ec70c966debd2b35e1
7
- data.tar.gz: 9b112a24893f8b23294bc94afcefa9ec27bc8f45a0713e117e3d5f2be2942788491cbfeda85fe065798d43cf560574e9eaf3bf4dea117d73a9587cf5c7b173e2
6
+ metadata.gz: e78a8b5c3532dcb483d1b2b8365dd07fc0e2a42e6698b2e8fcc8b069106628f5ef776ff79754e189938fd6c8bd1ad6f8f7ec26697a153fda35349ce04e03c647
7
+ data.tar.gz: b2f68b2e7f30035952fa8a51205f61b89d5715c84a1d38dc0460b0921051345338f8876c5e23d20f489f6fd5f7b7e908b3cf340e77e1de96b4c24ad7ed1e13ad
@@ -316,7 +316,7 @@ module OpenAssets
316
316
 
317
317
  def change_network
318
318
  if is_testnet?
319
- Bitcoin.network = :testnet
319
+ Bitcoin.network = :testnet3
320
320
  else
321
321
  Bitcoin.network = :bitcoin
322
322
  end
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module OpenAssets
2
- VERSION = '0.3.7'
2
+ VERSION = '0.3.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.3.7
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-02-23 00:00:00.000000000 Z
11
+ date: 2016-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bitcoin-ruby