Sha256: 74d7d0c777b8182e42fcf727761aed4851a106c8facddcdc45790e9d426d3c53
Contents?: true
Size: 1.75 KB
Versions: 1
Compression:
Stored size: 1.75 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dev-1.0.247 | lib/dev.rb |