Sha256: 1b52232e9d13945fb005651b4fd0812a4ec61240764c252226d4d9a83e1b15b1
Contents?: true
Size: 919 Bytes
Versions: 3
Compression:
Stored size: 919 Bytes
Contents
begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end require 'rdoc/task' RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'PBW' rdoc.options << '--line-numbers' rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') end 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 Bundler::GemHelper.install_tasks
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pbw-0.1.1 | Rakefile |
pbw-0.1.0 | Rakefile |
pbw-0.0.1 | Rakefile |