rubocop-obsession 0.1.1 → 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: d4a34c5284c8fee7d9ed7b7dde9c657c53c59e2dfa19b16e5582a8ed2f283996
4
- data.tar.gz: b9fe71581787534e04843e42adf3239090d84fb078d0651ca89b9cd63d4051d1
3
+ metadata.gz: bd3523798bbc346eb15f1b58b80bcf78e37dd8943f17eaa45064f69a0d5cdc65
4
+ data.tar.gz: 861a5ca15e7ad4b1f737367faad91a56922b3ae9bdfe7ca562455c2320ef9b63
5
5
  SHA512:
6
- metadata.gz: 707fe7a9aacab4121c07fb71d1194c0e2956a5f220d1098d0aa39759706b6d87b60174c5773ec8261506173dded418c42efe173ea9fecb4dd513b727bb2d3d32
7
- data.tar.gz: 5bb1852be30647bc3346f93d47a7849d9f832ae4c468e100070fabed9e24109a63ab00087915e28fddbb1b1cbaff4fb4f11a117c3cf61ce6535e2e2d607287cf
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 code concepts
4
- 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:
@@ -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.1'
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.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-21 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