makandra-rubocop 6.1.0 → 6.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: d9c46fcf110ed3214a90eb45a9009eda5c3427e108b716bcc9d062782aa4d249
4
- data.tar.gz: fe74453161e63ad6157b97c1f901cae6e0c57e05f3de8ee638141348f09dbcff
3
+ metadata.gz: 971fab26cb30baaf1d55688257511cefde34e0dc57c10e02ec85615847e41503
4
+ data.tar.gz: 149c349a25dc128a613ef58fc99704d2c3c55a2ff3edd4208328edb227344b47
5
5
  SHA512:
6
- metadata.gz: 304928637b28a2a974abc6228fe1923d86027965f68d9441b5bc9b9ba2fc6fadaac5b7b0dfa76ddf937b7992bdf9865c255e0dc5a1b371d686a45dc5ba2bed7c
7
- data.tar.gz: a5b4d6d1aaaf876eb3dc625a2bbac4fb56fdc872ca54bafb97a45408f5daa815c90ac78c4cfb2b7e7345fc5ea35a6a34cf30eb0af83f66bdc35a2a293b374d84
6
+ metadata.gz: b3f28b134d26a8e8aef1faabb8d7e4c664a24fa2545cd6ee1afe4c46307537a1f3306542abd9da4357016fc6d2dd8b172e6eb4dc81534641490e4230ccfd343b
7
+ data.tar.gz: 222230ed722ba70d485e2d52379e953e302b6f00178868499a8022bb81e09571b7fa91593f37b92ef2c7823e452da358fc486e0e7b91ad9d474734dedb237537
data/CHANGELOG.md CHANGED
@@ -8,6 +8,50 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
8
8
 
9
9
  ### Compatible changes
10
10
 
11
+ ## 6.2.0 - 2021-06-20
12
+
13
+ ### Compatible changes
14
+
15
+ - Use the format `simple` output, and not `progress`.
16
+ - Also output stdout if stderr is present. Otherwise warnings like
17
+ whitequark/parser will block the actual offenses message to be skipped.
18
+ Originally we thought the only stderr message will be a failure of
19
+ rubocop itself, so there would be never a stdout, too.
20
+
21
+ **Before**:
22
+
23
+ ```
24
+ 1) rubocop has no offenses
25
+ Failure/Error: example.run
26
+
27
+ warning: parser/current is loading parser/ruby26, which recognizes
28
+ warning: 2.6.7-compliant syntax, but you are running 2.6.5.
29
+ warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
30
+ # ./spec/support/with_power.rb:11:in `block (2 levels) in <top (required)>'
31
+ # ./spec/support/vcr.rb:16:in `block (2 levels) in <top (required)>'
32
+ # ./spec/support/database_cleaner.rb:21:in `block (2 levels) in <top (required)>'
33
+ ```
34
+
35
+ **After:**
36
+
37
+ ```
38
+ 1) rubocop has no offenses
39
+ Failure/Error: example.run
40
+
41
+ warning: parser/current is loading parser/ruby26, which recognizes
42
+ warning: 2.6.7-compliant syntax, but you are running 2.6.5.
43
+ warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
44
+
45
+ == app/user/search.rb ==
46
+ C: 5: 3: [Correctable] Layout/IndentationWidth: Use 2 (not 5) spaces for indentation.
47
+
48
+ 1016 files inspected, 1 offense detected, 1 offense auto-correctable
49
+ # ./spec/support/with_power.rb:11:in `block (2 levels) in <main>'
50
+ # ./spec/support/vcr.rb:16:in `block (2 levels) in <main>'
51
+ # ./spec/support/database_cleaner.rb:21:in `block (2 levels) in <main>'
52
+ ```
53
+
54
+
11
55
 
12
56
  ## 6.1.0 - 2021-04-30
13
57
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- makandra-rubocop (6.0.0)
4
+ makandra-rubocop (6.2.0)
5
5
  rubocop (~> 1.9.1)
6
6
  rubocop-rails (~> 2.9.1)
7
7
  rubocop-rspec (~> 2.2.0)
@@ -3,9 +3,9 @@ require 'open3'
3
3
  RSpec.describe 'rubocop' do
4
4
  it 'should not be offended' do
5
5
  command = self.class.description
6
- stdout, stderr, status = Open3.capture3('bundle', 'exec', command)
7
- output = (stderr.size > 0) ? stderr : stdout
6
+ stdout, stderr, status = Open3.capture3('bundle', 'exec', command, '--format', 'simple')
7
+ failure_message = [stderr, stdout].reject(&:empty?).join("\n\n")
8
8
 
9
- expect(status.success?).to eq(true), output
9
+ expect(status.success?).to eq(true), failure_message
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module MakandraRubocop
2
- VERSION = '6.1.0'.freeze
2
+ VERSION = '6.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makandra-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.0
4
+ version: 6.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arne Hartherz
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-04-30 00:00:00.000000000 Z
12
+ date: 2021-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  - !ruby/object:Gem::Version
127
127
  version: '0'
128
128
  requirements: []
129
- rubygems_version: 3.1.4
129
+ rubygems_version: 3.2.19
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: makandra's default Rubocop configuration