aboutsummaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-12-12 14:09:17 -0800
committerelijah <elijah@riseup.net>2012-12-12 14:09:17 -0800
commitde196e66c1b7c3b5e1e38d6d5ea024aac3fbe3bd (patch)
treeb1413cb64c292d1b45a5aca0e841d5baa2a6d9ee /Rakefile
parent288c3a871d96e836c3165be19ae23e0d9dc17f11 (diff)
downloadleap_cli-de196e66c1b7c3b5e1e38d6d5ea024aac3fbe3bd.tar.gz
leap_cli-de196e66c1b7c3b5e1e38d6d5ea024aac3fbe3bd.tar.bz2
allow running rake from anywhere
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index d597085..21d1c2d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -24,8 +24,8 @@ end
##
$spec_path = 'leap_cli.gemspec'
-$spec = eval(File.read($spec_path))
$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")
def built_gem_path