Rakefile 773 B

1234567891011121314151617181920212223242526272829303132
  1. # -*- ruby -*-
  2. require 'rubygems'
  3. require 'hoe'
  4. Hoe.plugins.delete :rubyforge
  5. Hoe.plugin :minitest
  6. Hoe.plugin :gemspec # `gem install hoe-gemspec`
  7. Hoe.plugin :git # `gem install hoe-git`
  8. Hoe.plugin :bundler # `gem install hoe-bundler`
  9. Hoe.spec 'journey' do
  10. developer('Aaron Patterson', 'aaron@tenderlovemaking.com')
  11. self.readme_file = 'README.rdoc'
  12. self.history_file = 'CHANGELOG.rdoc'
  13. self.extra_rdoc_files = FileList['*.rdoc']
  14. self.extra_dev_deps += [
  15. ["racc", ">= 1.4.6"],
  16. ["rdoc", "~> 3.11"],
  17. ["json"],
  18. ]
  19. end
  20. rule '.rb' => '.y' do |t|
  21. sh "racc -l -o #{t.name} #{t.source}"
  22. end
  23. task :compile => "lib/journey/parser.rb"
  24. Rake::Task[:test].prerequisites.unshift "lib/journey/parser.rb"
  25. # vim: syntax=ruby