veracodecli 1.0.20 → 1.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/veracodecli +2 -0
- data/lib/veracodecli/api.rb +1 -0
- data/test/test_veracodecli.rb +0 -2
- data/veracodecli.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c65f906d3dec3fd900b79de0009010e89cd1509c
|
4
|
+
data.tar.gz: 92d1920a5d46a3ca97dfa90aa0b86e1cd086f4b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f5121c3c6daa11a524b15bc3e5a94a4aa802750467b489f30f61d703038b7a3f2df776de701c4e9de022899c4a49411a0c1c5ef4c0ffe630923e8040baa6aaa
|
7
|
+
data.tar.gz: 5bfc35a262f2d8e6d3ad9d8e617fd1ad240c381534efd928e832ae8eee11f5722ab30ccb95b2bfdf735f6d85e185ad90da450c0b203386e037b6d803b558e7b6
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.21
|
data/bin/veracodecli
CHANGED
@@ -65,6 +65,7 @@ Commander.configure do
|
|
65
65
|
c.option '--app_name STRING', String, 'Application name'
|
66
66
|
c.action do |args,options|
|
67
67
|
fail 'Specify app_name.' unless options.app_name
|
68
|
+
options.app_name.gsub! /[-_]/, ''
|
68
69
|
VeracodeApiMacros.get_report_macro options.app_name
|
69
70
|
end
|
70
71
|
end
|
@@ -78,6 +79,7 @@ Commander.configure do
|
|
78
79
|
abort 'Missing parameter --app_name' unless options.app_name
|
79
80
|
abort 'Please specify slack token in config.yml' if ((!defined? Settings.slack_token) && (options.slack_upload.eql? 'yes'))
|
80
81
|
abort 'Please specify slack channel in config.yml' if ((!defined? Settings.slack_channel) && (options.slack_upload.eql? 'yes'))
|
82
|
+
options.app_name.gsub! /[-_]/, ''
|
81
83
|
file = VeracodeApiMacros.get_pdf_macro options.app_name
|
82
84
|
Slack.send_to_slack file if (options.slack_upload.eql? 'yes')
|
83
85
|
end
|
data/lib/veracodecli/api.rb
CHANGED
@@ -9,6 +9,7 @@ require_relative 'log'
|
|
9
9
|
module VeracodeApiBase
|
10
10
|
def veracode_api_request(api_call, api_version: '4.0', **params)
|
11
11
|
begin
|
12
|
+
RestClient.proxy = Settings.proxy unless !Settings.proxy
|
12
13
|
response = RestClient.get "https://#{Settings.veracode_username}:#{Settings.veracode_password}@analysiscenter.veracode.com/api/#{api_version}/#{api_call}", { params: params }
|
13
14
|
log = ResponseLogger.new "/tmp"
|
14
15
|
log.log api_call, response.code, response.body
|
data/test/test_veracodecli.rb
CHANGED
data/veracodecli.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
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.
|
5
|
+
# stub: veracodecli 1.0.21 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "veracodecli"
|
9
|
-
s.version = "1.0.
|
9
|
+
s.version = "1.0.21"
|
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"]
|
13
13
|
s.authors = ["isaiah thiessen"]
|
14
|
-
s.date = "2015-11-
|
14
|
+
s.date = "2015-11-06"
|
15
15
|
s.description = "Ruby based CLI for accessing veracode's api"
|
16
16
|
s.email = "isaiah.thiessen@telus.com"
|
17
17
|
s.executables = ["veracodecli"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: veracodecli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- isaiah thiessen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|