veracode 1.0.0.alpha7 → 1.0.0.alpha8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e57a698db0528192fcbd096c38cb4236ef54869f
4
- data.tar.gz: f4b1f130125636850f94bddd03356b35ab6678f6
3
+ metadata.gz: b03b9d64575800c7e3b027e4ed2e0c11e104e6f0
4
+ data.tar.gz: 8badea25276f78bf067bf2e60c488478353c87b8
5
5
  SHA512:
6
- metadata.gz: cbfc1cfc6c98a2dde96540a8f5c2f05baa01f4076e3204c49edcec5db86db752f641bb923b5f998a85e65fabe45cd1b0e05ac5074acdb71658315b1c8459f02c
7
- data.tar.gz: 0935f7c827279516a28e56068e9b00c45c214484316f38e85ab618810dfa29811d368498a0822b8705a92bf22322946645e0bf9873e502db7f032fb294ba3665
6
+ metadata.gz: 30068aecda34ddd2bbab105ff988ebb4ff44571bb773e2a5c8c4ba029b9e778ff9b04c163194edb98e983bf51fd70da44a52ca1e1e3bb41a27086b31edc68ec1
7
+ data.tar.gz: 6f8466ca639afea009c39c22f54190875c9080b8210c4b264fd816b6672590776ca51dc1e4acd58332590d038b31f1ff85dfcb6bfcc0debd5a5999988996111e
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
- unless File.exists?("script/rails")
8
- $stderr.puts "Current directory #{File.basename(Dir.pwd).dump} does not appear to be a Rails 3 application."
9
- exit
10
- end
7
+ #unless File.exists?("script/rails")
8
+ # $stderr.puts "Current directory #{File.basename(Dir.pwd).dump} does not appear to be a Rails 3 application."
9
+ # exit
10
+ #end
11
11
  APP_PATH = File.expand_path('config/application')
12
12
  APP_NAME = File.basename(Dir.pwd)
13
13
  COMMAND = "#{$0} #{ARGV.join(' ')}"
data/lib/veracode.rb CHANGED
@@ -38,6 +38,11 @@ module Veracode
38
38
 
39
39
 
40
40
  def self.init
41
+ if Gem::Dependency.new('', '~> 2.2.0').match?('', RUBY_VERSION)
42
+ $stderr.puts "Ruby 2.2 is not supported, please consult the compilation guide for all supported Ruby versions"
43
+ exit
44
+ end
45
+
41
46
  @run_id = Time.now.strftime("%Y%m%d%H%M%S")
42
47
  @archive_dirname = File.join("tmp","veracode-#{@run_id}")
43
48
  @required_libs.merge(["pathname", "set", "zlib", "zip/zip", "veracode"])
@@ -246,7 +251,12 @@ module Veracode
246
251
  # Helpers
247
252
  def self.cond_require(lib)
248
253
  if @required_libs.add?(lib)
249
- return require lib
254
+ begin
255
+ return require lib
256
+ rescue Exception => e
257
+ puts "(failed: require #{lib} #{e.message})" if $options[:verbose]
258
+ log_error "Unable to require #{lib} (#{e.message})"
259
+ end
250
260
  end
251
261
  return false
252
262
  end
@@ -1,4 +1,4 @@
1
1
  module Veracode
2
- VERSION = '1.0.0.alpha7'
2
+ VERSION = '1.0.0.alpha8'
3
3
  ARCHIVE_VERSION = '2012-07-04'
4
4
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veracode
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha7
4
+ version: 1.0.0.alpha8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Veracode
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-10 00:00:00.000000000 Z
11
+ date: 2016-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
27
  description: Prepares your Ruby on Rails app for submission to Veracode.
@@ -45,22 +45,20 @@ require_paths:
45
45
  - lib
46
46
  required_ruby_version: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - '>='
48
+ - - ">="
49
49
  - !ruby/object:Gem::Version
50
50
  version: 1.9.3.0
51
- - - <
52
- - !ruby/object:Gem::Version
53
- version: 2.2.0
54
51
  required_rubygems_version: !ruby/object:Gem::Requirement
55
52
  requirements:
56
- - - '>'
53
+ - - ">"
57
54
  - !ruby/object:Gem::Version
58
55
  version: 1.3.1
59
56
  requirements: []
60
57
  rubyforge_project:
61
- rubygems_version: 2.0.14
58
+ rubygems_version: 2.6.3
62
59
  signing_key:
63
60
  specification_version: 4
64
61
  summary: Command line tool for preparing your Ruby on Rails app for submission to
65
62
  Veracode
66
63
  test_files: []
64
+ has_rdoc: