cwallet-ruby 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cwallet/wallet/adapters/net_http.rb +6 -1
- data/lib/cwallet/wallet/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08229310906ec02e6ec806fe6880c6e6526716f5'
|
4
|
+
data.tar.gz: eb2c06343984a584946c1ac8f0a03c4b54d69100
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecafcb01de4a9f09d5cbbe99f6a308d246b5d469f97a5360d1ab5023a3b331f00d03201c98a48f8fb69498706faea72273f56e84b14fe3e724cb337588d3b0b7
|
7
|
+
data.tar.gz: e80fabf72598ca09cfb836bf940b7d97380be9f90bd487c85e88106e82fffe2a57cf97d391fc9dc379135e441c4ccdedee8d3800569b8f5f626b8edf57a1ec62
|
@@ -33,11 +33,16 @@ module Cwallet
|
|
33
33
|
end
|
34
34
|
|
35
35
|
if debug
|
36
|
-
$stdout.puts("#{req.method} #{req.path}\
|
36
|
+
$stdout.puts("=====REQUEST:\n#{req.method} #{req.path}\nHEADERS: #{req.to_hash}\nBODY: #{req.body}\n=====")
|
37
37
|
end
|
38
38
|
|
39
39
|
resp = @conn.request(req)
|
40
40
|
out = NetHTTPResponse.new(resp)
|
41
|
+
|
42
|
+
if debug
|
43
|
+
$stdout.puts("=====RESPONSE:\nSTATUS: #{out.status}\nBODY: #{out.body}\n=====")
|
44
|
+
end
|
45
|
+
|
41
46
|
Cwallet::Wallet::check_response_status(out)
|
42
47
|
yield(out)
|
43
48
|
out.data
|