Skip to content

Commit

Permalink
Improve 'running under rubygems' check to deal with symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Feb 8, 2009
1 parent cc48d8e commit 1e0d382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -46,7 +46,7 @@ end

# If running under rubygems...
__DIR__ ||= File.expand_path(File.dirname(__FILE__))
if Gem.path.any? {|path| %r(^#{Regexp.escape path}) =~ __DIR__}
if Gem.path.map{|path| Dir.chdir(path){ Dir.pwd } }.any? {|path| %r(^#{Regexp.escape path}) =~ __DIR__}
task :default => :gem_build
else
desc "Build gemspec, then build eventmachine, then run tests."
Expand Down

0 comments on commit 1e0d382

Please sign in to comment.