Sha256: e9959424619efddabacfcfc52b31933ad7d49bd7a263569f3e0f0028ce192d0a
Contents?: true
Size: 1.74 KB
Versions: 9
Compression:
Stored size: 1.74 KB
Contents
require 'rubygems' DEV_FILEPATH=File.dirname(__FILE__) start_time=Time.now if(RUBY_VERSION != "1.8.7") Encoding.default_external=Encoding::UTF_8 Encoding.default_internal=Encoding::UTF_8 end if !RUBY_PLATFORM.include?("darwin") begin require 'rainbow' if(RUBY_VERSION != "1.8.7") rescue puts "require 'rainbow' threw an exception" end else puts "skipping rainbow on mac os" class String def foreground arg return self end def bright return self end end end require 'semver' # if DEV_DEBUG is defined, puts_debug will send message to the console def puts_debug msg if(defined?(DEV_DEBUG)) puts msg end end puts_debug "dev.rb loading, after require 'semver' elapsed time " + (Time.now-start_time).to_s start_time=Time.now # if DEV_DEBUG_VERBOSE is defined, puts_debug_verbose will send message to the console def puts_debug_verbose msg if(defined?(DEV_DEBUG_VERBOSE)) puts msg end end puts_debug "read " + __FILE__ puts_debug "dev.rb loading, before loading ruby files (part 1) elapsed time " + (Time.now-start_time).to_s start_time=Time.now ["Environment","Array","Hash","SystemCall","Scm","MsBuild","Paths","Dep","Deps","Database","BoostBuild","Project","Commands","Tasks"].each{ |f| require "#{File.dirname(__FILE__)}/dev/#{f}.rb" } puts_debug "dev.rb loading, before loading ruby files (part 2) elapsed time " + (Time.now-start_time).to_s start_time=Time.now if(RUBY_VERSION != "1.8.7") Dir["#{File.dirname(__FILE__)}/dev/**/*.rb"].each{ |f| require f } end puts_debug "dev.rb loading, after loading ruby files elapsed time " + (Time.now-start_time).to_s DEV_ROOT=Dev::Environment.dev_root if(RUBY_VERSION == "1.8.7") DEV_NO_DEFAULT_TASK = 1 end
Version data entries
9 entries across 9 versions & 1 rubygems