rubocop-kata 0.1.2 → 0.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8838bcb301e508a0fd65d2648631c43fb3a449eee183dcfdc74f681cec21ffa6
4
- data.tar.gz: d8b435df49038e927b0b073f7d7a585b13d7a087d4e779271069585210c7027c
3
+ metadata.gz: 2aecb4f5acadb8c0a79107ec7eda1e8555464a1f7c00c0fc18d8148238b55eb4
4
+ data.tar.gz: cfe52159c9def4a8217a40cde0534aa4d3d68d7ba457800734716b563606442b
5
5
  SHA512:
6
- metadata.gz: d3d2190c9b26c413f7ad4e52245675926613572c47028b6fa5e13eb4a8c373d88aede5cc0539053624ddd740de0adb661332eeab6efb06c833e8359b9c0c4827
7
- data.tar.gz: 03a1269af57dc067fb2d59bda98d38c3d32a5f4079dd1812bc7a28abe06534e58cbb3d16302e81c14e929d31c74ee6f386b7fc31d2ff29dac6713ce5633103d2
6
+ metadata.gz: 8dfbdb1a01717c78669d1f4efc9606bd3796778ea1dc7039c6d2b4c76e45066229f1fcec400973879a011f9092425ad2403f35430d0929c3df966eb5d42e4b64
7
+ data.tar.gz: 2dbace3f591f7920204c62f8ec94c0153fc91f96f381df1ea73891b93631bdbb0d96782321758bcea984eed0415164334d541c8f4ac64ca1763e490e60820318
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.0] - 2026-08-10
4
+
5
+ - Kata cops now run globally instead of only in `lib/**` — code in `app/`, `Rakefile`, etc. is now covered.
6
+ - `Kata/NoComments` excludes specs and gemspecs by default.
7
+ - `Kata/IoDiscipline` excludes specs, `bin/`, `exe/`, `Rakefile`, and gemspecs by default — bare `puts` in scripts and entrypoints stays legal.
8
+
3
9
  ## [0.1.2] - 2026-08-10
4
10
 
5
11
  - `Kata/IoDiscipline` is on by default for `lib/**` — library code never prints without a receiver.
data/README.md CHANGED
@@ -45,7 +45,7 @@ That's it. The plugin loads the bundled extensions and the shared defaults, so y
45
45
  | --- | --- | --- |
46
46
  | `Kata/AgentNoun` | on | Classes named for what they are, not `-er`/`-or` doers. Allow exceptions via `AllowedNames`. |
47
47
  | `Kata/NoComments` | on | No prose comments; say it in the code. Magic comments, linter directives, and licence headers survive. Autocorrects. |
48
- | `Kata/IoDiscipline` | on | No bare `puts`/`warn`/`pp`/`p` in `lib/`; write through an injected `@io` or an explicit receiver. |
48
+ | `Kata/IoDiscipline` | on | No bare `puts`/`warn`/`pp`/`p` outside specs/scripts; write through an injected `@io` or an explicit receiver. |
49
49
  | `Kata/ProsePlacement` | off | Sentence-length strings belong in the presentation layer. Enable with an `Include`/`Exclude` matching your layering. |
50
50
 
51
51
  ## The defaults
data/config/default.yml CHANGED
@@ -14,8 +14,6 @@ Kata/AgentNoun:
14
14
  Description: "Name classes for the thing they are, not the work they do."
15
15
  Enabled: true
16
16
  VersionAdded: "0.1"
17
- Include:
18
- - "lib/**/*"
19
17
  AllowedNames:
20
18
  - Error
21
19
 
@@ -23,15 +21,20 @@ Kata/NoComments:
23
21
  Description: "Say it in the code; keep only comments the machine or the law reads."
24
22
  Enabled: true
25
23
  VersionAdded: "0.1"
26
- Include:
27
- - "lib/**/*"
24
+ Exclude:
25
+ - "spec/**/*"
26
+ - "*.gemspec"
28
27
 
29
28
  Kata/IoDiscipline:
30
29
  Description: "Write through an injected io, not bare puts/warn/pp/p."
31
30
  Enabled: true
32
31
  VersionAdded: "0.1"
33
- Include:
34
- - "lib/**/*"
32
+ Exclude:
33
+ - "spec/**/*"
34
+ - "bin/**/*"
35
+ - "exe/**/*"
36
+ - "Rakefile"
37
+ - "*.gemspec"
35
38
 
36
39
  Kata/ProsePlacement:
37
40
  Description: "Keep sentence-length strings in the presentation layer."
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Kata
5
- VERSION = "0.1.2"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-kata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giacomo GK