Sha256: 66b6091d3ac094fda1dc17d0d53ca424ab444c3dac6a3a09d792c5e6974137d5

Contents?: true

Size: 1.3 KB

Versions: 8

Compression:

Stored size: 1.3 KB

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',
      'backbone_datalink.js' => 'https://raw.github.com/codebrew/backbone-rails/master/vendor/assets/javascripts/backbone_datalink.js',
      'backbone_rails_sync.js' => 'https://raw.github.com/codebrew/backbone-rails/master/vendor/assets/javascripts/backbone_rails_sync.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

namespace :compass do
  desc "Compile scss in public with compass"
  task :compile do
    system "cd public && compass compile"
  end
end


Bundler::GemHelper.install_tasks

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pbw-0.0.10 Rakefile
pbw-0.0.9 Rakefile
pbw-0.0.8 Rakefile
pbw-0.0.7 Rakefile
pbw-0.0.6 Rakefile
pbw-0.0.5 Rakefile
pbw-0.0.4 Rakefile
pbw-0.0.3 Rakefile