embed stable and pre-release versions with "motion support"

This commit is contained in:
Watson
2014-11-06 17:25:38 +09:00
parent 42391d358b
commit 4b876b96f7
2 changed files with 7 additions and 1 deletions

2
NEWS
View File

@@ -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 =

View File

@@ -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?