ruby-oci8 2.2.6 → 2.2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ChangeLog CHANGED
@@ -1,3 +1,11 @@
1
+ 2018-09-16 Kubo Takehiro <kubo@jiubao.org>
2
+ * NEWS: Add changes between 2.2.6 and 2.2.6.1
3
+ * lib/oci8/version.rb: Update to 2.2.6.1
4
+
5
+ 2018-09-16 Kubo Takehiro <kubo@jiubao.org>
6
+ * ext/oci8/hook_funcs.c: Fix "No shared library is found to hook." on macOS.
7
+ (oracle-enhanced issue #1768)
8
+
1
9
  2018-08-22 Kubo Takehiro <kubo@jiubao.org>
2
10
  * NEWS: Add changes between 2.2.5.1 and 2.2.6
3
11
  * lib/oci8/version.rb: Update to 2.2.6
data/NEWS CHANGED
@@ -1,5 +1,13 @@
1
1
  # @markup markdown
2
2
 
3
+ 2.2.6.1
4
+ =======
5
+
6
+ Fixed issue
7
+ -----------
8
+ Fix "No shared library is found to hook." on macOS.
9
+ (rsim/oracle-enhanced#1768)
10
+
3
11
  2.2.6
4
12
  =====
5
13
 
@@ -257,6 +257,12 @@ static void shutdown_socket(socket_entry_t *entry)
257
257
  #else
258
258
  static ssize_t hook_read(int fd, void *buf, size_t count);
259
259
 
260
+ #ifdef __APPLE__
261
+ #define SO_EXT "dylib"
262
+ #else
263
+ #define SO_EXT "so"
264
+ #endif
265
+
260
266
  static hook_func_entry_t functions[] = {
261
267
  {"read", (void*)hook_read, NULL},
262
268
  #ifdef SUPPORT_TCP_KEEPALIVE_TIME
@@ -292,7 +298,7 @@ static void *ocifunc_addr(void *dlsym_handle, const char **file)
292
298
  if (dladdr(addr, &dli) == 0) {
293
299
  return NULL;
294
300
  }
295
- if (strstr(dli.dli_fname, "/libclntsh.so") == 0) {
301
+ if (strstr(dli.dli_fname, "/libclntsh." SO_EXT) == 0) {
296
302
  return NULL;
297
303
  }
298
304
  *file = dli.dli_fname;
@@ -1,3 +1,3 @@
1
1
  class OCI8
2
- VERSION = "2.2.6"
2
+ VERSION = "2.2.6.1"
3
3
  end
metadata CHANGED
@@ -1,27 +1,35 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ruby-oci8
3
- version: !ruby/object:Gem::Version
4
- version: 2.2.6
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 2
7
+ - 2
8
+ - 6
9
+ - 1
10
+ version: 2.2.6.1
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Kubo Takehiro
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2018-08-22 00:00:00.000000000 Z
17
+
18
+ date: 2018-09-16 00:00:00 +09:00
19
+ default_executable:
13
20
  dependencies: []
14
- description: ! 'ruby-oci8 is a ruby interface for Oracle using OCI8 API. It is available
15
- with Oracle 10g or later including Oracle Instant Client.
16
21
 
17
- '
22
+ description: |
23
+ ruby-oci8 is a ruby interface for Oracle using OCI8 API. It is available with Oracle 10g or later including Oracle Instant Client.
24
+
18
25
  email: kubo@jiubao.org
19
26
  executables: []
20
- extensions:
27
+
28
+ extensions:
21
29
  - ext/oci8/extconf.rb
22
- extra_rdoc_files:
30
+ extra_rdoc_files:
23
31
  - README.md
24
- files:
32
+ files:
25
33
  - .yardopts
26
34
  - COPYING
27
35
  - COPYING_old
@@ -135,32 +143,40 @@ files:
135
143
  - test/test_package_type.rb
136
144
  - test/test_properties.rb
137
145
  - test/test_rowid.rb
146
+ has_rdoc: true
138
147
  homepage: http://www.rubydoc.info/github/kubo/ruby-oci8
139
- licenses:
148
+ licenses:
140
149
  - BSD-2-Clause
141
150
  post_install_message:
142
151
  rdoc_options: []
143
- require_paths:
152
+
153
+ require_paths:
144
154
  - lib
145
155
  - ext/oci8
146
- required_ruby_version: !ruby/object:Gem::Requirement
156
+ required_ruby_version: !ruby/object:Gem::Requirement
147
157
  none: false
148
- requirements:
149
- - - ! '>='
150
- - !ruby/object:Gem::Version
158
+ requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ segments:
162
+ - 1
163
+ - 9
164
+ - 1
151
165
  version: 1.9.1
152
- required_rubygems_version: !ruby/object:Gem::Requirement
166
+ required_rubygems_version: !ruby/object:Gem::Requirement
153
167
  none: false
154
- requirements:
155
- - - ! '>='
156
- - !ruby/object:Gem::Version
157
- version: '0'
168
+ requirements:
169
+ - - ">="
170
+ - !ruby/object:Gem::Version
171
+ segments:
172
+ - 0
173
+ version: "0"
158
174
  requirements: []
175
+
159
176
  rubyforge_project:
160
- rubygems_version: 1.8.11
177
+ rubygems_version: 1.3.7
161
178
  signing_key:
162
179
  specification_version: 3
163
180
  summary: Ruby interface for Oracle using OCI8 API
164
- test_files:
181
+ test_files:
165
182
  - test/test_all.rb
166
- has_rdoc: yard