# -*- 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.include?("--") and ARGV[(ARGV.index("--") + 1)] == 'current' gem_platform = 'current' else gem_platform = Gem::Platform::RUBY end if defined? OCI8 oci8_version = OCI8::VERSION else # Load oci8/version.rb temporarily and delete OCI8. # Some 'bundler' tasks load this file before 'require "oci8"' # and fail with 'TypeError: superclass mismatch for class OCI8.' Kernel.load File.dirname(__FILE__) + '/lib/oci8/version.rb' oci8_version = OCI8::VERSION Object.send(:remove_const, :OCI8) end spec = Gem::Specification.new do |s| s.name = 'ruby-oci8' s.version = oci8_version s.summary = 'Ruby interface for Oracle using OCI8 API' s.email = 'kubo@jiubao.org' s.homepage = 'http://www.rubydoc.info/github/kubo/ruby-oci8' s.description = < 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.require_paths = ['lib'] s.files = files s.test_files = 'test/test_all.rb' s.extra_rdoc_files = ['README.md'] end