Skip Menu |
 

This queue is for tickets about the Perl-Version CPAN distribution.

Report information
The Basics
Id: 117309
Status: stalled
Priority: 0/
Queue: Perl-Version

People
Owner: Nobody in particular
Requestors: MRDVT [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.013
Fixed in: (no value)



Subject: nice to have Perl::Version->decrement("subversion")
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-24265-1472507815-408.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 211
Download (untitled) / with headers
text/plain 211b
would be nice to support decrement as well as increment. sub dec_subversion { my $self=shift; $self->subversion($self->subversion-1); #may need to do error checking and rollover limiting return $self; };
MIME-Version: 1.0
X-Spam-Status: No, score=-6.305 tagged_above=-99.9 required=10 tests=[AWL=0.394, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, FROM_OUR_RT=-4, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
In-Reply-To: <rt-4.0.18-24265-1472507816-1365.117309-4-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-117309 [...] rt.cpan.org> <rt-4.0.18-24265-1472507816-1365.117309-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Received: by 10.31.81.134 with SMTP id f128mr130052vkb.139.1472508129978; Mon, 29 Aug 2016 15:02:09 -0700 (PDT)
Message-ID: <CAPk17=7fj8bwwqGGmAe3Jo6aVKvP2oPrwRwfT+Bm4wAuA82=XA [...] mail.gmail.com>
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.305
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 30F972403A4 for <cpan-bug+Perl-Version [...] hipster.bestpractical.com>; Mon, 29 Aug 2016 18:02:19 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ePUh97nZfdrD for <cpan-bug+Perl-Version [...] hipster.bestpractical.com>; Mon, 29 Aug 2016 18:02:18 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id D8B2B240268 for <bug-Perl-Version [...] rt.cpan.org>; Mon, 29 Aug 2016 18:02:17 -0400 (EDT)
Received: (qmail 10567 invoked by alias); 29 Aug 2016 22:02:17 -0000
Received: from mail-ua0-f181.google.com (HELO mail-ua0-f181.google.com) (209.85.217.181) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 29 Aug 2016 15:02:14 -0700
Received: by mail-ua0-f181.google.com with SMTP id l94so2119767ual.0 for <bug-Perl-Version [...] rt.cpan.org>; Mon, 29 Aug 2016 15:02:13 -0700 (PDT)
Received: by 10.176.80.91 with HTTP; Mon, 29 Aug 2016 15:01:29 -0700 (PDT)
Delivered-To: cpan-bug+Perl-Version [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #117309] nice to have Perl::Version->decrement("subversion")
Return-Path: <brian.d.foy [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=q25uK7owT5AxbfZSqO/UIBMtT8ICLscOERJ1j8XA++w=; b=m++/azRS148vArU85DXKWz50WSn0gAu1XrAlSwBXPJs2CyOIX+MIn5aYtdXVp1JZCx JlbMDGkKqAmlDIWpHzUH8PuzcvKFyKxox0Z1TL14rGlKJcIvvA0WbxPqt4VHa9ZiDi2T AdBGPXVeuytcT7PV1l3R99n4z6GFrY7EyItlxwkCo8U2nvdWWC8jPXT6Vr1YWzT2JzYI ki4fxF7rRDsbCGlW5nCDzfWq+/uI4YPurIvVF6FDJ2pukbmAImf9HSoBrpBycrT5eBf/ ZNj5ViEtKT4IDkhsIFfXvVRfr1zOgmNabKE30HHWQlDt6MJrB6BGxtmDNXoMrgb/3AAO VtYQ==
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Perl-Version [...] hipster.bestpractical.com
X-RT-Mail-Extension: perl-version
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=q25uK7owT5AxbfZSqO/UIBMtT8ICLscOERJ1j8XA++w=; b=Dr/rdz55UuksO/ukmPK0/X2PawMuy0/tByKue7W7jQ/mARZMCc6dw4tMgou1ThQJAj PXnFNmfd25YSmzj5wjRrpYW68MT1xIM6+bAvAKurInHXO1rL7y53LozMCKIKQt/C3YOC Z5yZG4J+mlwh/S5ixMVklKU8Bg3C8kFZHD/svfUdNIjHONaz+uasHk817xKb4OGgeurW xdHPz7sxXU3T2szAZyqRH+UXNvOYWUrrgrErE/m9QyekcJBzs8xCsFV5Y9VlmUJL5UBm Z272850nX1LQT7X++ujgP8iBSBKpuOiiPJI69jDTZctqGXXneicSsr3sIPfkzFteErMt VrYQ==
Date: Mon, 29 Aug 2016 18:01:29 -0400
X-Spam-Level:
To: bug-Perl-Version [...] rt.cpan.org
X-GM-Message-State: AE9vXwPJ3X06r8uoye8UCm8Qyyu8rurcxIkLyYlYfkk8VPr6v5Ic4AqVVLu0E6uAV6fwN8WB5f2L3K1KRYDMng==
From: brian d foy <brian.d.foy [...] gmail.com>
RT-Message-ID: <rt-4.0.18-24078-1472508140-1892.117309-0-0 [...] rt.cpan.org>
Content-Length: 168
Download (untitled) / with headers
text/plain 168b
If you would like this, can you create a patch (and accompanying tests!) for it? I think that if the subversion is 0 and you try to decrement it, it should just fail.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-24078-1472508140-1892.117309-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <RT-Ticket-117309 [...] rt.cpan.org> <rt-4.0.18-24265-1472507816-1365.117309-4-0 [...] rt.cpan.org> <CAPk17=7fj8bwwqGGmAe3Jo6aVKvP2oPrwRwfT+Bm4wAuA82=XA [...] mail.gmail.com> <rt-4.0.18-24078-1472508140-1892.117309-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-23363-1472590995-1394.117309-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 242
Download (untitled) / with headers
text/plain 242b
On Mon Aug 29 18:02:20 2016, brian.d.foy@gmail.com wrote: Show quoted text
> If you would like this, can you create a patch
I ended up parsing the version format with a regular expression. Sorry that I didn't have the time to add on to the empire. mrdvt92


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.