Sha256: e3ccd7e2f4ba3f9de0f23306ea0da7583aefc80d7e330bb63d262165a8a1011f
Contents?: true
Size: 696 Bytes
Versions: 9
Compression:
Stored size: 696 Bytes
Contents
require 'bundler/gem_tasks' require 'fileutils' desc 'Update the Bootstrap-slider Javascript and CSS files' task :update do def download(version) base_url = 'https://raw.githubusercontent.com/seiyria/bootstrap-slider' puts "Downlading Bootstrap-slider #{version} ..." `curl -o vendor/assets/javascripts/bootstrap-slider.js \ #{base_url}/v#{version}/js/bootstrap-slider.js` `curl -o vendor/assets/stylesheets/bootstrap-slider.css \ #{base_url}/v#{version}/dist/css/bootstrap-slider.css` end FileUtils.mkdir_p('vendor/assets/javascripts') FileUtils.mkdir_p('vendor/assets/stylesheets') download(BootstrapSlider::Rails::VERSION) puts "\e[32mDone!\e[0m" end
Version data entries
9 entries across 9 versions & 1 rubygems