aboutsummaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-02-28 19:50:53 -0800
committerelijah <elijah@riseup.net>2013-02-28 19:50:53 -0800
commite9a8318dc42146209e4acecc93c4ff62ab6feb7c (patch)
tree4fb6cef95626b708e04b6da93c7b0be7f0fe5718 /Rakefile
parent56a42b9858058473a07f254c49d0bb00dadce2d9 (diff)
downloadleap_cli-e9a8318dc42146209e4acecc93c4ff62ab6feb7c.tar.gz
leap_cli-e9a8318dc42146209e4acecc93c4ff62ab6feb7c.tar.bz2
clean up include paths, require newer rake version.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile8
1 files changed, 3 insertions, 5 deletions
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