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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a398487386fc743232d90d035d69d17ef394bd87f5c6b31062333c2f6f16dce7
4
- data.tar.gz: cff18d09624eee51d93b07f88c1cfa5c056a538d2b56c3871be11d0f581646c3
3
+ metadata.gz: bd3523798bbc346eb15f1b58b80bcf78e37dd8943f17eaa45064f69a0d5cdc65
4
+ data.tar.gz: 861a5ca15e7ad4b1f737367faad91a56922b3ae9bdfe7ca562455c2320ef9b63
5
5
  SHA512:
6
- metadata.gz: 6ffb7392aeb75c93dc6e74cbbe7071b6cc8b5b2144b51260f5438a2a9a3661b6f5f841c01ef219782993b935c05fe61c7bac9c824b7c81bd9969806a4a044b22
7
- data.tar.gz: 4e6546861db7b072a29db94ab7f9dc6fb8fc731015e439ed4402ae56d1b36fd87bf144c464c77d5897268edc0025c3ff04ce78406bebf308c9cc8c81c9ea7927
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 a bunch
4
- of best practices I have been obsessed with, such as making code read from
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
 
@@ -95,6 +95,10 @@ module RuboCop
95
95
  verify_private_methods_order
96
96
  end
97
97
 
98
+ def on_module(module_node)
99
+ on_class(module_node)
100
+ end
101
+
98
102
  private
99
103
 
100
104
  def find_private_node
@@ -1,5 +1,5 @@
1
1
  module Rubocop
2
2
  module Obsession
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
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.0
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-20 00:00:00.000000000 Z
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 I have been obsessed with.
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: Code style checking for Ruby files.
99
+ summary: High-level code style checking for Ruby files.
100
100
  test_files: []