Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 28 lines (22 sloc) 0.641 kB
a524b9b @nathansobo Got rid of old SVN tags and trunk dirs and moved everything to root.
authored
1 require 'rubygems'
2 require 'rake'
3 require 'rake/gempackagetask'
d9d3e23 @jeremy Remove old vendored rspec from load path
jeremy authored
4 require 'spec/rake/spectask'
a524b9b @nathansobo Got rid of old SVN tags and trunk dirs and moved everything to root.
authored
5
6 task :default => :spec
7 Spec::Rake::SpecTask.new do |t|
8 t.pattern = 'spec/**/*spec.rb'
9 end
10
aa7f754 @cjheath Setup the gem to auto-build on github by adding a treetop.gemspec
cjheath authored
11 load "./treetop.gemspec"
12 Rake::GemPackageTask.new($gemspec) do |pkg|
a524b9b @nathansobo Got rid of old SVN tags and trunk dirs and moved everything to root.
authored
13 pkg.need_tar = true
14 end
da06c7b @cjheath Changed expectations regarding string literals for Ruby 1.9.1
cjheath authored
15
89baa8a @jeremy Eliminate middleman rake task. Depend directly on the metagrammar file.
jeremy authored
16 task :spec => 'lib/treetop/compiler/metagrammar.treetop'
17 file 'lib/treetop/compiler/metagrammar.treetop' do |t|
0440003 @jgarber Add task to regenerate metagrammar.rb from current parser.
jgarber authored
18 unless $bootstrapped_gen_1_metagrammar
89baa8a @jeremy Eliminate middleman rake task. Depend directly on the metagrammar file.
jeremy authored
19 load File.expand_path('../lib/treetop/bootstrap_gen_1_metagrammar.rb', __FILE__)
0440003 @jgarber Add task to regenerate metagrammar.rb from current parser.
jgarber authored
20 end
89baa8a @jeremy Eliminate middleman rake task. Depend directly on the metagrammar file.
jeremy authored
21
0440003 @jgarber Add task to regenerate metagrammar.rb from current parser.
jgarber authored
22 Treetop::Compiler::GrammarCompiler.new.compile(METAGRAMMAR_PATH)
23 end
24
da06c7b @cjheath Changed expectations regarding string literals for Ruby 1.9.1
cjheath authored
25 task :version do
26 puts RUBY_VERSION
27 end
Something went wrong with that request. Please try again.