lib/xcode/install.rb in xcode-install-2.0.7 vs lib/xcode/install.rb in xcode-install-2.0.8
- old
+ new
@@ -306,10 +306,10 @@
scan = body.scan(rg)
end
return [] if scan.empty?
- version = scan.last.gsub(/<.*?>/, '').gsub(/.*Xcode /, '')
+ version = scan.first.gsub(/<.*?>/, '').gsub(/.*Xcode /, '')
link = body.scan(%r{<button .*"(.+?.xip)".*</button>}).first.first
notes = body.scan(%r{<a.+?href="(/go/\?id=xcode-.+?)".*>(.*)</a>}).first.first
links << Xcode.new(version, link, notes)
end