]> git.openstreetmap.org Git - rails.git/blobdiff - Vendorfile
Move leaflet.contextmenu 3rd party code to "vendor" folder
[rails.git] / Vendorfile
index 7da31ce46338996866a47fc26b1456f15f34eaa6..6826e8e16a175fd29d16272bab139c13e957d420 100644 (file)
@@ -6,8 +6,8 @@ folder 'vendor/assets' do
   end
 
   folder 'bootstrap' do
-    file 'bootstrap.tooltip.js', 'https://raw.githubusercontent.com/twbs/bootstrap/v2.3.2/js/bootstrap-tooltip.js'
-    file 'bootstrap.dropdown.js', 'https://raw.githubusercontent.com/twbs/bootstrap/v2.3.2/js/bootstrap-dropdown.js'
+    file 'bootstrap.tooltip.js', 'https://raw.githubusercontent.com/twbs/bootstrap/v3.3.2/js/tooltip.js'
+    file 'bootstrap.dropdown.js', 'https://raw.githubusercontent.com/twbs/bootstrap/v3.3.2/js/dropdown.js'
   end
 
   folder 'leaflet' do
@@ -20,6 +20,11 @@ folder 'vendor/assets' do
       file "images/#{image}", "http://cdn.leafletjs.com/leaflet-0.7.3/images/#{image}"
     end
 
+    from 'git://github.com/aratcliffe/Leaflet.contextmenu.git' do
+      file 'leaflet.contextmenu.js', 'dist/leaflet.contextmenu.js'
+      file 'leaflet.contextmenu.css', 'dist/leaflet.contextmenu.css'
+    end
+
     from 'git://github.com/kajic/leaflet-locationfilter.git' do
       file 'leaflet.locationfilter.css', 'src/locationfilter.css'
       file 'leaflet.locationfilter.js', 'src/locationfilter.js'
@@ -53,6 +58,8 @@ folder 'vendor/assets' do
         rewrite(path) { |content| content.gsub(/url\('?(img\/[^')]+)'?\)/, 'url(<%= asset_path("iD/\1") %>)') }
       end
       file 'iD.js', 'dist/iD.js'
+      file 'presets.js', 'dist/presets.js'
+      file 'imagery.js', 'dist/imagery.js'
     end
   end