bundleup 2.4.2 → 2.5.0

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: 5ad14a98f80b8d991d57b415cca1cbf5025d23310d35b6853ddfaec532cfb25b
4
- data.tar.gz: 795e6ffa7e5b4b4d4eb2ff82bd8679e8ca53c2015b1902ddee57378d7ac5d871
3
+ metadata.gz: 7138e260f664723083bc97c2c83d18f2e70fa92edbe83a6f04dc22f5e261e10a
4
+ data.tar.gz: aa2863a81228f70676a2314f3889ccc4fa6b3b77bd112f6f97d9d81da86de977
5
5
  SHA512:
6
- metadata.gz: 7817aa75985bd95f47059839b69374de7994a40f1942b62986c933c7c9221665db3aadcdbd326675e80dbddc5211e43d0403bf4c3cdfc0057394a150d3c42c9a
7
- data.tar.gz: 2d025f59330c814a8e5811dfaccbfe36783e6d07cd7a5db3a93f45f15f9cd71b6b03a41476737eb7784d7a25a3b05f9ae6ee696b98c9b27aefaab51cec2c9e74
6
+ metadata.gz: ce2447a3e3c7d0873762d0e3ab990f64538c84b4da4540896a1a0c60932db40c1b99a02876393d5754fdb4715ee145e04e02999ebf7cab3c591fe20a17b7a524
7
+ data.tar.gz: a35f9009ac1fb4f6d5b3e39653c1614843b5b50b862859ec58a96a84b2a549a40543b1827eeaf1e103151e8cfee4aabcc0d9e8e9812149627c643a5624d12f23
data/README.md CHANGED
@@ -20,7 +20,7 @@ Here it is in action:
20
20
  ## Requirements
21
21
 
22
22
  - Bundler 1.16 or later
23
- - Ruby 3.0 or later
23
+ - Ruby 3.1 or later
24
24
 
25
25
  ## Usage
26
26
 
data/lib/bundleup/cli.rb CHANGED
@@ -18,7 +18,7 @@ module Bundleup
18
18
  end
19
19
 
20
20
  def run # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
21
- print_usage && return if (args & %w[-h --help]).any?
21
+ print_usage && return if args.intersect?(%w[-h --help])
22
22
 
23
23
  @updated_gems = []
24
24
  @pinned_gems = []
@@ -149,8 +149,8 @@ module Bundleup
149
149
  new_versions = commands.list
150
150
  outdated_gems = commands.outdated
151
151
 
152
- update_report = UpdateReport.new(old_versions: old_versions, new_versions: new_versions)
153
- pin_report = PinReport.new(gem_versions: new_versions, outdated_gems: outdated_gems, gem_comments: gem_comments)
152
+ update_report = UpdateReport.new(old_versions:, new_versions:)
153
+ pin_report = PinReport.new(gem_versions: new_versions, outdated_gems:, gem_comments:)
154
154
 
155
155
  [update_report, pin_report, new_versions, outdated_gems]
156
156
  end
@@ -29,7 +29,7 @@ module Bundleup
29
29
  expr = output.match?(/^Gem\s+Current\s+Latest/) ? OUTDATED_2_2_REGEXP : OUTDATED_2_1_REGEXP
30
30
 
31
31
  output.scan(expr).each_with_object({}) do |(name, newest, pin), gems|
32
- gems[name] = { newest: newest, pin: pin }
32
+ gems[name] = { newest:, pin: }
33
33
  end
34
34
  end
35
35
 
@@ -35,8 +35,8 @@ module Bundleup
35
35
  print "\r"
36
36
  end
37
37
 
38
- def while_spinning(message, &block)
39
- thread = Thread.new(&block)
38
+ def while_spinning(message, &)
39
+ thread = Thread.new(&)
40
40
  thread.report_on_exception = false
41
41
  message = message.ljust(console_width - 2)
42
42
  print "\r#{Colors.blue([spinner.next, message].join(' '))}" until wait_for_exit(thread, 0.1)
@@ -1,3 +1,3 @@
1
1
  module Bundleup
2
- VERSION = "2.4.2".freeze
2
+ VERSION = "2.5.0".freeze
3
3
  end
@@ -7,7 +7,7 @@ module Bundleup
7
7
  _, operator, number = version.match(/^([^\d\s]*)\s*(.+)/).to_a
8
8
  operator = nil if operator.empty?
9
9
 
10
- new(parts: number.split("."), operator: operator)
10
+ new(parts: number.split("."), operator:)
11
11
  end
12
12
 
13
13
  attr_reader :parts, :operator
@@ -25,7 +25,7 @@ module Bundleup
25
25
  return self if %w[!= > >=].include?(operator)
26
26
  return self.class.parse(">= 0") if %w[< <=].include?(operator)
27
27
 
28
- self.class.new(parts: parts, operator: ">=")
28
+ self.class.new(parts:, operator: ">=")
29
29
  end
30
30
 
31
31
  def shift(new_version) # rubocop:disable Metrics/AbcSize
@@ -38,7 +38,7 @@ module Bundleup
38
38
  end
39
39
 
40
40
  def slice(amount)
41
- self.class.new(parts: parts[0, amount], operator: operator)
41
+ self.class.new(parts: parts[0, amount], operator:)
42
42
  end
43
43
 
44
44
  def to_s
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundleup
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.2
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-10 00:00:00.000000000 Z
11
+ date: 2024-07-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Use `bundleup` whenever you want to update the locked Gemfile dependencies
14
14
  of a Ruby project. It shows exactly what gems will be updated with color output
@@ -56,14 +56,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: '3.0'
59
+ version: '3.1'
60
60
  required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  requirements:
62
62
  - - ">="
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
65
  requirements: []
66
- rubygems_version: 3.5.6
66
+ rubygems_version: 3.5.11
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: A friendlier command-line interface for Bundler’s `update` and `outdated`