diff --git a/lib/kook/app.rb b/lib/kook/app.rb index d12cddc..63e2d88 100644 --- a/lib/kook/app.rb +++ b/lib/kook/app.rb @@ -86,7 +86,10 @@ module Kook if view_path == project_path then view_path = '.' else - view_path.gsub!(/^#{project_path}\//,'') + view_path = (view_path + .gsub(/^#{project_path}\//,'') + .gsub(/\/$/,'') + ) end @projects[project_name].create_view view_name, view_path