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