forked from rails/journey
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
35 lines (28 loc) · 841 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- ruby -*-
require 'rubygems'
require 'hoe'
Hoe.plugins.delete :rubyforge
Hoe.plugin :minitest
Hoe.plugin :gemspec # `gem install hoe-gemspec`
Hoe.plugin :git # `gem install hoe-git`
Hoe.plugin :bundler # `gem install hoe-bundler`
Hoe.spec 'journey' do
developer('Aaron Patterson', 'aaron@tenderlovemaking.com')
self.readme_file = 'README.rdoc'
self.history_file = 'CHANGELOG.rdoc'
self.extra_rdoc_files = FileList['*.rdoc']
self.extra_dev_deps += [
["racc", ">= 1.4.6"],
["rdoc", "~> 3.11"],
["json"],
]
self.spec_extras = {
:required_ruby_version => '>= 1.9.3'
}
end
rule '.rb' => '.y' do |t|
sh "racc -l -o #{t.name} #{t.source}"
end
task :compile => "lib/journey/parser.rb"
Rake::Task[:test].prerequisites.unshift "lib/journey/parser.rb"
# vim: syntax=ruby