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?