coinrpc 1.0.1 → 1.0.2

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: c8987e04a7a59aa0043ee842747c14bda284aad487742ccb5f1690ea079b613f
4
- data.tar.gz: e5bbffa5611d73c56f10e66df56d3e1ae452fc1da12a03cefa70a3fe786d99fc
3
+ metadata.gz: 8b17071c447912159783c43735408c9c2e83c248152fd4c7f522283481cae100
4
+ data.tar.gz: 70246a85de88e14dc13066ba581d6d8757a6467288406a405aff643fb95fd791
5
5
  SHA512:
6
- metadata.gz: 4efaf3a9198b7a94df3d49e75c66e4a2fd1374474241092e9481f62c9daf34a6f6e98fad6a3be88bcc77af1ee56c97b7cd7c1e07f563be627fe2642303327ae1
7
- data.tar.gz: 32cd9994824f7dca0c13900c82957f3aa8b8703544d3d24b32a3eb661498f49270e695efd26d54b0b8af8a401b442f58d69e646a4abecb2e247299302ece6cfb
6
+ metadata.gz: 2befbaac00aaf9209cc7b4a9d4cbfa28f930b740a3567465dc983d5c87f1103b99fe032721b278a5e1d63f73e1dfd242ca8777d4a7db7043afb1d06c5b3033b8
7
+ data.tar.gz: 6a97cc8a629b538da472b89eaef38e476d03bba1aadbee569f6c02d475333ca9576e9194f7b43c57b35a9a6efa5e47406226f24d9b9f6ee53df0441e94777e9c
data/coinrpc.gemspec CHANGED
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_development_dependency "bundler", ">= 1.6", "< 3.0"
23
23
  spec.add_development_dependency "rake", ">= 13.0", "< 14.0"
24
+ spec.add_runtime_dependency "json", "~> 2.0", ">= 2.3.1", "< 3.0"
24
25
  spec.add_runtime_dependency "oj", ">= 3.10", "< 4.0"
25
26
  spec.add_runtime_dependency "http", ">= 4.4", "< 5.1"
26
27
  end
data/lib/coinrpc.rb CHANGED
@@ -1,7 +1,11 @@
1
1
  require 'http'
2
2
  require 'oj'
3
+ require 'json'
3
4
  require 'coinrpc/version'
4
5
 
6
+ # let OJ mimic JSON
7
+ Oj.mimic_JSON
8
+
5
9
  module CoinRPC
6
10
  class Client
7
11
  def initialize(url)
@@ -51,6 +55,7 @@ module CoinRPC
51
55
 
52
56
  response = @client.post("/", :body => Oj.dump(params, mode: :compat)).to_s
53
57
 
58
+ # this won't work without Oj.mimic_JSON
54
59
  result = Oj.strict_load(response, :decimal_class => BigDecimal)
55
60
 
56
61
  raise result['error']['message'] if !result.is_a?(Array) and result['error']
@@ -1,3 +1,3 @@
1
1
  module CoinRPC
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
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: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atif Nazir
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-15 00:00:00.000000000 Z
11
+ date: 2021-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -50,6 +50,32 @@ dependencies:
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: '14.0'
53
+ - !ruby/object:Gem::Dependency
54
+ name: json
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '2.0'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 2.3.1
63
+ - - "<"
64
+ - !ruby/object:Gem::Version
65
+ version: '3.0'
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - "~>"
71
+ - !ruby/object:Gem::Version
72
+ version: '2.0'
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 2.3.1
76
+ - - "<"
77
+ - !ruby/object:Gem::Version
78
+ version: '3.0'
53
79
  - !ruby/object:Gem::Dependency
54
80
  name: oj
55
81
  requirement: !ruby/object:Gem::Requirement
@@ -111,7 +137,7 @@ homepage: https://github.com/doersf/coinrpc
111
137
  licenses:
112
138
  - MIT
113
139
  metadata: {}
114
- post_install_message:
140
+ post_install_message:
115
141
  rdoc_options: []
116
142
  require_paths:
117
143
  - lib
@@ -129,8 +155,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
155
  - !ruby/object:Gem::Version
130
156
  version: '0'
131
157
  requirements: []
132
- rubygems_version: 3.0.3
133
- signing_key:
158
+ rubygems_version: 3.2.15
159
+ signing_key:
134
160
  specification_version: 4
135
161
  summary: A fast RPC client for Bitcoin Core style software.
136
162
  test_files: []