On Mon, Nov 26, 2007 at 01:47:09PM -0500, John Weir wrote: > i have a project based around merb 0.3.7 and I do not want to fiddle > with it one bit. and now I want to start a new project running > 0.4.2(and beyond). what is the recommend method of starting merb from > a specific gem version?
rubygems provides such a mechanism: try merb _0.3.7_ [any other args] Type the underscores literally - they are not just there for emphasis :-) Here's how it works: $ cat /usr/bin/merb #!/usr/bin/env ruby # # This file was generated by RubyGems. # # The application 'merb' is installed as part of a gem, and # this file is here to facilitate running it. # require 'rubygems' version = "> 0" if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then version = $1 ARGV.shift end gem 'merb', version load 'merb' _______________________________________________ Merb-devel mailing list [email protected] http://rubyforge.org/mailman/listinfo/merb-devel
