Skip to content
This repository has been archived by the owner on Oct 14, 2019. It is now read-only.

Commit

Permalink
Fix Rakefile when RVM is not installed
Browse files Browse the repository at this point in the history
This fixes jimweirich#51
  • Loading branch information
ssssam committed Dec 2, 2014
1 parent c80100f commit 2d29046
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions rakelib/tags.rake
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ module Tags

PROJECT_DIR = ['.']

RVM_GEMDIR = File.join(`rvm gemdir`.strip, "gems")
SYSTEM_DIRS = File.exists?(RVM_GEMDIR) ? RVM_GEMDIR : []
RVM = `which rvm`
if File.exists?(RVM)
RVM_GEMDIR = File.join(`rvm gemdir`.strip, "gems")
SYSTEM_DIRS = File.exists?(RVM_GEMDIR) ? RVM_GEMDIR : []
else
SYSTEM_DIRS = []
end

module_function

Expand Down

0 comments on commit 2d29046

Please sign in to comment.