bundleup 2.4.2 → 2.5.1

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: 5ad14a98f80b8d991d57b415cca1cbf5025d23310d35b6853ddfaec532cfb25b
4
- data.tar.gz: 795e6ffa7e5b4b4d4eb2ff82bd8679e8ca53c2015b1902ddee57378d7ac5d871
3
+ metadata.gz: 9309396a42a834ecdea275abdbaba14fc4a9ad93106a1b64df45aa6c993eb64b
4
+ data.tar.gz: f80c20abfc9b599245fbd253a120437720d6132288982fe6743023aa40c3b304
5
5
  SHA512:
6
- metadata.gz: 7817aa75985bd95f47059839b69374de7994a40f1942b62986c933c7c9221665db3aadcdbd326675e80dbddc5211e43d0403bf4c3cdfc0057394a150d3c42c9a
7
- data.tar.gz: 2d025f59330c814a8e5811dfaccbfe36783e6d07cd7a5db3a93f45f15f9cd71b6b03a41476737eb7784d7a25a3b05f9ae6ee696b98c9b27aefaab51cec2c9e74
6
+ metadata.gz: 6078c4c847d5cc66a84769e97115cbd2ac49bda66b0efa5f77f1a45e6aee339b5e5d916f53f13f1af02e8b1377b014aac073be2832ec33326bf9dbd05e7aa337
7
+ data.tar.gz: 3f5ed2747c5c426139c228ee72b075e2769038a5fd1b7a9adb99909736987d8e929b9df083bf034c34f37bb36f83c06034df4adc56996e2824b089b24da02a81
data/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ 📣 **I am no longer actively developing this project.** I am focusing my attention on building [mattbrictson/bundle_update_interactive](https://github.com/mattbrictson/bundle_update_interactive) instead. It has many of the same features as `bundleup`, so please check it out! In the meantime, `bundleup` will continue to receive occasional maintenance, but likely no new capabilities.
2
+
3
+ ---
4
+
1
5
  # bundleup
2
6
 
3
7
  [![Gem Version](https://img.shields.io/gem/v/bundleup)](https://rubygems.org/gems/bundleup)
@@ -20,7 +24,7 @@ Here it is in action:
20
24
  ## Requirements
21
25
 
22
26
  - Bundler 1.16 or later
23
- - Ruby 3.0 or later
27
+ - Ruby 3.1 or later
24
28
 
25
29
  ## Usage
26
30
 
@@ -106,7 +110,6 @@ if cli.updated_gems.any?
106
110
  end
107
111
  ```
108
112
 
109
-
110
113
  ## How bundleup works
111
114
 
112
115
  bundleup starts by making a backup copy of your Gemfile.lock. Next it runs `bundle check` (and `bundle install` if any gems are missing in your local environment), `bundle list`, then `bundle update` and `bundle list` again to find what gems versions are being used before and after Bundler does its updating magic. (Since gems are actually being installed into your Ruby environment during these steps, the process may take a few moments to complete, especially if gems with native extensions need to be compiled.)
@@ -117,18 +120,11 @@ After displaying its findings, bundleup gives you the option of keeping the chan
117
120
 
118
121
  ## Roadmap
119
122
 
120
- bundleup is very simple at this point, but it could be more. Some possibilities:
121
-
122
- - Automatically commit the Gemfile.lock changes with a nice commit message
123
- - Integrate with bundler-audit to mark upgrades that have important security fixes
124
- - Display relevant CHANGELOG entries for major upgrades
125
- - Non-interactive mode
126
-
127
- If you have other ideas, open an issue on GitHub!
123
+ bundleup is in maintenance mode; no new features are planned.
128
124
 
129
125
  ## Contributing
130
126
 
131
- Code contributions are also welcome! Read [CONTRIBUTING.md](CONTRIBUTING.md) to get started.
127
+ Code contributions are welcome! Read [CONTRIBUTING.md](CONTRIBUTING.md) to get started.
132
128
 
133
129
  [bundler]: http://bundler.io
134
130
  [semver]: http://semver.org
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.1".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.1
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-10-15 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.21
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: A friendlier command-line interface for Bundler’s `update` and `outdated`