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