mastercoin-ruby 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/mastercoin-ruby/transaction.rb +2 -1
- data/mastercoin-ruby.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.8
|
@@ -13,6 +13,7 @@ module Mastercoin
|
|
13
13
|
@store = Mastercoin.storage
|
14
14
|
self.data_addresses = []
|
15
15
|
self.rejected_outputs = []
|
16
|
+
self.target_address = nil
|
16
17
|
self.btc_tx = @store.get_tx(tx_hash)
|
17
18
|
self.sending_address = btc_tx.inputs.first.get_prev_out.get_address
|
18
19
|
self.source_address = Mastercoin::ExodusPayment.highest_output_for_tx(self.btc_tx)
|
@@ -106,7 +107,7 @@ module Mastercoin
|
|
106
107
|
end
|
107
108
|
end
|
108
109
|
end
|
109
|
-
raise NoMastercoinTransactionException.new("Could not find valid looking target address, invalid")
|
110
|
+
raise NoMastercoinTransactionException.new("Could not find valid looking target address, invalid") if self.target_address.nil? && !self.data.class == SellingOffer
|
110
111
|
raise NoMastercoinTransactionException.new("Could not find a valid looking data-address, invalid.") unless self.data
|
111
112
|
end
|
112
113
|
|
data/mastercoin-ruby.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "mastercoin-ruby"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.8"
|
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 = "2014-01-
|
12
|
+
s.date = "2014-01-15"
|
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-console", "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.2.
|
4
|
+
version: 0.2.8
|
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: 2014-01-
|
12
|
+
date: 2014-01-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bitcoin-ruby
|
@@ -194,7 +194,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
194
194
|
version: '0'
|
195
195
|
segments:
|
196
196
|
- 0
|
197
|
-
hash:
|
197
|
+
hash: 1859914969447593961
|
198
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
199
|
none: false
|
200
200
|
requirements:
|