gemsurance 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gemsurance/cli.rb +4 -0
- data/lib/gemsurance/runner.rb +5 -1
- data/lib/gemsurance/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d3c16ae4516623a0c9bf2aeaf8add57a07596e5
|
4
|
+
data.tar.gz: 6bc516f6387a5c43f835662ac930326a5f3f8ee7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6ebfef168b36077b26d65c65ea85831fb2de7e2580bc48ea4a2640bb75208193c3461e96df7fa02ed2dde045a11a86a222c58d4764bfb9e999264b8330f81c5
|
7
|
+
data.tar.gz: 52f4764a8eaf0f77aca266f00c6f063e4184bcb2428ecbe5d7b579a5dc77d3323fb4530458ad9a9b53ba19a38e7698185e676181080fba6be2a9a062ab04133e
|
data/lib/gemsurance/cli.rb
CHANGED
@@ -17,6 +17,10 @@ module Gemsurance
|
|
17
17
|
options[:pre] = true
|
18
18
|
end
|
19
19
|
|
20
|
+
opts.on("--fail-outdated", "Returns exit code 2 if any gems are outdated") do |lib|
|
21
|
+
options[:fail_outdated] = true
|
22
|
+
end
|
23
|
+
|
20
24
|
opts.on("--output FILE", "Output report to given file") do |file|
|
21
25
|
options[:output_file] = file
|
22
26
|
end
|
data/lib/gemsurance/runner.rb
CHANGED
@@ -20,7 +20,11 @@ module Gemsurance
|
|
20
20
|
end
|
21
21
|
|
22
22
|
generate_report
|
23
|
-
|
23
|
+
if @gem_infos.any? { |info| info.vulnerable? }
|
24
|
+
exit 1
|
25
|
+
elsif @gem_infos.any? { |info| info.outdated? } && @options[:fail_outdated]
|
26
|
+
exit 2
|
27
|
+
end
|
24
28
|
end
|
25
29
|
|
26
30
|
private
|
data/lib/gemsurance/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemsurance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Kessler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
147
|
version: 1.8.11
|
148
148
|
requirements: []
|
149
149
|
rubyforge_project:
|
150
|
-
rubygems_version: 2.4.
|
150
|
+
rubygems_version: 2.4.8
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
153
|
summary: Your Gem Insurance Policy
|