kns_endpoint 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/kns_endpoint.rb +5 -0
  2. metadata +2 -2
data/lib/kns_endpoint.rb CHANGED
@@ -109,6 +109,11 @@ module Kynetx
109
109
  resp, data = http.request(req, params.to_url_params)
110
110
  @session = parse_cookie(resp, 'SESSION_ID')
111
111
 
112
+ puts 'Code = ' + resp.code if $PDS_DEBUG
113
+ puts 'Message = ' + resp.message if $PDS_DEBUG
114
+ resp.each {|key, val| puts key + ' = ' + val} if $PDS_DEBUG
115
+
116
+
112
117
  raise "Unexpected response from KNS (HTTP Error: #{resp.code} - #{resp.message})" unless resp.code == '200'
113
118
  begin
114
119
  kns_json = JSON.parse(data)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Farmer