tenable-ruby 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/tenable-ruby.rb +5 -4
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3cbb71606113b3606d89582528cf78ac9e4246486d56919bf175f7dc48d45aca
|
4
|
+
data.tar.gz: 035edb1628a86bb4cafb35809e2d8f482c4ccd33116d5f11640c6b6068b716b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82dfacde0b5431895467fbb58e2150b7372d57362e25cb5181626afd49fb4daf086d0ba34df7cb67df613048fa9f53d5561dd11384edae66ceb0737624e7c232
|
7
|
+
data.tar.gz: 04f55324e1913b0e5e0bab799949d072a5fb9e6da1a564358c60e28c1fcf6d758e22c9f5611ed0c96224f4c67f8cde1312aa363d9d6c052a82d76fa1efe1f46b
|
data/lib/tenable-ruby.rb
CHANGED
@@ -828,10 +828,6 @@ 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
|
835
831
|
response
|
836
832
|
end
|
837
833
|
end
|
@@ -867,6 +863,11 @@ module TenableRuby
|
|
867
863
|
return json
|
868
864
|
end
|
869
865
|
|
866
|
+
if response.code.to_s != "200"
|
867
|
+
raise TenableRuby::Error::TenableError,
|
868
|
+
"Tenable API request '#{opts[:uri]}' responded with response code #{response.code}"
|
869
|
+
end
|
870
|
+
|
870
871
|
parse_json(response.body)
|
871
872
|
end
|
872
873
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Craston
|
@@ -40,8 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
requirements: []
|
43
|
-
|
44
|
-
rubygems_version: 2.5.2.3
|
43
|
+
rubygems_version: 3.0.4
|
45
44
|
signing_key:
|
46
45
|
specification_version: 4
|
47
46
|
summary: Ruby library for communicating with the tenable.io API
|