kns_endpoint 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/kns_endpoint.rb +6 -0
  2. metadata +3 -3
data/lib/kns_endpoint.rb CHANGED
@@ -116,7 +116,13 @@ module Kynetx
116
116
  puts "-- PARAMS:\n#{params.inspect}"
117
117
  end
118
118
 
119
+ RestClient.add_before_execution_proc do |req, params|
120
+ params[:timeout] = @query_timeout
121
+ end
122
+
123
+
119
124
  response = RestClient.post(api_call, params, headers)
125
+
120
126
  raise "Unexpected response from KNS (HTTP Error: #{response.code} - #{response})" unless response.code.to_s == "200"
121
127
 
122
128
  @session = response.cookies["SESSION_ID"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kns_endpoint
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Farmer