Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (15 sloc) 422 Bytes
require 'bundler'
require 'rdoc/task'
require "rspec/core/rake_task"
Bundler::GemHelper.install_tasks
Rake::RDocTask.new
namespace :rspec do
RSpec::Core::RakeTask.new
end
desc "Run Specs"
task 'specs' => [:lexer, :'rspec:spec']
task :lexer => 'lib/callisto/format.kpeg.rb'
file 'lib/callisto/format.kpeg.rb' => 'lib/callisto/format.kpeg' do |t|
name = t.prerequisites[0]
sh "bundle exec kpeg -f #{name}"
end