hunkify 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 374b11ac3893bb113123d303f53df7cb2a613ec21e3aa89919e908d6b1e33225
4
- data.tar.gz: cbc1210aee6014e214044a026997b679f519fd03ae58ad3f06fba3b37de98fd4
3
+ metadata.gz: 0ba6dab53be5bab36d05e9535bc0590a858638840987a0a3c9ee37253279c1fa
4
+ data.tar.gz: 30d6ac6b5f76e1ec04d04d2815f733c9bd514393d9cbe5823b0670107a0bf875
5
5
  SHA512:
6
- metadata.gz: 9ca7b307b7494da84e3279d56a32c7111098890dfe48b6c052811f4dd4d096c133bbe2fe7669211c6ce2d4d62b074b87f3f84f97ec8505eecddcc39ada2ed11c
7
- data.tar.gz: 66921d70a096260089119bf16f4bdc847bfba0cf67b23cf97e802455886f5fa875c9ad15158fc2c952708f462656bce63754383ceb4ec1585fcf0bb06004c07b
6
+ metadata.gz: ea9993ade4e70d1fa2a2d88a3ce3cc0769209685bc54102a286601768c15f31e8706dccc5e1f61fa919b4bf886421df2ba7940e7a8277a494e9d2e2a93d65f29
7
+ data.tar.gz: 07c1b7fdff6146ff9425921b46cc0ba8ae004dd4faa94a54688dd0b16169be61d574aea71b4ef7b0c5d749684e721612eaf6f003530e571895022ef1d0233967
@@ -17,7 +17,20 @@ module Hunkify
17
17
  - One commit = one unique intent (feat, fix, refactor, style, etc.)
18
18
  - Hunks in different files CAN belong to the same commit if they serve the same intent
19
19
  - Hunks in the SAME file can belong to DIFFERENT commits if they are semantically distinct
20
- - Prefer atomic and independent commits
20
+ - STRONGLY prefer fine-grained, atomic commits over large bundled ones.
21
+ When in doubt, SPLIT rather than merge.
22
+ - Heuristics to split:
23
+ * Different modules/components/features → different commits
24
+ * Core logic vs. tests → different commits (one feat commit + one test commit)
25
+ * Core logic vs. docs → different commits
26
+ * Core logic vs. config/build files → different commits
27
+ * Unrelated fixes bundled with a feature → separate them
28
+ * Each file introducing a new, independent capability usually deserves
29
+ its own commit
30
+ - Only bundle hunks together when they genuinely cannot be reviewed or
31
+ reverted independently.
32
+ - Err on the side of MORE commits. A PR with 8 small focused commits is
33
+ better than one with 3 large ones.
21
34
 
22
35
  RESPONSE FORMAT (strict JSON, no surrounding text):
23
36
  {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hunkify
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hunkify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom SCHIAVI