summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRyan Davis <ryand@zenspider.com>2017-11-06 15:26:32 -0800
committerRyan Davis <ryand@zenspider.com>2017-11-06 15:26:32 -0800
commit26d8efe7c92a4085b60a05feafbd6aef80ce9702 (patch)
tree8abc1c4678e2625ca0a3c30f38125ea1948266fd /lib
parenta7b0ed543c13475c7349af7448f7c2c34cc4ab35 (diff)
downloadhoe-26d8efe7c92a4085b60a05feafbd6aef80ce9702.tar.gz
- Make missing history/readme situations more resilient and informative. (kemonomachi)
[git-p4: depot-paths = "//src/hoe/dev/": change = 11418]
Diffstat (limited to 'lib')
-rw-r--r--lib/hoe.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hoe.rb b/lib/hoe.rb
index 47bbc8a..0ddc7df 100644
--- a/lib/hoe.rb
+++ b/lib/hoe.rb
@@ -647,8 +647,8 @@ class Hoe
self.history_file = manifest.grep(/^History\./).first
end
- self.history_file ||= Dir.glob("History.{txt,md}").first
- self.readme_file ||= Dir.glob("README.{txt,md}").first
+ self.history_file ||= Dir.glob("History.{txt,md}").first || "History.txt"
+ self.readme_file ||= Dir.glob("README.{txt,md}").first || "README.txt"
abort "Hoe.new {...} removed. Switch to Hoe.spec." if block_given?
end