bundler-organization_audit 0.2.1 → 0.3.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 580e0cc248574095d585eba3ea94a5a10826f2d8
|
|
4
|
+
data.tar.gz: 28d30401f8fa2491a1c8d6c92f916f1442357486
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f86b86b33ca0d413f988d23cec965a451665e5858604b7af61de3034e1270e128049b32c703b487c1d01dcd2b6e0d837b5c1f506ef99b1d58cc2165ef480203b
|
|
7
|
+
data.tar.gz: 2c674a6993963e6e5ff55048407bd2fdedb5b6afb346cc34b55466ca3fcde91a681e0327c17247a79150b0f6b7bb580aca1461ad05d8d1c77787accd4c2c511f
|
|
@@ -12,7 +12,7 @@ end
|
|
|
12
12
|
|
|
13
13
|
options = {
|
|
14
14
|
:ignore => [],
|
|
15
|
-
:
|
|
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-
|
|
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[:
|
|
40
|
-
command << " --ignore #{options[:
|
|
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
|
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.
|
|
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-
|
|
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.
|
|
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
|