pochette_toshi 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: 9f0a9d36533de58e18765f1f045d12b4dd5af3aa
4
- data.tar.gz: b966fd2ecb0edfe78fdf2aa38ce09b63e0fb14d1
3
+ metadata.gz: a7c9bfb71ed94aeeeefab9fb2fedb216159b99fa
4
+ data.tar.gz: 185b3e27c051d994ee558ef09c41fa3e4f646ecc
5
5
  SHA512:
6
- metadata.gz: da2ff00eefcf576a2e032d7c7edddb9b787ab05a85f3fa84dc3daafa1ce9c23f52e302aaa1a1a879b51ae6e915b743413e28331d1f1402e35cf9c1b7016d50a2
7
- data.tar.gz: a38c5937a9c17cf3dde9bef73a8b368a15befec26778b7ce5f08db36f107a4334f379ec55e193d377feb9cb4accc0eb4a062708cdc78e5d8aa8b4dd14ea4b583
6
+ metadata.gz: 746d80c8fb958171be301e59be21dd2f009ad5ff38a24042aac6d94a581fe4f1bc6305a10da8a4055a94e996dc6d2b6ae1fb1c0ada8e0689b6c0f199bb7ef963
7
+ data.tar.gz: 1d4166804bbd96d16100b76d81018b0c5655ba7b91a1abf1e582e726726e8304017d0233bd47a8c9545907eee849b2b222b2b7ab884f9a779aad1a3e7358d231
@@ -218,7 +218,7 @@ class Pochette::Backends::Toshi
218
218
  domain = Pochette.testnet ? 'testnet3' : 'bitcoin'
219
219
  response = RestClient.post "https://#{domain}.toshi.io/api/v0/transactions",
220
220
  {"hex" => hex}.to_json, content_type: :json, accept: :json
221
- response['hash']
221
+ Oj.load(response)['hash']
222
222
  end
223
223
 
224
224
  def query(sql)
@@ -1,3 +1,3 @@
1
1
  module PochetteToshi
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
@@ -24,4 +24,5 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "bundler", "~> 1.9"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
26
26
  spec.add_development_dependency "rspec", "~> 2"
27
+ spec.add_development_dependency "webmock", "~> 1.21"
27
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pochette_toshi
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
  - Nubis
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '2'
111
+ - !ruby/object:Gem::Dependency
112
+ name: webmock
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.21'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.21'
111
125
  description: Toshi backend for the pochette wallet library
112
126
  email:
113
127
  - yo@nubis.im