stellar_core_commander 0.0.6 → 0.0.7

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: 7404e814b58b7ea5012e5cca8cf96b30223d9723
4
- data.tar.gz: d0d48ebcbd0658d51a7565fc986a0182d28277ab
3
+ metadata.gz: 3bd690aabdd136d2e056b1c887f733a16fd95197
4
+ data.tar.gz: e314104fcf1862f33ce680eb181a1a52c5e966f3
5
5
  SHA512:
6
- metadata.gz: c54e845ba8da423c8205d6014d61cde2139a10f0f8d5f51b959aef968ce4fdf029fb47ab022bb5ec68e1846ee5295c9cff9202e6dc6bcee41a1cca83951e61ec
7
- data.tar.gz: 693ca68613c2b5e3252828ca7286ee24741437f3639e5819313b6445ba263edd12be576d458f78b8ff4bb25e3053aedc488ed1428ca4c832c58181f4be29468b
6
+ metadata.gz: 8dba971da397b4acc0c692b8b2351434acd1b3312cae99addacd8b373e9b747c56a2d013c5a29c4b8373f044c934e40925815a905838568cf152daca081c7cdb
7
+ data.tar.gz: fe0334578e9af7e3e32f4df18dfe0e5b49b1d4d664ff40ef59621ed5ccca21feba5c382545629f33fc9bc4d1e16c6ee6dca32d08e1ead5e179dc51328cba42cf
@@ -142,18 +142,15 @@ module StellarCoreCommander
142
142
  true
143
143
  end
144
144
 
145
- Contract String => Stellar::TransactionResult
145
+ Contract String => Any
146
146
  def submit_transaction(envelope_hex)
147
147
  response = @server.get("tx", blob: envelope_hex)
148
148
  body = ActiveSupport::JSON.decode(response.body)
149
149
 
150
- unless body["wasReceived"] == true
150
+ if body["status"] == "ERROR"
151
151
  raise "transaction failed: #{body.inspect}"
152
152
  end
153
153
 
154
- hex_tr = body["result"]
155
- raw_tr = Convert.from_hex(hex_tr)
156
- Stellar::TransactionResult.from_xdr(raw_tr)
157
154
  end
158
155
 
159
156
 
@@ -1,3 +1,3 @@
1
1
  module StellarCoreCommander
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_dependency "stellar-base", "= 0.0.8"
20
+ spec.add_dependency "stellar-base", "= 0.0.9"
21
21
  spec.add_dependency "slop", "~> 3.6.0"
22
22
  spec.add_dependency "faraday", "~> 0.9.1"
23
23
  spec.add_dependency "faraday_middleware", "~> 0.9.1"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stellar_core_commander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Fleckenstein
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-13 00:00:00.000000000 Z
11
+ date: 2015-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: stellar-base
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.0.8
19
+ version: 0.0.9
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.0.8
26
+ version: 0.0.9
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: slop
29
29
  requirement: !ruby/object:Gem::Requirement