Sha256: ffd3eb272c13490a3a2466f3b32fc395072c76ecccd78114059d3fea337c3c4f

Contents?: true

Size: 1.86 KB

Versions: 29

Compression:

Stored size: 1.86 KB

Contents

require 'rubygems'
require 'bundler'
Bundler.setup(:default, :development)
require 'rake'
require 'jeweler'
require 'rspec/core/rake_task'
require File.expand_path("../lib/treetop/version", __FILE__)

Jeweler::Tasks.new do |gem|
  gem.name = "treetop"
  gem.version = Treetop::VERSION::STRING
  gem.author = ["Nathan Sobo", "Clifford Heath"]
  gem.license = "MIT"
  gem.email = "cliffordheath@gmail.com"
  gem.homepage = "https://github.com/cjheath/treetop"
  gem.platform = Gem::Platform::RUBY
  gem.summary = "A Ruby-based text parsing and interpretation DSL"
  gem.files = ["LICENSE", "README.md", "Rakefile", "treetop.gemspec", "{spec,lib,bin,doc,examples}/**/*"].map{|p| Dir[p]}.flatten
  gem.bindir = "bin"
  gem.executables = ["tt"]
  gem.require_path = "lib"
  gem.autorequire = "treetop"
  gem.has_rdoc = false
  gem.add_dependency "polyglot", ">= 0.3.1"
end
Jeweler::RubygemsDotOrgTasks.new

task :default => :spec
RSpec::Core::RakeTask.new do |t|
  t.pattern = 'spec/**/*spec.rb'
  # t.libs << 'spec' # @todo not sure what this did in the original rspec 1.3
end

task :spec => 'lib/treetop/compiler/metagrammar.treetop'
file 'lib/treetop/compiler/metagrammar.treetop' do |t|
  unless $bootstrapped_gen_1_metagrammar
    load File.expand_path('../lib/treetop/bootstrap_gen_1_metagrammar.rb', __FILE__)
  end

  Treetop::Compiler::GrammarCompiler.new.compile(METAGRAMMAR_PATH)
end

task :version do
  puts RUBY_VERSION
end

desc 'Generate website files'
task :website_generate do
  `cd doc; ruby ./site.rb`
end

desc 'Upload website files'
task :website_upload do
  rubyforge_config_file = "#{ENV['HOME']}/.rubyforge/user-config.yml"
  rubyforge_config = YAML.load_file(rubyforge_config_file)
  `rsync -aCv doc/site/ #{rubyforge_config['username']}@rubyforge.org:/var/www/gforge-projects/treetop/`
end

desc 'Generate and upload website files'
task :website => [:website_generate, :website_upload]

Version data entries

29 entries across 28 versions & 9 rubygems

Version Path
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/Rakefile
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/treetop-1.4.12/Rakefile
challah-1.0.0 vendor/bundle/gems/treetop-1.4.14/Rakefile
swipe-rails-0.0.5 vendor/bundle/gems/treetop-1.4.14/Rakefile
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/Rakefile
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/Rakefile
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/Rakefile
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/Rakefile
treetop-1.4.14 Rakefile
challah-1.0.0.beta3 vendor/bundle/gems/treetop-1.4.12/Rakefile
fc-webicons-0.0.4 vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/Rakefile
challah-1.0.0.beta2 vendor/bundle/gems/treetop-1.4.12/Rakefile
challah-1.0.0.beta vendor/bundle/gems/treetop-1.4.12/Rakefile
fc-webicons-0.0.3 vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/Rakefile
fc-webicons-0.0.2 vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/Rakefile
fc-webicons-0.0.1 vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/Rakefile
active_mailer-0.0.5 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/Rakefile
active_mailer-0.0.4 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/Rakefile
active_mailer-0.0.3 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/Rakefile
challah-0.9.1.beta.3 vendor/bundle/gems/treetop-1.4.12/Rakefile