veracode 1.0.0.alpha8 → 1.0.0.alpha9

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: b03b9d64575800c7e3b027e4ed2e0c11e104e6f0
4
- data.tar.gz: 8badea25276f78bf067bf2e60c488478353c87b8
3
+ metadata.gz: 948515a4106797409146f98bd9d8c9d742216870
4
+ data.tar.gz: 263a3f858d7019ced25a402ccaf14fc3ebd6cc67
5
5
  SHA512:
6
- metadata.gz: 30068aecda34ddd2bbab105ff988ebb4ff44571bb773e2a5c8c4ba029b9e778ff9b04c163194edb98e983bf51fd70da44a52ca1e1e3bb41a27086b31edc68ec1
7
- data.tar.gz: 6f8466ca639afea009c39c22f54190875c9080b8210c4b264fd816b6672590776ca51dc1e4acd58332590d038b31f1ff85dfcb6bfcc0debd5a5999988996111e
6
+ metadata.gz: 2f726fcd3c4932e2dd33aca04d94aff45e3bba0a6126b3a2c889c8a225a4a0373a74905c8a488c34e9b360225fbe4d7ffe0936c8c426379013559f78b3873d76
7
+ data.tar.gz: d07c8986c6ae1baee810e10161dacecb82f8c344792f6ca589a647a1bc33c7af48e878943ef9c2bfae457adab6c49a00029f415024ca7c168c8a48ed8adee14b
data/bin/veracode CHANGED
@@ -4,10 +4,15 @@ 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
+ if File.exists?('Gemfile.lock')
8
+ rails_version = File.open('Gemfile.lock').grep(/^\s*rails\s*\(=\s*[34]/)
9
+ else
10
+ rails_version = File.exists?("script/rails") #fallback for rails 3.0
11
+ end
12
+ unless rails_version
13
+ $stderr.puts "Current directory #{File.basename(Dir.pwd).dump} does not appear to be a Rails 3/4 application."
14
+ exit
15
+ end
11
16
  APP_PATH = File.expand_path('config/application')
12
17
  APP_NAME = File.basename(Dir.pwd)
13
18
  COMMAND = "#{$0} #{ARGV.join(' ')}"
@@ -1,4 +1,4 @@
1
1
  module Veracode
2
- VERSION = '1.0.0.alpha8'
2
+ VERSION = '1.0.0.alpha9'
3
3
  ARCHIVE_VERSION = '2012-07-04'
4
4
  end
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.0.0.alpha8
4
+ version: 1.0.0.alpha9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Veracode
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-23 00:00:00.000000000 Z
11
+ date: 2017-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  version: 1.3.1
56
56
  requirements: []
57
57
  rubyforge_project:
58
- rubygems_version: 2.6.3
58
+ rubygems_version: 2.5.1
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: Command line tool for preparing your Ruby on Rails app for submission to