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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70daead9de133f379e6162517a1b105acf4b43f1
4
- data.tar.gz: d0ba9164705acde3f5f902ae33e8dae5bf7f2599
3
+ metadata.gz: 5f362016ff8fa51b787342956a9ff9bf48781f25
4
+ data.tar.gz: ae953a7a6560179461d89acd2a5760f2ac6c9bb9
5
5
  SHA512:
6
- metadata.gz: 3c60706a248230f365bdf5852d648843ad596daf5c66eb30f80e6ccb073259b9b192897041bd518e5e8f1dcfcca1318aedc068da1b3d466dd26dc8248ec70af8
7
- data.tar.gz: 72f689fdd523bfb4421cf8e6ce90e3f8180e9344e4162fe6a2ca7e56efe1c8026085a6acb6fe5d557a2d4f77568099868df9aba8b3c90c0172fd4dc12ccaa563
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 unless result.kind_of?(Net::HTTPSuccess)
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
@@ -1,3 +1,3 @@
1
1
  module OpenAssets
2
- VERSION = '0.6.3'
2
+ VERSION = '0.6.4'
3
3
  end
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.3
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-05-24 00:00:00.000000000 Z
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.6.11
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.