bundler-organization_audit 0.2.1 → 0.3.0

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
  SHA1:
3
- metadata.gz: 87c9da3292c48a996230d536f4a61427ef66187f
4
- data.tar.gz: c179cfbba93c78386c0b5cf04333dd6d45c5eaf0
3
+ metadata.gz: 580e0cc248574095d585eba3ea94a5a10826f2d8
4
+ data.tar.gz: 28d30401f8fa2491a1c8d6c92f916f1442357486
5
5
  SHA512:
6
- metadata.gz: 83015faf0b62221e90214dccc44c9defad5aac575e6937ae0bee4c5370d05726921e5d1bd539f8119b5946a7f35bd165fdc1bebcb411ecd1e477bd195889419c
7
- data.tar.gz: 9a46959787b908c7eb07ca495fcc988881ce7e383f626768ca68b4fea5e07fb78bcc04088908196b510a64a965e1b6d84a11cc7b08e017399661b962679c5eba
6
+ metadata.gz: f86b86b33ca0d413f988d23cec965a451665e5858604b7af61de3034e1270e128049b32c703b487c1d01dcd2b6e0d837b5c1f506ef99b1d58cc2165ef480203b
7
+ data.tar.gz: 2c674a6993963e6e5ff55048407bd2fdedb5b6afb346cc34b55466ca3fcde91a681e0327c17247a79150b0f6b7bb580aca1461ad05d8d1c77787accd4c2c511f
@@ -12,7 +12,7 @@ end
12
12
 
13
13
  options = {
14
14
  :ignore => [],
15
- :ignore_cves => [],
15
+ :ignore_advisories => [],
16
16
  :user => git_config("github.user")
17
17
  }
18
18
  OptionParser.new do |parser|
@@ -26,7 +26,7 @@ Options:
26
26
  BANNER
27
27
  OrganizationAudit.optparse(parser, options)
28
28
  parser.on("--ignore-gems", "Ignore repos that have a %{repo}.gemspec") { options[:ignore_gems] = true }
29
- parser.on("--ignore-cve CVE_NUMBER", "Ignore CVE that you do not want to get warned about just number or number@gem-version") { |cve| options[:ignore_cves] << cve }
29
+ parser.on("--ignore-advisory NAME", "Ignore advisory by name") { |advisory| options[:ignore_advisories] << advisory }
30
30
  parser.on("-h", "--help", "Show this.") { puts parser; exit }
31
31
  parser.on("-v", "--version", "Show Version"){ puts Bundler::OrganizationAudit::VERSION; exit}
32
32
  end.parse!
@@ -36,8 +36,8 @@ module Bundler
36
36
  in_temp_dir do
37
37
  if download_file(repo, "Gemfile.lock")
38
38
  command = "bundle-audit"
39
- if options[:ignore_cves] && options[:ignore_cves].any?
40
- command << " --ignore #{options[:ignore_cves].map { |cve| "'CVE-#{cve}'" }.join(" ")}"
39
+ if options[:ignore_advisories] && options[:ignore_advisories].any?
40
+ command << " --ignore #{options[:ignore_advisories].join(" ")}"
41
41
  end
42
42
  vulnerable = !sh(command)
43
43
  else
@@ -1,5 +1,5 @@
1
1
  module Bundler
2
2
  module OrganizationAudit
3
- VERSION = "0.2.1"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler-organization_audit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-25 00:00:00.000000000 Z
11
+ date: 2014-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: organization_audit
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.2.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: 0.2.0
27
27
  description: Audit all Gemfiles of a user/organization on github for unpatched versions
@@ -44,17 +44,17 @@ require_paths:
44
44
  - lib
45
45
  required_ruby_version: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - '>='
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  requirements: []
56
56
  rubyforge_project:
57
- rubygems_version: 2.0.14
57
+ rubygems_version: 2.2.2
58
58
  signing_key:
59
59
  specification_version: 4
60
60
  summary: Audit all Gemfiles of a user/organization on github for unpatched versions