]> git.openstreetmap.org Git - rails.git/blob - Vendorfile
Cast the locale to a string
[rails.git] / Vendorfile
1 folder 'vendor/assets' do
2   folder 'leaflet' do
3     from 'git://github.com/Leaflet/Leaflet.git', :tag => 'v0.5' do
4       file 'leaflet.css', 'dist/leaflet.css'
5       file 'leaflet.ie.css', 'dist/leaflet.ie.css'
6       file 'leaflet.js', 'dist/leaflet-src.js'
7       folder 'images', 'dist/images'
8     end
9
10     from 'git://github.com/kajic/leaflet-locationfilter.git' do
11       file 'leaflet.locationfilter.css', 'src/locationfilter.css'
12       file 'leaflet.locationfilter.js', 'src/locationfilter.js'
13       folder 'img', 'src/img'
14     end
15
16     from 'git://github.com/kartena/Leaflet.Pancontrol.git' do
17       file 'leaflet.pan.js', 'src/L.Control.Pan.js'
18     end
19
20     from 'git://github.com/kartena/Leaflet.zoomslider.git' do
21       file 'leaflet.zoom.js', 'src/L.Control.Zoomslider.js'
22     end
23
24     from 'git://github.com/jfirebaugh/leaflet-osm.git' do
25       file 'leaflet.osm.js', 'leaflet-osm.js'
26     end
27   end
28
29   folder 'jquery' do
30     from 'git://github.com/jevin/Autogrow-Textarea.git' do
31       file 'jquery.autogrowtextarea.js', 'jquery.autogrowtextarea.js'
32     end  
33   end
34
35   folder 'ohauth' do
36     from 'git://github.com/osmlab/ohauth.git' do
37       file 'ohauth.js'
38     end
39   end
40
41   folder 'iD' do
42     from 'git://github.com/systemed/iD', :branch => '1-0-stable' do
43       folder 'iD/img', 'dist/img'
44       folder 'iD/locales', 'dist/locales'
45       file 'iD.css.erb', 'dist/iD.css' do |path|
46         rewrite(path) { |content| content.gsub(/url\('?(img\/[^')]+)'?\)/, 'url(<%= asset_path("iD/\1") %>)') }
47       end
48       file 'iD.js', 'dist/iD.js'
49     end
50   end
51 end