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