veracodecli 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b1a71295f50c1b317d7d7d3725479f1a6788daf
4
- data.tar.gz: 61cb73f9560e48e6b84bab0327ee0d171b46a187
3
+ metadata.gz: 0e9a993d34cc49b0f27606a0ce022acb36f7a5cc
4
+ data.tar.gz: 17f8ac2ce4d23c4e026e04ae51a8f3f1a8b2e1f4
5
5
  SHA512:
6
- metadata.gz: e30d4a55f21dba97daceb6fc90605fee934a0ca8fd21aee31d6b477a7d73cdf8765160082b9a434d97e0a5bde806a2e9517e560b21bb8bf01bc1d8f67ab44b63
7
- data.tar.gz: 5695acabe10bf20fcfcdab7a912c2442a44e44c62bb8b305364e9b68116694999c3e7cf8d20c45fd96f90d9f9d44c6e371b8ea71d15950f70e9c323c89fe29eb
6
+ metadata.gz: 717a296217bbff848cc0d40e6383aab8f1931c1f14723903d6c8a78993e9ee6d12732fc70c95a02ee9fe0e0d8b11fcf7bb936cbd1019e31966e54fb6e4062250
7
+ data.tar.gz: b14860b0c87afa1d4ee77e91eb05ed7872ce47d69817801199d41cf68be4c03c01e34713b6fd7af63be26385d160d2562e0a4eeb17a6cb07d045e1625eb045d6
data/Gemfile CHANGED
@@ -6,6 +6,7 @@ gem 'json', '~> 1.8'
6
6
  gem 'rest-client', '~> 1.8'
7
7
  gem 'settingslogic', '~> 2.0'
8
8
  gem 'terminal-announce', '~> 1.0'
9
+ gem 'nokogiri', '~> 1.6'
9
10
 
10
11
  group :development do
11
12
  gem "bundler", "~> 1.0"
data/Gemfile.lock CHANGED
@@ -129,6 +129,7 @@ DEPENDENCIES
129
129
  commander (~> 4.3)
130
130
  jeweler (~> 2.0)
131
131
  json (~> 1.8)
132
+ nokogiri (~> 1.6)
132
133
  rdoc (~> 3.12)
133
134
  reek (~> 1.2)
134
135
  rest-client (~> 1.8)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.11
1
+ 1.0.12
data/bin/veracodecli CHANGED
@@ -25,10 +25,10 @@ Commander.configure do
25
25
  c.action do |_,options|
26
26
  abort 'Missing parameter --repo' unless options.repo
27
27
  abort 'Missing parameter --app_name' unless options.app_name
28
- abort 'Missing parameter --business_unit' unless options.business_unit || defined? Settings.business_unit
28
+ abort 'Missing parameter --business_unit' unless options.business_unit || defined? Settings.business_unit
29
29
  abort 'Missing parameter --team' unless options.team || defined? Settings.team
30
30
  abort 'Missing parameter --business_criticality' unless options.business_criticality || defined? Settings.business_criticality
31
-
31
+ options.app_name.gsub! /[-_]/, ''
32
32
  business_criticality = options.business_criticality || Settings.business_criticality
33
33
  business_unit = options.business_unit || Settings.business_unit
34
34
  team = options.team || Settings.team
@@ -35,7 +35,7 @@ module VeracodeApiBase
35
35
  doc.remove_namespaces!
36
36
  if doc.xpath('//app').empty? then return nil end
37
37
  doc.xpath('//app').each do |app|
38
- if app.attributes['app_name'].value == app_name then app_id = app.attributes['app_id'].value end
38
+ app_id = app.attributes['app_id'].value unless app.attributes['app_name'].value != app_name
39
39
  end
40
40
  app_id
41
41
  end
data/veracodecli.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: veracodecli 1.0.11 ruby lib
5
+ # stub: veracodecli 1.0.12 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "veracodecli"
9
- s.version = "1.0.11"
9
+ s.version = "1.0.12"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -54,6 +54,7 @@ Gem::Specification.new do |s|
54
54
  s.add_runtime_dependency(%q<rest-client>, ["~> 1.8"])
55
55
  s.add_runtime_dependency(%q<settingslogic>, ["~> 2.0"])
56
56
  s.add_runtime_dependency(%q<terminal-announce>, ["~> 1.0"])
57
+ s.add_runtime_dependency(%q<nokogiri>, ["~> 1.6"])
57
58
  s.add_development_dependency(%q<bundler>, ["~> 1.0"])
58
59
  s.add_development_dependency(%q<jeweler>, ["~> 2.0"])
59
60
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
@@ -70,6 +71,7 @@ Gem::Specification.new do |s|
70
71
  s.add_dependency(%q<rest-client>, ["~> 1.8"])
71
72
  s.add_dependency(%q<settingslogic>, ["~> 2.0"])
72
73
  s.add_dependency(%q<terminal-announce>, ["~> 1.0"])
74
+ s.add_dependency(%q<nokogiri>, ["~> 1.6"])
73
75
  s.add_dependency(%q<bundler>, ["~> 1.0"])
74
76
  s.add_dependency(%q<jeweler>, ["~> 2.0"])
75
77
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
@@ -87,6 +89,7 @@ Gem::Specification.new do |s|
87
89
  s.add_dependency(%q<rest-client>, ["~> 1.8"])
88
90
  s.add_dependency(%q<settingslogic>, ["~> 2.0"])
89
91
  s.add_dependency(%q<terminal-announce>, ["~> 1.0"])
92
+ s.add_dependency(%q<nokogiri>, ["~> 1.6"])
90
93
  s.add_dependency(%q<bundler>, ["~> 1.0"])
91
94
  s.add_dependency(%q<jeweler>, ["~> 2.0"])
92
95
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
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: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - isaiah thiessen
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: nokogiri
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.6'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.6'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: bundler
99
113
  requirement: !ruby/object:Gem::Requirement