Return-Path: X-Original-To: apmail-buildr-commits-archive@www.apache.org Delivered-To: apmail-buildr-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4270777C8 for ; Tue, 15 Nov 2011 11:17:17 +0000 (UTC) Received: (qmail 18285 invoked by uid 500); 15 Nov 2011 11:17:17 -0000 Delivered-To: apmail-buildr-commits-archive@buildr.apache.org Received: (qmail 18255 invoked by uid 500); 15 Nov 2011 11:17:17 -0000 Mailing-List: contact commits-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@buildr.apache.org Delivered-To: mailing list commits@buildr.apache.org Received: (qmail 18245 invoked by uid 500); 15 Nov 2011 11:17:16 -0000 Delivered-To: apmail-incubator-buildr-commits@incubator.apache.org Received: (qmail 18236 invoked by uid 99); 15 Nov 2011 11:17:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2011 11:17:16 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2011 11:17:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CD2AF859E5 for ; Tue, 15 Nov 2011 11:16:52 +0000 (UTC) Date: Tue, 15 Nov 2011 11:16:52 +0000 (UTC) From: "Alex Boisvert (Created) (JIRA)" To: buildr-commits@incubator.apache.org Message-ID: <509228398.30525.1321355812842.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (BUILDR-615) Support non-numeric characters in VersionRequirement (e.g. version = "r09") MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Support non-numeric characters in VersionRequirement (e.g. version = "r09") --------------------------------------------------------------------------- Key: BUILDR-615 URL: https://issues.apache.org/jira/browse/BUILDR-615 Project: Buildr Issue Type: Bug Components: Dependency management Affects Versions: 1.4.6 Reporter: Alex Boisvert Assignee: Alex Boisvert Priority: Minor >From this thread: http://buildr.markmail.org/thread/kkpbbzmxyb4ojgbs Consider the following namespace code: REQUIRES = ArtifactNamespace.for(self) do |ns| ns.guava! "com.google.guava:guava:jar:r09" ns.javassist! "javassist:javassist:jar:3.8.0.GA" ns.reflections! "org.reflections:reflections:jar:0.9.5-RC1" end The guava spec here causes the following error to be raised Invalid version: "r09" This is a result of VersionRequirement.version? which checks the version string against the regex /^\s*\d[#{VER_CHARS}]*\s*$/ This regex is checked here raise "Invalid version: #{version.inspect}" unless self.class.version?(version) So it seems that maybe this regex could be expanded to include versions like 'r09'. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira