bundle_update_interactive 0.1.0 → 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: 9c9585ae537745fcca9df3d3c56bf670b9c89c76e6a8764f06cded19facf8f56
4
- data.tar.gz: 25cda618302b78573e94cf4551d82cf05ac13dca1be5c70d1dd9f10f4e1cc78b
3
+ metadata.gz: 5528866f5f55fbafe54d180eb107216cb51960f6e4f2a19a6ab0d5747ba0a4c8
4
+ data.tar.gz: 1cf3a85d39c210a5b8e7f7788002411b652d504f8d4fb839c027085dcad56524
5
5
  SHA512:
6
- metadata.gz: 233ff8af81ceb4810b121bd8d603318b5ee8e966b0ef7f11ea3d4bd1c40f4c70d679fa2cc4ec34510d2a70ba0dc3d4dbf6ce2b7f7a9315dc328fdf10e4540238
7
- data.tar.gz: 1d5d043af5822a8764696e8e1a959ba603400ef5b6ff63785fd7a10728ecb09df6f490b58a296870a98b3c7ecdc82cc8abb1e5a7e05e02408ea3a952a00084c2
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?
@@ -34,7 +34,7 @@ module BundleUpdateInteractive
34
34
  say
35
35
  say Table.new(selected_gems).render
36
36
  say
37
- BundlerCommands.update_gems_conservatively(*selected_gems.keys)
37
+ report.bundle_update!(*selected_gems.keys)
38
38
  end
39
39
 
40
40
  private
@@ -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.0"
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.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson