Skip to content
This repository
Newer
Older
100644 60 lines (52 sloc) 1.887 kb
a524b9ba »
2008-01-11 Got rid of old SVN tags and trunk dirs and moved everything to root.
1 require 'rubygems'
130477c0 » cjheath
2011-01-30 Updated Gemfile/Rakefile to work with JRuby. rr still broken on 1.9.2
2 require 'bundler'
3 Bundler.setup(:default, :development)
a524b9ba »
2008-01-11 Got rid of old SVN tags and trunk dirs and moved everything to root.
4 require 'rake'
138dc991 » cjheath
2011-07-27 Switch to Jeweler
5 require 'jeweler'
80552097 » hipe
2010-12-15 Change Rakefile to work with rspec 2.3
6 require 'rspec/core/rake_task'
138dc991 » cjheath
2011-07-27 Switch to Jeweler
7 require File.expand_path("../lib/treetop/version", __FILE__)
8
9 Jeweler::Tasks.new do |gem|
10 gem.name = "treetop"
11 gem.version = Treetop::VERSION::STRING
12 gem.author = "Nathan Sobo"
13 gem.license = "MIT"
14 gem.email = "cliffordheath@gmail.com"
15 gem.homepage = "http://functionalform.blogspot.com"
16 gem.platform = Gem::Platform::RUBY
17 gem.summary = "A Ruby-based text parsing and interpretation DSL"
18 gem.files = ["LICENSE", "README.md", "Rakefile", "treetop.gemspec", "{spec,lib,bin,doc,examples}/**/*"].map{|p| Dir[p]}.flatten
19 gem.bindir = "bin"
20 gem.executables = ["tt"]
21 gem.require_path = "lib"
22 gem.autorequire = "treetop"
23 gem.has_rdoc = false
24 gem.add_dependency "polyglot", ">= 0.3.1"
25 end
26 Jeweler::RubygemsDotOrgTasks.new
a524b9ba »
2008-01-11 Got rid of old SVN tags and trunk dirs and moved everything to root.
27
28 task :default => :spec
80552097 » hipe
2010-12-15 Change Rakefile to work with rspec 2.3
29 RSpec::Core::RakeTask.new do |t|
a524b9ba »
2008-01-11 Got rid of old SVN tags and trunk dirs and moved everything to root.
30 t.pattern = 'spec/**/*spec.rb'
80552097 » hipe
2010-12-15 Change Rakefile to work with rspec 2.3
31 # t.libs << 'spec' # @todo not sure what this did in the original rspec 1.3
a524b9ba »
2008-01-11 Got rid of old SVN tags and trunk dirs and moved everything to root.
32 end
33
89baa8a4 » jeremy
2010-03-07 Eliminate middleman rake task. Depend directly on the metagrammar file.
34 task :spec => 'lib/treetop/compiler/metagrammar.treetop'
35 file 'lib/treetop/compiler/metagrammar.treetop' do |t|
0440003c » jgarber
2010-01-17 Add task to regenerate metagrammar.rb from current parser.
36 unless $bootstrapped_gen_1_metagrammar
89baa8a4 » jeremy
2010-03-07 Eliminate middleman rake task. Depend directly on the metagrammar file.
37 load File.expand_path('../lib/treetop/bootstrap_gen_1_metagrammar.rb', __FILE__)
0440003c » jgarber
2010-01-17 Add task to regenerate metagrammar.rb from current parser.
38 end
89baa8a4 » jeremy
2010-03-07 Eliminate middleman rake task. Depend directly on the metagrammar file.
39
0440003c » jgarber
2010-01-17 Add task to regenerate metagrammar.rb from current parser.
40 Treetop::Compiler::GrammarCompiler.new.compile(METAGRAMMAR_PATH)
41 end
42
da06c7b9 » cjheath
2009-11-21 Changed expectations regarding string literals for Ruby 1.9.1
43 task :version do
44 puts RUBY_VERSION
45 end
56ab4c8d » cjheath
2010-11-04 Updated website and added missing files for it
46
47 desc 'Generate website files'
48 task :website_generate do
49 `cd doc; ruby ./site.rb`
50 end
51
52 desc 'Upload website files'
53 task :website_upload do
54 rubyforge_config_file = "#{ENV['HOME']}/.rubyforge/user-config.yml"
55 rubyforge_config = YAML.load_file(rubyforge_config_file)
56 `rsync -aCv doc/site/ #{rubyforge_config['username']}@rubyforge.org:/var/www/gforge-projects/treetop/`
57 end
58
59 desc 'Generate and upload website files'
60 task :website => [:website_generate, :website_upload]
Something went wrong with that request. Please try again.