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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c03d15625c22452d48243933b85d80ca467a0b28
4
- data.tar.gz: cec2bb399c6abe84c1602aecde7ad4c163f5bec6
3
+ metadata.gz: 3ebfdf46092e71a75b968c953c546b36e14f2a29
4
+ data.tar.gz: b5cad534ffd2de5ca434be23916acf8b64930ac0
5
5
  SHA512:
6
- metadata.gz: 4cb2a92fe5271af4d88e312e9d32485780587b46da7cb056d7cddfbc361006f9c2d588f8f97ed4e2dbbc0f9f664e7b6e8e4a6d2fea1ff0c9030d53479f884eae
7
- data.tar.gz: 4029755a903080757154ebb8574013f9672f00e531429af005ed51a82ddf33eb22bcf5abada6c5d9380a8381612c813d107d3e1f46c8898bbe63db6e89fcd6fa
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
@@ -1,5 +1,5 @@
1
1
  module Cwallet
2
2
  module Wallet
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
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.8
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-14 00:00:00.000000000 Z
11
+ date: 2019-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler