instiki/vendor/plugins/erubis-2.6.5/erubis.gemspec
Jacques Distler a5e08f7bcc Rails_xss Plugin
I installed the rails_xss plugin, for
the main purpose of seeing what will
break with Rails 3.0 (where the behaviour
of the plugin is the default). I think
I've fixed everything, but let me know if you
see stuff that is HTML-escaped, which
shouldn't be.

As a side benefit, we now use Erubis,
rather than ERB, to render templates.
They tell me it's faster ...
2010-05-26 00:27:49 -05:00

70 lines
2 KiB
Ruby

#!/usr/bin/ruby
###
### $Release: 2.6.5 $
### copyright(c) 2006-2009 kuwata-lab.com all rights reserved.
###
require 'rubygems' unless defined?(Gem)
spec = Gem::Specification.new do |s|
## package information
s.name = "erubis"
s.author = "makoto kuwata"
s.email = "kwa(at)kuwata-lab.com"
s.version = "2.6.5"
s.platform = Gem::Platform::RUBY
s.homepage = "http://www.kuwata-lab.com/erubis/"
s.summary = "a fast and extensible eRuby implementation which supports multi-language"
s.rubyforge_project = 'erubis'
s.description = <<-'END'
Erubis is an implementation of eRuby and has the following features:
* Very fast, almost three times faster than ERB and about 10% faster than eruby.
* Multi-language support (Ruby/PHP/C/Java/Scheme/Perl/Javascript)
* Auto escaping support
* Auto trimming spaces around '<% %>'
* Embedded pattern changeable (default '<% %>')
* Enable to handle Processing Instructions (PI) as embedded pattern (ex. '<?rb ... ?>')
* Context object available and easy to combine eRuby template with YAML datafile
* Print statement available
* Easy to extend and customize in subclass
* Ruby on Rails support
END
## files
files = []
files += Dir.glob('lib/**/*')
files += Dir.glob('bin/*')
files += Dir.glob('examples/**/*')
files += Dir.glob('test/**/*')
files += Dir.glob('doc/**/*')
files += %w[README.txt CHANGES.txt MIT-LICENSE setup.rb]
files += Dir.glob('contrib/**/*')
files += Dir.glob('benchmark/**/*')
files += Dir.glob('doc-api/**/*')
s.files = files
s.executables = ['erubis']
s.bindir = 'bin'
s.test_file = 'test/test.rb'
s.add_dependency('abstract', ['>= 1.0.0'])
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
require 'rubygems/gem_runner'
Gem::GemRunner.new.run ['build', '$(project).gemspec']
end
spec