bundle_outdated_formatter 0.6.0 → 0.7.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: 631d2803ff9f26d891b814e101887ae001bca0a1b4e5e0c09f0849c3e8926105
4
- data.tar.gz: 4740cd39c6dbcf80b688ce3fcf92cd0036826b903dbb7c6edcb1f2332919de49
3
+ metadata.gz: ef05c4b5bc20ce84e48b7ea4da096f84764e5e607e2b6a221e95f50c5b325dda
4
+ data.tar.gz: 01bbf8581dbafafd61e03b9978e3c329dba8be41c520aec87a89a640c6651c9f
5
5
  SHA512:
6
- metadata.gz: a160748e719e376549a1ab06b4def7e3696b24f1f66f1a9e6a3990cbe1c970fcea3e89117f750377907c447ff3632ec72781882020caa5ad40dc0de55bfb40c4
7
- data.tar.gz: 2f35c72c6d0d24a79d6a2f9a8d20e3c99b1481cf7cb3f9104600b85646de82d8676f9297c0c9bb79b642fe4f69875d0c7c5288beccc56c5154e9c0ee961865e7
6
+ metadata.gz: 5d2d8ec02f4cc426757e59ed83772b8d106a3a48bd36a95f093afe368ab706a9508f59d21c108615d6f4a3140e5c3a51b3da0b3d6ccb4d8fd09d0897fead0716
7
+ data.tar.gz: 5a04539a93fed6a743369168cd8c151c24aaad3adfaa7ff0d8fc0dd4f4b69f655163b0ff91bed833989954442586c6cf714c31cdf76b22f92dc3d0cf7b21dae7
@@ -0,0 +1,21 @@
1
+ name: build
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ${{ matrix.os }}
8
+ strategy:
9
+ fail-fast: false
10
+ matrix:
11
+ os: [ubuntu-latest, macos-latest, windows-latest]
12
+ ruby: [2.2, 2.3, 2.4, 2.5, 2.6, 2.7, ruby-head]
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: ${{ matrix.ruby }}
18
+ - name: Install dependencies
19
+ run: bundle install --jobs 4 --retry 3
20
+ - name: Run test
21
+ run: bundle exec rake
@@ -3,14 +3,18 @@ require: rubocop-rspec
3
3
 
4
4
  AllCops:
5
5
  DisplayCopNames: true
6
+ NewCops: enable
6
7
 
7
8
  Bundler/DuplicatedGem:
8
9
  Enabled: false
9
10
 
10
- Layout/AlignHash:
11
+ Layout/HashAlignment:
11
12
  EnforcedHashRocketStyle: table
12
13
 
13
- Layout/IndentHeredoc:
14
+ Layout/HeredocIndentation:
15
+ Enabled: false
16
+
17
+ Layout/LineLength:
14
18
  Enabled: false
15
19
 
16
20
  Layout/TrailingWhitespace:
@@ -25,9 +29,6 @@ Metrics/BlockLength:
25
29
  - 'spec/**/*.rb'
26
30
  - '*.gemspec'
27
31
 
28
- Metrics/LineLength:
29
- Enabled: false
30
-
31
32
  Naming/HeredocDelimiterNaming:
32
33
  Enabled: false
33
34
 
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2019-11-20 00:16:16 +0900 using RuboCop version 0.76.0.
3
+ # on 2020-06-28 04:47:04 UTC using RuboCop version 0.86.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -8,7 +8,7 @@
8
8
 
9
9
  # Offense count: 1
10
10
  # Configuration parameters: Include.
11
- # Include: **/*.gemspec,
11
+ # Include: **/*.gemspec
12
12
  Gemspec/RequiredRubyVersion:
13
13
  Exclude:
14
14
  - 'bundle_outdated_formatter.gemspec'
@@ -4,9 +4,10 @@ rvm:
4
4
  - 2.1.10
5
5
  - 2.2.10
6
6
  - 2.3.8
7
- - 2.4.7
8
- - 2.5.6
9
- - 2.6.4
7
+ - 2.4.10
8
+ - 2.5.8
9
+ - 2.6.6
10
+ - 2.7.1
10
11
  - ruby-head
11
12
  before_install:
12
13
  - |
@@ -1,5 +1,16 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.7.0 (2020-06-29)
4
+
5
+ ### Features
6
+
7
+ * Support Bundler >= 2.1.0.pre.1 (#4)
8
+
9
+ ### Miscellaneous
10
+
11
+ * Relax dependency version requirements
12
+ * Add workflows for GitHub Actions
13
+
3
14
  ## 0.6.0 (2019-11-24)
4
15
 
5
16
  ### Features
@@ -11,7 +22,7 @@
11
22
  * Fix error of Terminal format with empty outdated gems
12
23
  * Fix tests against Terminal (Unicode table) format
13
24
 
14
- ## Miscellaneous
25
+ ### Miscellaneous
15
26
 
16
27
  * Suppress output in tests
17
28
 
data/Gemfile CHANGED
@@ -3,24 +3,44 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in bundle_outdated_formatter.gemspec
4
4
  gemspec
5
5
 
6
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create('2.4.0')
7
+ gem 'simplecov', '< 0.18.0'
8
+ end
9
+
10
+ if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create('2.3.0') && Gem::Version.create(RUBY_VERSION) < Gem::Version.create('2.4.0')
11
+ if RUBY_PLATFORM !~ /mingw/
12
+ gem 'rubocop', '< 0.82.0'
13
+ gem 'rubocop-rspec', '< 1.39.0'
14
+ end
15
+ end
16
+
6
17
  if Gem::Version.create(RUBY_VERSION) < Gem::Version.create('2.3.0')
7
18
  gem 'psych', '< 3.0.0'
8
19
  end
9
20
 
10
21
  if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create('2.2.0') && Gem::Version.create(RUBY_VERSION) < Gem::Version.create('2.3.0')
11
- gem 'rubocop', '< 0.69.0'
12
- gem 'rubocop-rspec', '< 1.33.0'
22
+ if RUBY_PLATFORM !~ /mingw/
23
+ gem 'rubocop', '< 0.69.0'
24
+ gem 'rubocop-rspec', '< 1.33.0'
25
+ end
13
26
  end
14
27
 
15
28
  if Gem::Version.create(RUBY_VERSION) < Gem::Version.create('2.2.0')
16
29
  gem 'parallel', '< 1.17.0'
17
- gem 'rubocop-rspec', '< 1.5.2'
30
+
31
+ if RUBY_PLATFORM !~ /mingw/
32
+ gem 'rubocop-rspec', '< 1.5.2'
33
+ end
18
34
  end
19
35
 
20
36
  if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create('2.1.0') && Gem::Version.create(RUBY_VERSION) < Gem::Version.create('2.2.0')
21
- gem 'rubocop', '< 0.58.0'
37
+ if RUBY_PLATFORM !~ /mingw/
38
+ gem 'rubocop', '< 0.58.0'
39
+ end
22
40
  end
23
41
 
24
42
  if Gem::Version.create(RUBY_VERSION) < Gem::Version.create('2.1.0')
25
- gem 'rubocop', '< 0.51.0'
43
+ if RUBY_PLATFORM !~ /mingw/
44
+ gem 'rubocop', '< 0.51.0'
45
+ end
26
46
  end
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017-2019 emsk
3
+ Copyright (c) 2017-2020 emsk
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
@@ -1,6 +1,7 @@
1
1
  # BundleOutdatedFormatter
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/bundle_outdated_formatter.svg)](https://badge.fury.io/rb/bundle_outdated_formatter)
4
+ [![Build Status](https://github.com/emsk/bundle_outdated_formatter/workflows/build/badge.svg)](https://github.com/emsk/bundle_outdated_formatter/actions?query=workflow%3Abuild)
4
5
  [![Build Status](https://travis-ci.org/emsk/bundle_outdated_formatter.svg?branch=master)](https://travis-ci.org/emsk/bundle_outdated_formatter)
5
6
  [![Build status](https://ci.appveyor.com/api/projects/status/w2qfj0a4iicqhmhq?svg=true)](https://ci.appveyor.com/project/emsk/bundle-outdated-formatter)
6
7
  [![Codecov](https://codecov.io/gh/emsk/bundle_outdated_formatter/branch/master/graph/badge.svg)](https://codecov.io/gh/emsk/bundle_outdated_formatter)
@@ -57,7 +58,7 @@ Resolving dependencies...
57
58
 
58
59
  Outdated gems included in the bundle:
59
60
  * faker (newest 1.6.6, installed 1.6.5, requested ~> 1.4) in groups "development, test"
60
- * hashie (newest 3.4.6, installed 1.2.0, requested = 1.2.0) in groups "default"
61
+ * hashie (newest 3.4.6, installed 1.2.0, requested = 1.2.0) in group "default"
61
62
  * headless (newest 2.3.1, installed 2.2.3)
62
63
  ```
63
64
 
@@ -265,6 +266,7 @@ Pretty output:
265
266
  * Ruby 2.4
266
267
  * Ruby 2.5
267
268
  * Ruby 2.6
269
+ * Ruby 2.7
268
270
 
269
271
  ## Contributing
270
272
 
@@ -15,6 +15,10 @@ environment:
15
15
  - RUBY_VERSION: 24-x64
16
16
  - RUBY_VERSION: 25
17
17
  - RUBY_VERSION: 25-x64
18
+ - RUBY_VERSION: 26
19
+ - RUBY_VERSION: 26-x64
20
+ - RUBY_VERSION: 27
21
+ - RUBY_VERSION: 27-x64
18
22
 
19
23
  install:
20
24
  - set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
@@ -23,13 +23,16 @@ Gem::Specification.new do |spec|
23
23
  spec.required_ruby_version = '>= 2.0.0'
24
24
 
25
25
  spec.add_runtime_dependency 'psych', '>= 2.2'
26
- spec.add_runtime_dependency 'thor', '~> 0.20'
26
+ spec.add_runtime_dependency 'rexml', '~> 3.2'
27
+ spec.add_runtime_dependency 'thor', '>= 0.20'
27
28
  spec.add_runtime_dependency 'tty-table', '~> 0.10'
28
- spec.add_development_dependency 'bundler', '>= 1.16'
29
- spec.add_development_dependency 'codecov', '~> 0.1'
30
- spec.add_development_dependency 'rake', '>= 12.3'
31
- spec.add_development_dependency 'rspec', '~> 3.8'
32
- spec.add_development_dependency 'rubocop', '~> 0.76'
33
- spec.add_development_dependency 'rubocop-rspec', '~> 1.36'
34
- spec.add_development_dependency 'simplecov', '~> 0.17'
29
+ spec.add_development_dependency 'bundler'
30
+ spec.add_development_dependency 'codecov'
31
+ spec.add_development_dependency 'rake'
32
+ spec.add_development_dependency 'rspec', '~> 3.9'
33
+ if RUBY_PLATFORM !~ /mingw/
34
+ spec.add_development_dependency 'rubocop', '~> 0.86'
35
+ spec.add_development_dependency 'rubocop-rspec', '~> 1.40'
36
+ end
37
+ spec.add_development_dependency 'simplecov'
35
38
  end
@@ -25,6 +25,10 @@ module BundleOutdatedFormatter
25
25
  STYLES = %w[unicode ascii].freeze
26
26
  COLUMNS = %w[gem newest installed requested groups].freeze
27
27
 
28
+ def self.exit_on_failure?
29
+ false
30
+ end
31
+
28
32
  default_command :output
29
33
 
30
34
  desc 'output', 'Format output of `bundle outdated`'
@@ -4,10 +4,10 @@ module BundleOutdatedFormatter
4
4
  # Formatter for all formats
5
5
  class Formatter
6
6
  GEM_REGEXP = /\A\* (?<gem>.+) \(/.freeze
7
- NEWEST_REGEXP = /newest (?<newest>[\d\.]+)/.freeze
8
- INSTALLED_REGEXP = /installed (?<installed>[\d\.]+)/.freeze
7
+ NEWEST_REGEXP = /newest (?<newest>[\d.]+)/.freeze
8
+ INSTALLED_REGEXP = /installed (?<installed>[\d.]+)/.freeze
9
9
  REQUESTED_REGEXP = /requested (?<requested>.+)\)/.freeze
10
- GROUPS_REGEXP = /in groups "(?<groups>.+)"/.freeze
10
+ GROUPS_REGEXP = /in groups? "(?<groups>.+)"/.freeze
11
11
 
12
12
  def initialize(options)
13
13
  @pretty = options[:pretty]
@@ -1,3 +1,3 @@
1
1
  module BundleOutdatedFormatter
2
- VERSION = '0.6.0'.freeze
2
+ VERSION = '0.7.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundle_outdated_formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - emsk
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-24 00:00:00.000000000 Z
11
+ date: 2020-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: psych
@@ -25,17 +25,31 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.2'
27
27
  - !ruby/object:Gem::Dependency
28
- name: thor
28
+ name: rexml
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.20'
33
+ version: '3.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: thor
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0.20'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0.20'
41
55
  - !ruby/object:Gem::Dependency
@@ -58,98 +72,98 @@ dependencies:
58
72
  requirements:
59
73
  - - ">="
60
74
  - !ruby/object:Gem::Version
61
- version: '1.16'
75
+ version: '0'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
80
  - - ">="
67
81
  - !ruby/object:Gem::Version
68
- version: '1.16'
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: codecov
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - "~>"
87
+ - - ">="
74
88
  - !ruby/object:Gem::Version
75
- version: '0.1'
89
+ version: '0'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - "~>"
94
+ - - ">="
81
95
  - !ruby/object:Gem::Version
82
- version: '0.1'
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rake
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
101
  - - ">="
88
102
  - !ruby/object:Gem::Version
89
- version: '12.3'
103
+ version: '0'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
108
  - - ">="
95
109
  - !ruby/object:Gem::Version
96
- version: '12.3'
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rspec
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: '3.8'
117
+ version: '3.9'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: '3.8'
124
+ version: '3.9'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: rubocop
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: '0.76'
131
+ version: '0.86'
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: '0.76'
138
+ version: '0.86'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: rubocop-rspec
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - "~>"
130
144
  - !ruby/object:Gem::Version
131
- version: '1.36'
145
+ version: '1.40'
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
- version: '1.36'
152
+ version: '1.40'
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: simplecov
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
- - - "~>"
157
+ - - ">="
144
158
  - !ruby/object:Gem::Version
145
- version: '0.17'
159
+ version: '0'
146
160
  type: :development
147
161
  prerelease: false
148
162
  version_requirements: !ruby/object:Gem::Requirement
149
163
  requirements:
150
- - - "~>"
164
+ - - ">="
151
165
  - !ruby/object:Gem::Version
152
- version: '0.17'
166
+ version: '0'
153
167
  description: BundleOutdatedFormatter is a command-line tool to format output of `bundle
154
168
  outdated`
155
169
  email:
@@ -159,6 +173,7 @@ executables:
159
173
  extensions: []
160
174
  extra_rdoc_files: []
161
175
  files:
176
+ - ".github/workflows/build.yml"
162
177
  - ".gitignore"
163
178
  - ".rspec"
164
179
  - ".rubocop.yml"
@@ -206,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
221
  - !ruby/object:Gem::Version
207
222
  version: '0'
208
223
  requirements: []
209
- rubygems_version: 3.0.2
224
+ rubygems_version: 3.1.2
210
225
  signing_key:
211
226
  specification_version: 4
212
227
  summary: Formatter for `bundle outdated`