Permalink
Browse files

Ensure that yardoc commands are safe

  • Loading branch information...
1 parent 1a86149 commit 06417caf36c180b24573e68716042329bb4bb2df @lsegal lsegal committed Apr 29, 2012
Showing with 4 additions and 2 deletions.
  1. +3 −1 lib/extensions.rb
  2. +1 −1 lib/scm_checkout.rb
View
@@ -98,7 +98,9 @@ def source_path_for_github
private
def generate_yardoc
- `cd #{source_path} && yardoc -n -q && touch .yardoc/complete`
+ `cd #{source_path} &&
+ #{YARD::ROOT}/../bin/yardoc -n -q --safe &&
+ touch .yardoc/complete`
end
def expand_gem(io)
View
@@ -138,7 +138,7 @@ def remove_project
end
def checkout_command
- "#{git_checkout_command} && yardoc -n -q"
+ "#{git_checkout_command} && #{YARD::ROOT}/../bin/yardoc -n -q --safe"
end
def clear_source_files

0 comments on commit 06417ca

Please sign in to comment.