diff options
| author | Akira Yumiyama <[email protected]> | 2012-12-18 14:52:24 +0900 |
|---|---|---|
| committer | Akira Yumiyama <[email protected]> | 2012-12-18 14:52:24 +0900 |
| commit | 335ec2ae2b11167ecd2459d03fa01bdb5d60b1fa (patch) | |
| tree | aa5c0b413770589823c9d5dd15d2272ddf0c8674 | |
| parent | 384633dd5aef0c324a1716aa7496073b4301f41e (diff) | |
| download | mruby-335ec2ae2b11167ecd2459d03fa01bdb5d60b1fa.tar.gz mruby-335ec2ae2b11167ecd2459d03fa01bdb5d60b1fa.zip | |
"#{MRUBY_ROOT}/mrbgems/g" add to the default search path
| -rw-r--r-- | mrbgems/build_tasks.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mrbgems/build_tasks.rb b/mrbgems/build_tasks.rb index 0e2d24a2e..35441cf02 100644 --- a/mrbgems/build_tasks.rb +++ b/mrbgems/build_tasks.rb @@ -64,6 +64,10 @@ end def for_each_gem(&block) IO.readlines(ACTIVE_GEMS).map { |line| path = line.chomp + if not File.exist?(path) + path2 = File.join MRUBY_ROOT, 'mrbgems', 'g', path + path = path2 if File.exist? path2 + end gemname = File.basename(path) escaped_gemname = gemname.gsub(/-/, '_') block.call(path, gemname, escaped_gemname) |
