rubocop_auto_corrector 0.1.0 → 0.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: d32f8ff541acd263deda1ff9dc9e9d623c8c25eba206d0936f5ca5d2c73a3096
4
- data.tar.gz: a9161a2f2925fd33ebb75bbb1afba16b1bf0cd1b74613b7116372ed033133bfd
3
+ metadata.gz: a1ddcd0abcfc35cb4e9631a0c23816e5da665723946c4a4cd4aa24b333d93089
4
+ data.tar.gz: c0d08e2038774303f14ccb8e1d3fa56de3c4b69b264be273bab293e50aea627b
5
5
  SHA512:
6
- metadata.gz: 6d3cca7fd0d545b954453bf20136ca36ba04b316c6c4fbee4cbcc43345bfabaac3b6c6fa57de78237793bd9b3303f58a23991e6d6a40f219750f0b9b62bc7a8e
7
- data.tar.gz: 7a9a0fd09136ac3b2bf5bbc2f2ce76eabddbf03781f96f9131d5d51415c65ffac54e4a9245820ea1334305ad0a1419ac29c7ec81eec70990d841ec2688b5f52b
6
+ metadata.gz: 1f045c98429672a2ae436fc06c4e6dc33cf98eecf4480f358fb72ea19ce41a5d988d691e1a458d4f4fd3cccc722be264d5e72d78952787b71bfa6f669d73b1fc
7
+ data.tar.gz: 84304f3f2643d573a279d45d4e79cc73cf58fd541d64055ae51a77d0d11fad8e00036d84cd17833921fbf38403e1030a6cdee6da5a3d471ec8f7d9870d6b5189
@@ -6,11 +6,12 @@ rvm:
6
6
  - 2.3
7
7
  - 2.4
8
8
  - 2.5
9
+ - 2.6
9
10
  - ruby-head
10
11
  bundler_args: "--jobs=4"
11
12
  before_install:
12
- - gem update --system --no-document
13
- - gem install bundler --no-document
13
+ - travis_retry gem update --system || travis_retry gem update --system 2.7.8
14
+ - travis_retry gem install bundler --no-document || travis_retry gem install bundler --no-document -v 1.17.3
14
15
  before_script:
15
16
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
16
17
  - chmod +x ./cc-test-reporter
@@ -29,6 +30,11 @@ notifications:
29
30
  matrix:
30
31
  allow_failures:
31
32
  - rvm: ruby-head
33
+ include:
34
+ - rvm: 2.6
35
+ env: RUBYOPT="--jit"
36
+ - rvm: ruby-head
37
+ env: RUBYOPT="--jit"
32
38
  env:
33
39
  global:
34
40
  - CC_TEST_REPORTER_ID=ae386af24f1ca076680045ecadf328fc77fd71bf6c014b5503d406d8bd87c42a
@@ -1,5 +1,11 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.1.0...master)
2
+ [full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.2.0...master)
3
+
4
+ ## v0.2.0
5
+ [full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.1.0...v0.2.0)
6
+
7
+ * Support `rubocop-performance` gem
8
+ * https://github.com/sue445/rubocop_auto_corrector/pull/16
3
9
 
4
10
  ## v0.1.0
5
11
  * first release
data/Gemfile CHANGED
@@ -4,3 +4,8 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
5
  # Specify your gem's dependencies in rubocop_auto_corrector.gemspec
6
6
  gemspec
7
+
8
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.3.0")
9
+ # rubocop 0.69.0+ requires ruby 2.3+
10
+ gem 'rubocop', '< 0.69.0'
11
+ end
data/README.md CHANGED
@@ -7,15 +7,21 @@ Run `rubocop --auto-correct && git commit` with each cop.
7
7
  [![Maintainability](https://api.codeclimate.com/v1/badges/384834e50f94e344c439/maintainability)](https://codeclimate.com/github/sue445/rubocop_auto_corrector/maintainability)
8
8
  [![Coverage Status](https://coveralls.io/repos/github/sue445/rubocop_auto_corrector/badge.svg?branch=master)](https://coveralls.io/github/sue445/rubocop_auto_corrector?branch=master)
9
9
 
10
- # Example
10
+ ## Example
11
11
  See https://github.com/sue445/rubocop_auto_corrector/pull/3/commits
12
12
 
13
+ ## Requirements
14
+ * Ruby
15
+ * git
16
+
13
17
  ## Installation
14
18
 
15
19
  Add this line to your application's Gemfile:
16
20
 
17
21
  ```ruby
18
- gem 'rubocop_auto_corrector'
22
+ group :development do
23
+ gem 'rubocop_auto_corrector', require: false
24
+ end
19
25
  ```
20
26
 
21
27
  And then execute:
@@ -43,7 +43,7 @@ module RubocopAutoCorrector
43
43
  ['rubocop-rspec', "::RuboCop::Cop::#{cop_class_suffix}"]
44
44
  when %r{^(FactoryBot|Capybara)/}, 'Rails/HttpStatus'
45
45
  ['rubocop-rspec', "::RuboCop::Cop::RSpec::#{cop_class_suffix}"]
46
- when %r{^(Layout|Lint|Metrics|Naming|Performance|Rails|Security|Style|Bundler|Gemspec)/}
46
+ when %r{^(Layout|Lint|Metrics|Naming|Rails|Security|Style|Bundler|Gemspec)/}
47
47
  # Official cops
48
48
  ['rubocop', "::RuboCop::Cop::#{cop_class_suffix}"]
49
49
  else
@@ -1,3 +1,3 @@
1
1
  module RubocopAutoCorrector
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  end
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
35
35
 
36
36
  spec.add_dependency 'rubocop', '>= 0.49.0'
37
37
 
38
- spec.add_development_dependency 'bundler', '~> 1.17'
38
+ spec.add_development_dependency 'bundler', '>= 1.17'
39
39
  spec.add_development_dependency 'coveralls'
40
40
  spec.add_development_dependency 'rake', '~> 10.0'
41
41
  spec.add_development_dependency 'rspec', '~> 3.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop_auto_corrector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-30 00:00:00.000000000 Z
11
+ date: 2019-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -28,14 +28,14 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.17'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.17'
41
41
  - !ruby/object:Gem::Dependency
@@ -147,7 +147,6 @@ files:
147
147
  - ".coveralls.yml"
148
148
  - ".gitignore"
149
149
  - ".rspec"
150
- - ".rubocop.yml"
151
150
  - ".travis.yml"
152
151
  - CHANGELOG.md
153
152
  - Gemfile
@@ -185,8 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
184
  - !ruby/object:Gem::Version
186
185
  version: '0'
187
186
  requirements: []
188
- rubyforge_project:
189
- rubygems_version: 2.7.6
187
+ rubygems_version: 3.0.3
190
188
  signing_key:
191
189
  specification_version: 4
192
190
  summary: Run `rubocop --auto-correct && git commit` with each cop.
@@ -1,18 +0,0 @@
1
- require: rubocop-rspec
2
-
3
- AllCops:
4
- TargetRubyVersion: 2.2
5
-
6
- Exclude:
7
- - 'spec/dummy/**/*.rb'
8
-
9
- # via. https://github.com/rubocop-hq/rubocop/blob/v0.60.0/config/default.yml#L60
10
- - 'node_modules/**/*'
11
- - 'vendor/**/*'
12
- - '.git/**/*'
13
-
14
- Layout/IndentHeredoc:
15
- Enabled: false
16
-
17
- RSpec/DescribedClass:
18
- Enabled: false