veracode 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/veracode +2 -2
- data/lib/veracode/version.rb +1 -1
- data/lib/veracode.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 37b1dcba1a6fdef908b9fa09163803ffa0ba23628ff38df4332fd493563e6188
|
|
4
|
+
data.tar.gz: 5f483a6af098af454f785f676f6f7903f4b05aefef51a202cc0e5fd7ae779a97
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b8bc512ac4a431b7f77dabd12b4a703fbc93faf112db48d0c5782c3555a6f113ce0cbbaab25db645807ab5cae83afd28faf9acf80b31137dba784a885e7d69ca
|
|
7
|
+
data.tar.gz: 3b5e57faad8593402d64558d77750abaf498efe30654e14a8a17ca1646868b60ec455cc077cd886d109a1fafb80672e4aa74cc79f13124df849cf279101e675d
|
data/bin/veracode
CHANGED
|
@@ -4,10 +4,10 @@ require 'optparse'
|
|
|
4
4
|
$:.unshift File.expand_path(File.dirname(__FILE__) + "/../lib")
|
|
5
5
|
$:.unshift Dir.pwd
|
|
6
6
|
|
|
7
|
-
if File.
|
|
7
|
+
if File.exist?('Gemfile.lock')
|
|
8
8
|
rails_version = File.open('Gemfile.lock').grep(/^\s*rails\s*\(=\s*[34]/)
|
|
9
9
|
else
|
|
10
|
-
rails_version = File.
|
|
10
|
+
rails_version = File.exist?("script/rails") #fallback for rails 3.0
|
|
11
11
|
end
|
|
12
12
|
unless rails_version
|
|
13
13
|
$stderr.puts "Current directory #{File.basename(Dir.pwd).dump} does not appear to be a Rails 3/4 application."
|
data/lib/veracode/version.rb
CHANGED
data/lib/veracode.rb
CHANGED
|
@@ -39,7 +39,7 @@ module Veracode
|
|
|
39
39
|
@expanded_app_dir = Dir.getwd
|
|
40
40
|
|
|
41
41
|
def self.init
|
|
42
|
-
if Gem::Dependency.new('', '~> 2.2.0').match?('', RUBY_VERSION)
|
|
42
|
+
if Gem::Dependency.new('', '~> 2.2.0').match?('', RUBY_VERSION.dup)
|
|
43
43
|
$stderr.puts "Ruby 2.2 is not supported, please consult the compilation guide for all supported Ruby versions"
|
|
44
44
|
exit
|
|
45
45
|
end
|
|
@@ -48,7 +48,7 @@ module Veracode
|
|
|
48
48
|
@archive_dirname = File.join("tmp","veracode-#{@run_id}")
|
|
49
49
|
@required_libs.merge(["pathname", "set", "zlib", "zip/zip", "veracode"])
|
|
50
50
|
|
|
51
|
-
if !Dir.
|
|
51
|
+
if !Dir.exist?("tmp")
|
|
52
52
|
begin
|
|
53
53
|
Dir.mkdir("tmp")
|
|
54
54
|
rescue Exception => e
|
|
@@ -57,7 +57,7 @@ module Veracode
|
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
-
while Dir.
|
|
60
|
+
while Dir.exist?(@archive_dirname)
|
|
61
61
|
@run_id = Time.now.strftime("%Y%m%d%H%M%S")
|
|
62
62
|
@archive_dirname = File.join("tmp","veracode-#{@run_id}")
|
|
63
63
|
end
|
|
@@ -866,7 +866,7 @@ module Veracode
|
|
|
866
866
|
def self.require_libs(lib_paths)
|
|
867
867
|
for lib_path in lib_paths
|
|
868
868
|
dirsToProcess = [Pathname(lib_path)]
|
|
869
|
-
until dirsToProcess.count == 0 || !Dir.
|
|
869
|
+
until dirsToProcess.count == 0 || !Dir.exist?(dirsToProcess[0])
|
|
870
870
|
currentDir = dirsToProcess.delete_at(0)
|
|
871
871
|
for child in currentDir.children
|
|
872
872
|
if child.directory?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: veracode
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Veracode
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-03-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubyzip
|