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/kartena/Leaflet.Pancontrol.git' do
20 file 'leaflet.pan.js', 'src/L.Control.Pan.js'
23 from 'git://github.com/kartena/Leaflet.zoomslider.git' do
24 file 'leaflet.zoom.js', 'src/L.Control.Zoomslider.js'
27 from 'git://github.com/jfirebaugh/leaflet-osm.git' do
28 file 'leaflet.osm.js', 'leaflet-osm.js'
33 from 'git://github.com/jevin/Autogrow-Textarea.git' do
34 file 'jquery.autogrowtextarea.js', 'jquery.autogrowtextarea.js'
39 from 'git://github.com/osmlab/ohauth.git' do
45 from 'git://github.com/systemed/iD', :branch => '1-0-stable' do
46 folder 'iD/img', 'dist/img'
47 folder 'iD/locales', 'dist/locales'
48 file 'iD.css.erb', 'dist/iD.css' do |path|
49 rewrite(path) { |content| content.gsub(/url\('?(img\/[^')]+)'?\)/, 'url(<%= asset_path("iD/\1") %>)') }
51 file 'iD.js', 'dist/iD.js'