gotransverse-tract-api 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gotransverse-tract-api.rb +4 -0
- data/lib/gotransverse-tract-api/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: b229bfb85f00a9dff0036c48a4237ae0f31deb2a
|
4
|
+
data.tar.gz: 64c01dabb6cf7b1b162ce84bcdf3b0217d5075ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55077fc90239399d133392dc10ccd04056656ad39b183df3793a1310c9b118d995b521145af6c00f402adbf5f342b78b0a20cd4f9df5fad660098924183f2b28
|
7
|
+
data.tar.gz: 9c44c345cbb72d53a78861c1604ab525105dbfcce4fb66bea17edf43a48263f51a3d700831df5ada53f18de805c4d0f41dcc343f8b23ffaf0caf78ac21420d5d
|
@@ -253,6 +253,8 @@ module GoTransverseTractApi
|
|
253
253
|
http_client.set_auth(nil, GoTransverseTractApi.configuration.username, GoTransverseTractApi.configuration.password)
|
254
254
|
|
255
255
|
if GoTransverseTractApi.configuration.debug_mode
|
256
|
+
pp "[GoTransverseTractApi] DEBUG MODE: ON"
|
257
|
+
pp "[GoTransverseTractApi] request time: #{DateTime.now}"
|
256
258
|
pp "[GoTransverseTractApi] api_url: #{api_url.to_s}"
|
257
259
|
pp "[GoTransverseTractApi] api_params: #{api_params.to_s}"
|
258
260
|
pp "[GoTransverseTractApi] method: #{method.to_s}"
|
@@ -279,6 +281,8 @@ module GoTransverseTractApi
|
|
279
281
|
hsh = hsh[klass.pluralize.camelize(:lower).to_sym] rescue Hash.from_xml(xml_response.to_s)[klass.camelize(:lower).to_sym]
|
280
282
|
end
|
281
283
|
|
284
|
+
pp hsh if GoTransverseTractApi.configuration.debug_mode
|
285
|
+
|
282
286
|
return hsh
|
283
287
|
|
284
288
|
rescue Timeout::Error, Errno::ECONNRESET, EOFError, Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError => e
|