rubocop 0.41.0 → 0.41.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/config/default.yml +1 -1
- data/lib/rubocop/cop/rails/uniq_before_pluck.rb +2 -2
- data/lib/rubocop/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 86879d377fb20fd602a7bd74846127dabff3eaff
|
|
4
|
+
data.tar.gz: 667de06f4b8796dcdc48bd8c84da7687df8c7503
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9286cdc9b1842a27df0a884ab5c7e33b6e7162fa29507d810ba7c27b1f4fadc960c3502a64b0855726e0ab664fb5d36a4c685eac11c9286bd597e9aac9aaebca
|
|
7
|
+
data.tar.gz: cb042872468b5309744a002bc052d2601c344efd1773265d0b463a00c7b5e3931aa4ac85daf974104b81ac8e9877bf436cf08fd554bae331f25b82b308241a96
|
data/README.md
CHANGED
|
@@ -51,7 +51,7 @@ haven't reached version 1.0 yet). To prevent an unwanted RuboCop update you
|
|
|
51
51
|
might want to use a conservative version locking in your `Gemfile`:
|
|
52
52
|
|
|
53
53
|
```rb
|
|
54
|
-
gem 'rubocop', '~> 0.41.
|
|
54
|
+
gem 'rubocop', '~> 0.41.1', require: false
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
## Quickstart
|
data/config/default.yml
CHANGED
|
@@ -16,11 +16,11 @@ module RuboCop
|
|
|
16
16
|
# # good
|
|
17
17
|
# Model.uniq.pluck(:id)
|
|
18
18
|
#
|
|
19
|
-
# This cop has two different enforcement modes. When the
|
|
19
|
+
# This cop has two different enforcement modes. When the EnforcedMode
|
|
20
20
|
# is conservative (the default) then only calls to pluck on a constant
|
|
21
21
|
# (i.e. a model class) before uniq are added as offenses.
|
|
22
22
|
#
|
|
23
|
-
# When the
|
|
23
|
+
# When the EnforcedMode is aggressive then all calls to pluck before
|
|
24
24
|
# uniq are added as offenses. This may lead to false positives as the cop
|
|
25
25
|
# cannot distinguish between calls to pluck on an ActiveRecord::Relation
|
|
26
26
|
# vs a call to pluck on an ActiveRecord::Associations::CollectionProxy.
|
data/lib/rubocop/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.41.
|
|
4
|
+
version: 0.41.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: 2016-06-
|
|
13
|
+
date: 2016-06-26 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rainbow
|