Jira (PUP-9581) Add 'to hash' functionality for SemVer data type.

2 views
Skip to first unread message

Bryan Woolsey (JIRA)

unread,
Mar 25, 2019, 4:00:08 PM3/25/19
to puppe...@googlegroups.com
Bryan Woolsey created an issue
 
Puppet / Improvement PUP-9581
Add 'to hash' functionality for SemVer data type.
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2019/03/25 1:00 PM
Priority: Minor Minor
Reporter: Bryan Woolsey

Currently the SemVer data type allows the user to convert from SemVer to a String.

There are several situations where converting SemVer to a Hash would also be greatly beneficial, especially in specific cases where the user needs to extract the a specific component of SemVer.

$myver = SemVer('1.2.3-rc.1+abc456')
 
notice(Hash($myver))
=>    {major => 1, minor => 2, patch => 3, prerelease => rc.1, build => abc456}

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Bryan Woolsey (JIRA)

unread,
Mar 25, 2019, 4:02:03 PM3/25/19
to puppe...@googlegroups.com
Bryan Woolsey updated an issue
Change By: Bryan Woolsey
Currently the SemVer data type allows the user to convert from SemVer to a String.

There are several situations where converting SemVer to a Hash would also be greatly beneficial, especially in
specific
cases where the user needs to extract the a specific component of SemVer.

{code}

$myver = SemVer('1.2.3-rc.1+abc456')

notice(Hash($myver))
=>    {major => 1, minor => 2, patch => 3, prerelease => rc.1, build => abc456}
{code}

Henrik Lindberg (JIRA)

unread,
Mar 25, 2019, 4:07:04 PM3/25/19
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Sub-team: Language
Team: Server

Josh Cooper (Jira)

unread,
Jun 14, 2021, 9:06:02 PM6/14/21
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-9581
 
Re: Add 'to hash' functionality for SemVer data type.

This was fixed in PUP-11077, closing this as a dup.

This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages