nessus_rest 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/.travis.yml +6 -0
  2. data/VERSION +1 -1
  3. data/lib/nessus_rest.rb +3 -0
  4. metadata +3 -2
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.2.5
5
+ - 2.3.1
6
+ before_install: gem install bundler
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/lib/nessus_rest.rb CHANGED
@@ -510,6 +510,9 @@ module NessusREST
510
510
 
511
511
  def scan_status(scan_id)
512
512
  sd=scan_details(scan_id)
513
+ if not sd['error'].nil?
514
+ return 'error'
515
+ end
513
516
  return sd['info']['status']
514
517
  end
515
518
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nessus_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-08-19 00:00:00.000000000 Z
12
+ date: 2016-08-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -85,6 +85,7 @@ extra_rdoc_files: []
85
85
  files:
86
86
  - .document
87
87
  - .gitignore
88
+ - .travis.yml
88
89
  - Gemfile
89
90
  - LICENSE.txt
90
91
  - README.md