paypal-sdk-core 0.3.0 → 0.3.1

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: dc7e9f536ca1f523039fb7debb920826d5be289b
4
- data.tar.gz: e867223da42c4f476dbdccec289332c4e9f9a0c9
3
+ metadata.gz: e04a921fa53080f41f2ef54645d19ff65e4de2b5
4
+ data.tar.gz: 0d53d03ae04b88ce3588a271abb11e2a5f7e96c3
5
5
  SHA512:
6
- metadata.gz: 452955920aa9d8c7596b61bd0d38ea7f45eb4af3fed3de21a1aaabf7177e469c288b7a5accd83ab99be9e64d4e12cdbaca6cde3105d4345682637af29e01a339
7
- data.tar.gz: 806e6a49ce2ce66e875c75972e318aa41138294768c21b6e7f8cbf41f0293f4cc4a8799646edf996f05a1de18500d6530e774aa9234bacc26054d5459dd7539d
6
+ metadata.gz: 2c3921eaeaa79af095041dd371b7882e3ccb312904d89abc0ac91bcc60ba73fc706b7f0f166e198fc5105799a099503c02cccc4317c8519e0e15a0985ea39e5b
7
+ data.tar.gz: e0e3f3af921f7d0cdbe4d81e93086ac75746b4466d65a045cbd24791bf8b101ca6f898d36c572b0ee8f3caa8d416ec4d0c03b23e589e8827e8cd20b56d2c3d35
@@ -21,6 +21,8 @@ test: &default
21
21
  # # HTTP Proxy
22
22
  # http_proxy: http://proxy-ipaddress:3129/
23
23
 
24
+ # verbose_logging: true
25
+
24
26
  development:
25
27
  <<: *default
26
28
 
@@ -74,7 +74,8 @@ module PayPal::SDK::Core
74
74
  :device_ipaddress, :sandbox_email_address,
75
75
  :mode, :endpoint, :merchant_endpoint, :platform_endpoint, :ipn_endpoint,
76
76
  :rest_endpoint, :rest_token_endpoint, :client_id, :client_secret,
77
- :openid_endpoint, :openid_redirect_uri, :openid_client_id, :openid_client_secret
77
+ :openid_endpoint, :openid_redirect_uri, :openid_client_id, :openid_client_secret,
78
+ :verbose_logging
78
79
 
79
80
  alias_method :end_point=, :endpoint=
80
81
  alias_method :end_point, :endpoint
@@ -58,6 +58,10 @@ module PayPal::SDK::Core
58
58
  # Make Http call
59
59
  # * payload - Hash(:http, :method, :uri, :body, :header)
60
60
  def http_call(payload)
61
+ if Config.config.verbose_logging
62
+ logger.info payload.inspect
63
+ end
64
+
61
65
  response =
62
66
  log_http_call(payload) do
63
67
  http = payload[:http] || create_http_connection(payload[:uri])
@@ -69,6 +73,15 @@ module PayPal::SDK::Core
69
73
  end
70
74
  end
71
75
  end
76
+
77
+ if Config.config.verbose_logging
78
+ if response.code.to_i == 200
79
+ logger.info(response.body)
80
+ else
81
+ logger.warn(response.body)
82
+ end
83
+ end
84
+
72
85
  handle_response(response)
73
86
  end
74
87
 
@@ -1,7 +1,7 @@
1
1
  module PayPal
2
2
  module SDK
3
3
  module Core
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paypal-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-01 00:00:00.000000000 Z
11
+ date: 2014-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xml-simple
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 2.2.2
124
+ rubygems_version: 2.4.1
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: Core library for PayPal ruby SDKs