From 7f79ecd295502fb11fec3cab5b3cea15d150d3e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Tue, 4 Feb 2014 17:03:39 +0100 Subject: [PATCH] [Command] Disable template validation for now. Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-418. --- NEWS | 1 + lib/motion/command/create.rb | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 61a5715d..06d5cc2c 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ * Added a feature to support Subscripting (Objective-C Literals). * Made the REPL for a OS X application work in development mode when it is sandboxed. + * Fixed a regression with specifying external templates to `motion create'. = RubyMotion 2.22 = diff --git a/lib/motion/command/create.rb b/lib/motion/command/create.rb index 06aa314e..16bfc878 100644 --- a/lib/motion/command/create.rb +++ b/lib/motion/command/create.rb @@ -63,9 +63,11 @@ module Motion; class Command def validate! super help! "A name for the new project is required." unless @app_name - unless self.class.all_templates.include?(@template) - help! "Invalid template specified `#{@template}'." - end + # TODO This needs to take into account external templates (e.g. from git + # or a local path.) + #unless self.class.all_templates.include?(@template) + #help! "Invalid template specified `#{@template}'." + #end end def run