veracode 1.1.4 → 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: 869ea455d7ba3870c7314f3bfd8000f694aaea5108e710294da2fcbdb53e8675
4
- data.tar.gz: 2758e1b03929fc63f8acf4864f248d857ae0ccdb93974c183ce16c8117a8e1f0
3
+ metadata.gz: 37b1dcba1a6fdef908b9fa09163803ffa0ba23628ff38df4332fd493563e6188
4
+ data.tar.gz: 5f483a6af098af454f785f676f6f7903f4b05aefef51a202cc0e5fd7ae779a97
5
5
  SHA512:
6
- metadata.gz: 11250e90a90dd1ffb4f56a4012504e0c75a1e91236b96531f06d4c158e328e3b558ce00899dd00d9caed08d32495476cb48211da04d1c2a21820b5def3c9a9f6
7
- data.tar.gz: f669ec46f4756f9dcbe0bfd53163988d2c3d0fec7f6aa4b5d367e26628455e7fb7a2dc9d8dcb87ea7c2848e547ab6453fcd2b7b72d345533c3aec70247519296
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.4'
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
@@ -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.exists?(dirsToProcess[0])
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
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-08-22 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