ruby-oci8 2.2.9-x86-mingw32 → 2.2.10-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS +15 -0
- data/README.md +1 -1
- data/dist-files +0 -1
- data/docs/install-on-osx.md +29 -116
- data/lib/oci8/version.rb +1 -1
- data/lib/oci8.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/oci8lib_310.so +0 -0
- data/ruby-oci8.gemspec +1 -1
- data/test/test_break.rb +6 -5
- data/test/test_oranumber.rb +7 -1
- metadata +3 -3
- data/docs/osx-install-dev-tools.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3035b58d87218c4734037f1fbd37bf90a1bc4f9c7ee862b9d7540a7e10e0f35
|
4
|
+
data.tar.gz: 7c9d57a3e5c66037f824592711f1ed98e172368b349d2b6bfccd79ff1fae2049
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 917ea5461913071352df5f57269b60591f807a70e28590f4ae00da4ebfed03e2b64c44cd76618880ab4d2cd8988170501bbc11aac7941ac782d92a8eb9fe348e
|
7
|
+
data.tar.gz: baa6495d40b3b010a29d359d61b4bdc40b3135751b28d262055d061b36c41531028aba431441aeca0a482943e20b13f689b570101332d4a7930c6d9e50c5f3ec
|
data/NEWS
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# @markup markdown
|
2
2
|
|
3
|
+
2.2.10 (2022-01-12)
|
4
|
+
===================
|
5
|
+
|
6
|
+
- Use `File.exist?` instead of removed `File.exists?` in Ruby 3.2 (GH-242)
|
7
|
+
|
8
|
+
(contributed by Yasuo Honda)
|
9
|
+
|
10
|
+
- Support ruby 3.1 distributed by rubyinstaller.org
|
11
|
+
|
12
|
+
- Remove code for obsolete platforms
|
13
|
+
- Ruby compiled by Borland C++
|
14
|
+
- macOS released several years ago
|
15
|
+
|
16
|
+
- Detect arm64 macOS shared library in oraconf.rb in preparation for Instant Client for Apple Silicon release.
|
17
|
+
|
3
18
|
2.2.9 (2020-12-30)
|
4
19
|
==================
|
5
20
|
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@ Ruby-oci8
|
|
2
2
|
=========
|
3
3
|
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/ruby-oci8.svg)](http://badge.fury.io/rb/ruby-oci8)
|
5
|
-
[![
|
5
|
+
[![Tests](https://github.com/kubo/ruby-oci8/actions/workflows/tests.yml/badge.svg)](https://github.com/kubo/ruby-oci8/actions/workflows/tests.yml)
|
6
6
|
|
7
7
|
What is ruby-oci8
|
8
8
|
-----------------
|
data/dist-files
CHANGED
@@ -19,7 +19,6 @@ docs/install-instant-client.md
|
|
19
19
|
docs/install-on-osx.md
|
20
20
|
docs/ldap-auth-and-function-interposition.md
|
21
21
|
docs/number-type-mapping.md
|
22
|
-
docs/osx-install-dev-tools.png
|
23
22
|
docs/platform-specific-issues.md
|
24
23
|
docs/report-installation-issue.md
|
25
24
|
docs/timeout-parameters.md
|
data/docs/install-on-osx.md
CHANGED
@@ -1,133 +1,46 @@
|
|
1
|
-
# @title Install ruby-oci8 on
|
1
|
+
# @title Install ruby-oci8 on macOS
|
2
2
|
|
3
|
-
Install ruby-oci8 on
|
3
|
+
Install ruby-oci8 on macOS
|
4
4
|
=========================
|
5
5
|
|
6
|
-
|
6
|
+
**Note: Ruby-oci8 doesn't run on Apple Silicon because Oracle instant client
|
7
|
+
for Apple Silicon has not been released yet.**
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
Install C compiler
|
12
|
-
------------------
|
13
|
-
|
14
|
-
You need to install the command line developer tools or the Xcode.
|
15
|
-
(The latter includes the former.)
|
16
|
-
|
17
|
-
Run `"cc --version"` in a terminal to check whether they are installed.
|
18
|
-
|
19
|
-
If the cc version is printed, the tools are installed.
|
20
|
-
|
21
|
-
If the follwoing dialog is displayed, click its Install button to
|
22
|
-
install the tools.
|
23
|
-
You have no need to install the Xcode to compile ruby-oci8.
|
24
|
-
It requires command line tools, not an IDE such as the Xcode.
|
25
|
-
|
26
|
-
![dialog](osx-install-dev-tools.png)
|
9
|
+
Prerequisite
|
10
|
+
------------
|
27
11
|
|
28
|
-
|
29
|
-
please re-run as root via sudo."` is printed, you need to run
|
30
|
-
`"sudo cc --version"`, enter your password, look at the license
|
31
|
-
and type `"agree"`.
|
12
|
+
* Command line tools for Xcode or Xcode (by executing `xcode-select --install`) or [Xcode]
|
32
13
|
|
33
14
|
Install Oracle Instant Client Packages
|
34
15
|
--------------------------------------
|
35
16
|
|
36
|
-
|
37
|
-
|
38
|
-
Download the following packages from [Oracle Technology Network][]
|
39
|
-
|
40
|
-
* Instant Client Package - Basic (`instantclient-basic-macos.x64-12.1.0.2.0.zip`) or Basic Lite (`instantclient-basiclite-macos.x64-12.1.0.2.0.zip`)
|
41
|
-
* Instant Client Package - SDK (`instantclient-sdk-macos.x64-12.1.0.2.0.zip`)
|
42
|
-
* Instant Client Package - SQL*Plus (`instantclient-sqlplus-macos.x64-12.1.0.2.0.zip`) (optionally)
|
43
|
-
|
44
|
-
### Install Oracle Instant Client Packages via Homebrew
|
45
|
-
|
46
|
-
To install `Oracle Instant Client Basic` via [Homebrew][]
|
47
|
-
|
48
|
-
* Copy downloaded zip files to `/Library/Caches/Homebrew`
|
49
|
-
(if the environment variable `HOMEBREW_CACHE`
|
50
|
-
is not set and `$HOME/Library/Caches/Homebrew` doesn't exist.)
|
51
|
-
|
52
|
-
* Run the followining commands:
|
53
|
-
|
54
|
-
brew tap InstantClientTap/instantclient
|
55
|
-
brew install instantclient-basic
|
56
|
-
brew install instantclient-sdk
|
57
|
-
brew install instantclient-sqlplus # (optionally)
|
58
|
-
|
59
|
-
* Set the environment variable `OCI_DIR` while performing the following installation steps
|
60
|
-
if Homebrew is installed outside `/usr/local`.
|
61
|
-
|
62
|
-
export OCI_DIR=$(brew --prefix)/lib
|
63
|
-
|
64
|
-
To install `Oracle Instant Client Basic Lite` via [Homebrew][]
|
65
|
-
|
66
|
-
* Copy downloaded zip files to `/Library/Caches/Homebrew`
|
67
|
-
(if the environment variable `HOMEBREW_CACHE`
|
68
|
-
is not set and `$HOME/Library/Caches/Homebrew` doesn't exist.)
|
69
|
-
|
70
|
-
* Run the followining commands:
|
71
|
-
|
72
|
-
brew tap InstantClientTap/instantclient
|
73
|
-
brew install instantclient-basiclite
|
74
|
-
brew install instantclient-sdk
|
75
|
-
brew install instantclient-sqlplus --with-basiclite # (optionally)
|
76
|
-
|
77
|
-
* Set the environment variable `OCI_DIR` while performing the following installation steps
|
78
|
-
if Homebrew is installed outside `/usr/local`.
|
79
|
-
|
80
|
-
export OCI_DIR=$(brew --prefix)/lib
|
81
|
-
|
82
|
-
### Install Oracle Instant Client Manually
|
83
|
-
|
84
|
-
If you don't use [Homebrew][], do the following:
|
85
|
-
|
86
|
-
Unzip the packages as follows:
|
87
|
-
|
88
|
-
mkdir -p /opt/oracle
|
89
|
-
cd /opt/oracle
|
90
|
-
|
91
|
-
Copy downloaded files to /opt/oracle before running the following commands.
|
92
|
-
|
93
|
-
unzip instantclient-basic-macos.x64-12.1.0.2.0.zip
|
94
|
-
unzip instantclient-sdk-macos.x64-12.1.0.2.0.zip
|
95
|
-
unzip instantclient-sqlplus-macos.x64-12.1.0.2.0.zip
|
96
|
-
|
97
|
-
Make a symbolic link to link the library.
|
98
|
-
|
99
|
-
cd /opt/oracle/instantclient_12_1
|
100
|
-
ln -s libclntsh.dylib.12.1 libclntsh.dylib
|
101
|
-
|
102
|
-
Set the environment variable OCI_DIR while performing the following installation steps.
|
103
|
-
|
104
|
-
export OCI_DIR=/opt/oracle/instantclient_12_1
|
105
|
-
|
106
|
-
Installation
|
107
|
-
------------
|
108
|
-
|
109
|
-
If you get a problem in the following steps, look at {file:docs/report-installation-issue.md}.
|
110
|
-
|
111
|
-
### gem package
|
112
|
-
|
113
|
-
Run the following command.
|
17
|
+
If you have installed [Homebrew], use the following command:
|
114
18
|
|
115
|
-
|
19
|
+
```shell
|
20
|
+
$ brew tap InstantClientTap/instantclient
|
21
|
+
$ brew install instantclient-basic # or instantclient-basiclite
|
22
|
+
$ brew install instantclient-sdk
|
23
|
+
$ brew install instantclient-sqlplus # (optionally)
|
24
|
+
```
|
116
25
|
|
117
|
-
|
26
|
+
Otherwise, look at this [page][OTN] and set the environment variable
|
27
|
+
`OCI_DIR` to point the the directory where instant client is installed.
|
28
|
+
Ruby-oci8 installation script checks the directory.
|
118
29
|
|
119
|
-
|
30
|
+
```shell
|
31
|
+
export OCI_DIR=$HOME/Downloads/instantclient_19_8 # for example
|
32
|
+
```
|
120
33
|
|
121
|
-
|
34
|
+
Install ruby-oci8
|
35
|
+
-----------------
|
122
36
|
|
123
|
-
|
37
|
+
Note that `/usr/bin/ruby` isn't available. You need to use [`rbenv`] or so.
|
124
38
|
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
make install
|
39
|
+
```shell
|
40
|
+
$ gem install ruby-oci8
|
41
|
+
```
|
129
42
|
|
130
|
-
[download page]: https://bintray.com/kubo/generic/ruby-oci8
|
131
43
|
[Homebrew]: http://brew.sh/
|
132
|
-
[
|
133
|
-
[
|
44
|
+
[OTN]: https://www.oracle.com/database/technologies/instant-client/macos-intel-x86-downloads.html#ic_osx_inst
|
45
|
+
[Xcode]: https://apps.apple.com/us/app/xcode/id497799835
|
46
|
+
[`rbenv`]: https://github.com/rbenv/rbenv
|
data/lib/oci8/version.rb
CHANGED
data/lib/oci8.rb
CHANGED
data/lib/oci8lib_250.so
CHANGED
Binary file
|
data/lib/oci8lib_260.so
CHANGED
Binary file
|
data/lib/oci8lib_270.so
CHANGED
Binary file
|
data/lib/oci8lib_300.so
CHANGED
Binary file
|
data/lib/oci8lib_310.so
ADDED
Binary file
|
data/ruby-oci8.gemspec
CHANGED
@@ -50,7 +50,7 @@ EOS
|
|
50
50
|
# add map files to analyze a core (minidump) file.
|
51
51
|
so_vers.each do |ver|
|
52
52
|
map_file = 'ext/oci8/oci8lib_#{ver}.map'
|
53
|
-
so_files << map_file if File.
|
53
|
+
so_files << map_file if File.exist? map_file
|
54
54
|
end
|
55
55
|
|
56
56
|
# least version in so_vers
|
data/test/test_break.rb
CHANGED
@@ -99,6 +99,11 @@ class TestBreak < Minitest::Test
|
|
99
99
|
def test_timeout
|
100
100
|
@conn.non_blocking = true
|
101
101
|
start_time = Time.now
|
102
|
+
if server_is_runing_on_windows?
|
103
|
+
end_time = start_time + 5
|
104
|
+
else
|
105
|
+
end_time = start_time + 1
|
106
|
+
end
|
102
107
|
|
103
108
|
if defined? Rubinius and Rubinius::VERSION < "2.0"
|
104
109
|
# Rubinius 1.2.4
|
@@ -112,12 +117,8 @@ class TestBreak < Minitest::Test
|
|
112
117
|
@conn.exec("BEGIN DBMS_LOCK.SLEEP(5); END;")
|
113
118
|
end
|
114
119
|
end
|
115
|
-
if server_is_runing_on_windows?
|
116
|
-
end_time = start_time + 5
|
117
|
-
else
|
118
|
-
end_time = start_time + 1
|
119
|
-
end
|
120
120
|
assert_in_delta(Time.now, end_time, 1)
|
121
|
+
sleep(0.01) # for truffleruby. Is truffleruby too fast?
|
121
122
|
@conn.exec("BEGIN NULL; END;")
|
122
123
|
assert_in_delta(Time.now, end_time, 1)
|
123
124
|
end
|
data/test/test_oranumber.rb
CHANGED
@@ -215,9 +215,15 @@ EOS
|
|
215
215
|
end
|
216
216
|
|
217
217
|
def test_yaml
|
218
|
+
# Use the permitted_classes keyword parameter if it is supported by YAML.load
|
219
|
+
keyword_params = if YAML.method(:load).parameters.any? { |key, value| value == :permitted_symbols }
|
220
|
+
{permitted_classes: [OraNumber]}
|
221
|
+
else
|
222
|
+
{}
|
223
|
+
end
|
218
224
|
(LARGE_RANGE_VALUES + ['~', '-~']).each do |x|
|
219
225
|
n = OraNumber.new(x)
|
220
|
-
assert_equal(n, YAML.load(YAML.dump(n)))
|
226
|
+
assert_equal(n, YAML.load(YAML.dump(n), **keyword_params))
|
221
227
|
end
|
222
228
|
end
|
223
229
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-oci8
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.10
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Kubo Takehiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'ruby-oci8 is a ruby interface for Oracle using OCI8 API. It is available
|
14
14
|
with Oracle 10g or later including Oracle Instant Client.
|
@@ -37,7 +37,6 @@ files:
|
|
37
37
|
- docs/install-on-osx.md
|
38
38
|
- docs/ldap-auth-and-function-interposition.md
|
39
39
|
- docs/number-type-mapping.md
|
40
|
-
- docs/osx-install-dev-tools.png
|
41
40
|
- docs/platform-specific-issues.md
|
42
41
|
- docs/report-installation-issue.md
|
43
42
|
- docs/timeout-parameters.md
|
@@ -64,6 +63,7 @@ files:
|
|
64
63
|
- lib/oci8lib_260.so
|
65
64
|
- lib/oci8lib_270.so
|
66
65
|
- lib/oci8lib_300.so
|
66
|
+
- lib/oci8lib_310.so
|
67
67
|
- lib/ruby-oci8.rb
|
68
68
|
- metaconfig
|
69
69
|
- pre-distclean.rb
|
Binary file
|