]> git.openstreetmap.org Git - rails.git/blob - Vendorfile
Merge pull request #25 from zerebubuth/routing-ui-tweaks
[rails.git] / Vendorfile
1 folder 'vendor/assets' do
2   folder 'jquery' do
3     file 'jquery.cookie.js', 'https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.js'
4     file 'jquery.throttle-debounce.js', 'https://raw.github.com/cowboy/jquery-throttle-debounce/v1.1/jquery.ba-throttle-debounce.js'
5     file 'jquery.simulate.js', 'https://raw.github.com/jquery/jquery-ui/master/tests/jquery.simulate.js'
6   end
7
8   folder 'bootstrap' do
9     file 'bootstrap.tooltip.js', 'https://raw.github.com/twbs/bootstrap/v2.3.2/js/bootstrap-tooltip.js'
10     file 'bootstrap.dropdown.js', 'https://raw.github.com/twbs/bootstrap/v2.3.2/js/bootstrap-dropdown.js'
11   end
12
13   folder 'leaflet' do
14     file 'leaflet.js', 'http://cdn.leafletjs.com/leaflet-0.7.3/leaflet-src.js'
15     file 'leaflet.css', 'http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css'
16
17     [ 'layers.png', 'layers-2x.png',
18       'marker-icon.png', 'marker-icon-2x.png',
19       'marker-shadow.png' ].each do |image|
20       file "images/#{image}", "http://cdn.leafletjs.com/leaflet-0.7.3/images/#{image}"
21     end
22
23     from 'git://github.com/kajic/leaflet-locationfilter.git' do
24       file 'leaflet.locationfilter.css', 'src/locationfilter.css'
25       file 'leaflet.locationfilter.js', 'src/locationfilter.js'
26       folder 'img', 'src/img'
27     end
28
29     from 'git://github.com/domoritz/leaflet-locatecontrol.git' do
30       file 'leaflet.locate.js', 'src/L.Control.Locate.js'
31     end
32
33     from 'git://github.com/jfirebaugh/leaflet-osm.git' do
34       file 'leaflet.osm.js', 'leaflet-osm.js'
35     end
36   end
37
38   folder 'ohauth' do
39     from 'git://github.com/osmlab/ohauth.git' do
40       file 'ohauth.js'
41     end
42   end
43
44   folder 'iD' do
45     from 'git://github.com/openstreetmap/iD', :branch => 'release' 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") %>)') }
50       end
51       file 'iD.js', 'dist/iD.js'
52     end
53   end
54
55   folder 'javascripts' do
56     file 'html5shiv.js', 'https://raw.github.com/aFarkas/html5shiv/master/src/html5shiv.js'
57   end
58 end