From 31610490bd123647c0b2f6a82aa66af7063b5b31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Mon, 27 Jan 2014 16:31:26 +0100 Subject: [PATCH] [Command] Use RubyGems to load plugins from gems. --- lib/motion/command.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/motion/command.rb b/lib/motion/command.rb index 7c130169..62f6734d 100644 --- a/lib/motion/command.rb +++ b/lib/motion/command.rb @@ -24,6 +24,8 @@ require 'motion/version' require 'motion/error' +require 'rubygems' + $:.unshift File.expand_path('../../../vendor/CLAide/lib', __FILE__) require 'claide' @@ -49,12 +51,10 @@ module Motion require 'motion/command/support' require 'motion/command/update' - # TODO support RubyGems plugins? - # require 'rubygems' - # self.plugin_prefix = 'motion' - self.abstract_command = true self.command = 'motion' + self.plugin_prefix = 'motion' + self.description = 'RubyMotion lets you develop native iOS and OS X ' \ 'applications using the awesome Ruby language.'