ruby-oci8 2.2.5.1-x86-mingw32 → 2.2.9-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ChangeLog +240 -0
- data/NEWS +190 -50
- data/README.md +1 -1
- data/dist-files +2 -1
- data/docs/install-instant-client.md +2 -1
- data/docs/install-on-osx.md +1 -1
- data/lib/oci8.rb +10 -3
- data/lib/oci8/bindtype.rb +0 -14
- data/lib/oci8/check_load_error.rb +51 -16
- data/lib/oci8/cursor.rb +46 -13
- data/lib/oci8/metadata.rb +9 -1
- data/lib/oci8/object.rb +10 -0
- data/lib/oci8/oci8.rb +7 -1
- data/lib/oci8/oracle_version.rb +11 -1
- data/lib/oci8/version.rb +1 -1
- data/lib/oci8lib_250.so +0 -0
- data/lib/oci8lib_260.so +0 -0
- data/lib/oci8lib_270.so +0 -0
- data/lib/oci8lib_300.so +0 -0
- data/lib/ruby-oci8.rb +0 -3
- data/ruby-oci8.gemspec +1 -2
- data/setup.rb +11 -2
- data/test/README.md +37 -0
- data/test/config.rb +1 -1
- data/test/setup_test_object.sql +21 -13
- data/test/test_all.rb +1 -0
- data/test/test_break.rb +3 -4
- data/test/test_clob.rb +3 -16
- data/test/test_datetime.rb +8 -3
- data/test/test_object.rb +33 -9
- data/test/test_oci8.rb +169 -44
- data/test/test_package_type.rb +15 -3
- data/test/test_properties.rb +17 -0
- metadata +38 -64
- 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/lib/oci8lib_230.so +0 -0
- data/lib/oci8lib_240.so +0 -0
- data/test/README +0 -42
data/test/test_package_type.rb
CHANGED
@@ -639,7 +639,11 @@ class TestPackageType < Minitest::Test
|
|
639
639
|
:sub_name => "TABLE_OF_PLS_INTEGER",
|
640
640
|
:link => "",
|
641
641
|
#:type_metadata => nil,
|
642
|
-
:arguments =>
|
642
|
+
:arguments => ($oracle_server_version >= OCI8::ORAVER_18) ?
|
643
|
+
{
|
644
|
+
:class => Array,
|
645
|
+
:size => 0,
|
646
|
+
} : {
|
643
647
|
:class => Array,
|
644
648
|
:size => 1,
|
645
649
|
[0] => {
|
@@ -729,7 +733,11 @@ class TestPackageType < Minitest::Test
|
|
729
733
|
:sub_name => "TABLE_OF_REC1",
|
730
734
|
:link => "",
|
731
735
|
#:type_metadata => nil,
|
732
|
-
:arguments =>
|
736
|
+
:arguments => ($oracle_server_version >= OCI8::ORAVER_18) ?
|
737
|
+
{
|
738
|
+
:class => Array,
|
739
|
+
:size => 0,
|
740
|
+
} : {
|
733
741
|
:class => Array,
|
734
742
|
:size => 1,
|
735
743
|
[0] => {
|
@@ -846,7 +854,11 @@ class TestPackageType < Minitest::Test
|
|
846
854
|
:sub_name => "TABLE_OF_REC1",
|
847
855
|
:link => "",
|
848
856
|
#:type_metadata => nil,
|
849
|
-
:arguments =>
|
857
|
+
:arguments => ($oracle_server_version >= OCI8::ORAVER_18) ?
|
858
|
+
{
|
859
|
+
:class => Array,
|
860
|
+
:size => 0,
|
861
|
+
} : {
|
850
862
|
:class => Array,
|
851
863
|
:size => 1,
|
852
864
|
[0] => {
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'oci8'
|
2
|
+
require File.dirname(__FILE__) + '/config'
|
3
|
+
|
4
|
+
class TestProperties < Minitest::Test
|
5
|
+
def test_tcp_keepalive_time
|
6
|
+
begin
|
7
|
+
oldval = OCI8.properties[:tcp_keepalive_time]
|
8
|
+
begin
|
9
|
+
OCI8.properties[:tcp_keepalive_time] = 600
|
10
|
+
assert(true)
|
11
|
+
ensure
|
12
|
+
OCI8.properties[:tcp_keepalive_time] = oldval
|
13
|
+
end
|
14
|
+
rescue NotImplementedError
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,37 +1,26 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-oci8
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 2
|
8
|
-
- 2
|
9
|
-
- 5
|
10
|
-
- 1
|
11
|
-
version: 2.2.5.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.2.9
|
12
5
|
platform: x86-mingw32
|
13
|
-
authors:
|
6
|
+
authors:
|
14
7
|
- Kubo Takehiro
|
15
8
|
autorequire:
|
16
9
|
bindir: bin
|
17
10
|
cert_chain: []
|
18
|
-
|
19
|
-
date: 2017-12-27 00:00:00 +09:00
|
20
|
-
default_executable:
|
11
|
+
date: 2020-12-30 00:00:00.000000000 Z
|
21
12
|
dependencies: []
|
13
|
+
description: 'ruby-oci8 is a ruby interface for Oracle using OCI8 API. It is available
|
14
|
+
with Oracle 10g or later including Oracle Instant Client.
|
22
15
|
|
23
|
-
|
24
|
-
ruby-oci8 is a ruby interface for Oracle using OCI8 API. It is available with Oracle 10g or later including Oracle Instant Client.
|
25
|
-
|
16
|
+
'
|
26
17
|
email: kubo@jiubao.org
|
27
18
|
executables: []
|
28
|
-
|
29
19
|
extensions: []
|
30
|
-
|
31
|
-
extra_rdoc_files:
|
20
|
+
extra_rdoc_files:
|
32
21
|
- README.md
|
33
|
-
files:
|
34
|
-
- .yardopts
|
22
|
+
files:
|
23
|
+
- ".yardopts"
|
35
24
|
- COPYING
|
36
25
|
- COPYING_old
|
37
26
|
- ChangeLog
|
@@ -39,10 +28,6 @@ files:
|
|
39
28
|
- NEWS
|
40
29
|
- README.md
|
41
30
|
- dist-files
|
42
|
-
- metaconfig
|
43
|
-
- pre-distclean.rb
|
44
|
-
- ruby-oci8.gemspec
|
45
|
-
- setup.rb
|
46
31
|
- docs/bind-array-to-in_cond.md
|
47
32
|
- docs/conflicts-local-connections-and-processes.md
|
48
33
|
- docs/hanging-after-inactivity.md
|
@@ -57,8 +42,8 @@ files:
|
|
57
42
|
- docs/report-installation-issue.md
|
58
43
|
- docs/timeout-parameters.md
|
59
44
|
- lib/.document
|
60
|
-
- lib/oci8.rb
|
61
45
|
- lib/dbd/OCI8.rb
|
46
|
+
- lib/oci8.rb
|
62
47
|
- lib/oci8/.document
|
63
48
|
- lib/oci8/bindtype.rb
|
64
49
|
- lib/oci8/check_load_error.rb
|
@@ -75,8 +60,16 @@ files:
|
|
75
60
|
- lib/oci8/oracle_version.rb
|
76
61
|
- lib/oci8/properties.rb
|
77
62
|
- lib/oci8/version.rb
|
63
|
+
- lib/oci8lib_250.so
|
64
|
+
- lib/oci8lib_260.so
|
65
|
+
- lib/oci8lib_270.so
|
66
|
+
- lib/oci8lib_300.so
|
78
67
|
- lib/ruby-oci8.rb
|
79
|
-
-
|
68
|
+
- metaconfig
|
69
|
+
- pre-distclean.rb
|
70
|
+
- ruby-oci8.gemspec
|
71
|
+
- setup.rb
|
72
|
+
- test/README.md
|
80
73
|
- test/config.rb
|
81
74
|
- test/setup_test_object.sql
|
82
75
|
- test/setup_test_package.sql
|
@@ -85,18 +78,18 @@ files:
|
|
85
78
|
- test/test_array_dml.rb
|
86
79
|
- test/test_bind_array.rb
|
87
80
|
- test/test_bind_boolean.rb
|
81
|
+
- test/test_bind_integer.rb
|
88
82
|
- test/test_bind_raw.rb
|
89
83
|
- test/test_bind_string.rb
|
90
84
|
- test/test_bind_time.rb
|
91
|
-
- test/test_bind_integer.rb
|
92
85
|
- test/test_break.rb
|
93
86
|
- test/test_clob.rb
|
94
87
|
- test/test_connection_pool.rb
|
95
88
|
- test/test_connstr.rb
|
96
|
-
- test/test_encoding.rb
|
97
89
|
- test/test_datetime.rb
|
98
90
|
- test/test_dbi.rb
|
99
91
|
- test/test_dbi_clob.rb
|
92
|
+
- test/test_encoding.rb
|
100
93
|
- test/test_error.rb
|
101
94
|
- test/test_metadata.rb
|
102
95
|
- test/test_object.rb
|
@@ -105,50 +98,31 @@ files:
|
|
105
98
|
- test/test_oradate.rb
|
106
99
|
- test/test_oranumber.rb
|
107
100
|
- test/test_package_type.rb
|
101
|
+
- test/test_properties.rb
|
108
102
|
- test/test_rowid.rb
|
109
|
-
- lib/oci8lib_191.so
|
110
|
-
- lib/oci8lib_200.so
|
111
|
-
- lib/oci8lib_210.so
|
112
|
-
- lib/oci8lib_220.so
|
113
|
-
- lib/oci8lib_230.so
|
114
|
-
- lib/oci8lib_240.so
|
115
|
-
- lib/oci8lib_250.so
|
116
|
-
has_rdoc: true
|
117
103
|
homepage: http://www.rubydoc.info/github/kubo/ruby-oci8
|
118
|
-
licenses:
|
104
|
+
licenses:
|
119
105
|
- BSD-2-Clause
|
106
|
+
metadata: {}
|
120
107
|
post_install_message:
|
121
108
|
rdoc_options: []
|
122
|
-
|
123
|
-
require_paths:
|
109
|
+
require_paths:
|
124
110
|
- lib
|
125
|
-
|
126
|
-
|
127
|
-
none: false
|
128
|
-
requirements:
|
111
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
129
113
|
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
- 9
|
135
|
-
- 1
|
136
|
-
version: 1.9.1
|
137
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
|
-
none: false
|
139
|
-
requirements:
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: 2.5.0
|
116
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
|
+
requirements:
|
140
118
|
- - ">="
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
|
143
|
-
segments:
|
144
|
-
- 0
|
145
|
-
version: "0"
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
146
121
|
requirements: []
|
147
|
-
|
148
122
|
rubyforge_project:
|
149
|
-
rubygems_version:
|
123
|
+
rubygems_version: 2.7.3
|
150
124
|
signing_key:
|
151
|
-
specification_version:
|
125
|
+
specification_version: 4
|
152
126
|
summary: Ruby interface for Oracle using OCI8 API
|
153
|
-
test_files:
|
127
|
+
test_files:
|
154
128
|
- test/test_all.rb
|
data/lib/oci8lib_191.so
DELETED
Binary file
|
data/lib/oci8lib_200.so
DELETED
Binary file
|
data/lib/oci8lib_210.so
DELETED
Binary file
|
data/lib/oci8lib_220.so
DELETED
Binary file
|
data/lib/oci8lib_230.so
DELETED
Binary file
|
data/lib/oci8lib_240.so
DELETED
Binary file
|
data/test/README
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
Before runing unit test:
|
2
|
-
|
3
|
-
1. connect to Oracle as system:
|
4
|
-
|
5
|
-
$ sqlplus system/<password_of_system>
|
6
|
-
|
7
|
-
2. create user ruby:
|
8
|
-
|
9
|
-
SQL> CREATE USER ruby IDENTIFIED BY oci8;
|
10
|
-
|
11
|
-
or
|
12
|
-
|
13
|
-
SQL> CREATE USER ruby IDENTIFIED BY oci8
|
14
|
-
2 DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp;
|
15
|
-
|
16
|
-
3. grant the privilege to connect and execute.
|
17
|
-
|
18
|
-
SQL> GRANT connect, resource, create view TO ruby;
|
19
|
-
|
20
|
-
4. connect to Oracle as sys
|
21
|
-
|
22
|
-
$ sqlplus 'sys/<password_of_sys> as sysdba'
|
23
|
-
|
24
|
-
5. grant privileges
|
25
|
-
|
26
|
-
SQL> GRANT EXECUTE ON dbms_lock TO ruby;
|
27
|
-
SQL> GRANT CREATE VIEW TO ruby;
|
28
|
-
|
29
|
-
6. connect as ruby user.
|
30
|
-
|
31
|
-
$ sqlplus ruby/oci8
|
32
|
-
|
33
|
-
7. Create object types
|
34
|
-
|
35
|
-
SQL> @test/setup_test_object.sql
|
36
|
-
|
37
|
-
8. change $dbname if the database
|
38
|
-
|
39
|
-
Then you can run:
|
40
|
-
$ make check
|
41
|
-
or
|
42
|
-
$ nmake check (If your compiler is MS Visual C++.)
|