mastercoin-ruby 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -16,11 +16,11 @@ module Mastercoin
16
16
  raise TransactionNotFoundException.new("Transaction #{tx_hash} could not be found. Is your blockchain up to date?") if self.btc_tx.nil?
17
17
 
18
18
  unless self.has_genesis_as_output?
19
- raise NoMastercoinTransaction.new("This transaction does not contain a txout to the genesis address, invalid.")
19
+ raise NoMastercoinTransactionException.new("This transaction does not contain a txout to the genesis address, invalid.")
20
20
  end
21
21
 
22
22
  unless self.has_three_outputs?
23
- raise NoMastercoinTransaction.new("This transaction does not contain three outputs, invalid.")
23
+ raise NoMastercoinTransactionException.new("This transaction does not contain three outputs, invalid.")
24
24
  end
25
25
 
26
26
  if self.btc_tx.outputs.collect{|x| x.script.is_multisig?}.include?(true)
@@ -57,6 +57,9 @@ module Mastercoin
57
57
  self.btc_tx.outputs.each do |output|
58
58
  address = output.get_address
59
59
  sequence = Mastercoin::Util.get_sequence(address)
60
+
61
+ raise NoMastercoinTransactionException.new("Could not find a valid looking data-address, invalid.")
62
+
60
63
  if self.data_addresses[0].sequence.to_s == sequence.to_s
61
64
  self.target_address = address
62
65
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "mastercoin-ruby"
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Maran"]
12
- s.date = "2013-09-25"
12
+ s.date = "2013-10-07"
13
13
  s.description = "Basic implementation of the Mastercoin protocol."
14
14
  s.email = "maran.hidskes@gmail.com"
15
15
  s.executables = ["exodus_payment", "mastercoin_transaction", "simple_send", "wallet.rb"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercoin-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-25 00:00:00.000000000 Z
12
+ date: 2013-10-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bitcoin-ruby
@@ -169,7 +169,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
169
169
  version: '0'
170
170
  segments:
171
171
  - 0
172
- hash: 1613573079971299225
172
+ hash: -4035264344510566037
173
173
  required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  none: false
175
175
  requirements: