From 0472088feacfc5a8f166730fe7814f7531b99b06 Mon Sep 17 00:00:00 2001 From: Allen Wu Date: Sun, 3 May 2015 19:39:06 -0700 Subject: [PATCH] Fixed crash with "completion-scope" --- lib/xcodesnippet/commands/install.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xcodesnippet/commands/install.rb b/lib/xcodesnippet/commands/install.rb index 826457d..e8a81f7 100644 --- a/lib/xcodesnippet/commands/install.rb +++ b/lib/xcodesnippet/commands/install.rb @@ -57,7 +57,7 @@ def extract_front_matter! end @snippet.title = front_matter["title"] || "" @snippet.summary = front_matter["summary"] || "" - @snippet.completion_scopes = [front_matter["completion-scope"]] || front_matter["completion-scopes"] || "All" + @snippet.completion_scopes = front_matter["completion-scopes"] || 'All' @snippet.identifier = SecureRandom.uuid().upcase @snippet.is_user_snippet = true @snippet.version = 0