bundle_update_interactive 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 79f73540a0e6abc4e9cf56c3333420d4fede8f87694e12e4881670201a47313c
4
- data.tar.gz: 3dc401815571eec01c46306dc76df3b741fa5506c944498dad56f4237543b1ba
3
+ metadata.gz: 5528866f5f55fbafe54d180eb107216cb51960f6e4f2a19a6ab0d5747ba0a4c8
4
+ data.tar.gz: 1cf3a85d39c210a5b8e7f7788002411b652d504f8d4fb839c027085dcad56524
5
5
  SHA512:
6
- metadata.gz: 2c295be43958998c5c3680890f5652aff27828bca804e682aa2eef6d057963122c33168843337d0f177dce13c5a689098882e47b849d157b8f68d6b4af0f2409
7
- data.tar.gz: '01549bc47257811dd3fc9088cbba0efffa7e0b4dd9208eb82f0279f47cad558e07a4aba087703f6ec2aa21f441834ba7c49660d4635ac58812e0a388bb0abe62'
6
+ metadata.gz: fd77e2d7fdbdce228366b613b0c1d68571bd8b75bf42299b216b14a2c4adb119b82dea42c82e879ade62241974006655f5e67594bc7e6b5f6d25a082efe0e774
7
+ data.tar.gz: 071b0269b26bf0d1b49fe65962a921846f0ad55ff5dff553ab4d174e1bac33f9000eba9257c6d89e7f376ab305cc1f24ac0b73202f4dfa5d1a12b4e5b02f3c7c
@@ -50,7 +50,7 @@ class BundleUpdateInteractive::CLI
50
50
 
51
51
  if given_args.first == "help"
52
52
  retry_with_args = ["help"] if given_args.length > 1
53
- elsif e.unknown.intersect?(%w[-h --help])
53
+ elsif (e.unknown & %w[-h --help]).any?
54
54
  retry_with_args = ["help", (given_args - e.unknown).first]
55
55
  end
56
56
  raise unless retry_with_args.any?
@@ -55,7 +55,7 @@ module BundleUpdateInteractive
55
55
  vulnerable_gem_names = Set.new(audit_report.vulnerable_gems.map(&:name))
56
56
 
57
57
  outdated_gems.each do |name, gem|
58
- gem.vulnerable = vulnerable_gem_names.intersect?([name, *current_lockfile[name].exact_dependencies])
58
+ gem.vulnerable = (vulnerable_gem_names & [name, *current_lockfile[name].exact_dependencies]).any?
59
59
  end
60
60
  true
61
61
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BundleUpdateInteractive
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundle_update_interactive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson