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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 727746f734b1299c9924a8b66343ab5205dbe5aa672406ddaa95ce6952cc615c
4
- data.tar.gz: d86d69036a624be32dd6a71a0f1e28af6da2ebd439d7e18af0e9b27042729445
3
+ metadata.gz: c86591caa45eacc65b20aa23e80fd623b3122a7e28d57b80b9122c20bcf60793
4
+ data.tar.gz: f1dd97d9221040cc8f03ecdea45706b215c4f7b820abdceecfe623c50c005338
5
5
  SHA512:
6
- metadata.gz: b7705ae94fda7c8d47e918f40a6d162b0db708419324118091c31f7bf3bd7c0010b7f1730ba72e8d2c92302fe76ac088b3507f8cb9cb5d9a8ab06af358820fee
7
- data.tar.gz: 581176be1884dcff1953b7b51b454ec15febdf6cc6af5f635272c5c8348e7429d3605a6b87a22c2a4f26fc58fc3aef27910c3e7f122981bc47f3a773449acd1a
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
@@ -4,7 +4,7 @@ module RuboCop
4
4
  module Rails
5
5
  # This module holds the RuboCop Rails version information.
6
6
  module Version
7
- STRING = '2.0.0'
7
+ STRING = '2.0.1'
8
8
  end
9
9
  end
10
10
  end
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.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-05-21 00:00:00.000000000 Z
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: '2.0'
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: '2.0'
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://github.com/rubocop-hq/rubocop-rails/
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.readthedocs.io/
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: []