ruby-oci8 2.2.10-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +14 -0
- data/COPYING +30 -0
- data/COPYING_old +64 -0
- data/ChangeLog +3826 -0
- data/Makefile +92 -0
- data/NEWS +1209 -0
- data/README.md +66 -0
- data/dist-files +112 -0
- data/docs/bind-array-to-in_cond.md +38 -0
- data/docs/conflicts-local-connections-and-processes.md +98 -0
- data/docs/hanging-after-inactivity.md +63 -0
- data/docs/install-binary-package.md +44 -0
- data/docs/install-full-client.md +111 -0
- data/docs/install-instant-client.md +194 -0
- data/docs/install-on-osx.md +46 -0
- data/docs/ldap-auth-and-function-interposition.md +123 -0
- data/docs/number-type-mapping.md +79 -0
- data/docs/platform-specific-issues.md +164 -0
- data/docs/report-installation-issue.md +50 -0
- data/docs/timeout-parameters.md +94 -0
- data/lib/.document +1 -0
- data/lib/dbd/OCI8.rb +591 -0
- data/lib/oci8/.document +8 -0
- data/lib/oci8/bindtype.rb +333 -0
- data/lib/oci8/check_load_error.rb +146 -0
- data/lib/oci8/compat.rb +117 -0
- data/lib/oci8/connection_pool.rb +179 -0
- data/lib/oci8/cursor.rb +605 -0
- data/lib/oci8/datetime.rb +605 -0
- data/lib/oci8/encoding-init.rb +45 -0
- data/lib/oci8/encoding.yml +537 -0
- data/lib/oci8/metadata.rb +2148 -0
- data/lib/oci8/object.rb +641 -0
- data/lib/oci8/oci8.rb +756 -0
- data/lib/oci8/ocihandle.rb +591 -0
- data/lib/oci8/oracle_version.rb +153 -0
- data/lib/oci8/properties.rb +196 -0
- data/lib/oci8/version.rb +3 -0
- data/lib/oci8.rb +190 -0
- data/lib/oci8lib_310.so +0 -0
- data/lib/ruby-oci8.rb +1 -0
- data/metaconfig +142 -0
- data/pre-distclean.rb +7 -0
- data/ruby-oci8.gemspec +85 -0
- data/setup.rb +1342 -0
- data/test/README.md +37 -0
- data/test/config.rb +201 -0
- data/test/setup_test_object.sql +199 -0
- data/test/setup_test_package.sql +59 -0
- data/test/test_all.rb +56 -0
- data/test/test_appinfo.rb +62 -0
- data/test/test_array_dml.rb +332 -0
- data/test/test_bind_array.rb +70 -0
- data/test/test_bind_boolean.rb +99 -0
- data/test/test_bind_integer.rb +47 -0
- data/test/test_bind_raw.rb +45 -0
- data/test/test_bind_string.rb +105 -0
- data/test/test_bind_time.rb +177 -0
- data/test/test_break.rb +125 -0
- data/test/test_clob.rb +85 -0
- data/test/test_connection_pool.rb +124 -0
- data/test/test_connstr.rb +220 -0
- data/test/test_datetime.rb +585 -0
- data/test/test_dbi.rb +365 -0
- data/test/test_dbi_clob.rb +53 -0
- data/test/test_encoding.rb +103 -0
- data/test/test_error.rb +87 -0
- data/test/test_metadata.rb +2674 -0
- data/test/test_object.rb +546 -0
- data/test/test_oci8.rb +624 -0
- data/test/test_oracle_version.rb +68 -0
- data/test/test_oradate.rb +255 -0
- data/test/test_oranumber.rb +792 -0
- data/test/test_package_type.rb +981 -0
- data/test/test_properties.rb +17 -0
- data/test/test_rowid.rb +32 -0
- metadata +123 -0
data/ruby-oci8.gemspec
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
#
|
3
|
+
# To make a pure ruby gems package:
|
4
|
+
# gem build ruby-oci8.gemspec
|
5
|
+
#
|
6
|
+
# To make a binary gems package:
|
7
|
+
# gem build ruby-oci8.gemspec -- current
|
8
|
+
#
|
9
|
+
require 'fileutils'
|
10
|
+
|
11
|
+
if ARGV.include?("--") and ARGV[(ARGV.index("--") + 1)] == 'current'
|
12
|
+
gem_platform = 'current'
|
13
|
+
else
|
14
|
+
gem_platform = Gem::Platform::RUBY
|
15
|
+
end
|
16
|
+
|
17
|
+
if defined? OCI8
|
18
|
+
oci8_version = OCI8::VERSION
|
19
|
+
else
|
20
|
+
# Load oci8/version.rb temporarily and delete OCI8.
|
21
|
+
# Some 'bundler' tasks load this file before 'require "oci8"'
|
22
|
+
# and fail with 'TypeError: superclass mismatch for class OCI8.'
|
23
|
+
Kernel.load File.dirname(__FILE__) + '/lib/oci8/version.rb'
|
24
|
+
oci8_version = OCI8::VERSION
|
25
|
+
Object.send(:remove_const, :OCI8)
|
26
|
+
end
|
27
|
+
|
28
|
+
spec = Gem::Specification.new do |s|
|
29
|
+
s.name = 'ruby-oci8'
|
30
|
+
s.version = oci8_version
|
31
|
+
s.summary = 'Ruby interface for Oracle using OCI8 API'
|
32
|
+
s.email = 'kubo@jiubao.org'
|
33
|
+
s.homepage = 'http://www.rubydoc.info/github/kubo/ruby-oci8'
|
34
|
+
s.description = <<EOS
|
35
|
+
ruby-oci8 is a ruby interface for Oracle using OCI8 API. It is available with Oracle 10g or later including Oracle Instant Client.
|
36
|
+
EOS
|
37
|
+
s.authors = ['Kubo Takehiro']
|
38
|
+
s.platform = gem_platform
|
39
|
+
s.license = 'BSD-2-Clause'
|
40
|
+
files = File.read('dist-files').split("\n")
|
41
|
+
if gem_platform == Gem::Platform::RUBY
|
42
|
+
s.extensions << 'ext/oci8/extconf.rb'
|
43
|
+
s.required_ruby_version = '>= 1.9.1'
|
44
|
+
else
|
45
|
+
so_files = Dir.glob('ext/oci8/oci8lib_*.so')
|
46
|
+
so_vers = so_files.collect do |file|
|
47
|
+
$1 if /ext\/oci8\/oci8lib_(\S+).so/ =~ file
|
48
|
+
end.sort
|
49
|
+
|
50
|
+
# add map files to analyze a core (minidump) file.
|
51
|
+
so_vers.each do |ver|
|
52
|
+
map_file = 'ext/oci8/oci8lib_#{ver}.map'
|
53
|
+
so_files << map_file if File.exist? map_file
|
54
|
+
end
|
55
|
+
|
56
|
+
# least version in so_vers
|
57
|
+
so_vermin = so_vers.collect do |ver|
|
58
|
+
"#$1.#$2.#{$3||'0'}" if /^(?:rbx)?(\d)(\d)(\d)?/ =~ ver
|
59
|
+
end.sort.first
|
60
|
+
|
61
|
+
case so_vers.length
|
62
|
+
when 0
|
63
|
+
raise "No compiled binary are found. Run make in advance."
|
64
|
+
when 1
|
65
|
+
puts "Binary gem for ruby #{so_vers.first}"
|
66
|
+
s.required_ruby_version = "~> #{so_vermin}"
|
67
|
+
else
|
68
|
+
puts "Binary gem for ruby #{so_vers.join(', ')}"
|
69
|
+
s.required_ruby_version = ">= #{so_vermin}"
|
70
|
+
end
|
71
|
+
|
72
|
+
FileUtils.copy so_files, 'lib', :preserve => true
|
73
|
+
files.reject! do |fname|
|
74
|
+
fname =~ /^ext/
|
75
|
+
end
|
76
|
+
so_files.each do |fname|
|
77
|
+
files << 'lib/' + File.basename(fname)
|
78
|
+
end
|
79
|
+
files << 'lib/oci8.rb'
|
80
|
+
end
|
81
|
+
s.require_paths = ['lib']
|
82
|
+
s.files = files
|
83
|
+
s.test_files = 'test/test_all.rb'
|
84
|
+
s.extra_rdoc_files = ['README.md']
|
85
|
+
end
|