diff options
author | Ryan Davis <ryand@zenspider.com> | 2017-11-06 15:26:32 -0800 |
---|---|---|
committer | Ryan Davis <ryand@zenspider.com> | 2017-11-06 15:26:32 -0800 |
commit | 26d8efe7c92a4085b60a05feafbd6aef80ce9702 (patch) | |
tree | 8abc1c4678e2625ca0a3c30f38125ea1948266fd /lib | |
parent | a7b0ed543c13475c7349af7448f7c2c34cc4ab35 (diff) | |
download | hoe-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.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |