X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2c8ed19553808c9f2c9df732a6c60fd3c306aaab..7a98913d0cf74887180aca3520c628a52b0e7071:/Vendorfile diff --git a/Vendorfile b/Vendorfile index 02d9fdd20..e67cd169d 100644 --- a/Vendorfile +++ b/Vendorfile @@ -37,4 +37,14 @@ folder 'vendor/assets' do file 'ohauth.js' end end + + folder 'iD' do + from 'git://github.com/systemed/iD', :branch => 'embed' do + folder 'iD/img', 'dist/img' + 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 end