]> git.openstreetmap.org Git - rails.git/blob - Vendorfile
fix rubocop warnings
[rails.git] / Vendorfile
1 folder 'vendor/assets' do
2   folder 'jquery' do
3     file 'jquery.cookie.js', 'https://raw.githubusercontent.com/carhartl/jquery-cookie/master/src/jquery.cookie.js'
4     file 'jquery.throttle-debounce.js', 'https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/v1.1/jquery.ba-throttle-debounce.js'
5     file 'jquery.simulate.js', 'https://raw.githubusercontent.com/jquery/jquery-simulate/1.0.0/jquery.simulate.js'
6   end
7
8   folder 'bootstrap' do
9     file 'bootstrap.tooltip.js', 'https://raw.githubusercontent.com/twbs/bootstrap/v3.3.2/js/tooltip.js'
10     file 'bootstrap.dropdown.js', 'https://raw.githubusercontent.com/twbs/bootstrap/v3.3.2/js/dropdown.js'
11   end
12
13   folder 'leaflet' do
14     file 'leaflet.js', 'https://unpkg.com/leaflet@1.0.1/dist/leaflet-src.js'
15     file 'leaflet.css', 'https://unpkg.com/leaflet@1.0.1/dist/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}", "https://unpkg.com/leaflet@1.0.1/dist/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', :tag => 'v0.54.0' 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
37     from 'git://github.com/jieter/Leaflet.encoded.git', :tag => '0.0.8' do
38       file 'leaflet.polyline.js', 'Polyline.encoded.js'
39     end
40   end
41
42   folder 'ohauth' do
43     from 'git://github.com/osmlab/ohauth.git' do
44       file 'ohauth.js'
45     end
46   end
47
48   folder 'iD' do
49     from 'git://github.com/openstreetmap/iD', :branch => 'release' do
50       folder 'iD/img', 'dist/img'
51       folder 'iD/locales', 'dist/locales'
52       folder 'iD/traffico', 'dist/traffico'
53
54       file 'iD.css.erb', 'dist/iD.css' do |path|
55         rewrite(path) do |content|
56           content.gsub(/url\('?(img\/[^')]+)'?\)/, 'url(<%= asset_path("iD/\1") %>)')
57         end
58       end
59
60       file 'iD/traffico/stylesheets/traffico.css.erb', 'dist/traffico/stylesheets/traffico.css' do |path|
61         rewrite(path) do |content|
62           content.gsub(/url\("?\.\.\/([^#?")]+)([^"]*)"?\)/, 'url(<%= asset_path("iD/traffico/\1") %>\2)')
63         end
64       end
65
66       File.delete('vendor/assets/iD/iD/traffico/stylesheets/traffico.css')
67
68       file 'iD.js', 'dist/iD.js'
69       file 'presets.js', 'dist/presets.js'
70       file 'imagery.js', 'dist/imagery.js'
71     end
72   end
73
74   folder 'javascripts' do
75     file 'html5shiv.js', 'https://raw.githubusercontent.com/aFarkas/html5shiv/master/src/html5shiv.js'
76   end
77 end