openassets-ruby 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openassets/provider/bitcoin_core_provider.rb +1 -2
- data/lib/openassets/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f362016ff8fa51b787342956a9ff9bf48781f25
|
4
|
+
data.tar.gz: ae953a7a6560179461d89acd2a5760f2ac6c9bb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84efa72f48d56159d10b4df97c90d5b4a8a14732d04de89c7cc2db5bbf23ae4ccb115167500550a92e02aff0dd3874c39b9f3ddc41cd01377d15911c87b9a1fb
|
7
|
+
data.tar.gz: 53751bbe2b3e4828a470b955426f814e9c3c58f8680119fd1064464493b7a8852fa9d4f81d5271e1f2c6687406a90f784fc2511c86606459c3f85effb6791c30
|
@@ -114,7 +114,7 @@ module OpenAssets
|
|
114
114
|
:id => 'jsonrpc'
|
115
115
|
}
|
116
116
|
post(server_url, @config[:timeout], @config[:open_timeout], data.to_json, content_type: :json) do |respdata, request, result|
|
117
|
-
raise ApiError, result.message
|
117
|
+
raise ApiError, result.message if !result.kind_of?(Net::HTTPSuccess) && respdata.empty?
|
118
118
|
response = JSON.parse(respdata.gsub(/\\u([\da-fA-F]{4})/) { [$1].pack('H*').unpack('n*').pack('U*').encode('ISO-8859-1').force_encoding('UTF-8') })
|
119
119
|
raise ApiError, response['error'] if response['error']
|
120
120
|
response['result']
|
@@ -124,7 +124,6 @@ module OpenAssets
|
|
124
124
|
def post(url, timeout, open_timeout, payload, headers={}, &block)
|
125
125
|
RestClient::Request.execute(:method => :post, :url => url, :timeout => timeout, :open_timeout => open_timeout, :payload => payload, :headers => headers, &block)
|
126
126
|
end
|
127
|
-
|
128
127
|
end
|
129
128
|
end
|
130
129
|
end
|
data/lib/openassets/version.rb
CHANGED
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.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- azuchi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bitcoin-ruby
|
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
245
|
version: '0'
|
246
246
|
requirements: []
|
247
247
|
rubyforge_project:
|
248
|
-
rubygems_version: 2.
|
248
|
+
rubygems_version: 2.5.1
|
249
249
|
signing_key:
|
250
250
|
specification_version: 4
|
251
251
|
summary: The implementation of the Open Assets Protocol for Ruby.
|