bundler-advise 1.0.3 → 1.1.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: ecaa7aafbba808b1ce99bce7d18b18c4668f2d32
4
- data.tar.gz: f932d239656e5b37e5e35a0259532729e9a49b15
3
+ metadata.gz: 900d530ed088770100ff2dd4e4d3feebc8bd1250
4
+ data.tar.gz: 69fb1120715441e5f7b3297c91a06da8f4d3de0c
5
5
  SHA512:
6
- metadata.gz: 254d03f58bce00cee1d33f6f65bc67c6206204f24db537873d77c6c0f6a2740405be8a554eebd68efe52052f469fcaeb54615b509f231b85044e6029fc80c7c4
7
- data.tar.gz: 6bbeb4e8bf8014a254c4ccbc0e23d87750c6c59e28a626cd848b52400a28b40004f63db69c6a9dd096e03315f8c36b041e16b6087ec2129f7207a4dfc748e8dd
6
+ metadata.gz: 18201e9e2ea2a3eb3ae868dc982a9eeccd52ec6f5950bc0bf00c0e8b9f4129751d80ea9764fb46ac9fa7254a2b984c43402ad7995068a94353557f4abd4cff30
7
+ data.tar.gz: e88fa04306e53ac73cc4759ca7c7c1421881bd6b974bbaf3c851db31675b5b87d337f3cff943c96ffc8fdbba72cbec5421a6e221f704ce4b3149d93111500567
@@ -14,6 +14,11 @@ module Bundler::Advise
14
14
 
15
15
  attr_reader *self.fields, :id
16
16
 
17
+ # Not always guaranteed to be set, but will be set by GemAdviser when scanning a lockfile.
18
+ attr_reader :gem_spec
19
+ attr_writer :gem_spec
20
+ private :gem_spec=
21
+
17
22
  def initialize(fields={})
18
23
  fields.each do |k, v|
19
24
  instance_variable_set("@#{k}", v)
@@ -15,7 +15,7 @@ module Bundler::Advise
15
15
  end
16
16
  lockfile.specs.map do |spec|
17
17
  @advisories.gem_advisories_for(spec.name).select do |ad|
18
- ad.is_affected?(spec.version)
18
+ ad.is_affected?(spec.version).tap { |res| ad.send(:gem_spec=, spec) if res }
19
19
  end
20
20
  end.flatten
21
21
  end
@@ -1,5 +1,5 @@
1
1
  module Bundler
2
2
  module Advise
3
- VERSION = '1.0.3'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler-advise
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - chrismo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-23 00:00:00.000000000 Z
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git