bundleup 0.8.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/push.yml +12 -0
- data/.gitignore +0 -1
- data/.travis.yml +5 -5
- data/LICENSE.txt +1 -1
- data/README.md +15 -15
- data/Rakefile +4 -16
- data/bundleup.gemspec +3 -4
- data/lib/bundleup/bundle_commands.rb +2 -2
- data/lib/bundleup/upgrade.rb +1 -1
- data/lib/bundleup/version.rb +1 -1
- metadata +10 -24
- data/.github/main.workflow +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a12520bbc6803f69e10659bf902b5ea02b1902e1c3115ab77ca13f9721e3190
|
4
|
+
data.tar.gz: 57e69c40eaa3639ebb05dbdacc28b8c38d189138b320146044a9ff145dc9bfa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aeed97c4f56cab2a1bd993e5cdea4dd1f38381ad5604948ca38e98632572b9dbd1c162e86ee71a5bd015ea1647a57cafaf86e9d6a44db5553c260195e47df457
|
7
|
+
data.tar.gz: 59ba702fe9f6078299c5a439b43b1ec1ef134e7d54d66156bbee909a73d5a2f2d77eb2df1e6df0c081baa9fc30893fc70c5f8de67fe0d058ce93f9a002fa82d1
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -6,11 +6,11 @@ branches:
|
|
6
6
|
only:
|
7
7
|
- master
|
8
8
|
rvm:
|
9
|
-
- 2.4.
|
10
|
-
- 2.5.
|
11
|
-
- 2.6.
|
9
|
+
- 2.4.9
|
10
|
+
- 2.5.7
|
11
|
+
- 2.6.5
|
12
|
+
- 2.7.0
|
12
13
|
- ruby-head
|
13
14
|
before_install:
|
14
|
-
- gem
|
15
|
-
- gem install bundler -v 2.0.2 --conservative --no-document
|
15
|
+
- gem install bundler -v 2.1.3 --conservative --no-document
|
16
16
|
- gem install executable-hooks --conservative --no-document
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -2,21 +2,24 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/bundleup.svg)](http://badge.fury.io/rb/bundleup)
|
4
4
|
[![Build Status](https://travis-ci.org/mattbrictson/bundleup.svg?branch=master)](https://travis-ci.org/mattbrictson/bundleup)
|
5
|
-
[![Coverage Status](https://coveralls.io/repos/mattbrictson/bundleup/badge.svg?branch=master&service=github)](https://coveralls.io/github/mattbrictson/bundleup?branch=master)
|
6
5
|
|
7
6
|
**Run `bundleup` on a Ruby project containing a Gemfile to see what gem dependencies need updating.** It is a friendlier command-line interface to [Bundler’s][bundler] `bundle update` and `bundle outdated`.
|
8
7
|
|
9
8
|
You might like bundleup because it:
|
10
9
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
10
|
+
- shows you exactly what gems will be updated lets you decide whether to proceed
|
11
|
+
- uses color to call your attention to important gem updates (based on [Semver][])
|
12
|
+
- lets you know when a version "pin" in your Gemfile is preventing an update
|
13
|
+
- relies on standard Bundler output and does not patch code or use Bundler internals
|
15
14
|
|
16
15
|
Here it is in action:
|
17
16
|
|
18
17
|
<img src="https://raw.github.com/mattbrictson/bundleup/master/sample.png" width="599" height="553" alt="Sample output">
|
19
18
|
|
19
|
+
## Requirements
|
20
|
+
|
21
|
+
- Bundler 1.16 or later
|
22
|
+
- Ruby 2.4 or later
|
20
23
|
|
21
24
|
## Usage
|
22
25
|
|
@@ -43,29 +46,26 @@ bundleup --group=development
|
|
43
46
|
|
44
47
|
## How it works
|
45
48
|
|
46
|
-
bundleup starts by making a backup copy of your Gemfile.lock. Next it runs `bundle
|
49
|
+
bundleup starts by making a backup copy of your Gemfile.lock. Next it runs `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.)
|
47
50
|
|
48
|
-
Finally, bundleup runs `bundle outdated` to see the gems that were
|
51
|
+
Finally, bundleup runs `bundle outdated` to see the gems that were _not_ updated due to Gemfile restrictions.
|
49
52
|
|
50
53
|
After displaying its findings, bundleup gives you the option of keeping the changes. If you answer "no", bundleup will restore your original Gemfile.lock from its backup, leaving your project untouched.
|
51
54
|
|
52
|
-
|
53
55
|
## Roadmap
|
54
56
|
|
55
57
|
bundleup is a very simple script at this point, but it could be more. Some possibilities:
|
56
58
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
59
|
+
- Automatically commit the Gemfile.lock changes with a nice commit message
|
60
|
+
- Integrate with bundler-audit to mark upgrades that have important security fixes
|
61
|
+
- Display relevant CHANGELOG entries for major upgrades
|
62
|
+
- Non-interactive mode
|
61
63
|
|
62
64
|
If you have other ideas, open an issue on GitHub!
|
63
65
|
|
64
|
-
|
65
66
|
## Contributing
|
66
67
|
|
67
68
|
Code contributions are also welcome! Read [CONTRIBUTING.md](CONTRIBUTING.md) to get started.
|
68
69
|
|
69
|
-
|
70
70
|
[bundler]: http://bundler.io
|
71
|
-
[
|
71
|
+
[semver]: http://semver.org
|
data/Rakefile
CHANGED
@@ -21,8 +21,9 @@ task bump: %w[bump:bundler bump:ruby bump:year]
|
|
21
21
|
|
22
22
|
namespace :bump do
|
23
23
|
task :bundler do
|
24
|
-
version =
|
24
|
+
version = Gem.latest_version_for("bundler").to_s
|
25
25
|
replace_in_file ".travis.yml", /bundler -v (\S+)/ => version
|
26
|
+
replace_in_file "Gemfile.lock", /^BUNDLED WITH\n\s+([\d\.]+)$/ => version
|
26
27
|
end
|
27
28
|
|
28
29
|
task :ruby do
|
@@ -31,6 +32,7 @@ namespace :bump do
|
|
31
32
|
|
32
33
|
replace_in_file "bundleup.gemspec", /ruby_version = ">= (.*)"/ => lowest
|
33
34
|
replace_in_file ".rubocop.yml", /TargetRubyVersion: (.*)/ => lowest_minor
|
35
|
+
replace_in_file "README.md", /Ruby (\d+\.\d+)/ => lowest_minor
|
34
36
|
|
35
37
|
travis = YAML.safe_load(open(".travis.yml"))
|
36
38
|
travis["rvm"] = RubyVersions.latest_supported_patches + ["ruby-head"]
|
@@ -58,20 +60,6 @@ def replace_in_file(path, replacements)
|
|
58
60
|
IO.write(path, contents) if contents != orig_contents
|
59
61
|
end
|
60
62
|
|
61
|
-
module Gemfile
|
62
|
-
class << self
|
63
|
-
def bundler_version
|
64
|
-
lock_file[/BUNDLED WITH\n (\S+)$/, 1]
|
65
|
-
end
|
66
|
-
|
67
|
-
private
|
68
|
-
|
69
|
-
def lock_file
|
70
|
-
@_lock_file ||= IO.read("Gemfile.lock")
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
63
|
module RubyVersions
|
76
64
|
class << self
|
77
65
|
def lowest_supported
|
@@ -95,7 +83,7 @@ module RubyVersions
|
|
95
83
|
|
96
84
|
def versions
|
97
85
|
@_versions ||= begin
|
98
|
-
yaml = open(
|
86
|
+
yaml = URI.open(
|
99
87
|
"https://raw.githubusercontent.com/ruby/www.ruby-lang.org/master/_data/downloads.yml"
|
100
88
|
)
|
101
89
|
YAML.safe_load(yaml, symbolize_names: true)
|
data/bundleup.gemspec
CHANGED
@@ -22,10 +22,9 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.required_ruby_version = ">= 2.4.0"
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 2.0"
|
25
|
-
spec.add_development_dependency "coveralls", "~> 0.8.19"
|
26
25
|
spec.add_development_dependency "minitest", "~> 5.0"
|
27
26
|
spec.add_development_dependency "minitest-reporters", "~> 1.1"
|
28
|
-
spec.add_development_dependency "rake", "~>
|
29
|
-
spec.add_development_dependency "rubocop", "0.
|
30
|
-
spec.add_development_dependency "rubocop-performance", "1.
|
27
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
28
|
+
spec.add_development_dependency "rubocop", "0.78.0"
|
29
|
+
spec.add_development_dependency "rubocop-performance", "1.5.2"
|
31
30
|
end
|
data/lib/bundleup/upgrade.rb
CHANGED
@@ -48,7 +48,7 @@ module Bundleup
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def find_versions(type)
|
51
|
-
commands.
|
51
|
+
commands.list.scan(/\* (\S+) \((\S+)(?: (\S+))?\)/) do |name, ver, sha|
|
52
52
|
gem_status(name).public_send("#{type}_version=", sha || ver)
|
53
53
|
end
|
54
54
|
end
|
data/lib/bundleup/version.rb
CHANGED
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: 0.
|
4
|
+
version: 0.9.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:
|
11
|
+
date: 2020-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: coveralls
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.8.19
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.8.19
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: minitest
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,42 +58,42 @@ dependencies:
|
|
72
58
|
requirements:
|
73
59
|
- - "~>"
|
74
60
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
61
|
+
version: '13.0'
|
76
62
|
type: :development
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
66
|
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
68
|
+
version: '13.0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: rubocop
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
73
|
- - '='
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
75
|
+
version: 0.78.0
|
90
76
|
type: :development
|
91
77
|
prerelease: false
|
92
78
|
version_requirements: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
80
|
- - '='
|
95
81
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
82
|
+
version: 0.78.0
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: rubocop-performance
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
87
|
- - '='
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
89
|
+
version: 1.5.2
|
104
90
|
type: :development
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
94
|
- - '='
|
109
95
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
96
|
+
version: 1.5.2
|
111
97
|
description:
|
112
98
|
email:
|
113
99
|
- bundleup@mattbrictson.com
|
@@ -116,8 +102,8 @@ executables:
|
|
116
102
|
extensions: []
|
117
103
|
extra_rdoc_files: []
|
118
104
|
files:
|
119
|
-
- ".github/main.workflow"
|
120
105
|
- ".github/release-drafter.yml"
|
106
|
+
- ".github/workflows/push.yml"
|
121
107
|
- ".gitignore"
|
122
108
|
- ".rubocop.yml"
|
123
109
|
- ".travis.yml"
|
@@ -160,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
146
|
- !ruby/object:Gem::Version
|
161
147
|
version: '0'
|
162
148
|
requirements: []
|
163
|
-
rubygems_version: 3.
|
149
|
+
rubygems_version: 3.1.2
|
164
150
|
signing_key:
|
165
151
|
specification_version: 4
|
166
152
|
summary: A friendlier command-line interface for Bundler’s `update` and `outdated`
|