spinel_kit 0.1.0 → 0.1.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/docs/adoption.md +6 -0
- data/lib/spinel_kit/git.rb +12 -3
- data/lib/spinel_kit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a199ba3cb14b31a8bb59a0f05df22e0bb982a1c4862b315236feb05278e653c7
|
|
4
|
+
data.tar.gz: bad3e3859f7647ae5f80387a5b97a5abdfd34b3154d85761a3d02084e0b7c346
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: affc333ba8f7aad5487cef5d38ec5e5c18fb0c73b3fade57489fa25bd9a3f14f5fbf66b56d6083cb5081555a0c36706b45d9d7166f206133b7eba8301eee5876
|
|
7
|
+
data.tar.gz: 29e1deb16e19017e12c94c40ad56af0bdde7361b166c7f51b727139fd98758496361006ea77934254041a70626d9d8db0d116a1080f454a2d12d24a04a7ed67b
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to SpinelKit are documented here.
|
|
4
4
|
|
|
5
|
+
## [0.1.1] - 2026-06-08
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- `SpinelKit::Git.read` no longer truncates branch names that contain a slash.
|
|
9
|
+
A branch like `feat/x` (HEAD → `ref: refs/heads/feat/x`) was reported as `x`
|
|
10
|
+
because the parser took the last `/`-segment. It now strips the `refs/heads/`
|
|
11
|
+
prefix, preserving the full branch path (`feat/x`, `user/feature/sub/thing`).
|
|
12
|
+
Non-`heads` refs fall back to the last segment. Caught by toy's run_start
|
|
13
|
+
provenance during the toy#44 migration. Covered by `test/git_test.rb`.
|
|
14
|
+
|
|
5
15
|
## [0.1.0] - 2026-06-08
|
|
6
16
|
|
|
7
17
|
First release. Establishes the gem and lands the three core shims, consolidated
|
data/docs/adoption.md
CHANGED
|
@@ -12,6 +12,12 @@ introduce poly-degrade collisions in a consumer's whole-program inference — so
|
|
|
12
12
|
we migrate one consumer at a time and gate each on its poly-degrade scan. But
|
|
13
13
|
the end-state is clean call sites, one canonical surface, and no aliases.
|
|
14
14
|
|
|
15
|
+
**Tracking (each consumer migrates itself, in its own repo):**
|
|
16
|
+
[tep#202](https://github.com/OriPekelman/tep/pull/202) (codec + logger; in
|
|
17
|
+
review) and [toy#49](https://github.com/OriPekelman/toy/issues/49) (builder +
|
|
18
|
+
git). SpinelKit changes happen here; consumer changes happen in the consumer's
|
|
19
|
+
repo via those issues.
|
|
20
|
+
|
|
15
21
|
## Consumption mechanism (and the current interim)
|
|
16
22
|
|
|
17
23
|
The clean path is `gem "spinel_kit"` + `spinel-compat vendor`. But that flow
|
data/lib/spinel_kit/git.rb
CHANGED
|
@@ -49,9 +49,18 @@ module SpinelKit
|
|
|
49
49
|
end
|
|
50
50
|
if head.length > 5 && head[0...5] == "ref: "
|
|
51
51
|
ref_rel = head[5...head.length]
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
# The branch is the ref path minus the "refs/heads/" prefix (11
|
|
53
|
+
# chars). Strip the prefix rather than taking the last "/"-segment
|
|
54
|
+
# so slashes WITHIN a branch name survive — e.g. refs/heads/feat/x
|
|
55
|
+
# is the branch "feat/x", not "x". Non-heads refs (packed/remote/
|
|
56
|
+
# tag) fall back to the last segment.
|
|
57
|
+
if ref_rel.length > 11 && ref_rel[0...11] == "refs/heads/"
|
|
58
|
+
b = ref_rel[11...ref_rel.length]
|
|
59
|
+
else
|
|
60
|
+
pp = ref_rel.split("/")
|
|
61
|
+
if pp.length >= 1
|
|
62
|
+
b = pp[pp.length - 1]
|
|
63
|
+
end
|
|
55
64
|
end
|
|
56
65
|
ref_path = ".git/" + ref_rel
|
|
57
66
|
if File.exist?(ref_path)
|
data/lib/spinel_kit/version.rb
CHANGED