Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Setup the gem to auto-build on github by adding a treetop.gemspec

  • Loading branch information...
commit aa7f7544ae8e9c3418a0f4a0e7625c6d9d02bbea 1 parent 14fd299
@cjheath cjheath authored
Showing with 19 additions and 17 deletions.
  1. +2 −17 Rakefile
  2. +17 −0 treetop.gemspec
View
19 Rakefile
@@ -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
View
17 treetop.gemspec
@@ -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
+
Please sign in to comment.
Something went wrong with that request. Please try again.