From d3ec76f37a8e49b605df86466d72525d1a288d76 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Fri, 3 Jan 2014 00:56:50 +0100 Subject: [PATCH] app: fix usage of frozen string & remove trailing slash. --- lib/kook/app.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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