diff options
author | makoto kuwata <kwa@kuwata-lab.com> | 2006-01-31 03:54:23 +0000 |
---|---|---|
committer | makoto kuwata <kwa@kuwata-lab.com> | 2006-01-31 03:54:23 +0000 |
commit | 3e1cd0c3e8fbc9b26da3bdf53189674e2df9e488 (patch) | |
tree | 9f7a7b99d01cb7acd08d488641f491a6d1c84e52 /erubis.gemspec | |
parent | 670ad2e8ceaf9383d0721bc5865fb1d4481f9ecc (diff) | |
download | erubis-3e1cd0c3e8fbc9b26da3bdf53189674e2df9e488.tar.gz |
- [bufix] XmlEruby outs <%=== expr %> to $stdout, it changed to $stderr
- [change] rename var name 'kind' to 'indicator' in Eruby#compile()
- [enhance] add doc/users-guide.txt
- [enhance] add command-line option '-I lib'
Diffstat (limited to 'erubis.gemspec')
-rw-r--r-- | erubis.gemspec | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/erubis.gemspec b/erubis.gemspec new file mode 100644 index 0000000..726cc20 --- /dev/null +++ b/erubis.gemspec @@ -0,0 +1,56 @@ +#!/usr/bin/ruby + +### +### $Rev$ +### $Release$ +### $Copyright$ +### + +require 'rubygems' + +spec = Gem::Specification.new do |s| + ## package information + s.name = "erubis" + s.author = "kwatch" + s.version = ("$Release$" =~ /[\.\d]+/) && $& + s.platform = Gem::Platform::RUBY + s.homepage = "http://rubyforge.org/projects/erubis" + s.summary = "an implementation of eRuby" + s.description = <<-'END' + Erubis is an implementation of eRuby and has the following features: + * Auto trimming spaces around '<% %>' + * Auto sanitizing + * Change embedded pattern (default '<% %>') + * Context object available + * Easy to expand in subclass + END + + ## files + files = [] + files += Dir.glob('lib/**/*') + files += Dir.glob('bin/*') + #files += Dir.glob('examples/**/*') + files += Dir.glob('test/test-*.rb') + #files += Dir.glob('man/**/*') + files += [ "doc/users-guide.html", "doc/docstyle.css", ] + files += %w[README ChangeLog COPYING setup.rb] + #s.files = files.delete_if { |path| path =~ /\.svn/ } + s.files = files + s.executables = ["erubis"] + s.bindir = "bin" + s.test_file = 'test/test-erubis.rb' +end + +# Quick fix for Ruby 1.8.3 / YAML bug (thanks to Ross Bamford) +if (RUBY_VERSION == '1.8.3') + def spec.to_yaml + out = super + out = '--- ' + out unless out =~ /^---/ + out + end +end + +if $0 == __FILE__ + Gem::manage_gems + Gem::Builder.new(spec).build +end |