Sha256: 1cc121ac80dc5660be78fedf75453675e75a81896883f0b30232176f69766c76
Contents?: true
Size: 1.89 KB
Versions: 12
Compression:
Stored size: 1.89 KB
Contents
# -*- ruby -*- # # To make a pure ruby gems package: # gem build ruby-oci8.gemspec # # To make a binary gems package: # gem build ruby-oci8.gemspec -- current # require 'fileutils' if ARGV.size > 3 gem_platform = ARGV[3] else gem_platform = Gem::Platform::RUBY end spec = Gem::Specification.new do |s| s.name = 'ruby-oci8' s.version = File.read('VERSION').strip s.summary = 'Ruby interface for Oracle using OCI8 API' s.email = 'kubo@jiubao.org' s.homepage = 'http://ruby-oci8.rubyforge.org' s.rubyforge_project = 'ruby-oci8' s.description = <<EOS ruby-oci8 is a ruby interface for Oracle using OCI8 API. It is available with Oracle8, Oracle8i, Oracle9i, Oracle10g and Oracle Instant Client. EOS s.has_rdoc = true s.authors = ['KUBO Takehiro'] s.platform = gem_platform files = File.read('dist-files').split("\n") if gem_platform == Gem::Platform::RUBY s.extensions << 'ext/oci8/extconf.rb' s.required_ruby_version = '>= 1.8.0' else so_files = Dir.glob('ext/oci8/oci8lib_*.so') has_1_8 = so_files.include? 'ext/oci8/oci8lib_18.so' has_1_9_1 = so_files.include? 'ext/oci8/oci8lib_191.so' if has_1_8 and has_1_9_1 puts 'Binary gem for ruby 1.8 and 1.9.1' s.required_ruby_version = '>= 1.8.0' elsif has_1_8 and !has_1_9_1 puts 'Binary gem for ruby 1.8' s.required_ruby_version = '~> 1.8.0' elsif !has_1_8 and has_1_9_1 puts 'Binary gem for ruby 1.9.1' s.required_ruby_version = '~> 1.9.1' else raise "No compiled binary are found. Run make in advance." end FileUtils.copy so_files, 'lib', :preserve => true files.reject! do |fname| fname =~ /^ext/ end so_files.each do |fname| files << 'lib/' + File.basename(fname) end files << 'lib/oci8.rb' end s.files = files s.test_files = 'test/test_all.rb' s.rdoc_options = ['--main', 'README'] s.extra_rdoc_files = ['README'] end
Version data entries
12 entries across 12 versions & 1 rubygems