ruby-oci8 2.1.8 → 2.2.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.yardopts CHANGED
@@ -6,6 +6,7 @@
6
6
  --exclude lib/dbd
7
7
  --hide-void-return
8
8
  --charset UTF-8
9
+ --asset docs/osx-install-dev-tools.png:osx-install-dev-tools.png
9
10
  -
10
11
  NEWS
11
12
  COPYING
@@ -13,5 +14,6 @@ COPYING_old
13
14
  docs/install-full-client.md
14
15
  docs/install-instant-client.md
15
16
  docs/install-binary-package.md
17
+ docs/install-on-osx.md
16
18
  docs/platform-specific-issues.md
17
19
  docs/report-installation-issue.md
data/ChangeLog CHANGED
@@ -1,3 +1,189 @@
1
+ 2015-10-11 Kubo Takehiro <kubo@jiubao.org>
2
+ * NEWS: Add changes between 2.2.0 and 2.2.0.1.
3
+ * docs/install-on-osx.md: Fix indent width.
4
+ * lib/oci8/version.rb: update to 2.2.0.1.
5
+
6
+ 2015-10-11 Kubo Takehiro <kubo@jiubao.org>
7
+ * docs/osx-install-dev-tools.png: added.
8
+ * docs/install-on-osx.md: fix "Install C compiler."
9
+ * README.md: Use documents in rubydoc.info as homepage.
10
+
11
+ 2015-10-10 Kubo Takehiro <kubo@jiubao.org>
12
+ * ruby-oci8.gemspec: Change the required_ruby_version from '>= 1.8.0'
13
+ to '>= 1.9.1'.
14
+ (github issue #96)
15
+
16
+ 2015-10-06 Kubo Takehiro <kubo@jiubao.org>
17
+ * README.md: Add notice that ruby 1.8 is not supported.
18
+ * README.md, ext/oci8/oraconf.rb: Change links to ruby-oci8 documents.
19
+ They had referred docs generated from the latest gem. They were
20
+ updated only when a new version was released. Now they refers
21
+ to docs generated from the latest github repository. They are
22
+ updated for each commits.
23
+
24
+ 2015-10-05 Kubo Takehiro <kubo@jiubao.org>
25
+ * docs/install-on-osx.md: Merge GH-97: Fix small typo in NEWS file.
26
+
27
+ 2015-10-04 Kubo Takehiro <kubo@jiubao.org>
28
+ * NEWS: Add changes between 2.1.8 and 2.2.0.
29
+
30
+ 2015-10-04 Kubo Takehiro <kubo@jiubao.org>
31
+ * ext/oci8/oci8lib.c: Fix compilation errors when --with-runtime-check
32
+ is passed to extconf.rb.
33
+
34
+ 2015-10-04 Kubo Takehiro <kubo@jiubao.org>
35
+ * ext/oci8/apiwrap.yml, ext/oci8/stmt.c: Use OCIStmtPrepare2 as
36
+ a local function, which doesn't require a server round-trip.
37
+ Local functions are executed without releasing the GVL.
38
+
39
+ 2015-10-04 Kubo Takehiro <kubo@jiubao.org>
40
+ * docs/install-on-osx.md: Add notice that OCI_DIR is necessary
41
+ when Homebrew is installed outside /usr/local.
42
+ * README.md: Add a link to install-on-osx.md.
43
+
44
+ 2015-10-03 Kubo Takehiro <kubo@jiubao.org>
45
+ * docs/install-on-osx.md: Merge GH-95: Add OCI_DIR export to
46
+ Homebrew Installation Steps
47
+
48
+ 2015-09-29 Kubo Takehiro <kubo@jiubao.org>
49
+ * docs/install-on-osx.md, .yardopts: Add a new file for
50
+ installation on OS X.
51
+ * docs/install-instant-client.md: Delete installation steps
52
+ on OS X.
53
+
54
+ 2015-09-26 Kubo Takehiro <kubo@jiubao.org>
55
+ * lib/oci8/check_load_error.rb: Refactoring.
56
+
57
+ 2015-09-26 Kubo Takehiro <kubo@jiubao.org>
58
+ * ext/dist-files, ext/oci8/extconf.rb, ext/oci8/oci8.h,
59
+ ext/oci8/oci8lib.c, ext/oci8/osx.c: Revert the previous commit.
60
+
61
+ 2015-09-19 Kubo Takehiro <kubo@jiubao.org>
62
+ * ext/dist-files, ext/oci8/extconf.rb, ext/oci8/oci8.h,
63
+ ext/oci8/oci8lib.c, ext/oci8/osx.c: Intercept dlopen issued
64
+ by libclntsh.dylib to make OCIEnvCreate() work without
65
+ setting rpath to ruby itself.
66
+ ** This commit was reverted. **
67
+
68
+ 2015-09-19 Kubo Takehiro <kubo@jiubao.org>
69
+ * ext/oci8/oraconf.rb: Use OCI_DIR environmant variable also
70
+ to check instant client directory on OS X.
71
+ (github issue #89)
72
+
73
+ 2015-09-19 Kubo Takehiro <kubo@jiubao.org>
74
+ * ext/oci8/oci8.h: Define STRINGIZE macro for rubinius.
75
+
76
+ 2015-09-19 Kubo Takehiro <kubo@jiubao.org>
77
+ * README.md: Update supported Oracle version.
78
+ * dist-files: Add lib/oci8/check_load_error.rb.
79
+ * ext/oci8/extconf.rb: Reduce the number of #define values.
80
+
81
+ 2015-09-17 Kubo Takehiro <kubo@jiubao.org>
82
+ * lib/oci8/oci8.rb: Change the driver name displayed in
83
+ V$SESSION_CONNECT_INFO.CLIENT_DRIVER from "rubyoci8 : VERSION" to
84
+ "ruby-oci8 : VERSION".
85
+ * test/test_oci8.rb: Fix a test checking the driver name.
86
+ (github issue #93)
87
+
88
+ 2015-09-13 Kubo Takehiro <kubo@jiubao.org>
89
+ * NEWS, docs/report-installation-issue.md, ext/oci8/oraconf.rb,
90
+ lib/oci8/properties.rb, ruby-oci8.gemspec: Fix links to rubyforge.
91
+
92
+ 2015-09-13 Kubo Takehiro <kubo@jiubao.org>
93
+ * ruby-oci8.gemspec: Use Kernel.load instead of load not to use Gem::Specification.load.
94
+
95
+ 2015-09-13 Kubo Takehiro <kubo@jiubao.org>
96
+ * .gitignore: Ignore ext/oci8/*.bundle.
97
+
98
+ 2015-09-12 Kubo Takehiro <kubo@jiubao.org>
99
+ * ext/oci8/lob.c: Add notice that OCI8::LOB is an I/O object and is closed
100
+ when a associating connection is closed.
101
+
102
+ 2015-09-12 Kubo Takehiro <kubo@jiubao.org>
103
+ * lib/oci8/oci8.rb: Add ruby-oci8 version to
104
+ V$SESSION_CONNECT_INFO.CLIENT_DRIVER for Oracle 12.1.0.2 or later.
105
+ (suggested by Christopher Jones)
106
+
107
+ 2015-08-24 Kubo Takehiro <kubo@jiubao.org>
108
+ * ext/oci8/apiwrap.yml, ext/oci8/lob.c: Support LOB whose size is
109
+ over 4G.
110
+
111
+ 2015-08-23 Kubo Takehiro <kubo@jiubao.org>
112
+ * dist-files: Add ext/oci8/util.c.
113
+
114
+ 2015-07-12 Kubo Takehiro <kubo@jiubao.org>
115
+ * docs/install-instant-client.md: Add instant client installation
116
+ instructions on OS X using homebrew.
117
+
118
+ 2015-07-12 Kubo Takehiro <kubo@jiubao.org>
119
+ * ext/oci8/oci8.rb: Check DYLD_FALLBACK_LIBRARY_PATH also on
120
+ installation. (OS X only)
121
+
122
+ 2015-07-11 Kubo Takehiro <kubo@jiubao.org>
123
+ * ext/oci8/error.c, ext/oci8/extconf.rb, ext/oci8/oci8.h,
124
+ ext/oci8/oci8lib.c, ext/oci8/util.c, ext/oci8/win32.c,
125
+ lib/oci8/encoding-init.rb: Delete OCI8::Win32Util.dll_path
126
+ and add OCI8::Util.dll_path, which works on Linux, Solaris,
127
+ OS X and HP-UX in addition to Windows.
128
+
129
+ 2015-06-26 Kubo Takehiro <kubo@jiubao.org>
130
+ * lib/oci8.rb, lib/oci8/check_load_error.rb: Check the message of
131
+ LoadError and raise more user-friendly message.
132
+
133
+ 2015-06-23 Kubo Takehiro <kubo@jiubao.org>
134
+ * ruby-oci8.gemspec: Load oci8/version.rb temporarily and delete OCI8.
135
+ Some 'bundler' tasks load 'ruby-oci8.gemspec' before 'require "oci8"'
136
+ and fail with 'TypeError: superclass mismatch for class OCI8.'
137
+ (github issue #80)
138
+
139
+ 2015-06-21 Kubo Takehiro <kubo@jiubao.org>
140
+ * ruby-oci8.gemspec: Use ruby-oci8 version in lib/oci8/version.rb
141
+ instead of VERSION file to generate gem.
142
+ (github issue #79)
143
+
144
+ 2015-06-21 Kubo Takehiro <kubo@jiubao.org>
145
+ * Makefile, dist-files, ext/oci8/extconf.rb, ext/oci8/oci8.c: Use
146
+ ruby-oci8 version in lib/oci8/version.rb instead of VERSION file.
147
+ * VERSION: Deleted
148
+ * lib/oci8/version.rb: Added
149
+ * lib/oci8.rb, lib/oci8.rb.in: Renamed lib/oci8.rb to lib/oci8.rb.in.
150
+
151
+ 2015-06-21 Kubo Takehiro <kubo@jiubao.org>
152
+ * lib/oci8/encoding-init.rb: Get Oracle client charset name from
153
+ the environment handle instead of NLS_LANG.
154
+
155
+ 2015-06-20 Kubo Takehiro <kubo@jiubao.org>
156
+ * ext/oci8/oci8.h: Fix a compilation error.
157
+
158
+ 2015-06-20 Kubo Takehiro <kubo@jiubao.org>
159
+ * lib/oci8/oci8.rb: Change the default prefetch rows size 100.
160
+
161
+ 2015-06-20 Kubo Takehiro <kubo@jiubao.org>
162
+ * ext/oci8/extconf.rb: Delete an object file created by extconf.rb
163
+ before compilation.
164
+ (github issue #75)
165
+
166
+ 2015-06-20 Kubo Takehiro <kubo@jiubao.org>
167
+ * ext/oci8/apiwrap.yml, ext/oci8/stmt.c:
168
+ Delete unreachable code which was created when Oracle 9i support was dropped.
169
+
170
+ 2015-05-24 Kubo Takehiro <kubo@jiubao.org>
171
+ * ext/oci8/encoding.c: Add OCI8.charset_name2id and OCI8.charset_id2name.
172
+ Mark OCI8#charset_name2id and OCI8#charset_id2name as deprecated.
173
+
174
+ 2015-05-23 Kubo Takehiro <kubo@jiubao.org>
175
+ * ext/oci8/bind.c, ext/oci8/encoding.c, ext/oci8/error.c, ext/oci8/oci8.c,
176
+ ext/oci8/oci8lib.c, ext/oci8/ocidatetime.c, ext/oci8/stmt.c,
177
+ lib/oci8/metadata.rb, lib/oci8/properties.rb:
178
+ Drop Oracle 9i support.
179
+
180
+ 2015-05-22 Kubo Takehiro <kubo@jiubao.org>
181
+ * ext/oci8/apiwrap.c.tmpl, ext/oci8/encoding.c, ext/oci8/env.c,
182
+ ext/oci8/extconf.rb, ext/oci8/lob.c, ext/oci8/oci8.c, ext/oci8/oci8.h,
183
+ ext/oci8/oci8lib.c, ext/oci8/ocinumber.c, ext/oci8/thread_util.c,
184
+ ext/oci8/thread_util.h, lib/oci8/bindtype.rb, lib/oci8/encoding-init.rb,
185
+ lib/oci8/oci8.rb: Drop ruby 1.8 support.
186
+
1
187
  2015-04-04 Kubo Takehiro <kubo@jiubao.org>
2
188
  * NEWS: add changes between 2.1.7 and 2.1.8.
3
189
  * VERSION: update to 2.1.8.
data/Makefile CHANGED
@@ -1,9 +1,9 @@
1
- VERSION = `cat VERSION`
1
+ VERSION = `$(RUBY) -I. -rlib/oci8/version.rb -e "print OCI8::VERSION"`
2
2
  RUBY = ruby -w
3
3
 
4
4
  all: build
5
5
 
6
- config.save: lib/oci8.rb.in
6
+ config.save:
7
7
  $(RUBY) setup.rb config
8
8
 
9
9
  build: config.save
data/NEWS CHANGED
@@ -1,5 +1,64 @@
1
1
  # @markup markdown
2
2
 
3
+ 2.2.0.1
4
+ =======
5
+
6
+ If ruby-oci8 2.2.0 is installed, you have no need to update it to
7
+ 2.2.0.1. Source code itself was not chaned between 2.2.0 and 2.2.0.1.
8
+
9
+ ### Change the required ruby version in the ruby-oci8 gem
10
+
11
+ It was '>= 1.8.0' in ruby-oci8 2.2.0 even though ruby 1.8 support was
12
+ dropped.
13
+
14
+ ### Change the URLs displayed on installation failure
15
+
16
+ Ruby-oci8 2.2.0 documents had not been generated in rubydoc.info
17
+ though the URLs are displayed on installation failure. They were
18
+ changed to documents generated by the latest github repository.
19
+
20
+ 2.2.0
21
+ =====
22
+
23
+ ### Drop ruby 1.8 support
24
+
25
+ Use ruby-oci8 2.1.8 for ruby 1.8.
26
+
27
+ ### Drop Oracle 9i support
28
+
29
+ Use ruby-oci8 2.1.8 for Oracle 9i.
30
+
31
+ New Features
32
+ ------------
33
+
34
+ ### Support LOB over 4G
35
+
36
+ ### Fix to install ruby-oci8 on OS X 10.11 El Capitan.
37
+
38
+ `DYLD_LIBRARY_PATH` is unset for security reasons on OS X 10.11.
39
+ The installation script was changed to work without `DYLD_LIBRARY_PATH`
40
+ and check the environment variable `OCI_DIR` also to tell instant
41
+ client directory.
42
+
43
+ Other Changes
44
+ -------------
45
+
46
+ - Change the default prefetch row size to 100.
47
+
48
+ - Add notice that OCI8::LOB is an I/O object and is closed
49
+ when a associating connection is closed.
50
+
51
+ - Add ruby-oci8 version the driver name, which is displayed in
52
+ `V$SESSION_CONNECT_INFO.CLIENT_DRIVER` for Oracle 12.1.0.2 or later.
53
+ (suggested by Christopher Jones)
54
+
55
+ - Use `Kernel.load` in ruby-oci8.gemspec instead of `load`.
56
+ `load`, without the module name, is used as `Gem::Specification.load`
57
+ by some ruby installations.
58
+
59
+ - Add OCI8.charset_name2id and OCI8.charset_id2name.
60
+ Mark OCI8#charset_name2id and OCI8#charset_id2name as deprecated.
61
+
3
62
  2.1.8
4
63
  =====
5
64
 
@@ -250,7 +309,7 @@ Fixed Issues
250
309
  ------------
251
310
 
252
311
  - delete code which overwrites signal handlers registered by ruby.
253
- See: [rubyforge thread 50690](http://rubyforge.org/forum/forum.php?thread_id=50690&forum_id=1078)
312
+ See: [rubyforge thread 50690](https://web.archive.org/web/20140521194940/https://rubyforge.org/forum/forum.php?thread_id=50690&forum_id=1078)
254
313
 
255
314
  - fix internal heap error in OCI.
256
315
  See: [github issue #12](https://github.com/kubo/ruby-oci8/issues/12)
@@ -463,7 +522,7 @@ You need to set "`OCI8.properties[:bind_string_as_nchar] = true`"
463
522
  if the database character set is not UTF-8 and 'NCHAR'/'NVARCHAR2' columns
464
523
  contain characters which cannot be converted to the database character set.
465
524
 
466
- See: {http://rubyforge.org/forum/forum.php?thread\_id=48838&forum\_id=1078}
525
+ See: [rubyforge thread 48838](https://web.archive.org/web/20140519033641/http://rubyforge.org/forum/forum.php?thread_id=48838&forum_id=1078)
467
526
 
468
527
  Fixed issues
469
528
  ------------
@@ -472,13 +531,13 @@ Fixed issues
472
531
 
473
532
  (reported by Jordan Curzon and Aaron Qian)
474
533
 
475
- See: {http://rubyforge.org/forum/forum.php?thread\_id=49751&forum\_id=1078}
534
+ See: [rubyforge thread 49751](https://web.archive.org/web/20140519033653/http://rubyforge.org/forum/forum.php?thread_id=49751&forum_id=1078)
476
535
 
477
536
  - Raise "OCIError: ORA-01805: possible error in date/time operation"
478
537
  when Oracle 11gR2's client and server timezone versions are not same
479
538
  instead of raising a exception "undefined method `*' for nil:NilClass."
480
539
 
481
- See: {http://rubyforge.org/forum/forum.php?thread\_id=49102&forum\_id=1078}
540
+ See: [rubyforge thread 49102](https://web.archive.org/web/20140521194951/https://rubyforge.org/forum/forum.php?thread_id=49102&forum_id=1078)
482
541
 
483
542
  - Fix unexpectedly disconnect when failed-logon connections is GC'ed
484
543
  and the connection object's address is accidentally same with
@@ -756,7 +815,7 @@ Fixed installation issues
756
815
 
757
816
  * fix an error when executing "select NULL from dual".
758
817
 
759
- {http://rubyforge.org/forum/forum.php?thread\_id=32468&forum\_id=1078}
818
+ [rubyforge thread 32468](https://web.archive.org/web/20140521152939/http://rubyforge.org/forum/forum.php?thread_id=32468&forum_id=1078)
760
819
  (contributed by Raimonds Simanovskis)
761
820
 
762
821
  * [ruby 1.9] fix OCI8::BLOB to read/write binary. Prior to 2.0.1,
data/README.md CHANGED
@@ -2,10 +2,13 @@ What is ruby-oci8
2
2
  =================
3
3
 
4
4
  Ruby-oci8 is a ruby interface for Oracle Database. The latest version
5
- is available for all Oracle versions after Oracle 9i including Oracle
5
+ is available for all Oracle versions after Oracle 10g including Oracle
6
6
  Instant Client.
7
7
 
8
- If you need to use Oracle 8, use ruby-oci8 2.0.6.
8
+ Use ruby-oci8 2.0.6 for Oracle 8 or use ruby-oci8 2.1.8 for Oracle 9i.
9
+
10
+ Note that ruby 1.8 support was dropped in ruby-oci8 2.2.0.
11
+ Use ruby-2.1.8 for ruby 1.8.
9
12
 
10
13
  What's new
11
14
  ==========
@@ -19,12 +22,10 @@ Connect to scott/tiger, select `emp` and print as CSV format.
19
22
 
20
23
  ruby -r oci8 -e "OCI8.new('scott', 'tiger').exec('select * from emp') do |r| puts r.join(','); end"
21
24
 
22
- If you install a ruby-oci8 gem package, you may need to add `-rubygems` before `-r oci8`.
23
-
24
- Documentation
25
- =============
25
+ Homepage
26
+ ========
26
27
 
27
- * http://rubydoc.info/gems/ruby-oci8/
28
+ * http://www.rubydoc.info/github/kubo/ruby-oci8
28
29
 
29
30
  Installation
30
31
  ============
@@ -32,11 +33,12 @@ Installation
32
33
  * {file:docs/install-full-client.md Install for Oracle Full Client}
33
34
  * {file:docs/install-instant-client.md Install for Oracle Instant Client}
34
35
  * {file:docs/install-binary-package.md Install Binary Package}
36
+ * {file:docs/install-on-osx.md Install on OS X}
35
37
 
36
38
  Report issues
37
39
  =============
38
40
 
39
- * {file:docs/report-installation-issue.md}
41
+ * {file:docs/report-installation-issue.md Report Installation Issues}
40
42
  * [The issues page on github](https://github.com/kubo/ruby-oci8/issues)
41
43
 
42
44
  License
data/dist-files CHANGED
@@ -5,7 +5,6 @@ ChangeLog
5
5
  Makefile
6
6
  NEWS
7
7
  README.md
8
- VERSION
9
8
  dist-files
10
9
  metaconfig
11
10
  pre-distclean.rb
@@ -14,6 +13,8 @@ setup.rb
14
13
  docs/install-binary-package.md
15
14
  docs/install-full-client.md
16
15
  docs/install-instant-client.md
16
+ docs/install-on-osx.md
17
+ docs/osx-install-dev-tools.png
17
18
  docs/platform-specific-issues.md
18
19
  docs/report-installation-issue.md
19
20
  ext/oci8/.document
@@ -51,12 +52,14 @@ ext/oci8/post-config.rb
51
52
  ext/oci8/stmt.c
52
53
  ext/oci8/thread_util.c
53
54
  ext/oci8/thread_util.h
55
+ ext/oci8/util.c
54
56
  ext/oci8/win32.c
55
57
  lib/.document
56
- lib/oci8.rb.in
58
+ lib/oci8.rb
57
59
  lib/dbd/OCI8.rb
58
60
  lib/oci8/.document
59
61
  lib/oci8/bindtype.rb
62
+ lib/oci8/check_load_error.rb
60
63
  lib/oci8/compat.rb
61
64
  lib/oci8/connection_pool.rb
62
65
  lib/oci8/cursor.rb
@@ -69,6 +72,7 @@ lib/oci8/oci8.rb
69
72
  lib/oci8/ocihandle.rb
70
73
  lib/oci8/oracle_version.rb
71
74
  lib/oci8/properties.rb
75
+ lib/oci8/version.rb
72
76
  test/README
73
77
  test/config.rb
74
78
  test/setup_test_object.sql
@@ -93,4 +97,5 @@ test/test_oci8.rb
93
97
  test/test_oracle_version.rb
94
98
  test/test_oradate.rb
95
99
  test/test_oranumber.rb
100
+ test/test_package_type.rb
96
101
  test/test_rowid.rb
@@ -5,10 +5,13 @@ Introduction
5
5
 
6
6
  This page explains the way to install ruby-oci8 for Oracle Instant Client.
7
7
 
8
- For Oracle Full Client, look at {file:docs/install-full-client.md}.
9
- For Windows, look at {file:docs/install-binary-package.md} unless you
8
+ Look at {file:docs/install-full-client.md} for Oracle Full Client.
9
+
10
+ Look at {file:docs/install-binary-package.md} for Windows unless you
10
11
  have a special need to compile ruby-oci8 by yourself.
11
12
 
13
+ Look at {file:docs/install-on-osx.md} for OS X.
14
+
12
15
  Install Oracle Instant Client Packages
13
16
  ======================================
14
17
 
@@ -43,7 +46,6 @@ a symbolic link to link the library.
43
46
  Note:
44
47
 
45
48
  * use libclntsh.sl instead of libclntsh.so on HP-UX PA-RISC.
46
- * use libclntsh.dylib instead of libclntsh.so on Mac OS X.
47
49
  * skip this step for AIX.
48
50
  * run `yum install libaio` also on Redhat.
49
51
  * run `apt-get install libaio1` also on Ubuntu.
@@ -62,10 +64,10 @@ the installed directory.
62
64
  <tr><td> HP-UX PA-RISC 32-bit ruby </td><td> SHLIB_PATH </td></tr>
63
65
  <tr><td> HP-UX PA-RISC 64-bit ruby </td><td> LD_LIBRARY_PATH </td></tr>
64
66
  <tr><td> HP-UX IA64 </td><td> LD_LIBRARY_PATH </td></tr>
65
- <tr><td> Mac OS X </td><td> DYLD_LIBRARY_PATH </td></tr>
66
67
  <tr><td> AIX </td><td> LIBPATH </td></tr>
67
68
  </tbody>
68
69
  </table>
70
+ Note: Look at {file:docs/install-on-osx.md} for OS X.
69
71
 
70
72
  For example:
71
73
 
@@ -105,7 +107,7 @@ Oracle installation
105
107
  -------------------
106
108
 
107
109
  Run the following command and confirm it works fine. If it doesn't
108
- work well, check LD\_LIBRARY\_PATH or PATH.
110
+ work well, check `LD_LIBRARY_PATH` or PATH.
109
111
 
110
112
  sqlplus USERNAME/PASSWORD
111
113