Stephen Bannasch
2009-Mar-26  01:29 UTC
fyi: RubyGems patched to support module-based VERSION strings
Jason, fyi:
Eric Hodel just applied my patch to RubyGems to better support 
module-based VERSION strings.
   [#24392] support module-based VERSION strings
  
http://rubyforge.org/tracker/?func=detail&atid=577&aid=24392&group_id=126
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
         STRING
       end
       def ==(arg)
         STRING == arg
       end
     end
   end
end
Jason Garber
2009-Mar-26  12:27 UTC
fyi: RubyGems patched to support module-based VERSION strings
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. Jason On Mar 25, 2009, at 9:29 PM, Stephen Bannasch wrote:> Jason, fyi: > > Eric Hodel just applied my patch to RubyGems to better support > module-based VERSION strings. > > [#24392] support module-based VERSION strings > http://rubyforge.org/tracker/? > func=detail&atid=577&aid=24392&group_id=126 > > 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 > STRING > end > def ==(arg) > STRING == arg > end > end > end > end > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards