Sha256: 8f96a48a2aadeb08862653ea6210eb2f68c10b95e207c0ee7be9c1076a3d63ea
Contents?: true
Size: 733 Bytes
Versions: 1
Compression:
Stored size: 733 Bytes
Contents
#!/usr/bin/env rake begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end require 'bundler/gem_tasks' task :default => :test namespace :backbone do desc "Download the latest released versions of underscore and backbone.js" task :download_latest do files = { 'underscore.js'=>'http://underscorejs.org/underscore.js', 'backbone.js' => 'http://backbonejs.org/backbone.js' } vendor_dir = "vendor/assets/javascripts" require 'open-uri' files.each do |local,remote| puts "Downloading #{local}" File.open "#{vendor_dir}/#{local}", 'w' do |f| f.write open(remote).read end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
railsy_backbone-0.0.1 | Rakefile |