Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-615

Support non-numeric characters in VersionRequirement (e.g. version = "r09")

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4.6
    • 1.4.8
    • Dependency management
    • None

    Description

      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'.

      Attachments

        Activity

          People

            boisvert Alex Boisvert
            boisvert Alex Boisvert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: