Sha256: 24baf18273905a99770cb42d3fa4d3bba986854354d4a6a5e61ba202a8c339d4
Contents?: true
Size: 1.32 KB
Versions: 4
Compression:
Stored size: 1.32 KB
Contents
module Main # # top level constants # Main::VERSION = '2.8.2' unless defined? Main::VERSION def self.version() Main::VERSION end Main::LIBDIR = File.join(File.dirname(File.expand_path(__FILE__)), self.name.downcase, '') unless defined? Main::LIBDIR def self.libdir() Main::LIBDIR end Main::EXIT_SUCCESS = 0 unless defined? Main::EXIT_SUCCESS Main::EXIT_FAILURE = 1 unless defined? Main::EXIT_FAILURE Main::EXIT_WARN = 42 unless defined? Main::EXIT_WARN # # built-in # require 'logger' require 'enumerator' require 'set' # # use gems to pick up dependancies # begin require 'rubygems' rescue LoadError 42 end require 'fattr' begin version = Fattr.version raise unless version[%r/^1\./] rescue abort "main requires fattrs >= 1.0.3 - gem install fattr" end require 'arrayfields' begin version = Arrayfields.version raise unless version[%r/^4\./] rescue abort "main requires arrayfields >= 4.5.0 - gem install arrayfields" end # # main's own libs # require libdir + 'stdext' require libdir + 'softspoken' require libdir + 'util' require libdir + 'logger' require libdir + 'usage' require libdir + 'cast' require libdir + 'parameter' require libdir + 'getoptlong' require libdir + 'mode' require libdir + 'base' require libdir + 'factories' end
Version data entries
4 entries across 4 versions & 3 rubygems