ruby-oci8 2.1.8-x86-mingw32 → 2.2.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +1 -0
- data/ChangeLog +160 -0
- data/Makefile +2 -2
- data/NEWS +47 -5
- data/README.md +3 -2
- data/dist-files +5 -2
- data/docs/install-instant-client.md +7 -5
- data/docs/report-installation-issue.md +1 -4
- data/lib/oci8.rb +11 -3
- data/lib/oci8/bindtype.rb +3 -13
- data/lib/oci8/check_load_error.rb +99 -0
- data/lib/oci8/encoding-init.rb +27 -61
- data/lib/oci8/metadata.rb +27 -57
- data/lib/oci8/oci8.rb +17 -18
- data/lib/oci8/properties.rb +1 -9
- data/lib/oci8/version.rb +3 -0
- data/lib/oci8lib_191.so +0 -0
- data/lib/oci8lib_200.so +0 -0
- data/lib/oci8lib_210.so +0 -0
- data/lib/oci8lib_220.so +0 -0
- data/ruby-oci8.gemspec +12 -2
- data/test/test_connection_pool.rb +1 -1
- data/test/test_oci8.rb +14 -2
- data/test/test_package_type.rb +967 -0
- metadata +14 -14
- data/VERSION +0 -1
- data/lib/oci8.rb.in +0 -138
- data/lib/oci8lib_18.so +0 -0
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-oci8
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 2.
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 2.2.0
|
11
11
|
platform: x86-mingw32
|
12
12
|
authors:
|
13
13
|
- Kubo Takehiro
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2015-
|
18
|
+
date: 2015-10-04 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -37,7 +37,6 @@ files:
|
|
37
37
|
- Makefile
|
38
38
|
- NEWS
|
39
39
|
- README.md
|
40
|
-
- VERSION
|
41
40
|
- dist-files
|
42
41
|
- metaconfig
|
43
42
|
- pre-distclean.rb
|
@@ -49,10 +48,11 @@ files:
|
|
49
48
|
- docs/platform-specific-issues.md
|
50
49
|
- docs/report-installation-issue.md
|
51
50
|
- lib/.document
|
52
|
-
- lib/oci8.rb
|
51
|
+
- lib/oci8.rb
|
53
52
|
- lib/dbd/OCI8.rb
|
54
53
|
- lib/oci8/.document
|
55
54
|
- lib/oci8/bindtype.rb
|
55
|
+
- lib/oci8/check_load_error.rb
|
56
56
|
- lib/oci8/compat.rb
|
57
57
|
- lib/oci8/connection_pool.rb
|
58
58
|
- lib/oci8/cursor.rb
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- lib/oci8/ocihandle.rb
|
66
66
|
- lib/oci8/oracle_version.rb
|
67
67
|
- lib/oci8/properties.rb
|
68
|
+
- lib/oci8/version.rb
|
68
69
|
- test/README
|
69
70
|
- test/config.rb
|
70
71
|
- test/setup_test_object.sql
|
@@ -89,13 +90,12 @@ files:
|
|
89
90
|
- test/test_oracle_version.rb
|
90
91
|
- test/test_oradate.rb
|
91
92
|
- test/test_oranumber.rb
|
93
|
+
- test/test_package_type.rb
|
92
94
|
- test/test_rowid.rb
|
93
95
|
- lib/oci8lib_220.so
|
94
96
|
- lib/oci8lib_191.so
|
95
97
|
- lib/oci8lib_200.so
|
96
|
-
- lib/oci8lib_18.so
|
97
98
|
- lib/oci8lib_210.so
|
98
|
-
- lib/oci8.rb
|
99
99
|
has_rdoc: true
|
100
100
|
homepage: https://github.com/kubo/ruby-oci8/
|
101
101
|
licenses:
|
@@ -111,12 +111,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
111
|
requirements:
|
112
112
|
- - ">="
|
113
113
|
- !ruby/object:Gem::Version
|
114
|
-
hash:
|
114
|
+
hash: 49
|
115
115
|
segments:
|
116
116
|
- 1
|
117
|
-
-
|
118
|
-
-
|
119
|
-
version: 1.
|
117
|
+
- 9
|
118
|
+
- 1
|
119
|
+
version: 1.9.1
|
120
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
121
|
none: false
|
122
122
|
requirements:
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: "0"
|
129
129
|
requirements: []
|
130
130
|
|
131
|
-
rubyforge_project:
|
131
|
+
rubyforge_project:
|
132
132
|
rubygems_version: 1.3.7
|
133
133
|
signing_key:
|
134
134
|
specification_version: 3
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.1.8
|
data/lib/oci8.rb.in
DELETED
@@ -1,138 +0,0 @@
|
|
1
|
-
|
2
|
-
# --*- ruby -*--
|
3
|
-
# This is based on yoshidam's oracle.rb.
|
4
|
-
#
|
5
|
-
# sample one liner:
|
6
|
-
# ruby -r oci8 -e 'OCI8.new("scott", "tiger", nil).exec("select * from emp") do |r| puts r.join(","); end'
|
7
|
-
# # select all data from emp and print them as CVS format.
|
8
|
-
|
9
|
-
ENV['ORA_SDTZ'] = ENV['TZ'] unless ENV['ORA_SDTZ']
|
10
|
-
|
11
|
-
if RUBY_PLATFORM =~ /cygwin/
|
12
|
-
# Cygwin manages environment variables by itself.
|
13
|
-
# They don't synchroize with Win32's ones.
|
14
|
-
# This set some Oracle's environment variables to win32's enviroment.
|
15
|
-
require 'Win32API'
|
16
|
-
win32setenv = Win32API.new('Kernel32.dll', 'SetEnvironmentVariableA', 'PP', 'I')
|
17
|
-
['NLS_LANG', 'TNS_ADMIN', 'LOCAL'].each do |name|
|
18
|
-
val = ENV[name]
|
19
|
-
win32setenv.call(name, val && val.dup)
|
20
|
-
end
|
21
|
-
ENV.each do |name, val|
|
22
|
-
win32setenv.call(name, val && val.dup) if name =~ /^ORA/
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
ruby_engine = (defined? RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
|
27
|
-
|
28
|
-
so_basename = 'oci8lib_'
|
29
|
-
case ruby_engine
|
30
|
-
when 'ruby'
|
31
|
-
# The extension library name includes the ruby ABI (application binary interface)
|
32
|
-
# version. It is for binary gems which contain more than one extension library
|
33
|
-
# and use correct one depending on the ABI version.
|
34
|
-
#
|
35
|
-
# ruby version | ABI version
|
36
|
-
# --------------+--------------
|
37
|
-
# 1.8.6 | 1.8
|
38
|
-
# 1.8.7 | 1.8
|
39
|
-
# --------------+--------------
|
40
|
-
# 1.9.0 | 1.9.0
|
41
|
-
# 1.9.1 | 1.9.1
|
42
|
-
# 1.9.2 | 1.9.1
|
43
|
-
# 1.9.3 | 1.9.1
|
44
|
-
# --------------+--------------
|
45
|
-
# 2.0.0 | 2.0.0
|
46
|
-
# --------------+--------------
|
47
|
-
# 2.1.0 | 2.1.0
|
48
|
-
# ... | ...
|
49
|
-
#
|
50
|
-
# The ABI version of ruby 2.1.1 will be 2.1.0.
|
51
|
-
# See "ABI Compatibility" in <URL:http://www.ruby-lang.org/en/news/2013/12/21/semantic-versioning-after-2-1-0/>.
|
52
|
-
#
|
53
|
-
case RUBY_VERSION
|
54
|
-
when /^1\.9\.0/
|
55
|
-
raise 'unsupported ruby version: 1.9.0'
|
56
|
-
when /^1\.9/
|
57
|
-
so_basename += '191'
|
58
|
-
when /^1\.8/
|
59
|
-
so_basename += '18'
|
60
|
-
else
|
61
|
-
so_basename += RUBY_VERSION.gsub(/(\d+)\.(\d+).(.*)/, '\1\20')
|
62
|
-
end
|
63
|
-
when 'rbx'
|
64
|
-
so_basename += 'rbx'
|
65
|
-
when 'jruby'
|
66
|
-
raise "Ruby-oci8 doesn't support jruby because its C extension support is in development in jruby 1.6 and deprecated in jruby 1.7."
|
67
|
-
else
|
68
|
-
raise 'unsupported ruby engine: ' + RUBY_ENGINE
|
69
|
-
end
|
70
|
-
require so_basename
|
71
|
-
|
72
|
-
if OCI8::VERSION != '@@OCI8_MODULE_VERSION@@'
|
73
|
-
require 'rbconfig'
|
74
|
-
so_name = so_basename + "." + RbConfig::CONFIG['DLEXT']
|
75
|
-
raise "VERSION MISMATCH! #{so_name} version is #{OCI8::VERSION}, but oci8.rb version is @@OCI8_MODULE_VERSION@@."
|
76
|
-
end
|
77
|
-
|
78
|
-
require 'oci8/encoding-init.rb'
|
79
|
-
require 'oci8/oracle_version.rb'
|
80
|
-
|
81
|
-
class OCI8
|
82
|
-
# @private
|
83
|
-
ORAVER_8_0 = OCI8::OracleVersion.new(8, 0)
|
84
|
-
# @private
|
85
|
-
ORAVER_8_1 = OCI8::OracleVersion.new(8, 1)
|
86
|
-
# @private
|
87
|
-
ORAVER_9_0 = OCI8::OracleVersion.new(9, 0)
|
88
|
-
# @private
|
89
|
-
ORAVER_9_2 = OCI8::OracleVersion.new(9, 2)
|
90
|
-
# @private
|
91
|
-
ORAVER_10_1 = OCI8::OracleVersion.new(10, 1)
|
92
|
-
# @private
|
93
|
-
ORAVER_10_2 = OCI8::OracleVersion.new(10, 2)
|
94
|
-
# @private
|
95
|
-
ORAVER_11_1 = OCI8::OracleVersion.new(11, 1)
|
96
|
-
# @private
|
97
|
-
ORAVER_12_1 = OCI8::OracleVersion.new(12, 1)
|
98
|
-
|
99
|
-
# @private
|
100
|
-
@@oracle_client_version = OCI8::OracleVersion.new(self.oracle_client_vernum)
|
101
|
-
|
102
|
-
# Returns an OCI8::OracleVersion of the Oracle client version.
|
103
|
-
#
|
104
|
-
# If this library is configured without '--with-runtime-check',
|
105
|
-
# and compiled for Oracle 10.1 or lower, the major and minor
|
106
|
-
# numbers are determined at compile-time. The rests are zeros.
|
107
|
-
#
|
108
|
-
# If this library is configured with '--with-runtime-check'
|
109
|
-
# and the runtime Oracle library is Oracle 10.1 or lower, the
|
110
|
-
# major and minor numbers are determined at run-time. The
|
111
|
-
# rests are zeros.
|
112
|
-
#
|
113
|
-
# Otherwise, it is the version retrieved from an OCI function
|
114
|
-
# OCIClientVersion().
|
115
|
-
#
|
116
|
-
# @return [OCI8::OracleVersion] Oracle client version
|
117
|
-
# @see OCI8#oracle_server_version
|
118
|
-
def self.oracle_client_version
|
119
|
-
@@oracle_client_version
|
120
|
-
end
|
121
|
-
|
122
|
-
# defined for backward compatibility.
|
123
|
-
# @private
|
124
|
-
CLIENT_VERSION = @@oracle_client_version.major.to_s +
|
125
|
-
@@oracle_client_version.minor.to_s +
|
126
|
-
@@oracle_client_version.update.to_s
|
127
|
-
end
|
128
|
-
|
129
|
-
require 'oci8/ocihandle.rb'
|
130
|
-
require 'oci8/datetime.rb'
|
131
|
-
require 'oci8/oci8.rb'
|
132
|
-
require 'oci8/cursor.rb'
|
133
|
-
require 'oci8/bindtype.rb'
|
134
|
-
require 'oci8/metadata.rb'
|
135
|
-
require 'oci8/compat.rb'
|
136
|
-
require 'oci8/object.rb'
|
137
|
-
require 'oci8/connection_pool.rb'
|
138
|
-
require 'oci8/properties.rb'
|
data/lib/oci8lib_18.so
DELETED
Binary file
|