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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7518b9a8efc98963b564ce984cb46ffd3b89a0b2
4
- data.tar.gz: 462eb26c0f399dc220f70d3ef4a0de0ba567e581
3
+ metadata.gz: 96da032d4f30feda0e83bb1869df9e962846bd7c
4
+ data.tar.gz: 8b73a7082fa6190b406d6204666118717d2328ac
5
5
  SHA512:
6
- metadata.gz: d1d2bab0114e7a132890cf30755d9a96eb400ecaaf5bdc65a44ad522208a43e3e72e7f81a6773254969b924055e7b5673e11bf755c3c26b7b3679ac39d4ed6a7
7
- data.tar.gz: 72e9bea210641f7d9307256997300a94d1b228e48f682dc441aac3979968faf71fdbf8c99fb7a1db634da5c5d4fe40e97b639fff73d191e1081d2c3540ae19ad
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
- a << Bundler::Advise::Advisories.new unless options[:skip_bundler_advise]
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
@@ -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'
@@ -1,5 +1,5 @@
1
1
  module Bundler
2
2
  module Patch
3
- VERSION = '0.8.0'
3
+ VERSION = '0.9.0'
4
4
  end
5
5
  end
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.8.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-07-22 00:00:00.000000000 Z
11
+ date: 2016-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler-advise