kns_endpoint 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kns_endpoint.rb +4 -6
- metadata +3 -3
data/lib/kns_endpoint.rb
CHANGED
@@ -116,12 +116,10 @@ module Kynetx
|
|
116
116
|
puts "-- PARAMS:\n#{params.inspect}"
|
117
117
|
end
|
118
118
|
|
119
|
-
RestClient.
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
response = RestClient.post(api_call, params, headers)
|
119
|
+
response = RestClient::Resource.new(
|
120
|
+
api_call,
|
121
|
+
:timeout => @query_timeout
|
122
|
+
).post(params, headers)
|
125
123
|
|
126
124
|
raise "Unexpected response from KNS (HTTP Error: #{response.code} - #{response})" unless response.code.to_s == "200"
|
127
125
|
|
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:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Farmer
|