rubocop-rails 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -1
- data/lib/rubocop/rails/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c86591caa45eacc65b20aa23e80fd623b3122a7e28d57b80b9122c20bcf60793
|
4
|
+
data.tar.gz: f1dd97d9221040cc8f03ecdea45706b215c4f7b820abdceecfe623c50c005338
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '00134581586524ab6f4123346ac212cfee0b87cc333974498d786b407221ba8d7ea5d09ad438e3bb492e68970aea57625753f00e646b2cfa8d4062e1ff67e8b9'
|
7
|
+
data.tar.gz: fc6bedd9fdd740b1098a6620f176e742f989d96bca8e1267981b5483081f7139e451ed9fad8715883f7a5c3a95f95e9fb235889a418a8eee7699970d27a37c73
|
data/README.md
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
# RuboCop Rails
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/rubocop-rails.svg)](https://badge.fury.io/rb/rubocop-rails)
|
3
4
|
[![CircleCI](https://circleci.com/gh/rubocop-hq/rubocop-rails.svg?style=svg)](https://circleci.com/gh/rubocop-hq/rubocop-rails)
|
4
5
|
|
5
6
|
A [RuboCop](https://github.com/rubocop-hq/rubocop) extension focused on enforcing Rails best practices and coding conventions.
|
6
7
|
|
8
|
+
Note: This repository manages rubocop-rails gem (>= 2.0.0). rubocop-rails gem (<= 1.5.0) has been renamed to [rubocop-rails_config](https://rubygems.org/gems/rubocop-rails_config) gem.
|
9
|
+
|
7
10
|
## Installation
|
8
11
|
|
9
12
|
Just install the `rubocop-rails` gem
|
@@ -31,15 +34,25 @@ Put this into your `.rubocop.yml`.
|
|
31
34
|
require: rubocop-rails
|
32
35
|
```
|
33
36
|
|
37
|
+
Alternatively, use the following array notation when specifying multiple extensions.
|
38
|
+
|
39
|
+
```yaml
|
40
|
+
require:
|
41
|
+
- rubocop-other-extension
|
42
|
+
- rubocop-rails
|
43
|
+
```
|
44
|
+
|
34
45
|
Now you can run `rubocop` and it will automatically load the RuboCop Rails
|
35
46
|
cops together with the standard cops.
|
36
47
|
|
37
48
|
### Command line
|
38
49
|
|
39
50
|
```sh
|
40
|
-
rubocop --require rubocop-rails
|
51
|
+
rubocop --require rubocop-rails --rails
|
41
52
|
```
|
42
53
|
|
54
|
+
Note: `--rails` option is required while `rubocop` command supports `--rails` option.
|
55
|
+
|
43
56
|
### Rake task
|
44
57
|
|
45
58
|
```ruby
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bozhidar Batsov
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-
|
13
|
+
date: 2019-06-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
21
|
+
version: '1.1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '
|
28
|
+
version: '1.1'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rubocop
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -116,10 +116,10 @@ homepage: https://github.com/rubocop-hq/rubocop-rails
|
|
116
116
|
licenses:
|
117
117
|
- MIT
|
118
118
|
metadata:
|
119
|
-
homepage_uri: https://
|
119
|
+
homepage_uri: https://docs.rubocop.org/projects/rails
|
120
120
|
changelog_uri: https://github.com/rubocop-hq/rubocop-rails/blob/master/CHANGELOG.md
|
121
121
|
source_code_uri: https://github.com/rubocop-hq/rubocop-rails/
|
122
|
-
documentation_uri: https://rubocop.
|
122
|
+
documentation_uri: https://docs.rubocop.org/projects/rails
|
123
123
|
bug_tracker_uri: https://github.com/rubocop-hq/rubocop-rails/issues
|
124
124
|
post_install_message:
|
125
125
|
rdoc_options: []
|