ruby-oci8 2.2.10-x64-mingw-ucrt

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.
Files changed (78) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +14 -0
  3. data/COPYING +30 -0
  4. data/COPYING_old +64 -0
  5. data/ChangeLog +3826 -0
  6. data/Makefile +92 -0
  7. data/NEWS +1209 -0
  8. data/README.md +66 -0
  9. data/dist-files +112 -0
  10. data/docs/bind-array-to-in_cond.md +38 -0
  11. data/docs/conflicts-local-connections-and-processes.md +98 -0
  12. data/docs/hanging-after-inactivity.md +63 -0
  13. data/docs/install-binary-package.md +44 -0
  14. data/docs/install-full-client.md +111 -0
  15. data/docs/install-instant-client.md +194 -0
  16. data/docs/install-on-osx.md +46 -0
  17. data/docs/ldap-auth-and-function-interposition.md +123 -0
  18. data/docs/number-type-mapping.md +79 -0
  19. data/docs/platform-specific-issues.md +164 -0
  20. data/docs/report-installation-issue.md +50 -0
  21. data/docs/timeout-parameters.md +94 -0
  22. data/lib/.document +1 -0
  23. data/lib/dbd/OCI8.rb +591 -0
  24. data/lib/oci8/.document +8 -0
  25. data/lib/oci8/bindtype.rb +333 -0
  26. data/lib/oci8/check_load_error.rb +146 -0
  27. data/lib/oci8/compat.rb +117 -0
  28. data/lib/oci8/connection_pool.rb +179 -0
  29. data/lib/oci8/cursor.rb +605 -0
  30. data/lib/oci8/datetime.rb +605 -0
  31. data/lib/oci8/encoding-init.rb +45 -0
  32. data/lib/oci8/encoding.yml +537 -0
  33. data/lib/oci8/metadata.rb +2148 -0
  34. data/lib/oci8/object.rb +641 -0
  35. data/lib/oci8/oci8.rb +756 -0
  36. data/lib/oci8/ocihandle.rb +591 -0
  37. data/lib/oci8/oracle_version.rb +153 -0
  38. data/lib/oci8/properties.rb +196 -0
  39. data/lib/oci8/version.rb +3 -0
  40. data/lib/oci8.rb +190 -0
  41. data/lib/oci8lib_310.so +0 -0
  42. data/lib/ruby-oci8.rb +1 -0
  43. data/metaconfig +142 -0
  44. data/pre-distclean.rb +7 -0
  45. data/ruby-oci8.gemspec +85 -0
  46. data/setup.rb +1342 -0
  47. data/test/README.md +37 -0
  48. data/test/config.rb +201 -0
  49. data/test/setup_test_object.sql +199 -0
  50. data/test/setup_test_package.sql +59 -0
  51. data/test/test_all.rb +56 -0
  52. data/test/test_appinfo.rb +62 -0
  53. data/test/test_array_dml.rb +332 -0
  54. data/test/test_bind_array.rb +70 -0
  55. data/test/test_bind_boolean.rb +99 -0
  56. data/test/test_bind_integer.rb +47 -0
  57. data/test/test_bind_raw.rb +45 -0
  58. data/test/test_bind_string.rb +105 -0
  59. data/test/test_bind_time.rb +177 -0
  60. data/test/test_break.rb +125 -0
  61. data/test/test_clob.rb +85 -0
  62. data/test/test_connection_pool.rb +124 -0
  63. data/test/test_connstr.rb +220 -0
  64. data/test/test_datetime.rb +585 -0
  65. data/test/test_dbi.rb +365 -0
  66. data/test/test_dbi_clob.rb +53 -0
  67. data/test/test_encoding.rb +103 -0
  68. data/test/test_error.rb +87 -0
  69. data/test/test_metadata.rb +2674 -0
  70. data/test/test_object.rb +546 -0
  71. data/test/test_oci8.rb +624 -0
  72. data/test/test_oracle_version.rb +68 -0
  73. data/test/test_oradate.rb +255 -0
  74. data/test/test_oranumber.rb +792 -0
  75. data/test/test_package_type.rb +981 -0
  76. data/test/test_properties.rb +17 -0
  77. data/test/test_rowid.rb +32 -0
  78. metadata +123 -0
data/ruby-oci8.gemspec ADDED
@@ -0,0 +1,85 @@
1
+ # -*- ruby -*-
2
+ #
3
+ # To make a pure ruby gems package:
4
+ # gem build ruby-oci8.gemspec
5
+ #
6
+ # To make a binary gems package:
7
+ # gem build ruby-oci8.gemspec -- current
8
+ #
9
+ require 'fileutils'
10
+
11
+ if ARGV.include?("--") and ARGV[(ARGV.index("--") + 1)] == 'current'
12
+ gem_platform = 'current'
13
+ else
14
+ gem_platform = Gem::Platform::RUBY
15
+ end
16
+
17
+ if defined? OCI8
18
+ oci8_version = OCI8::VERSION
19
+ else
20
+ # Load oci8/version.rb temporarily and delete OCI8.
21
+ # Some 'bundler' tasks load this file before 'require "oci8"'
22
+ # and fail with 'TypeError: superclass mismatch for class OCI8.'
23
+ Kernel.load File.dirname(__FILE__) + '/lib/oci8/version.rb'
24
+ oci8_version = OCI8::VERSION
25
+ Object.send(:remove_const, :OCI8)
26
+ end
27
+
28
+ spec = Gem::Specification.new do |s|
29
+ s.name = 'ruby-oci8'
30
+ s.version = oci8_version
31
+ s.summary = 'Ruby interface for Oracle using OCI8 API'
32
+ s.email = 'kubo@jiubao.org'
33
+ s.homepage = 'http://www.rubydoc.info/github/kubo/ruby-oci8'
34
+ s.description = <<EOS
35
+ ruby-oci8 is a ruby interface for Oracle using OCI8 API. It is available with Oracle 10g or later including Oracle Instant Client.
36
+ EOS
37
+ s.authors = ['Kubo Takehiro']
38
+ s.platform = gem_platform
39
+ s.license = 'BSD-2-Clause'
40
+ files = File.read('dist-files').split("\n")
41
+ if gem_platform == Gem::Platform::RUBY
42
+ s.extensions << 'ext/oci8/extconf.rb'
43
+ s.required_ruby_version = '>= 1.9.1'
44
+ else
45
+ so_files = Dir.glob('ext/oci8/oci8lib_*.so')
46
+ so_vers = so_files.collect do |file|
47
+ $1 if /ext\/oci8\/oci8lib_(\S+).so/ =~ file
48
+ end.sort
49
+
50
+ # add map files to analyze a core (minidump) file.
51
+ so_vers.each do |ver|
52
+ map_file = 'ext/oci8/oci8lib_#{ver}.map'
53
+ so_files << map_file if File.exist? map_file
54
+ end
55
+
56
+ # least version in so_vers
57
+ so_vermin = so_vers.collect do |ver|
58
+ "#$1.#$2.#{$3||'0'}" if /^(?:rbx)?(\d)(\d)(\d)?/ =~ ver
59
+ end.sort.first
60
+
61
+ case so_vers.length
62
+ when 0
63
+ raise "No compiled binary are found. Run make in advance."
64
+ when 1
65
+ puts "Binary gem for ruby #{so_vers.first}"
66
+ s.required_ruby_version = "~> #{so_vermin}"
67
+ else
68
+ puts "Binary gem for ruby #{so_vers.join(', ')}"
69
+ s.required_ruby_version = ">= #{so_vermin}"
70
+ end
71
+
72
+ FileUtils.copy so_files, 'lib', :preserve => true
73
+ files.reject! do |fname|
74
+ fname =~ /^ext/
75
+ end
76
+ so_files.each do |fname|
77
+ files << 'lib/' + File.basename(fname)
78
+ end
79
+ files << 'lib/oci8.rb'
80
+ end
81
+ s.require_paths = ['lib']
82
+ s.files = files
83
+ s.test_files = 'test/test_all.rb'
84
+ s.extra_rdoc_files = ['README.md']
85
+ end