a5e08f7bcc
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 ...
48 lines
1.2 KiB
Ruby
48 lines
1.2 KiB
Ruby
#!/usr/bin/env ruby
|
|
|
|
###
|
|
### RubyGems Specification file for abstract.rb
|
|
###
|
|
### $Rev: 1 $
|
|
### $Release: 1.0.0 $
|
|
### copyright(c) 2006 kuwata-lab.com all rights reserved.
|
|
###
|
|
|
|
require 'rubygems'
|
|
|
|
spec = Gem::Specification.new do |s|
|
|
## package information
|
|
s.name = 'abstract'
|
|
s.author = 'makoto kuwata'
|
|
s.version = ("$Release: 1.0.0 $" =~ /[\.\d]+/) && $&
|
|
s.platform = Gem::Platform::RUBY
|
|
s.homepage = 'http://rubyforge.org/projects/abstract'
|
|
s.summary = "a library which enable you to define abstract method in Ruby"
|
|
s.description = <<-'END'
|
|
'abstract.rb' is a library which enable you to define abstract method in Ruby.
|
|
END
|
|
|
|
## files
|
|
files = []
|
|
files += Dir.glob('lib/**/*')
|
|
files += Dir.glob('test/**/*')
|
|
files += %w[README.txt ChangeLog setup.rb abstract.gemspec]
|
|
#s.files = files.delete_if { |path| path =~ /\.svn/ }
|
|
s.files = files
|
|
s.test_file = 'test/test.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
|
|
|