Sha256: c7890f174b96e4f6419545a812de3eb434e94b3dd2a2152c2700ae658c619f2e
Contents?: true
Size: 1.25 KB
Versions: 4
Compression:
Stored size: 1.25 KB
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 ENV['DUMMY_PATH'] = 'test/dummy' # ENV['ENGINE'] # ENV['TEMPLATE'] require 'rails/dummy/tasks' require 'bundler/gem_tasks' 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 # Check for the existence of an executable. def check(exec, name, url) return unless `which #{exec}`.empty? puts "#{name} not found.\nInstall it from #{url}" exit end desc 'build the docco documentation' task :doc do check 'groc', 'groc', 'https://github.com/nevir/groc' system 'groc' end require 'rake/testtask' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.libs << 'test' t.pattern = 'test/**/*_test.rb' t.verbose = false end task :default => :test
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
railsy_backbone-0.0.5 | Rakefile |
railsy_backbone-0.0.4 | Rakefile |
railsy_backbone-0.0.3 | Rakefile |
railsy_backbone-0.0.2 | Rakefile |