breaking up distribution tasks; moving version to a template to have a simpler concat function

This commit is contained in:
Davis W. Frank
2011-06-14 08:30:14 -07:00
parent 2ba0aa371c
commit e59171935f
9 changed files with 93 additions and 23 deletions

View File

@@ -5,11 +5,20 @@ Dir["#{File.dirname(__FILE__)}/tasks/**/*.rb"].each do |file|
require file
end
task :default => :spec
task :require_pages_submodule do
raise "Submodule for Github Pages isn't present. Run git submodule update --init" unless File.exist?('pages/download.html')
end
task :require_node do
raise "\nNode.js is required to develop code for Jasmine. Please visit http://nodejs.org to install.\n\n" unless node_installed?
end
task :default => :spec
def node_installed?
`which node` =~ /node/
end
#namespace :jasmine do
#