public
Description: CGIAlt is a re-implementation of cgi.rb
Homepage: http://cgialt.rubyforge.org/
Clone URL: git://github.com/kwatch/cgialt.git
cgialt / cgialt.gemspec
100644 48 lines (41 sloc) 1.131 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/ruby
 
###
### $Rev$
### $Release: 0.0.0 $
### $Copyright$
###
 
require 'rubygems'
 
spec = Gem::Specification.new do |s|
  ## package information
  s.name = "cgialt"
  s.author = "makoto kuwata"
  s.version = "$Release$"
  s.platform = Gem::Platform::RUBY
  s.homepage = "http://cgialt.rubyforge.org/"
  s.summary = "an alternative of 'cgi.rb' in pure Ruby"
  s.description = <<-'END'
CGIAlt is an alternative library of 'cgi.rb'.
It is compatible with and faster than 'cgi.rb'.
It is able to install with CGIExt (which is re-implementation of cgi.rb in C extension).
END
 
  ## files
  files = []
  files += Dir.glob('lib/**/*')
  files += Dir.glob('test/**/*')
  files += %w[README.txt bench.rb setup.rb]
  files += %w[CHANGES.txt] if test(?f, 'CHANGES.txt')
  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