File: pg.gemspec

package info (click to toggle)
libpgsql-ruby 0.7.9.2008.03.18-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 388 kB
  • ctags: 357
  • sloc: ansic: 2,568; ruby: 1,641; makefile: 57; sh: 9
file content (47 lines) | stat: -rw-r--r-- 1,068 bytes parent folder | download
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
require 'rubygems'
require 'date'

SPEC = Gem::Specification.new do |s|
  s.name              = 'pg'
  s.rubyforge_project = 'ruby-pg'
  s.version           = "0.7.9.#{Date.today}".tr('-', '.')
  s.summary           = 'Ruby extension library providing an API to PostgreSQL'
  s.authors           = [
		'Yukihiro Matsumoto', 
		'Eiji Matsumoto', 
		'Noboru Saitou', 
		'Dave Lee', 
		'Jeff Davis']
  s.email             = 'ruby-pg@j-davis.com'
  s.homepage          = 'http://rubyforge.org/projects/ruby-pg'
  s.requirements      = 'PostgreSQL libpq library and headers'
  s.has_rdoc          = true
  s.extra_rdoc_files = ['ext/pg.c']

  if File.exists? 'pg.so' and PLATFORM =~ /mingw|mswin/
    s.platform        = Gem::Platform::WIN32
  else
    s.platform        = Gem::Platform::RUBY
    s.extensions      = ['ext/extconf.rb']
  end

  FILES = [
	'README',
	'LICENSE',
	'COPYING.txt',
	'Contributors',
	'GPL',
	'BSD',
	]

  EXT_FILES = Dir['ext/*.[ch]']

  s.files = FILES + EXT_FILES

end

if $0 == __FILE__
  Gem::manage_gems
  Gem::Builder.new(SPEC).build
end