From e9a8318dc42146209e4acecc93c4ff62ab6feb7c Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 28 Feb 2013 19:50:53 -0800 Subject: clean up include paths, require newer rake version. --- Rakefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index e25ce30..fc23a32 100644 --- a/Rakefile +++ b/Rakefile @@ -2,6 +2,7 @@ require "rubygems" require "pty" require "fileutils" require "rake/testtask" +require 'paint' ## ## HELPER @@ -27,11 +28,8 @@ $spec_path = 'leap_cli.gemspec' $base_dir = File.dirname(__FILE__) $spec = eval(File.read(File.join($base_dir, $spec_path))) $gem_path = File.join($base_dir, 'pkg', "#{$spec.name}-#{$spec.version}.gem") -require File.join([$base_dir, 'lib','leap_cli','version.rb']) -LeapCli::REQUIRE_PATHS.each do |path| - path = File.expand_path(path, $base_dir) - $LOAD_PATH.unshift path unless $LOAD_PATH.include?(path) -end + +require File.join([$base_dir, 'lib','leap_cli','load_paths']) def built_gem_path Dir[File.join($base_dir, "#{$spec.name}-*.gem")].sort_by{|f| File.mtime(f)}.last -- cgit v1.2.3