lib/xcode/install.rb in xcode-install-0.9.3 vs lib/xcode/install.rb in xcode-install-0.9.4
- old
+ new
@@ -227,11 +227,11 @@
installed = installed_versions.map(&:version)
seedlist.map(&:name).reject { |x| installed.include?(x) }
end
def prereleases
- body=spaceship.send(:request, :get, '/xcode/downloads/').body
+ body=spaceship.send(:request, :get, '/xcode/download/').body
links=body.scan(/<a.+?href="(.+?.dmg)".*>(.*)<\/a>/)
links.map { |pre| Xcode.new_prelease(pre[1].strip.gsub(/.*Xcode /, ''), pre[0]) }
end
@@ -256,9 +256,10 @@
:private
def get_version(xcode_path)
output = `DEVELOPER_DIR='' "#{xcode_path}/Contents/Developer/usr/bin/xcodebuild" -version`
+ return '0.0' if output.nil? # ¯\_(ツ)_/¯
output.split("\n").first.split(' ')[1]
end
end
class Xcode