Forum: Redcloth fyi: RubyGems patched to support module-based VERSION strings

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Stephen Bannasch (Guest)
on 2009-03-26 03:14
(Received via mailing list)
Jason, fyi:

Eric Hodel just applied my patch to RubyGems to better support
module-based VERSION strings.

   [#24392] support module-based VERSION strings

It will be in RubyGems 1.3.2

I was using this for of VERSION coding which is similar to what you
are using in RedCloth and had some trouble with my jnlp gem (which I
can't remember right now).

module Jnlp #:nodoc:
   # VERSION = '0.0.3'
   module VERSION
     MAJOR = 0
     MINOR = 0
     TINY  = 3
     STRING = [MAJOR, MINOR, TINY].join('.')
     class << self
       def to_s
       def ==(arg)
         STRING == arg
C4a4cc53f32037a1315a2c6ada011a2e?d=identicon&s=25 Jason G. (jgarber)
on 2009-03-26 13:28
(Received via mailing list)
Sounds great!  Thanks for figuring it out and submitting a patch.  I
hadn't run into that particular difficulty, but I would have
eventually, I'm sure.

This topic is locked and can not be replied to.