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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7db1c20742bfd7ed1bd02ee4b6f133ecc4263495
4
- data.tar.gz: 555984b1d7104d4a69370a02386361b202b9d826
3
+ metadata.gz: 0d3c16ae4516623a0c9bf2aeaf8add57a07596e5
4
+ data.tar.gz: 6bc516f6387a5c43f835662ac930326a5f3f8ee7
5
5
  SHA512:
6
- metadata.gz: 9c93b75179a7299f9bd3691e92532f345f983a681097a2ac3b40159809122fe6dab69474a1d670953135d804f015d813fa7ff23433ad6d8723b5b282774112e8
7
- data.tar.gz: cfa0e0193351b1ab688c9f8446d93e684d2bc3aa8fb1bedf383e0ffdd0132da181f272557dd5c9bd640e7c0785f605618b88a23316fe6cb749fa54d4327152d3
6
+ metadata.gz: f6ebfef168b36077b26d65c65ea85831fb2de7e2580bc48ea4a2640bb75208193c3461e96df7fa02ed2dde045a11a86a222c58d4764bfb9e999264b8330f81c5
7
+ data.tar.gz: 52f4764a8eaf0f77aca266f00c6f063e4184bcb2428ecbe5d7b579a5dc77d3323fb4530458ad9a9b53ba19a38e7698185e676181080fba6be2a9a062ab04133e
@@ -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
@@ -20,7 +20,11 @@ module Gemsurance
20
20
  end
21
21
 
22
22
  generate_report
23
- exit 1 if @gem_infos.any? { |info| info.vulnerable? }
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
@@ -1,3 +1,3 @@
1
1
  module Gemsurance
2
- VERSION = '0.6.0'
2
+ VERSION = '0.7.0'
3
3
  end
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.6.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: 2015-04-18 00:00:00.000000000 Z
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.3
150
+ rubygems_version: 2.4.8
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Your Gem Insurance Policy