+
+ 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
+
+ folder 'swfobject' do
+ from 'git://github.com/swfobject/swfobject.git', :tag => '2.2' do
+ file 'expressInstall.swf', 'swfobject/expressInstall.swf'
+ file 'swfobject.js', 'swfobject/src/swfobject.js'
+ end
+ end