bundleup 1.1.0 → 1.2.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: 33a47d475ed2e01906eb8958715b1640320f9a53204f2b922b8ad58633336a20
4
- data.tar.gz: 500c7fae6808aae7a11d7baf314d28019d3655a36df03854dcff04662334287a
3
+ metadata.gz: 34d18c6d9e39ccd56bb47b656745a19d022981a7a8c735a277eb2a782b106df8
4
+ data.tar.gz: 787cba0d2ec134b82de3dbae1819f609ebd55c98bfbdbc9fe58609eb35e861ab
5
5
  SHA512:
6
- metadata.gz: 4ca5a85ba0d0abb54acdb902cf006853685f67c2557a92aff2d7c3529714be198e37e6e3cbe4775e78226db66ef7a2d31237c5e7a59cd24758b040337f761efe
7
- data.tar.gz: 767b9ff26803f8564528e743c8d9d821d240e3c05ec2166dcabb9f62ecc45ff4286963418abd7eade8374b039220637f6db30349a669a8215cf49232a874b0d4
6
+ metadata.gz: efcf4a177c7dc9b7e774b6f800f811abf6351d5e884858d9d4d2e626dddb28c2d09164485812032b61a8c15161ff809891b1a918c574ab63c46c57e96fe28108
7
+ data.tar.gz: 2bd482d805cf7f0e0c340d1c5e0c5bf0e12c018e5055533481aa882b792f9fa342ca70fbd57f6b51f13ec21b113bca9f98919b51f8867fb796f91492e35de14c
@@ -1,12 +1,14 @@
1
- on: push
2
- name: Push
1
+ name: Release Drafter
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
3
8
  jobs:
4
- draftRelease:
5
- name: Draft Release
9
+ update_release_draft:
6
10
  runs-on: ubuntu-latest
7
11
  steps:
8
- - uses: actions/checkout@master
9
- - name: Draft Release
10
- uses: toolmantim/release-drafter@v5.2.0
12
+ - uses: release-drafter/release-drafter@v5
11
13
  env:
12
14
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -3,6 +3,7 @@ require:
3
3
  - rubocop-performance
4
4
 
5
5
  AllCops:
6
+ NewCops: enable
6
7
  TargetRubyVersion: 2.5
7
8
  Exclude:
8
9
  - "*.gemspec"
@@ -11,12 +12,6 @@ AllCops:
11
12
  Layout/SpaceAroundEqualsInParameterDefault:
12
13
  EnforcedStyle: no_space
13
14
 
14
- Lint/RaiseException:
15
- Enabled: true
16
-
17
- Lint/StructNewOverride:
18
- Enabled: true
19
-
20
15
  Metrics/AbcSize:
21
16
  Exclude:
22
17
  - "test/**/*"
@@ -47,17 +42,5 @@ Style/DoubleNegation:
47
42
  Style/FrozenStringLiteralComment:
48
43
  Enabled: false
49
44
 
50
- Style/HashEachMethods:
51
- Enabled: true
52
-
53
- Style/HashSyntax:
54
- EnforcedStyle: ruby19
55
-
56
- Style/HashTransformKeys:
57
- Enabled: true
58
-
59
- Style/HashTransformValues:
60
- Enabled: true
61
-
62
45
  Style/StringLiterals:
63
46
  EnforcedStyle: double_quotes
@@ -1,10 +1,9 @@
1
1
  ---
2
- sudo: false
3
2
  language: ruby
4
3
  cache: bundler
5
4
  branches:
6
5
  only:
7
- - master
6
+ - main
8
7
  rvm:
9
8
  - 2.5.8
10
9
  - 2.6.6
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # bundleup
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/bundleup.svg)](http://badge.fury.io/rb/bundleup)
4
- [![Build Status](https://travis-ci.org/mattbrictson/bundleup.svg?branch=master)](https://travis-ci.org/mattbrictson/bundleup)
4
+ [![Build Status](https://travis-ci.org/mattbrictson/bundleup.svg?branch=main)](https://travis-ci.org/mattbrictson/bundleup)
5
5
 
6
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`.
7
7
 
@@ -14,7 +14,7 @@ You might like bundleup because it:
14
14
 
15
15
  Here it is in action:
16
16
 
17
- <img src="https://raw.github.com/mattbrictson/bundleup/master/sample.png" width="599" height="553" alt="Sample output">
17
+ <img src="https://raw.github.com/mattbrictson/bundleup/main/sample.png" width="599" height="553" alt="Sample output">
18
18
 
19
19
  ## Requirements
20
20
 
data/Rakefile CHANGED
@@ -23,7 +23,7 @@ namespace :bump do
23
23
  task :bundler do
24
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
+ replace_in_file "Gemfile.lock", /^BUNDLED WITH\n\s+([\d.]+)$/ => version
27
27
  end
28
28
 
29
29
  task :ruby do
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency "minitest", "~> 5.0"
35
35
  spec.add_development_dependency "minitest-reporters", "~> 1.1"
36
36
  spec.add_development_dependency "rake", "~> 13.0"
37
- spec.add_development_dependency "rubocop", "0.81.0"
38
- spec.add_development_dependency "rubocop-minitest", "0.8.1"
39
- spec.add_development_dependency "rubocop-performance", "1.5.2"
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
40
  end
@@ -3,5 +3,6 @@ require "bundleup/console"
3
3
  require "bundleup/bundle_commands"
4
4
  require "bundleup/gem_status"
5
5
  require "bundleup/gemfile"
6
+ require "bundleup/outdated_parser"
6
7
  require "bundleup/upgrade"
7
8
  require "bundleup/cli"
@@ -0,0 +1,17 @@
1
+ module Bundleup
2
+ module OutdatedParser
3
+ def self.parse(output)
4
+ expr = if output.match?(/^Gem\s+Current\s+Latest/)
5
+ # Bundler >= 2.2 format
6
+ /^(\S+)\s\s+\S+\s\s+(\d\S+)\s\s+(\S.*?)(?:$|\s\s)/
7
+ else
8
+ # Bundler < 2.2
9
+ /\* (\S+) \(newest (\S+),.* requested (.*)\)/
10
+ end
11
+
12
+ output.scan(expr).map do |name, newest, pin|
13
+ { name: name, newest: newest, pin: pin }
14
+ end
15
+ end
16
+ end
17
+ end
@@ -40,10 +40,9 @@ module Bundleup
40
40
  end
41
41
 
42
42
  def find_pinned_versions
43
- expr = /\* (\S+) \(newest (\S+),.* requested (.*)\)/
44
- commands.outdated.scan(expr) do |name, newest, pin|
45
- gem_status(name).newest_version = newest
46
- gem_status(name).pin = pin
43
+ OutdatedParser.parse(commands.outdated).each do |gem|
44
+ gem_status(gem[:name]).newest_version = gem[:newest]
45
+ gem_status(gem[:name]).pin = gem[:pin]
47
46
  end
48
47
  end
49
48
 
@@ -1,3 +1,3 @@
1
1
  module Bundleup
2
- VERSION = "1.1.0".freeze
2
+ VERSION = "1.2.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: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-12 00:00:00.000000000 Z
11
+ date: 2020-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,42 +72,42 @@ dependencies:
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.81.0
75
+ version: 0.86.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 0.81.0
82
+ version: 0.86.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop-minitest
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.8.1
89
+ version: 0.9.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 0.8.1
96
+ version: 0.9.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop-performance
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 1.5.2
103
+ version: 1.6.1
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: 1.5.2
110
+ version: 1.6.1
111
111
  description: Use `bundleup` whenever you want to update the locked Gemfile dependencies
112
112
  of a Ruby project. It shows exactly what gems will be updated with color output
113
113
  that calls attention to significant semver changes. Bundleup will also let you know
@@ -143,6 +143,7 @@ files:
143
143
  - lib/bundleup/console.rb
144
144
  - lib/bundleup/gem_status.rb
145
145
  - lib/bundleup/gemfile.rb
146
+ - lib/bundleup/outdated_parser.rb
146
147
  - lib/bundleup/upgrade.rb
147
148
  - lib/bundleup/version.rb
148
149
  - sample.png
@@ -150,7 +151,7 @@ homepage: https://github.com/mattbrictson/bundleup
150
151
  licenses:
151
152
  - MIT
152
153
  metadata: {}
153
- post_install_message:
154
+ post_install_message:
154
155
  rdoc_options: []
155
156
  require_paths:
156
157
  - lib
@@ -165,8 +166,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
166
  - !ruby/object:Gem::Version
166
167
  version: '0'
167
168
  requirements: []
168
- rubygems_version: 3.1.2
169
- signing_key:
169
+ rubygems_version: 3.1.4
170
+ signing_key:
170
171
  specification_version: 4
171
172
  summary: A friendlier command-line interface for Bundler’s `update` and `outdated`
172
173
  commands.