rubocop-obsession 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -5
- data/lib/rubocop/cop/obsession/method_order.rb +4 -0
- data/lib/rubocop/obsession/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd3523798bbc346eb15f1b58b80bcf78e37dd8943f17eaa45064f69a0d5cdc65
|
4
|
+
data.tar.gz: 861a5ca15e7ad4b1f737367faad91a56922b3ae9bdfe7ca562455c2320ef9b63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee149bc3433c82b163c49d336e8dd85dbd8b042ea6c2338c2f73b4921afad79fa6c020341c0ecffdb58e753ca8edc5db2e79ccea5505bbe584097b685f74ab12
|
7
|
+
data.tar.gz: b5e1be57e0fa807b0252534b2be4c29a0883d3145555432580049409173981b48ef54cafac86b0bd8b6a3d9abeeff10d16706621b02c77801498cf530270e79a
|
data/README.md
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
# Rubocop Obsession
|
2
2
|
|
3
|
-
A [RuboCop](https://github.com/rubocop/rubocop) extension that enforces
|
4
|
-
|
3
|
+
A [RuboCop](https://github.com/rubocop/rubocop) extension that enforces
|
4
|
+
higher-level code concepts, like checking that code reads from
|
5
5
|
[top to bottom](lib/rubocop/cop/obsession/method_order.rb), or only unit
|
6
6
|
testing [public methods](lib/rubocop/cop/obsession/rspec/describe_public_method.rb).
|
7
7
|
|
8
|
+
Use the provided cops as is, or as inspiration to build custom cops aligned
|
9
|
+
with your project's best practices.
|
10
|
+
|
8
11
|
## Installation
|
9
12
|
|
10
13
|
Install the gem:
|
@@ -16,7 +19,7 @@ gem install rubocop-obsession
|
|
16
19
|
Or add this line to your Gemfile:
|
17
20
|
|
18
21
|
```ruby
|
19
|
-
gem 'rubocop-obsession'
|
22
|
+
gem 'rubocop-obsession', require: false
|
20
23
|
```
|
21
24
|
|
22
25
|
and run `bundle install`.
|
@@ -67,10 +70,11 @@ and documentation.
|
|
67
70
|
|
68
71
|
These cops are opinionated and can often feel like too much, that is why some
|
69
72
|
of them are disabled by default. They should not be treated as gospel, so do
|
70
|
-
not hesitate to enable or disable them
|
73
|
+
not hesitate to enable or disable them as needed.
|
71
74
|
|
72
75
|
I wrote them to scratch an itch I had at one point or another. Tastes change
|
73
|
-
with time, and I personally do not use some of them
|
76
|
+
with time, and I personally do not use some of them any more, but others might
|
77
|
+
find them useful.
|
74
78
|
|
75
79
|
## Development
|
76
80
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-obsession
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jerome Dalbert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.41'
|
41
|
-
description: A collection of RuboCop cops
|
41
|
+
description: A collection of RuboCop cops for enforcing higher-level code concepts.
|
42
42
|
email:
|
43
43
|
- jerome.dalbert@gmail.com
|
44
44
|
executables: []
|
@@ -96,5 +96,5 @@ requirements: []
|
|
96
96
|
rubygems_version: 3.5.16
|
97
97
|
signing_key:
|
98
98
|
specification_version: 4
|
99
|
-
summary:
|
99
|
+
summary: High-level code style checking for Ruby files.
|
100
100
|
test_files: []
|