+
+ folder 'iD' do
+ from 'git://github.com/openstreetmap/iD', :branch => 'release' do
+ folder 'iD/img', 'dist/img'
+ folder 'iD/locales', 'dist/locales'
+ file 'iD.css.erb', 'dist/iD.css' do |path|
+ rewrite(path) { |content| content.gsub(/url\('?(img\/[^')]+)'?\)/, 'url(<%= asset_path("iD/\1") %>)') }
+ end
+ file 'iD.js', 'dist/iD.js'
+ end
+ end
+
+ folder 'javascripts' do
+ file 'html5shiv.js', 'https://raw.github.com/aFarkas/html5shiv/master/src/html5shiv.js'
+ end