]> git.openstreetmap.org Git - rails.git/blob - Vendorfile
iD 1.1.0
[rails.git] / Vendorfile
1 folder 'vendor/assets' do
2   folder 'jquery' do
3     file 'jquery.throttle-debounce.js', 'https://raw.github.com/cowboy/jquery-throttle-debounce/v1.1/jquery.ba-throttle-debounce.js'
4   end
5
6   folder 'bootstrap' do
7     file 'bootstrap.tooltip.js', 'https://raw.github.com/twbs/bootstrap/v2.3.2/js/bootstrap-tooltip.js'
8   end
9
10   folder 'leaflet' do
11     file 'leaflet.js', 'http://cdn.leafletjs.com/leaflet-0.6.3/leaflet-src.js'
12     file 'leaflet.css', 'http://cdn.leafletjs.com/leaflet-0.6.3/leaflet.css'
13     file 'leaflet.ie.css', 'http://cdn.leafletjs.com/leaflet-0.6.3/leaflet.ie.css'
14
15     [ 'layers.png', 'layers-2x.png',
16       'marker-icon.png', 'marker-icon-2x.png',
17       'marker-shadow.png' ].each do |image|
18       file "images/#{image}", "http://cdn.leafletjs.com/leaflet-0.6.3/images/#{image}"
19     end
20
21     from 'git://github.com/kajic/leaflet-locationfilter.git' do
22       file 'leaflet.locationfilter.css', 'src/locationfilter.css'
23       file 'leaflet.locationfilter.js', 'src/locationfilter.js'
24       folder 'img', 'src/img'
25     end
26
27     from 'git://github.com/domoritz/leaflet-locatecontrol.git' do
28       file 'leaflet.locate.js', 'src/L.Control.Locate.js'
29     end
30
31     from 'git://github.com/jfirebaugh/leaflet-osm.git' do
32       file 'leaflet.osm.js', 'leaflet-osm.js'
33     end
34
35     from 'git://github.com/mlevans/leaflet-hash.git' do
36       file 'leaflet.hash.js', 'leaflet-hash.js'
37     end
38   end
39
40   folder 'ohauth' do
41     from 'git://github.com/osmlab/ohauth.git' do
42       file 'ohauth.js'
43     end
44   end
45
46   folder 'iD' do
47     from 'git://github.com/systemed/iD', :branch => 'release' do
48       folder 'iD/img', 'dist/img'
49       folder 'iD/locales', 'dist/locales'
50       file 'iD.css.erb', 'dist/iD.css' do |path|
51         rewrite(path) { |content| content.gsub(/url\('?(img\/[^')]+)'?\)/, 'url(<%= asset_path("iD/\1") %>)') }
52       end
53       file 'iD.js', 'dist/iD.js'
54     end
55   end
56 end