From: elijah Date: Wed, 12 Dec 2012 22:09:17 +0000 (-0800) Subject: allow running rake from anywhere X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=de196e66c1b7c3b5e1e38d6d5ea024aac3fbe3bd;p=leap%2Fleap_cli.git allow running rake from anywhere --- 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