Created
February 14, 2011 22:13
-
-
Save ashee/826680 to your computer and use it in GitHub Desktop.
mirah patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 0b040f756dae5d9a1f7306bdea386cb848447a1b Mon Sep 17 00:00:00 2001 | |
From: Amitava Shee <amitava.shee@gmail.com> | |
Date: Mon, 14 Feb 2011 14:47:32 -0500 | |
Subject: [PATCH] Permission denied fix | |
--- | |
lib/mirah_task.rb | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/lib/mirah_task.rb b/lib/mirah_task.rb | |
index de061f6..df286fc 100644 | |
--- a/lib/mirah_task.rb | |
+++ b/lib/mirah_task.rb | |
@@ -98,7 +98,7 @@ def mirahc(*files) | |
end | |
source_dir = options.fetch(:dir, Mirah.source_path) | |
dest = File.expand_path(options.fetch(:dest, Mirah.dest_path)) | |
- files = files.map {|f| f.sub(/^#{source_dir}\//, '')} | |
+ files = files.map {|f| File.expand_path(f).sub(/^#{source_dir}\//, '')} | |
flags = options.fetch(:options, Mirah.compiler_options) | |
args = ['-d', dest, *flags] + files | |
chdir(source_dir) do | |
-- | |
1.7.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment