pronto-bundler_audit 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f5e3d57ee3196408dfa094d7f049418ab9cde1547b8d895b4850b89e4b3eddf
4
- data.tar.gz: 2faf2c8e0b126fa1158ace92f13c4e5db196ebccb909b8cdececf63a7ad8f427
3
+ metadata.gz: 14598d0b688654057c7bf84f388f5d9881394d916c89e93aabed9f359046fa4e
4
+ data.tar.gz: aebe7dc2245ad8459e002bb2e2454343bec3c0f6906ce67b97d310dadeb36cca
5
5
  SHA512:
6
- metadata.gz: 547da0556ee2b901ab926f3e886f36d0098e3f142eb570cfa2e4fb50f656f49afdecfa696158e1ec9ca4df1c3a204aee5b204c7a0f012bbcf90490ee2279983b
7
- data.tar.gz: 1d2e0812b77939c079c5f68fbbbccdf3e45522be2971705a462bc6eabe22e11c68312ea4dda66b416eb1171147ee88edf297ad5871e730ac65b7ddea80335be1
6
+ metadata.gz: 107cc7d4a03d1db7cca881a5a0e3f8fc63efa57f43aeb328fc65bcd75eb569e89d5a77d5fd968c02b9904fd7983a5430ce5535e1985c566d061883aba0017369
7
+ data.tar.gz: 3047f3525a76613c0199c05353c4a2342434a07e689c586dfd1586a70c533cd263879567b7ebc8f9549bb70f618a83340014316589f0c3710cff78df50cc9d64
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.2.1 - 2019-04-30
2
+ - Fix handling of the Pronto::Git::Patches collection in Pronto::BundlerAudit#run
3
+ - Ensure an Array is returned by Pronto::BundlerAudit#run, as expected by Pronto
4
+
1
5
  ### 0.2.0 - 2019-04-30
2
6
  - Fix conditional for running Bundle Audit scans -- was always running even if there was nothing to run on in a given Pronto::Patches set
3
7
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pronto-bundler_audit (0.2.0)
4
+ pronto-bundler_audit (0.2.1)
5
5
  bundler-audit (~> 0)
6
6
  pronto (~> 0)
7
7
 
@@ -1,6 +1,6 @@
1
1
  module Pronto
2
2
  # Pronto::BundlerAuditVersion
3
3
  module BundlerAuditVersion
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
6
6
  end
@@ -14,19 +14,20 @@ module Pronto
14
14
  class BundlerAudit < Runner
15
15
  GEMFILE_LOCK_FILENAME = "Gemfile.lock".freeze
16
16
 
17
+ # @return [Array] per Pronto expectation
17
18
  def run
18
- patch = find_relevant_patch
19
-
20
- if patch
19
+ if (patch = find_relevant_patch)
21
20
  patch_handler = PatchHandler.new(patch, runner: self)
22
21
  patch_handler.call
22
+ else
23
+ []
23
24
  end
24
25
  end
25
26
 
26
27
  private
27
28
 
28
29
  def find_relevant_patch
29
- @patches.reverse.detect { |patch|
30
+ @patches.to_a.reverse.detect { |patch|
30
31
  patch.additions > 0 && relevant_patch_path?(patch)
31
32
  }
32
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto-bundler_audit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Dobbins