veracode 1.1.3 → 1.1.5

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
  SHA256:
3
- metadata.gz: '08bcc098eb5e5c8b64c1cdfddfaa7dab701d190b2a0740e825a1c986b91ac737'
4
- data.tar.gz: '08122a15ccd6189ca40dd823d6db2b38a9aba95ec556d8dddd14c4fda6d98fd3'
3
+ metadata.gz: 37b1dcba1a6fdef908b9fa09163803ffa0ba23628ff38df4332fd493563e6188
4
+ data.tar.gz: 5f483a6af098af454f785f676f6f7903f4b05aefef51a202cc0e5fd7ae779a97
5
5
  SHA512:
6
- metadata.gz: a71ea85866f288b9861c99c30d5786014f72ed5691c4353d5ed7f448154df38f1be7e5f399d33a18a8f4192baa7618a465eb34228f856caa8a8ba61b67023a82
7
- data.tar.gz: 563b9b4090074f5042fcdc3efb0a9a713c2eac8cebf80a531d78c8917478530ead6bf790e1f0a62ebac3c3fc15a1a5548eee4bd3346573dddc22025dc15e2ef4
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.exists?('Gemfile.lock')
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.exists?("script/rails") #fallback for rails 3.0
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."
@@ -1,4 +1,4 @@
1
1
  module Veracode
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.5'
3
3
  ARCHIVE_VERSION = '2020-06-29'
4
4
  end
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.exists?("tmp")
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.exists?(@archive_dirname)
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
@@ -781,6 +781,7 @@ module Veracode
781
781
  File.read(template),
782
782
  template,
783
783
  ActionView::Template::Handlers::ERB,
784
+ :locals => [],
784
785
  :virtual_path => template
785
786
  )
786
787
 
@@ -865,7 +866,7 @@ module Veracode
865
866
  def self.require_libs(lib_paths)
866
867
  for lib_path in lib_paths
867
868
  dirsToProcess = [Pathname(lib_path)]
868
- until dirsToProcess.count == 0 || !Dir.exists?(dirsToProcess[0])
869
+ until dirsToProcess.count == 0 || !Dir.exist?(dirsToProcess[0])
869
870
  currentDir = dirsToProcess.delete_at(0)
870
871
  for child in currentDir.children
871
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.3
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: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2023-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip