nano_rpc 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8c871ca7d70348b478a65dfbc0deb06fb97f610aed59ad9bfb83b8dd6e8f7cf
4
- data.tar.gz: 6c828b85a51d5a8343854d490338c1afc767231c3339d6acf60149c2be933988
3
+ metadata.gz: 31ae67733c43baa9c7abad5602ce086a4869f97b758b2fc6dfa2936fe2e1faac
4
+ data.tar.gz: 65972b80fc7b29dc8e1dd8d01897f3ef3758f32cca06bece13048a1253d343ea
5
5
  SHA512:
6
- metadata.gz: a4cd19afe692791e9399853c82f1bf590e434f99058fe96261f326876b566b1c78e5c5f21b51261626845041987f9e50a44b092186b9afc392c5ace634509ab7
7
- data.tar.gz: c2724b67a4b589fff193c363e8f52b396e10eda47cc602daacabeb9a44da2ac2c278f6f927b7bdf2231513d9b7247142c584731fedec69590a10f1a80c0ddfb0
6
+ metadata.gz: 8320b2affa49d105293af12ffdf551928d5f5242a04087d3ef45714d74e8f18a9db6cfe6c0e4b612a55bc649df14077ade65dc70c1cae667c87d2afff9418a06
7
+ data.tar.gz: a23042ec1d7ce8fb19b19f10ba621f1e8dfa94461327d3b813df7def5db131f6bdd9ef5bbcf8262eee459566cf2e801d7d570753a44e4d9129e508de7a6921c6
@@ -54,7 +54,6 @@ module Nano
54
54
  def rpc_post(params)
55
55
  response = rest_client_post(url, params)
56
56
  ensure_status_success!(response)
57
-
58
57
  data = Nano::Response.new(JSON[response&.body])
59
58
  ensure_valid_response!(data)
60
59
 
@@ -69,7 +68,7 @@ module Nano
69
68
  end
70
69
 
71
70
  def rest_client_post(url, params)
72
- RestClient.post(url, params, request_headers)
71
+ RestClient.post(url, params.to_json, request_headers)
73
72
  rescue Errno::ECONNREFUSED
74
73
  raise Nano::NodeConnectionFailure,
75
74
  "Node connection failure at #{url}"
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Nano
3
- VERSION = '0.8.0'
3
+ VERSION = '0.9.0'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nano_rpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Craig-Kuhn (JCK)
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-09 00:00:00.000000000 Z
11
+ date: 2018-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler