Navigation Menu

Skip to content

Commit

Permalink
Polyglot is no longer forced upon people. 2 minor gemspec updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Mar 30, 2009
1 parent c328b5d commit 6606562
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
7 changes: 7 additions & 0 deletions History.txt
@@ -1,3 +1,10 @@
== 1.2.6 (In Git)

* 2 minor enhancement:
* Set the treetop rubyforge project in gemspec
* Deprecated autorequire no longer used in gemspec
* Polyglot is no longer loaded automatically - it must be done explicitly with require 'treetop/polyglot'

== 1.2.5 2009-03-10

* 1 minor enhancement:
Expand Down
3 changes: 0 additions & 3 deletions lib/treetop.rb
Expand Up @@ -6,6 +6,3 @@
require File.join(TREETOP_ROOT, "ruby_extensions")
require File.join(TREETOP_ROOT, "runtime")
require File.join(TREETOP_ROOT, "compiler")

require 'polyglot'
Polyglot.register(["treetop", "tt"], Treetop)
2 changes: 2 additions & 0 deletions lib/treetop/polyglot.rb
@@ -0,0 +1,2 @@
require 'polyglot'
Polyglot.register(["treetop", "tt"], Treetop)
6 changes: 3 additions & 3 deletions treetop.gemspec
Expand Up @@ -7,12 +7,12 @@ $gemspec = Gem::Specification.new do |s|
s.homepage = "http://functionalform.blogspot.com"
s.platform = Gem::Platform::RUBY
s.summary = "A Ruby-based text parsing and interpretation DSL"
s.files = ["README", "Rakefile", "{test,lib,bin,doc,examples}/**/*"].map{|p| Dir[p]}.flatten
s.files = ["README", "History.txt", "Rakefile", "{test,lib,bin,doc,examples}/**/*"].map{|p| Dir[p]}.flatten
s.bindir = "bin"
s.executables = ["tt"]
s.rubyforge_project = "treetop"
s.require_path = "lib"
s.autorequire = "treetop"
s.has_rdoc = false
s.add_dependency "polyglot"
s.add_dependency "polyglot", ">= 0.2.5"
end

0 comments on commit 6606562

Please sign in to comment.