lib/slack/smart-bot/utils/build_help.rb in slack-smart-bot-1.10.0 vs lib/slack/smart-bot/utils/build_help.rb in slack-smart-bot-1.11.0
- old
+ new
@@ -7,11 +7,11 @@
elsif File.exist?(path)
files = [path]
else
return help_message
end
- files.each do |t|
+ files.each do |t|
if Dir.exist?(t)
res = build_help(t, expanded)
help_message[:master][t.scan(/\/(\w+)$/).join.to_sym] = res[:master]
help_message[:admin][t.scan(/\/(\w+)$/).join.to_sym] = res[:admin]
help_message[:normal][t.scan(/\/(\w+)$/).join.to_sym] = res[:normal]