tenable-ruby 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tenable-ruby.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb047960934648618c486b39e1fab7a77eb97f46
|
4
|
+
data.tar.gz: 9f27d478c1cf433404eb0c8de6a04c67ccfd75ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51eb186d5f09bd7be5da4a369e86501539c6e4ecd41e20d7a41912ede8f5afc0876d1e972ef2b3e9546c7a1c2fd8bb0a808964261002d273b1a3063f061f9622
|
7
|
+
data.tar.gz: 1f250f1e9696bb3a0211cc3752249ad1f5b37c35ba6f7a34f54bfc8d0dae7e92f05937efe6271a4fe07220f046496645ed5201212a94c7395a4b72ef5cf6f68a
|
data/lib/tenable-ruby.rb
CHANGED
@@ -828,6 +828,10 @@ module TenableRuby
|
|
828
828
|
return response
|
829
829
|
end
|
830
830
|
else
|
831
|
+
if response.code.to_s != "200"
|
832
|
+
raise TenableRuby::Error::TenableError,
|
833
|
+
"Tenable API request '#{opts[:uri]}' responded with response code #{response.code}"
|
834
|
+
end
|
831
835
|
response
|
832
836
|
end
|
833
837
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tenable-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Craston
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
Ruby library for communicating with the tenable.io API.
|