Sha256: 62f78e835c3c0180be83940e09780e711f821d9d9fc2d634daf476f0f1854bfa
Contents?: true
Size: 772 Bytes
Versions: 40
Compression:
Stored size: 772 Bytes
Contents
require "rubygems" require 'rubygems/user_interaction' require 'rake/testtask' require 'ci/reporter/rake/test_unit' require 'bundler/gem_tasks' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/*_test.rb' test.verbose = true end rule '.rb' => '.y' do |t| sh "racc -l -o #{t.name} #{t.source}" end desc "Compile the racc parser from the grammar" task :compile => ["lib/sparkql/parser.rb", "grammar"] desc "Generate grammar Documenation" task :grammar do puts "Generating grammar documentation..." sh "ruby script/markdownify.rb > GRAMMAR.md" end Rake::Task[:test].prerequisites.unshift "lib/sparkql/parser.rb" Rake::Task[:test].prerequisites.unshift "grammar" desc 'Default: run unit tests.' task :default => :test
Version data entries
40 entries across 40 versions & 1 rubygems