Skip to content

Commit

Permalink
Setup the gem to auto-build on github by adding a treetop.gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
cjheath committed Nov 28, 2008
1 parent 14fd299 commit aa7f754
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
19 changes: 2 additions & 17 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,8 @@ Spec::Rake::SpecTask.new do |t|
t.pattern = 'spec/**/*spec.rb'
end

gemspec = Gem::Specification.new do |s|
s.name = "treetop"
s.version = "1.2.5"
s.author = "Nathan Sobo"
s.email = "nathansobo@gmail.com"
s.homepage = "http://functionalform.blogspot.com"
s.platform = Gem::Platform::RUBY
s.summary = "A Ruby-based text parsing and interpretation DSL"
s.files = FileList["README", "Rakefile", "{test,lib,bin,doc,examples}/**/*"].to_a
s.bindir = "bin"
s.executables = ["tt"]
s.require_path = "lib"
s.autorequire = "treetop"
s.has_rdoc = false
s.add_dependency "polyglot"
end
load "./treetop.gemspec"

Rake::GemPackageTask.new(gemspec) do |pkg|
Rake::GemPackageTask.new($gemspec) do |pkg|
pkg.need_tar = true
end
17 changes: 17 additions & 0 deletions treetop.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$gemspec = Gem::Specification.new do |s|
s.name = "treetop"
s.version = "1.2.5"
s.author = "Nathan Sobo"
s.email = "nathansobo@gmail.com"
s.homepage = "http://functionalform.blogspot.com"
s.platform = Gem::Platform::RUBY
s.summary = "A Ruby-based text parsing and interpretation DSL"
s.files = FileList["README", "Rakefile", "{test,lib,bin,doc,examples}/**/*"].to_a
s.bindir = "bin"
s.executables = ["tt"]
s.require_path = "lib"
s.autorequire = "treetop"
s.has_rdoc = false
s.add_dependency "polyglot"
end

0 comments on commit aa7f754

Please sign in to comment.