X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/77de5063128440bd88623f634c522b8933770f2e..55a0ad693d72a04d249db7af9129a262a4f9aee4:/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