bundleup 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/bundleup/bundle_commands.rb +26 -5
- data/lib/bundleup/console.rb +1 -0
- data/lib/bundleup/upgrade.rb +1 -0
- data/lib/bundleup/version.rb +1 -1
- metadata +8 -116
- data/.github/release-drafter.yml +0 -17
- data/.github/workflows/push.yml +0 -14
- data/.gitignore +0 -8
- data/.rubocop.yml +0 -46
- data/.travis.yml +0 -14
- data/CHANGELOG.md +0 -1
- data/CODE_OF_CONDUCT.md +0 -49
- data/CONTRIBUTING.md +0 -29
- data/Gemfile +0 -4
- data/Rakefile +0 -93
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/bundleup.gemspec +0 -40
- data/sample.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db5d58970165c2381d963205eae11b610d57f35e9654bee2edff54f2d1ff861f
|
4
|
+
data.tar.gz: 508d1cba2d3ab7c2167b60ec38fd1bf49e0252f614e07fe7cce3ed36de3dc32e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8133402453232bfd33b17a9c3c5f903874f92f190063bc84e7f29723514ab5333d791d0ac2e6eb4c8deb75a5d5f734a20cb47d63101a79ff879b8e566c63952
|
7
|
+
data.tar.gz: c508a0e3360b51d537c948e1cd95790fd69ad01d43d86a97976729fea4737a84aa25fedd69513f379c26ba82c0abcea3f71bc3f25ad1e802845b24c81f3deb9e
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ bundleup --group=development
|
|
46
46
|
|
47
47
|
## How it works
|
48
48
|
|
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.)
|
49
|
+
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.)
|
50
50
|
|
51
51
|
Finally, bundleup runs `bundle outdated` to see the gems that were _not_ updated due to Gemfile restrictions.
|
52
52
|
|
@@ -2,27 +2,48 @@ require "open3"
|
|
2
2
|
|
3
3
|
module Bundleup
|
4
4
|
class BundleCommands
|
5
|
+
class Result
|
6
|
+
attr_reader :output
|
7
|
+
|
8
|
+
def initialize(output, success)
|
9
|
+
@output = output
|
10
|
+
@success = success
|
11
|
+
end
|
12
|
+
|
13
|
+
def success?
|
14
|
+
@success
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
5
18
|
include Console
|
6
19
|
|
20
|
+
def check
|
21
|
+
run(%w[bundle check], fail_silently: true).success?
|
22
|
+
end
|
23
|
+
|
24
|
+
def install
|
25
|
+
run(%w[bundle install]).output
|
26
|
+
end
|
27
|
+
|
7
28
|
def outdated
|
8
|
-
run(%w[bundle outdated], true)
|
29
|
+
run(%w[bundle outdated], fail_silently: true).output
|
9
30
|
end
|
10
31
|
|
11
32
|
def list
|
12
|
-
run(%w[bundle list])
|
33
|
+
run(%w[bundle list]).output
|
13
34
|
end
|
14
35
|
|
15
36
|
def update(args=[])
|
16
|
-
run(%w[bundle update] + args)
|
37
|
+
run(%w[bundle update] + args).output
|
17
38
|
end
|
18
39
|
|
19
40
|
private
|
20
41
|
|
21
|
-
def run(cmd, fail_silently
|
42
|
+
def run(cmd, fail_silently: false)
|
22
43
|
cmd_line = cmd.join(" ")
|
23
44
|
progress("Running `#{cmd_line}`") do
|
24
45
|
out, err, status = Open3.capture3(*cmd)
|
25
|
-
next(out) if status.success? || fail_silently
|
46
|
+
next(Result.new(out, status.success?)) if status.success? || fail_silently
|
26
47
|
|
27
48
|
raise ["Failed to execute: #{cmd_line}", out, err].compact.join("\n")
|
28
49
|
end
|
data/lib/bundleup/console.rb
CHANGED
@@ -78,6 +78,7 @@ module Bundleup
|
|
78
78
|
# After each wait, `yield` is called to allow a block to execute.
|
79
79
|
def observing_thread(callable, initial_wait, periodic_wait)
|
80
80
|
thread = Thread.new(&callable)
|
81
|
+
thread.report_on_exception = false
|
81
82
|
wait_for_exit(thread, initial_wait)
|
82
83
|
loop do
|
83
84
|
break if wait_for_exit(thread, periodic_wait)
|
data/lib/bundleup/upgrade.rb
CHANGED
data/lib/bundleup/version.rb
CHANGED
metadata
CHANGED
@@ -1,113 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundleup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.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: 2020-
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '2.0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '2.0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: minitest
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '5.0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '5.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: minitest-reporters
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.1'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.1'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rake
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '13.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '13.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - '='
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 0.86.0
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - '='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 0.86.0
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop-minitest
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - '='
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 0.9.0
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - '='
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 0.9.0
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rubocop-performance
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - '='
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 1.6.1
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - '='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 1.6.1
|
11
|
+
date: 2020-08-08 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
111
13
|
description: Use `bundleup` whenever you want to update the locked Gemfile dependencies
|
112
14
|
of a Ruby project. It shows exactly what gems will be updated with color output
|
113
15
|
that calls attention to significant semver changes. Bundleup will also let you know
|
@@ -121,21 +23,8 @@ executables:
|
|
121
23
|
extensions: []
|
122
24
|
extra_rdoc_files: []
|
123
25
|
files:
|
124
|
-
- ".github/release-drafter.yml"
|
125
|
-
- ".github/workflows/push.yml"
|
126
|
-
- ".gitignore"
|
127
|
-
- ".rubocop.yml"
|
128
|
-
- ".travis.yml"
|
129
|
-
- CHANGELOG.md
|
130
|
-
- CODE_OF_CONDUCT.md
|
131
|
-
- CONTRIBUTING.md
|
132
|
-
- Gemfile
|
133
26
|
- LICENSE.txt
|
134
27
|
- README.md
|
135
|
-
- Rakefile
|
136
|
-
- bin/console
|
137
|
-
- bin/setup
|
138
|
-
- bundleup.gemspec
|
139
28
|
- exe/bundleup
|
140
29
|
- lib/bundleup.rb
|
141
30
|
- lib/bundleup/bundle_commands.rb
|
@@ -146,11 +35,14 @@ files:
|
|
146
35
|
- lib/bundleup/outdated_parser.rb
|
147
36
|
- lib/bundleup/upgrade.rb
|
148
37
|
- lib/bundleup/version.rb
|
149
|
-
- sample.png
|
150
38
|
homepage: https://github.com/mattbrictson/bundleup
|
151
39
|
licenses:
|
152
40
|
- MIT
|
153
|
-
metadata:
|
41
|
+
metadata:
|
42
|
+
bug_tracker_uri: https://github.com/mattbrictson/bundleup/issues
|
43
|
+
changelog_uri: https://github.com/mattbrictson/bundleup/releases
|
44
|
+
source_code_uri: https://github.com/mattbrictson/bundleup
|
45
|
+
homepage_uri: https://github.com/mattbrictson/bundleup
|
154
46
|
post_install_message:
|
155
47
|
rdoc_options: []
|
156
48
|
require_paths:
|
data/.github/release-drafter.yml
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
name-template: "$NEXT_PATCH_VERSION"
|
2
|
-
tag-template: "v$NEXT_PATCH_VERSION"
|
3
|
-
categories:
|
4
|
-
- title: "⚠️ Breaking Changes"
|
5
|
-
label: "⚠️ Breaking"
|
6
|
-
- title: "✨ New Features"
|
7
|
-
label: "✨ Feature"
|
8
|
-
- title: "🐛 Bug Fixes"
|
9
|
-
label: "🐛 Bug Fix"
|
10
|
-
- title: "📚 Documentation"
|
11
|
-
label: "📚 Docs"
|
12
|
-
- title: "🏠 Housekeeping"
|
13
|
-
label: "🏠 Housekeeping"
|
14
|
-
change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
|
15
|
-
no-changes-template: "- No changes"
|
16
|
-
template: |
|
17
|
-
$CHANGES
|
data/.github/workflows/push.yml
DELETED
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
require:
|
2
|
-
- rubocop-minitest
|
3
|
-
- rubocop-performance
|
4
|
-
|
5
|
-
AllCops:
|
6
|
-
NewCops: enable
|
7
|
-
TargetRubyVersion: 2.5
|
8
|
-
Exclude:
|
9
|
-
- "*.gemspec"
|
10
|
-
- "vendor/**/*"
|
11
|
-
|
12
|
-
Layout/SpaceAroundEqualsInParameterDefault:
|
13
|
-
EnforcedStyle: no_space
|
14
|
-
|
15
|
-
Metrics/AbcSize:
|
16
|
-
Exclude:
|
17
|
-
- "test/**/*"
|
18
|
-
|
19
|
-
Metrics/MethodLength:
|
20
|
-
Exclude:
|
21
|
-
- "test/**/*"
|
22
|
-
|
23
|
-
Metrics/ClassLength:
|
24
|
-
Exclude:
|
25
|
-
- "test/**/*"
|
26
|
-
|
27
|
-
Naming/MemoizedInstanceVariableName:
|
28
|
-
Enabled: false
|
29
|
-
|
30
|
-
Style/BarePercentLiterals:
|
31
|
-
EnforcedStyle: percent_q
|
32
|
-
|
33
|
-
Style/ClassAndModuleChildren:
|
34
|
-
Enabled: false
|
35
|
-
|
36
|
-
Style/Documentation:
|
37
|
-
Enabled: false
|
38
|
-
|
39
|
-
Style/DoubleNegation:
|
40
|
-
Enabled: false
|
41
|
-
|
42
|
-
Style/FrozenStringLiteralComment:
|
43
|
-
Enabled: false
|
44
|
-
|
45
|
-
Style/StringLiterals:
|
46
|
-
EnforcedStyle: double_quotes
|
data/.travis.yml
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
---
|
2
|
-
language: ruby
|
3
|
-
cache: bundler
|
4
|
-
branches:
|
5
|
-
only:
|
6
|
-
- main
|
7
|
-
rvm:
|
8
|
-
- 2.5.8
|
9
|
-
- 2.6.6
|
10
|
-
- 2.7.1
|
11
|
-
- ruby-head
|
12
|
-
before_install:
|
13
|
-
- gem install bundler -v 2.1.4 --conservative --no-document
|
14
|
-
- gem install executable-hooks --conservative --no-document
|
data/CHANGELOG.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Release notes for this project are kept here: https://github.com/mattbrictson/bundleup/releases
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
# Contributor Code of Conduct
|
2
|
-
|
3
|
-
As contributors and maintainers of this project, and in the interest of
|
4
|
-
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
-
contribute through reporting issues, posting feature requests, updating
|
6
|
-
documentation, submitting pull requests or patches, and other activities.
|
7
|
-
|
8
|
-
We are committed to making participation in this project a harassment-free
|
9
|
-
experience for everyone, regardless of level of experience, gender, gender
|
10
|
-
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
-
body size, race, ethnicity, age, religion, or nationality.
|
12
|
-
|
13
|
-
Examples of unacceptable behavior by participants include:
|
14
|
-
|
15
|
-
* The use of sexualized language or imagery
|
16
|
-
* Personal attacks
|
17
|
-
* Trolling or insulting/derogatory comments
|
18
|
-
* Public or private harassment
|
19
|
-
* Publishing other's private information, such as physical or electronic
|
20
|
-
addresses, without explicit permission
|
21
|
-
* Other unethical or unprofessional conduct
|
22
|
-
|
23
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
-
threatening, offensive, or harmful.
|
28
|
-
|
29
|
-
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
-
fairly and consistently applying these principles to every aspect of managing
|
31
|
-
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
-
Conduct may be permanently removed from the project team.
|
33
|
-
|
34
|
-
This code of conduct applies both within project spaces and in public spaces
|
35
|
-
when an individual is representing the project or its community.
|
36
|
-
|
37
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
-
reported by contacting a project maintainer at matt@mattbrictson.com. All
|
39
|
-
complaints will be reviewed and investigated and will result in a response that
|
40
|
-
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
-
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
-
incident.
|
43
|
-
|
44
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
-
version 1.3.0, available at
|
46
|
-
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
-
|
48
|
-
[homepage]: http://contributor-covenant.org
|
49
|
-
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/CONTRIBUTING.md
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# Contributing to bundleup
|
2
|
-
|
3
|
-
Have a feature idea, bug fix, or refactoring suggestion? Contributions are welcome!
|
4
|
-
|
5
|
-
## Pull requests
|
6
|
-
|
7
|
-
1. Check [Issues][] to see if your contribution has already been discussed and/or implemented.
|
8
|
-
2. If not, open an issue to discuss your contribution. I won't accept all changes and do not want to waste your time.
|
9
|
-
3. Once you have the :thumbsup:, fork the repo, make your changes, and open a PR.
|
10
|
-
4. Don't forget to add your contribution and credit yourself in `CHANGELOG.md`!
|
11
|
-
|
12
|
-
## Coding guidelines
|
13
|
-
|
14
|
-
* This project has a coding style enforced by [RuboCop][]. Use hash rockets and double-quoted strings, and otherwise try to follow the [Ruby style guide][style].
|
15
|
-
* Writing tests is strongly encouraged! This project uses Minitest.
|
16
|
-
|
17
|
-
## Getting started
|
18
|
-
|
19
|
-
After checking out the repo, run `bin/setup` to install dependencies.
|
20
|
-
|
21
|
-
bundleup offers the following development and testing commands:
|
22
|
-
|
23
|
-
* `bin/console` loads your working copy of bundleup into an irb session
|
24
|
-
* `bundle exec bundleup` runs your working copy of the bundleup executable
|
25
|
-
* `rake` executes all of bundleup's tests and RuboCop checks
|
26
|
-
|
27
|
-
[Issues]: https://github.com/mattbrictson/bundleup/issues
|
28
|
-
[RuboCop]: https://github.com/bbatsov/rubocop
|
29
|
-
[style]: https://github.com/bbatsov/ruby-style-guide
|
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1,93 +0,0 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
2
|
-
require "rake/testtask"
|
3
|
-
require "rubocop/rake_task"
|
4
|
-
|
5
|
-
Rake::TestTask.new(:test) do |t|
|
6
|
-
t.libs << "test"
|
7
|
-
t.libs << "lib"
|
8
|
-
t.test_files = FileList["test/**/*_test.rb"]
|
9
|
-
end
|
10
|
-
|
11
|
-
RuboCop::RakeTask.new
|
12
|
-
|
13
|
-
task default: %i[test rubocop]
|
14
|
-
|
15
|
-
Rake::Task["release"].enhance do
|
16
|
-
puts "Don't forget to publish the release on GitHub!"
|
17
|
-
system "open https://github.com/mattbrictson/bundleup/releases"
|
18
|
-
end
|
19
|
-
|
20
|
-
task bump: %w[bump:bundler bump:ruby bump:year]
|
21
|
-
|
22
|
-
namespace :bump do
|
23
|
-
task :bundler do
|
24
|
-
version = Gem.latest_version_for("bundler").to_s
|
25
|
-
replace_in_file ".travis.yml", /bundler -v (\S+)/ => version
|
26
|
-
replace_in_file "Gemfile.lock", /^BUNDLED WITH\n\s+([\d.]+)$/ => version
|
27
|
-
end
|
28
|
-
|
29
|
-
task :ruby do
|
30
|
-
lowest = RubyVersions.lowest_supported
|
31
|
-
lowest_minor = RubyVersions.lowest_supported_minor
|
32
|
-
|
33
|
-
replace_in_file "bundleup.gemspec", /ruby_version = ">= (.*)"/ => lowest
|
34
|
-
replace_in_file ".rubocop.yml", /TargetRubyVersion: (.*)/ => lowest_minor
|
35
|
-
replace_in_file "README.md", /Ruby (\d+\.\d+)/ => lowest_minor
|
36
|
-
|
37
|
-
travis = YAML.safe_load(open(".travis.yml"))
|
38
|
-
travis["rvm"] = RubyVersions.latest_supported_patches + ["ruby-head"]
|
39
|
-
IO.write(".travis.yml", YAML.dump(travis))
|
40
|
-
end
|
41
|
-
|
42
|
-
task :year do
|
43
|
-
replace_in_file "LICENSE.txt", /\(c\) (\d+)/ => Date.today.year.to_s
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
require "date"
|
48
|
-
require "open-uri"
|
49
|
-
require "yaml"
|
50
|
-
|
51
|
-
def replace_in_file(path, replacements)
|
52
|
-
contents = IO.read(path)
|
53
|
-
orig_contents = contents.dup
|
54
|
-
replacements.each do |regexp, text|
|
55
|
-
contents.gsub!(regexp) do |match|
|
56
|
-
match[regexp, 1] = text
|
57
|
-
match
|
58
|
-
end
|
59
|
-
end
|
60
|
-
IO.write(path, contents) if contents != orig_contents
|
61
|
-
end
|
62
|
-
|
63
|
-
module RubyVersions
|
64
|
-
class << self
|
65
|
-
def lowest_supported
|
66
|
-
"#{lowest_supported_minor}.0"
|
67
|
-
end
|
68
|
-
|
69
|
-
def lowest_supported_minor
|
70
|
-
latest_supported_patches.first[/\d+\.\d+/]
|
71
|
-
end
|
72
|
-
|
73
|
-
def latest
|
74
|
-
latest_supported_patches.last
|
75
|
-
end
|
76
|
-
|
77
|
-
def latest_supported_patches
|
78
|
-
patches = [versions[:stable], versions[:security_maintenance]].flatten
|
79
|
-
patches.map(&Gem::Version.method(:new)).sort.map(&:to_s)
|
80
|
-
end
|
81
|
-
|
82
|
-
private
|
83
|
-
|
84
|
-
def versions
|
85
|
-
@_versions ||= begin
|
86
|
-
yaml = URI.open(
|
87
|
-
"https://raw.githubusercontent.com/ruby/www.ruby-lang.org/master/_data/downloads.yml"
|
88
|
-
)
|
89
|
-
YAML.safe_load(yaml, symbolize_names: true)
|
90
|
-
end
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "bundleup"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|
data/bin/setup
DELETED
data/bundleup.gemspec
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path("../lib", __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require "bundleup/version"
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "bundleup"
|
8
|
-
spec.version = Bundleup::VERSION
|
9
|
-
spec.authors = ["Matt Brictson"]
|
10
|
-
spec.email = ["bundleup@mattbrictson.com"]
|
11
|
-
|
12
|
-
spec.summary = "A friendlier command-line interface for Bundler’s "\
|
13
|
-
"`update` and `outdated` commands."
|
14
|
-
spec.description = "Use `bundleup` whenever you want to update the "\
|
15
|
-
"locked Gemfile dependencies of a Ruby project. It "\
|
16
|
-
"shows exactly what gems will be updated with color "\
|
17
|
-
"output that calls attention to significant semver "\
|
18
|
-
"changes. Bundleup will also let you know when a "\
|
19
|
-
'version "pin" in your Gemfile is preventing an '\
|
20
|
-
"update. Bundleup is a standalone tool that leverages "\
|
21
|
-
"standard Bundler output and does not patch code or "\
|
22
|
-
"use Bundler internals."
|
23
|
-
spec.homepage = "https://github.com/mattbrictson/bundleup"
|
24
|
-
spec.license = "MIT"
|
25
|
-
|
26
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
27
|
-
spec.bindir = "exe"
|
28
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
-
spec.require_paths = ["lib"]
|
30
|
-
|
31
|
-
spec.required_ruby_version = ">= 2.5.0"
|
32
|
-
|
33
|
-
spec.add_development_dependency "bundler", "~> 2.0"
|
34
|
-
spec.add_development_dependency "minitest", "~> 5.0"
|
35
|
-
spec.add_development_dependency "minitest-reporters", "~> 1.1"
|
36
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
37
|
-
spec.add_development_dependency "rubocop", "0.86.0"
|
38
|
-
spec.add_development_dependency "rubocop-minitest", "0.9.0"
|
39
|
-
spec.add_development_dependency "rubocop-performance", "1.6.1"
|
40
|
-
end
|
data/sample.png
DELETED
Binary file
|