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 +4 -4
- data/README.md +1 -1
- data/lib/bundleup/cli.rb +3 -3
- data/lib/bundleup/commands.rb +1 -1
- data/lib/bundleup/logger.rb +2 -2
- data/lib/bundleup/version.rb +1 -1
- data/lib/bundleup/version_spec.rb +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7138e260f664723083bc97c2c83d18f2e70fa92edbe83a6f04dc22f5e261e10a
|
4
|
+
data.tar.gz: aa2863a81228f70676a2314f3889ccc4fa6b3b77bd112f6f97d9d81da86de977
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce2447a3e3c7d0873762d0e3ab990f64538c84b4da4540896a1a0c60932db40c1b99a02876393d5754fdb4715ee145e04e02999ebf7cab3c591fe20a17b7a524
|
7
|
+
data.tar.gz: a35f9009ac1fb4f6d5b3e39653c1614843b5b50b862859ec58a96a84b2a549a40543b1827eeaf1e103151e8cfee4aabcc0d9e8e9812149627c643a5624d12f23
|
data/README.md
CHANGED
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 (
|
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
|
153
|
-
pin_report = PinReport.new(gem_versions: new_versions, outdated_gems
|
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
|
data/lib/bundleup/commands.rb
CHANGED
@@ -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
|
32
|
+
gems[name] = { newest:, pin: }
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
data/lib/bundleup/logger.rb
CHANGED
@@ -35,8 +35,8 @@ module Bundleup
|
|
35
35
|
print "\r"
|
36
36
|
end
|
37
37
|
|
38
|
-
def while_spinning(message, &
|
39
|
-
thread = Thread.new(&
|
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)
|
data/lib/bundleup/version.rb
CHANGED
@@ -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:
|
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
|
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:
|
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
|
+
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-
|
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.
|
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.
|
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`
|