summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2016-11-28 23:28:48 -0700
committerDan Allen <dan.j.allen@gmail.com>2016-11-28 23:28:48 -0700
commit23555f585d6034cf2e491b83ead4ebab09fd2728 (patch)
treef4792b3a1791a6f69581a72f156fb3c5d42bde01
parent9f5ae78505cd2bef8d3aef96ee7d0e5111a7af5e (diff)
don't fail build if .yardopts file is missing
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 702db12f..9b6b2e49 100644
--- a/Rakefile
+++ b/Rakefile
@@ -118,7 +118,7 @@ begin
)
# --no-highlight enabled to prevent verbatim blocks in AsciiDoc that begin with $ from being dropped
# need to patch htmlify method to not attempt to syntax highlight blocks (or fix what's wrong)
- yard.options = (IO.readlines '.yardopts').map {|l| l.chomp.delete('"').split ' ', 2 }.flatten
+ yard.options = (IO.readlines '.yardopts').map {|l| l.chomp.delete('"').split ' ', 2 }.flatten if ::File.file? '.yardopts'
end
rescue LoadError
end