bundler-patch 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bundler/patch/advisory_consolidator.rb +7 -1
- data/lib/bundler/patch/cli.rb +1 -0
- data/lib/bundler/patch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96da032d4f30feda0e83bb1869df9e962846bd7c
|
4
|
+
data.tar.gz: 8b73a7082fa6190b406d6204666118717d2328ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d0fd0304763dbec00ce7cb8ea9bb60103733527627d470f00526bc2868c4f154cc6ac185dcbc59f198a1f579c3c9a1ea33616c374fceaeec5aa070460b85a53
|
7
|
+
data.tar.gz: ee72e66cea4c8c44b5e3392ca091fc858fbe7929f795a31210d3af92c3bdfd132351739bde6cdc39286c215c4d3e07020fbc9a261ca79136a644cd12e81e3b7f
|
@@ -3,7 +3,13 @@ module Bundler::Patch
|
|
3
3
|
def initialize(options={}, all_ads=nil)
|
4
4
|
@options = options
|
5
5
|
@all_ads = all_ads || [].tap do |a|
|
6
|
-
|
6
|
+
unless options[:skip_bundler_advise]
|
7
|
+
if options[:ruby_advisory_db_path]
|
8
|
+
a << Bundler::Advise::Advisories.new(dir: options[:ruby_advisory_db_path])
|
9
|
+
else
|
10
|
+
a << Bundler::Advise::Advisories.new # annoying
|
11
|
+
end
|
12
|
+
end
|
7
13
|
a << Bundler::Advise::Advisories.new(dir: options[:advisory_db_path], repo: nil) if options[:advisory_db_path]
|
8
14
|
end
|
9
15
|
end
|
data/lib/bundler/patch/cli.rb
CHANGED
@@ -12,6 +12,7 @@ module Bundler::Patch
|
|
12
12
|
on '-l', '--list', 'List vulnerable gems and new version target. No updates will be performed.'
|
13
13
|
on '-v', '--vulnerable_gems_only', 'Only update vulnerable gems.'
|
14
14
|
on '-a=', '--advisory_db_path=', 'Optional custom advisory db path. `gems` dir will be appended to this path.'
|
15
|
+
on '-d=', '--ruby_advisory_db_path=', 'Optional path for ruby advisory db. `gems` dir will be appended to this path.'
|
15
16
|
on '-r', '--ruby', 'Update Ruby version in related files.'
|
16
17
|
on '--rubies=', 'Supported Ruby versions. Comma delimited or multiple switches.', as: Array, delimiter: ','
|
17
18
|
on '-h', 'Show this help'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler-patch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chrismo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler-advise
|