Sha256: caead517dde4d5a4f2fea970ee37fda5e560b21e157c7d516d50ad267bd37981
Contents?: true
Size: 678 Bytes
Versions: 1
Compression:
Stored size: 678 Bytes
Contents
require 'bundler/gem_tasks' require 'fileutils' desc 'Update the Switchery Javascript and CSS files' task :update_switchery do def download_switchery(version) base_url = 'https://raw.githubusercontent.com/abpetkov/switchery' puts "Downlading Switchery #{version} ..." `curl -o vendor/assets/javascripts/switchery.js \ #{base_url}/#{version}/dist/switchery.js` `curl -o vendor/assets/stylesheets/switchery.css \ #{base_url}/#{version}/dist/switchery.css` end FileUtils.mkdir_p('vendor/assets/javascripts') FileUtils.mkdir_p('vendor/assets/stylesheets') download_switchery(Switchery::Rails::SWITCHERY_VERSION) puts "\e[32mDone!\e[0m" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
switchery-rails-0.1.0 | Rakefile |