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.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/tenable-ruby.rb +5 -4
  3. metadata +2 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: eb047960934648618c486b39e1fab7a77eb97f46
4
- data.tar.gz: 9f27d478c1cf433404eb0c8de6a04c67ccfd75ef
2
+ SHA256:
3
+ metadata.gz: 3cbb71606113b3606d89582528cf78ac9e4246486d56919bf175f7dc48d45aca
4
+ data.tar.gz: 035edb1628a86bb4cafb35809e2d8f482c4ccd33116d5f11640c6b6068b716b3
5
5
  SHA512:
6
- metadata.gz: 51eb186d5f09bd7be5da4a369e86501539c6e4ecd41e20d7a41912ede8f5afc0876d1e972ef2b3e9546c7a1c2fd8bb0a808964261002d273b1a3063f061f9622
7
- data.tar.gz: 1f250f1e9696bb3a0211cc3752249ad1f5b37c35ba6f7a34f54bfc8d0dae7e92f05937efe6271a4fe07220f046496645ed5201212a94c7395a4b72ef5cf6f68a
6
+ metadata.gz: 82dfacde0b5431895467fbb58e2150b7372d57362e25cb5181626afd49fb4daf086d0ba34df7cb67df613048fa9f53d5561dd11384edae66ceb0737624e7c232
7
+ data.tar.gz: 04f55324e1913b0e5e0bab799949d072a5fb9e6da1a564358c60e28c1fcf6d758e22c9f5611ed0c96224f4c67f8cde1312aa363d9d6c052a82d76fa1efe1f46b
@@ -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.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
- rubyforge_project:
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