Permalink
Browse files

Switch to Jeweler

  • Loading branch information...
cjheath committed Jul 27, 2011
1 parent f88dfea commit 138dc99185e409ab9771ddf0200e355327d0527b
Showing with 22 additions and 6 deletions.
  1. +1 −0 Gemfile
  2. +21 −6 Rakefile
View
@@ -3,6 +3,7 @@ source :rubygems
gem "polyglot"
group :development do
+ gem "jeweler"
gem "activesupport"
gem "i18n", "~> 0.5.0"
gem "rr", "~> 0.10.2"
View
@@ -2,20 +2,35 @@ require 'rubygems'
require 'bundler'
Bundler.setup(:default, :development)
require 'rake'
-require 'rubygems/package_task'
+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"
+ gem.license = "MIT"
+ gem.email = "cliffordheath@gmail.com"
+ gem.homepage = "http://functionalform.blogspot.com"
+ 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
-load "./treetop.gemspec"
-Gem::PackageTask.new($gemspec) do |pkg|
- pkg.need_tar = true
-end
-
task :spec => 'lib/treetop/compiler/metagrammar.treetop'
file 'lib/treetop/compiler/metagrammar.treetop' do |t|
unless $bootstrapped_gen_1_metagrammar

0 comments on commit 138dc99

Please sign in to comment.