cwallet-ruby 0.0.8 → 0.0.9
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/api_client.rb +4 -0
- data/lib/cwallet/wallet/client.rb +5 -0
- data/lib/cwallet/wallet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ebfdf46092e71a75b968c953c546b36e14f2a29
|
4
|
+
data.tar.gz: b5cad534ffd2de5ca434be23916acf8b64930ac0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93d6cc09a320f331a63076878cc9fd08525769c8a48fe59453191e44a256ea9956038f1fa22e14f2ce85ba75e1eec6118e8240fd1c28a0fb680d75b1eb116800
|
7
|
+
data.tar.gz: 8d53b3520b886bf14cc30dff3906137052fc1b6d8811084529a64937b59892ff986083f4b9a312730b03044b47c6f53c4a0b929d7a2b6e4d6788d9474e4dafae
|
@@ -662,6 +662,10 @@ module Cwallet
|
|
662
662
|
params.delete(:two_factor_token)
|
663
663
|
end
|
664
664
|
|
665
|
+
if debug
|
666
|
+
$stdout.puts "URI: #{uri}"
|
667
|
+
$stdout.puts "headers: #{headers.inspect}"
|
668
|
+
end
|
665
669
|
http_verb('GET', uri, nil, headers) do |resp|
|
666
670
|
if params[:fetch_all] == true &&
|
667
671
|
resp.body.has_key?('pagination') &&
|
@@ -10,6 +10,7 @@ module Cwallet
|
|
10
10
|
end
|
11
11
|
@api_key = options[:api_key]
|
12
12
|
@api_secret = options[:api_secret]
|
13
|
+
@debug = options[:debug] || false
|
13
14
|
@api_uri = URI.parse(options[:api_url] || BASE_API_URL)
|
14
15
|
super(@api_uri, options)
|
15
16
|
end
|
@@ -24,6 +25,10 @@ module Cwallet
|
|
24
25
|
'CB-ACCESS-TIMESTAMP' => ts,
|
25
26
|
'CB-VERSION' => API_VERSION }
|
26
27
|
end
|
28
|
+
|
29
|
+
def debug
|
30
|
+
!!@debug
|
31
|
+
end
|
27
32
|
end
|
28
33
|
|
29
34
|
class OAuthClient < NetHTTPClient
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cwallet-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Duc Le
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|