-
Notifications
You must be signed in to change notification settings - Fork 212
PURL add well-known qualifier vers
#433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
|
did not add an example to the spec, as the qualifier encoding is currently reworked -- #398 |
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
mprpic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
|
Is the # with scheme
pkg:cpan/AUTHOR/Module-Name?vers=vers:cpan/>=2.2.0|!= 2.2.1|<2.3.0
# without scheme
pkg:cpan/AUTHOR/Module-Name?vers=cpan/>=2.2.0|!= 2.2.1|<2.3.0 |
thought the same, but went with the full spec for the following reasons:
this being said, the qualifier name
|
|
updated/added examples, since #439 was merged |
pombredanne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge this and refine later, as there the update to the spec mean the example is not correct
johnmhoran
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example is incorrect -- the "Character encoding" section provides that the colon ':', "whether used as a Separator Character or otherwise", "MUST NOT be percent-encoded". We can refine this in a separate issue/PR.
The colon is never percent encoded anywhere. Reference: #433 Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
As sketched by @pombredanne and discusses in a PURL community meeting,
here is the qualifier
vers.example usage:
pkg:cpan/AUTHOR/Module-Name?vers=vers%3Acpan%2F%3E%3D2.2.0%7C%21%3D%202.2.1%7C%3C2.3.0vers:withpkg:? #386