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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1fa83db1a8f56f33ac6dd5aa19abc792c7e6db7
4
- data.tar.gz: b51d26698ba09ea091c40b949cda102035aa12ee
3
+ metadata.gz: c65f906d3dec3fd900b79de0009010e89cd1509c
4
+ data.tar.gz: 92d1920a5d46a3ca97dfa90aa0b86e1cd086f4b4
5
5
  SHA512:
6
- metadata.gz: 685bd78f28447f00f02dd3371241931e371677c58abfa5836bc6769cc9a196919c4ff046021ec41e3fc19a3f0e62b462b2e2d1c88616a7af33143997abba0ccd
7
- data.tar.gz: 7edcf3f1af046631ee472e947d0357d0c7c3ddfbdef59ad5afb99a89567983154f76e5cbba66a5ca934cca838ba611e64d39904d491bd051eb2113a57e8f9319
6
+ metadata.gz: 9f5121c3c6daa11a524b15bc3e5a94a4aa802750467b489f30f61d703038b7a3f2df776de701c4e9de022899c4a49411a0c1c5ef4c0ffe630923e8040baa6aaa
7
+ data.tar.gz: 5bfc35a262f2d8e6d3ad9d8e617fd1ad240c381534efd928e832ae8eee11f5722ab30ccb95b2bfdf735f6d85e185ad90da450c0b203386e037b6d803b558e7b6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.20
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
@@ -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
@@ -8,8 +8,6 @@ class TestVeracodecli < Test::Unit::TestCase
8
8
  context 'VeracodeApi' do
9
9
 
10
10
  setup do
11
- ENV['VERACODE_USERNAME'] = ''
12
- ENV['VERACODE_PASSWORD'] = ''
13
11
  @test_file_location = '' # a .tar or .zip archive path
14
12
  end
15
13
 
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.20 ruby lib
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.20"
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-05"
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.20
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-05 00:00:00.000000000 Z
11
+ date: 2015-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport