Skip to content

Commit

Permalink
Ensure that yardoc commands are safe
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegal committed Apr 29, 2012
1 parent 1a86149 commit 06417ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/extensions.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ def source_path_for_github
private private


def generate_yardoc 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 end


def expand_gem(io) def expand_gem(io)
Expand Down
2 changes: 1 addition & 1 deletion lib/scm_checkout.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def remove_project
end end


def checkout_command def checkout_command
"#{git_checkout_command} && yardoc -n -q" "#{git_checkout_command} && #{YARD::ROOT}/../bin/yardoc -n -q --safe"
end end


def clear_source_files def clear_source_files
Expand Down

0 comments on commit 06417ca

Please sign in to comment.