1 folder 'vendor/assets' do
 
   3     file 'leaflet.js', 'http://cdn.leafletjs.com/leaflet-0.6.3/leaflet-src.js'
 
   4     file 'leaflet.css', 'http://cdn.leafletjs.com/leaflet-0.6.3/leaflet.css'
 
   5     file 'leaflet.ie.css', 'http://cdn.leafletjs.com/leaflet-0.6.3/leaflet.ie.css'
 
   7     [ 'layers.png', 'layers-2x.png',
 
   8       'marker-icon.png', 'marker-icon-2x.png',
 
   9       'marker-shadow.png' ].each do |image|
 
  10       file "images/#{image}", "http://cdn.leafletjs.com/leaflet-0.6.3/images/#{image}"
 
  13     from 'git://github.com/kajic/leaflet-locationfilter.git' do
 
  14       file 'leaflet.locationfilter.css', 'src/locationfilter.css'
 
  15       file 'leaflet.locationfilter.js', 'src/locationfilter.js'
 
  16       folder 'img', 'src/img'
 
  19     from 'git://github.com/domoritz/leaflet-locatecontrol.git' do
 
  20       file 'leaflet.locate.js', 'src/L.Control.Locate.js'
 
  23     from 'git://github.com/jfirebaugh/leaflet-osm.git' do
 
  24       file 'leaflet.osm.js', 'leaflet-osm.js'
 
  29     from 'git://github.com/osmlab/ohauth.git' do
 
  35     from 'git://github.com/systemed/iD', :branch => 'release' do
 
  36       folder 'iD/img', 'dist/img'
 
  37       folder 'iD/locales', 'dist/locales'
 
  38       file 'iD.css.erb', 'dist/iD.css' do |path|
 
  39         rewrite(path) { |content| content.gsub(/url\('?(img\/[^')]+)'?\)/, 'url(<%= asset_path("iD/\1") %>)') }
 
  41       file 'iD.js', 'dist/iD.js'