coinrpc 3.0.4 → 3.0.5

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
  SHA256:
3
- metadata.gz: 5ce9ea2e09c3cfe469e6198ab3b90b787f84b340ee8109947d0d0576827ab0b8
4
- data.tar.gz: 4ca1136ab25df9df3a7dd8f3fb8f4ad92bf29563990a9b8552a9084f19e3db3c
3
+ metadata.gz: 064f064174605d3c00f874d3f56eee6c8ad83f32d2a5e9f2aa9ca0ff51a34f76
4
+ data.tar.gz: 6058db13a2ccac7cbd4c389e4eb7ab3e0d2b678e6bc7d0e2080a9e1383199b62
5
5
  SHA512:
6
- metadata.gz: 432d82676567fb5fc7c0326e893bc5c5ec787d6dd4cd466fd32ecebe663efc39e142eec71c1c24f242353d87dc6f8a7fd4b41424fd1a0e537c9da0700d04e50c
7
- data.tar.gz: d86b2ca06a87a7a867835fb1a2825e6d2aab37343de402cff05b37b8eb3429dd9a7c6ba85044a6bed5350944fccfd0fe827f4f6ae5fe988201167bd90fc3af93
6
+ metadata.gz: d5c86f4024189571cd2eecca3f9d89f64a269c115623d0a88fa55fa2faf89cd4de352e919acfdbdeda1018b8426ab562a12e4258f2bec1babfeaa2f734b5f791
7
+ data.tar.gz: 9549deddb495558275d658913b696d803d2f7d1ca5182d9c745067e43576ea33ae69a2f2287b1590fc22af38b18e60f1bcefd34d813afcd9ce6dabc43a7f41cf
@@ -1,3 +1,3 @@
1
1
  module CoinRPC
2
- VERSION = "3.0.4".freeze
2
+ VERSION = "3.0.5".freeze
3
3
  end
data/lib/coinrpc.rb CHANGED
@@ -17,7 +17,7 @@ module CoinRPC
17
17
 
18
18
  class Client
19
19
 
20
- JSONRPC_V1_1 = "1.1".freeze
20
+ JSONRPC_V1_0 = "1.0".freeze
21
21
  JSONRPC_V2_0 = "2.0".freeze
22
22
  TIMEOUT = 60.freeze
23
23
  ENDPOINTS_WITH_ARRAY_ARGS = ['testmempoolaccept'].to_set
@@ -28,7 +28,7 @@ module CoinRPC
28
28
 
29
29
  @options = {:timeout => TIMEOUT, :userpwd => "#{urinfo.user}:#{urinfo.password}", :headers => {'User-Agent' => "CoinRPC/#{CoinRPC::VERSION}"}}.freeze
30
30
  @url = "http://#{urinfo.host}:#{urinfo.port}/".freeze
31
-
31
+
32
32
  end
33
33
 
34
34
  def random_id
@@ -44,7 +44,7 @@ module CoinRPC
44
44
  # batch request
45
45
  post_data = args.map{|arg| {:jsonrpc => JSONRPC_V2_0, :method => fixed_method, :params => arg, :id => random_id} }
46
46
  else
47
- post_data = {:method => fixed_method, :params => args, :jsonrpc => JSONRPC_V1_1, :id => random_id}
47
+ post_data = {:method => fixed_method, :params => args, :jsonrpc => JSONRPC_V1_0, :id => random_id}
48
48
  end
49
49
 
50
50
  api_call(post_data)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coinrpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atif Nazir
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-25 00:00:00.000000000 Z
11
+ date: 2024-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
157
  requirements: []
158
- rubygems_version: 3.5.6
158
+ rubygems_version: 3.5.18
159
159
  signing_key:
160
160
  specification_version: 4
161
161
  summary: A fast RPC client for Bitcoin Core style software.