Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 46 lines (37 sloc) 1.253 kb
a524b9b @nathansobo Got rid of old SVN tags and trunk dirs and moved everything to root.
authored
1 require 'rubygems'
130477c @cjheath Updated Gemfile/Rakefile to work with JRuby. rr still broken on 1.9.2
cjheath authored
2 require 'bundler'
3 Bundler.setup(:default, :development)
a524b9b @nathansobo Got rid of old SVN tags and trunk dirs and moved everything to root.
authored
4 require 'rake'
5 require 'rake/gempackagetask'
8055209 @hipe Change Rakefile to work with rspec 2.3
hipe authored
6 require 'rspec/core/rake_task'
a524b9b @nathansobo Got rid of old SVN tags and trunk dirs and moved everything to root.
authored
7
8 task :default => :spec
8055209 @hipe Change Rakefile to work with rspec 2.3
hipe authored
9 RSpec::Core::RakeTask.new do |t|
a524b9b @nathansobo Got rid of old SVN tags and trunk dirs and moved everything to root.
authored
10 t.pattern = 'spec/**/*spec.rb'
8055209 @hipe Change Rakefile to work with rspec 2.3
hipe authored
11 # t.libs << 'spec' # @todo not sure what this did in the original rspec 1.3
a524b9b @nathansobo Got rid of old SVN tags and trunk dirs and moved everything to root.
authored
12 end
13
aa7f754 @cjheath Setup the gem to auto-build on github by adding a treetop.gemspec
cjheath authored
14 load "./treetop.gemspec"
15 Rake::GemPackageTask.new($gemspec) do |pkg|
a524b9b @nathansobo Got rid of old SVN tags and trunk dirs and moved everything to root.
authored
16 pkg.need_tar = true
17 end
da06c7b @cjheath Changed expectations regarding string literals for Ruby 1.9.1
cjheath authored
18
89baa8a @jeremy Eliminate middleman rake task. Depend directly on the metagrammar file.
jeremy authored
19 task :spec => 'lib/treetop/compiler/metagrammar.treetop'
20 file 'lib/treetop/compiler/metagrammar.treetop' do |t|
0440003 @jgarber Add task to regenerate metagrammar.rb from current parser.
jgarber authored
21 unless $bootstrapped_gen_1_metagrammar
89baa8a @jeremy Eliminate middleman rake task. Depend directly on the metagrammar file.
jeremy authored
22 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
23 end
89baa8a @jeremy Eliminate middleman rake task. Depend directly on the metagrammar file.
jeremy authored
24
0440003 @jgarber Add task to regenerate metagrammar.rb from current parser.
jgarber authored
25 Treetop::Compiler::GrammarCompiler.new.compile(METAGRAMMAR_PATH)
26 end
27
da06c7b @cjheath Changed expectations regarding string literals for Ruby 1.9.1
cjheath authored
28 task :version do
29 puts RUBY_VERSION
30 end
56ab4c8 @cjheath Updated website and added missing files for it
cjheath authored
31
32 desc 'Generate website files'
33 task :website_generate do
34 `cd doc; ruby ./site.rb`
35 end
36
37 desc 'Upload website files'
38 task :website_upload do
39 rubyforge_config_file = "#{ENV['HOME']}/.rubyforge/user-config.yml"
40 rubyforge_config = YAML.load_file(rubyforge_config_file)
41 `rsync -aCv doc/site/ #{rubyforge_config['username']}@rubyforge.org:/var/www/gforge-projects/treetop/`
42 end
43
44 desc 'Generate and upload website files'
45 task :website => [:website_generate, :website_upload]
Something went wrong with that request. Please try again.