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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf881dd39764d4001bad8e3a8df70eab2063d4083e8a2641ceec8ea6c299bbbd
4
- data.tar.gz: b91ccadce9e0058db8df0e1fc82e64d912d60958b31b6f0c23986ed99ccdf662
3
+ metadata.gz: a199ba3cb14b31a8bb59a0f05df22e0bb982a1c4862b315236feb05278e653c7
4
+ data.tar.gz: bad3e3859f7647ae5f80387a5b97a5abdfd34b3154d85761a3d02084e0b7c346
5
5
  SHA512:
6
- metadata.gz: 15b02b65083c60e8d9501d7c27e86c740f6cd62b814bcf4fc83c4a614b3f82fb434695cc8213e46f772cce441c51a48148658b4679ee8f4191213bef74345e43
7
- data.tar.gz: 634f583e51bfa029ffe15a1a0b102e7e10f2916acd3632d85770002d91634d9a2bd5666a40c9deb11cf42b18e94ae1f2ff46b3475c1e4385692063a60990d356
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
@@ -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
- pp = ref_rel.split("/")
53
- if pp.length >= 3
54
- b = pp[pp.length - 1]
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)
@@ -2,5 +2,5 @@
2
2
  # without loading the rest of the library (the json/git/log modules pull
3
3
  # in no deps, but this matches the toy/tep convention exactly).
4
4
  module SpinelKit
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spinel_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ori Pekelman