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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5528866f5f55fbafe54d180eb107216cb51960f6e4f2a19a6ab0d5747ba0a4c8
|
4
|
+
data.tar.gz: 1cf3a85d39c210a5b8e7f7788002411b652d504f8d4fb839c027085dcad56524
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
58
|
+
gem.vulnerable = (vulnerable_gem_names & [name, *current_lockfile[name].exact_dependencies]).any?
|
59
59
|
end
|
60
60
|
true
|
61
61
|
end
|