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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f92eb8b3e1592cc12b66b35c6237df1156b17b104c75d1e6e4205a20dc27b4e5
4
- data.tar.gz: 953fb0e430376675aa7264f003170d58c01a2f9e23a3619c3c997404c9e0c59a
3
+ metadata.gz: 9a12520bbc6803f69e10659bf902b5ea02b1902e1c3115ab77ca13f9721e3190
4
+ data.tar.gz: 57e69c40eaa3639ebb05dbdacc28b8c38d189138b320146044a9ff145dc9bfa5
5
5
  SHA512:
6
- metadata.gz: 9cc74eb46c9e9f480625a37c36978e56c0c7e6ff54038380a14099f62b6e53060821a91fa0feef552195b52b70d370e3b752bc98aae3bc6e41db85bbae9c8fe3
7
- data.tar.gz: a6c2221b6a5cb55551aaa97d0e893005211eeb2b993dd9dc1f41988a4a17d9801a53ac8f7567c9d9f8ac7ab1553c5b8cba256519ef42637e06a83ecff9d3a858
6
+ metadata.gz: aeed97c4f56cab2a1bd993e5cdea4dd1f38381ad5604948ca38e98632572b9dbd1c162e86ee71a5bd015ea1647a57cafaf86e9d6a44db5553c260195e47df457
7
+ data.tar.gz: 59ba702fe9f6078299c5a439b43b1ec1ef134e7d54d66156bbee909a73d5a2f2d77eb2df1e6df0c081baa9fc30893fc70c5f8de67fe0d058ce93f9a002fa82d1
@@ -0,0 +1,12 @@
1
+ on: push
2
+ name: Push
3
+ jobs:
4
+ draftRelease:
5
+ name: Draft Release
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - uses: actions/checkout@master
9
+ - name: Draft Release
10
+ uses: toolmantim/release-drafter@v5.2.0
11
+ env:
12
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
data/.gitignore CHANGED
@@ -2,7 +2,6 @@
2
2
  /.yardoc
3
3
  /Gemfile.lock
4
4
  /_yardoc/
5
- /coverage/
6
5
  /doc/
7
6
  /pkg/
8
7
  /spec/reports/
@@ -6,11 +6,11 @@ branches:
6
6
  only:
7
7
  - master
8
8
  rvm:
9
- - 2.4.6
10
- - 2.5.5
11
- - 2.6.3
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 update --system
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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019 Matt Brictson
3
+ Copyright (c) 2020 Matt Brictson
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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
- * shows you exactly what gems will be updated lets you decide whether to proceed
12
- * uses color to call your attention to important gem updates (based on [Semver][])
13
- * lets you know when a version "pin" in your Gemfile is preventing an update
14
- * relies on standard Bundler output and does not patch code or use Bundler internals
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 show`, then `bundle update` and `bundle show` 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 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 *not* updated due to Gemfile restrictions.
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
- * Automatically commit the Gemfile.lock changes with a nice commit message
58
- * Integrate with bundler-audit to mark upgrades that have important security fixes
59
- * Display relevant CHANGELOG entries for major upgrades
60
- * Non-interactive mode
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
- [Semver]: http://semver.org
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 = Gemfile.bundler_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)
@@ -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", "~> 12.0"
29
- spec.add_development_dependency "rubocop", "0.72.0"
30
- spec.add_development_dependency "rubocop-performance", "1.4.0"
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
@@ -8,8 +8,8 @@ module Bundleup
8
8
  run(%w[bundle outdated], true)
9
9
  end
10
10
 
11
- def show
12
- run(%w[bundle show])
11
+ def list
12
+ run(%w[bundle list])
13
13
  end
14
14
 
15
15
  def update(args=[])
@@ -48,7 +48,7 @@ module Bundleup
48
48
  end
49
49
 
50
50
  def find_versions(type)
51
- commands.show.scan(/\* (\S+) \((\S+)(?: (\S+))?\)/) do |name, ver, sha|
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
@@ -1,3 +1,3 @@
1
1
  module Bundleup
2
- VERSION = "0.8.1".freeze
2
+ VERSION = "0.9.0".freeze
3
3
  end
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.8.1
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: 2019-07-02 00:00:00.000000000 Z
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: '12.0'
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: '12.0'
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.72.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.72.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.4.0
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.4.0
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.0.4
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`
@@ -1,9 +0,0 @@
1
- workflow "Push" {
2
- on = "push"
3
- resolves = ["Draft Release"]
4
- }
5
-
6
- action "Draft Release" {
7
- uses = "toolmantim/release-drafter@v5.1.1"
8
- secrets = ["GITHUB_TOKEN"]
9
- }