coinrpc 3.0.3 → 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: 95af138f59c104f545010b452b48de342ad8a345bb9170600aaaac0cbbf89128
4
- data.tar.gz: c0e89071ba785dc63ca95490e0d610171bed26de98654545fa61997bd99aba12
3
+ metadata.gz: 064f064174605d3c00f874d3f56eee6c8ad83f32d2a5e9f2aa9ca0ff51a34f76
4
+ data.tar.gz: 6058db13a2ccac7cbd4c389e4eb7ab3e0d2b678e6bc7d0e2080a9e1383199b62
5
5
  SHA512:
6
- metadata.gz: 9a27886e3c092b7eb93a4fe0ab39d77b1390fc38feba042e2b56963739b9e3f1e0d7d2beff7de02c1213faae7f91809054d143ff92f29ffc6102d428df31490b
7
- data.tar.gz: babb748fb3ff4b882008e5732fa94a81964f57c1a8065c0ecfc201324fd4058edcefca822bdf71053c3cf70e743d4eb6c4ff24c700725bdd0a73fe64d2a5cbf3
6
+ metadata.gz: d5c86f4024189571cd2eecca3f9d89f64a269c115623d0a88fa55fa2faf89cd4de352e919acfdbdeda1018b8426ab562a12e4258f2bec1babfeaa2f734b5f791
7
+ data.tar.gz: 9549deddb495558275d658913b696d803d2f7d1ca5182d9c745067e43576ea33ae69a2f2287b1590fc22af38b18e60f1bcefd34d813afcd9ce6dabc43a7f41cf
data/coinrpc.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.required_ruby_version = ">= 2.6", "<= 3.3"
20
+ spec.required_ruby_version = ">= 2.6", "< 3.4"
21
21
 
22
22
  spec.add_development_dependency "bundler", ">= 1.6", "< 3.0"
23
23
  spec.add_development_dependency "rake", ">= 13.0", "< 14.0"
@@ -1,3 +1,3 @@
1
1
  module CoinRPC
2
- VERSION = "3.0.3".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.3
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: 2023-12-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
@@ -146,16 +146,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  - - ">="
147
147
  - !ruby/object:Gem::Version
148
148
  version: '2.6'
149
- - - "<="
149
+ - - "<"
150
150
  - !ruby/object:Gem::Version
151
- version: '3.3'
151
+ version: '3.4'
152
152
  required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  requirements:
154
154
  - - ">="
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
157
  requirements: []
158
- rubygems_version: 3.5.3
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.