igrigorik/heroku-buildpack-dart — pull request #31 by alexpaluzzi (2014-09-25 04:30:27+00:00)
Title: Added support for *.zip Dart SDKs for Cedar 14

This adds the ability to also use Dart SDK urls that are built to .zip files. *I removed the .deb implementation until I (or someone else) has a better way to install the deb files with the buildpack.*

The Linux zips can be found here: https://www.dartlang.org/tools/download_archive/

I tested with these URLS:
https://storage.googleapis.com/dart-archive/channels/stable/release/latest/linux_packages/debian_wheezy/dart_1.6.0-1_amd64.deb
https://storage.googleapis.com/dart-archive/channels/stable/release/39553/sdk/dartsdk-linux-x64-release.zip

I think it can certainly be improved but this gets Cedar 14 support going without breaking anyone still using Ubuntu 10.x still. Right now it's looking at the extension from the URL but I think we should consider downloading the file and then figuring out the extension to account for redirects.

I noticed when I upgraded from 1.3 to 1.6, the sample basic_http_server app broke for some reason. I didn't figure out why, but I made a quick basic server app (using Redstone) and confirmed it was something in the code sample. My next PR will be a new basic test app.