veracodecli 0.1.9 → 0.2.0

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 +4 -4
  2. data/lib/veracodecli/api.rb +6 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eec8f84428099ff53046e93a8cab6a8b9edf65db
4
- data.tar.gz: be86390245396faa01fec4253ef99291c03d622b
3
+ metadata.gz: e20391d9109c4c847d695a54997d90f34280a794
4
+ data.tar.gz: d985fc3187d985fbcca136c34aa0f7d0922eab64
5
5
  SHA512:
6
- metadata.gz: 192fb71cb272e7add94a0f61e7efa96c08faab2938fd6b39e342117f5343721ed07fb4231462d96e85127aa09984a6cc3cf5e54179a2dd617dafc034c3dec51f
7
- data.tar.gz: bbb4efae63922949354a7cc32fbe4734cef749e681b6264687e98d66a090caa7a6ff641a1486cb995a3ffee42e6a3b70c06905c61051a78f75afaa8a3d727533
6
+ metadata.gz: 377363318ba6e589b59c23d80d001fa0c7c1350abb4223006eb7d24085c4e72b76c1f0df80a64e9ede46dce508ef149f6828a9a494ae66297fd2cbe83a310af0
7
+ data.tar.gz: 45f6427f37d59966ddad45c93294820da610784eff07b556aa0aa11f88798edad0ae65c7a52127c5091f4786cfcfba270fb6c5b3876d1715aa7b2778e6ddbb78
@@ -34,8 +34,12 @@ module VeracodeApiScan
34
34
 
35
35
  def get_app_id(app_name)
36
36
  app_list = veracode_api_request 'getapplist.do', include_user_info: 'true'
37
- scan = app_list.scan(/app_id=\"(.+)\" app_name=\"#{app_name}\"/)
38
- if !scan.nil? then app_id = scan[0][0] else app_id = nil end
37
+ scan = app_list.body.scan(/app_id=\"(.+)\" app_name=\"#{app_name}\"/)
38
+ begin
39
+ app_id = scan[0][0]
40
+ rescue
41
+ app_id = nil
42
+ end
39
43
  app_id
40
44
  end
41
45
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veracodecli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - isaiah thiessen