Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[patch] Problems with getting version number for java platform gems

#3356

Currently gem version numbers have to be placed at the end of the directory name which contains the gem. This approach conflicts with the java platform gems e.g. eventmachine-0.12.8-java, and such gems cannot be freezed in the vendor directory. I've prepared a simple patch along with a small update to appropriate test file.

Reported by Łukasz Badura · October 8th, 2009 @ 05:01 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Łukasz Badura
    Łukasz Badura
    • Title changed from Problems with getting version number for java platform gems to [patch] Problems with getting version number for java platform gems

    October 9th, 2009 @ 10:24 AM

  2. Łukasz Badura
    Łukasz Badura

    I've a more generic solution. Gem version is determined by a regexp on the directory name. All strings before the version are considered as the name of the gem, after the version as the platform. This approach should also cover e.g. redcloth-x.x.x-universal-java.

    October 9th, 2009 @ 02:25 PM

  3. Łukasz Badura
  4. Matt Jones
    Matt Jones

    This fails for prerelease gems (versions like 1.0.1.pre). I don't recall whether those allow dashes in the string part or not, but you may want to check it out.

    October 16th, 2009 @ 08:39 PM

  5. Łukasz Badura
    Łukasz Badura

    The affected files were removed from the code base, so I guess this ticket is no longer valid ?

    January 6th, 2010 @ 04:29 PM

  6. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to invalid
    • Importance changed from to

    October 8th, 2010 @ 11:52 AM