autocop 0.3.1 → 0.3.2

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: 7fc8e477005ebf0535c68d8fc9676f9964d144ce673d2dbf6fe3e5929fd695b1
4
- data.tar.gz: 869456b6298e18c4ddf34ee4b74f640e464960107572a30900254e6de31adebc
3
+ metadata.gz: a7bdf3baeafccf76602a77558a8dd84554241cc3e4e6abc8e96e7af520a2b742
4
+ data.tar.gz: 6c3996caf3c246f89c6252a665b2d89cdacec6e78706bb9d7f907d38725ec0a1
5
5
  SHA512:
6
- metadata.gz: 73c14e7865d8eb85fa661783ef20ca4b53a27c339441731be2454b8fe1592a740178b508c690b99e8881510febe9498b7f2326054083556e3f31bedc9b1a8be5
7
- data.tar.gz: d7e5211e4f92d2cff836684aca2694717655e633713cc557910ddd4f07a845df7602a1fe92cd92d66436767e1b15ba43f75a4cfabe7a9d37e6dd34d9773b80bb
6
+ metadata.gz: 624ae85876a62c0bf64360a583a7c7d956a7c9b2cd32d471c539d526e27ae3dd1a2c1b525bd7ce87cb256fd5fdd71409395f5c94312a959da4074b495314f648
7
+ data.tar.gz: ff8c455e21f10f105b1c2d8e0fcde2dea7ec7ed4d1df099de4c456868460c250628ded9388297525b70992fa4687d720d344ec141792ef467d170441c100ac84
@@ -1,4 +1,7 @@
1
- require: rubocop-rspec
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rails
4
+ - rubocop-rspec
2
5
 
3
6
  AllCops:
4
7
  DisplayCopNames: true
@@ -353,11 +356,6 @@ Performance/FlatMap:
353
356
  Enabled: true
354
357
  EnabledForFlattenWithoutParams: false
355
358
 
356
- # Supports --auto-correct
357
- Performance/LstripRstrip:
358
- Description: Use `strip` instead of `lstrip.rstrip`.
359
- Enabled: true
360
-
361
359
  # Supports --auto-correct
362
360
  Performance/RangeInclude:
363
361
  Description: Use `Range#cover?` instead of `Range#include?`.
@@ -1699,6 +1697,11 @@ Style/StringMethods:
1699
1697
  PreferredMethods:
1700
1698
  intern: to_sym
1701
1699
 
1700
+ # Supports --auto-correct
1701
+ Style/Strip:
1702
+ Description: Use `strip` instead of `lstrip.rstrip`.
1703
+ Enabled: true
1704
+
1702
1705
  Style/StructInheritance:
1703
1706
  Description: Checks for inheritance from Struct.new.
1704
1707
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new
@@ -2,4 +2,4 @@ sudo: false
2
2
  language: ruby
3
3
  rvm:
4
4
  - 2.5.0
5
- before_install: gem install bundler -v 1.16.1
5
+ before_install: gem install bundler -v 1.17.2
@@ -1,3 +1,9 @@
1
+ ## v0.3.2 - 2019-08-27
2
+
3
+ - Use the `rubocop-rails` and `rubocop-performance` gems
4
+ - Fix `Performance/LstripRstrip` to `Style/Strip`
5
+ - Fix test that was in violation of `RSpec/Be`
6
+
1
7
  ## v0.3.1 - 2019-06-18
2
8
 
3
9
  - Fix `EnforcedStyle: always` of frozen string literal cop
@@ -1,8 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- autocop (0.3.1)
4
+ autocop (0.3.2)
5
5
  rubocop (>= 0.52.1)
6
+ rubocop-performance (>= 1.4.1)
7
+ rubocop-rails (>= 2.3.1)
6
8
  rubocop-rspec (>= 1.22.1)
7
9
 
8
10
  GEM
@@ -19,8 +21,9 @@ GEM
19
21
  pry (0.12.2)
20
22
  coderay (~> 1.1.0)
21
23
  method_source (~> 0.9.0)
24
+ rack (2.0.7)
22
25
  rainbow (3.0.0)
23
- rake (12.3.2)
26
+ rake (12.3.3)
24
27
  rspec (3.8.0)
25
28
  rspec-core (~> 3.8.0)
26
29
  rspec-expectations (~> 3.8.0)
@@ -34,14 +37,19 @@ GEM
34
37
  diff-lcs (>= 1.2.0, < 2.0)
35
38
  rspec-support (~> 3.8.0)
36
39
  rspec-support (3.8.0)
37
- rubocop (0.71.0)
40
+ rubocop (0.74.0)
38
41
  jaro_winkler (~> 1.5.1)
39
42
  parallel (~> 1.10)
40
43
  parser (>= 2.6)
41
44
  rainbow (>= 2.2.2, < 4.0)
42
45
  ruby-progressbar (~> 1.7)
43
46
  unicode-display_width (>= 1.4.0, < 1.7)
44
- rubocop-rspec (1.33.0)
47
+ rubocop-performance (1.4.1)
48
+ rubocop (>= 0.71.0)
49
+ rubocop-rails (2.3.1)
50
+ rack (>= 1.1)
51
+ rubocop (>= 0.72.0)
52
+ rubocop-rspec (1.35.0)
45
53
  rubocop (>= 0.60.0)
46
54
  ruby-progressbar (1.10.1)
47
55
  unicode-display_width (1.6.0)
@@ -57,4 +65,4 @@ DEPENDENCIES
57
65
  rspec
58
66
 
59
67
  BUNDLED WITH
60
- 1.16.5
68
+ 1.17.2
@@ -22,8 +22,10 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.required_ruby_version = ['>= 2.2.0', '< 2.7.0']
24
24
 
25
- spec.add_dependency 'rubocop', '>= 0.52.1'
26
- spec.add_dependency 'rubocop-rspec', '>= 1.22.1'
25
+ spec.add_dependency 'rubocop', '>= 0.52.1'
26
+ spec.add_dependency 'rubocop-performance', '>= 1.4.1'
27
+ spec.add_dependency 'rubocop-rails', '>= 2.3.1'
28
+ spec.add_dependency 'rubocop-rspec', '>= 1.22.1'
27
29
 
28
30
  spec.add_development_dependency 'bundler'
29
31
  spec.add_development_dependency 'pry'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Autocop
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Autolist Engineering
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-18 00:00:00.000000000 Z
11
+ date: 2019-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -24,6 +24,34 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.52.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-performance
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.4.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 1.4.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 2.3.1
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 2.3.1
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: rubocop-rspec
29
57
  requirement: !ruby/object:Gem::Requirement