From 4b876b96f7361e643df9f1cd2e3a58212322f3f0 Mon Sep 17 00:00:00 2001 From: Watson Date: Thu, 6 Nov 2014 17:25:38 +0900 Subject: [PATCH] embed stable and pre-release versions with "motion support" --- NEWS | 2 ++ lib/motion/command/support.rb | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 190490af..2d1d9bb5 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,8 @@ * [iOS] Fixed a regression where Extension and Frameworks could not build for iOS device. + * Fixed the `motion support' command invocation to print both the stable and + pre-release versions of RubyMotion. = RubyMotion 2.38 = diff --git a/lib/motion/command/support.rb b/lib/motion/command/support.rb index 854ab0bf..e1b55fc8 100644 --- a/lib/motion/command/support.rb +++ b/lib/motion/command/support.rb @@ -37,7 +37,11 @@ module Motion; class Command # Collect details about the environment. osx_vers = `/usr/bin/sw_vers -productVersion`.strip - rm_vers = Motion::Version + if defined?(Pre::Motion::Version) + rm_vers = "#{Motion::Version} (stable), #{Pre::Motion::Version} (pre-release)" + else + rm_vers = Motion::Version + end xcode_vers = begin xcodebuild = `which xcodebuild`.strip xcodebuild = '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild' if xcodebuild.empty?