Skip to content

Commit d6d19d9

Browse files
maennchenclaude
andcommitted
Update purl-spec to dd9ffe9 and regenerate type data
Adds the new "brew" and "git" types and picks up changes to 17 existing definitions, bringing the registry to 42 types. The hex doctest is updated for the re-encoded repository_url example, and two groups of new spec tests are excluded: - The git tests expect an unencoded "/" inside the name (for example "forgejo/forgejo"), but "/" is the namespace separator in the purl grammar, so it has to be encoded as %2F. One of those fixtures is also corrupt, expecting "forgejoforgejo/" with the slash misplaced. - The cpan rule that a distribution name must not contain "::" only exists as prose in the name_definition note, not as a machine readable field such as permitted_characters, so it cannot be enforced from the type definition. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 6a55202 commit d6d19d9

4 files changed

Lines changed: 173 additions & 38 deletions

File tree

priv/spec

Submodule spec updated 76 files

src/purl.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ Lookup Type Specification
456456
examples =>
457457
[<<"pkg:hex/jason@1.1.2">>,<<"pkg:hex/acme/foo@2.3.">>,
458458
<<"pkg:hex/phoenix_html@2.13.3#priv/static/phoenix_html.js">>,
459-
<<"pkg:hex/bar@1.2.3", 63, "repository_url=https://myrepo.example.com">>],
459+
<<"pkg:hex/bar@1.2.3", 63, "repository_url=https:%2F%2Fmyrepo.example.com">>],
460460
reference_urls => []}
461461
```
462462
""".

0 commit comments

Comments
 (0)