ruby-staci 2.2.9

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 (115) 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 +1194 -0
  8. data/README.md +66 -0
  9. data/dist-files +113 -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 +133 -0
  17. data/docs/ldap-auth-and-function-interposition.md +123 -0
  18. data/docs/number-type-mapping.md +79 -0
  19. data/docs/osx-install-dev-tools.png +0 -0
  20. data/docs/platform-specific-issues.md +164 -0
  21. data/docs/report-installation-issue.md +50 -0
  22. data/docs/timeout-parameters.md +94 -0
  23. data/ext/oci8/.document +18 -0
  24. data/ext/oci8/MANIFEST +18 -0
  25. data/ext/oci8/apiwrap.c.tmpl +178 -0
  26. data/ext/oci8/apiwrap.h.tmpl +61 -0
  27. data/ext/oci8/apiwrap.rb +96 -0
  28. data/ext/oci8/apiwrap.yml +1322 -0
  29. data/ext/oci8/attr.c +57 -0
  30. data/ext/oci8/bind.c +838 -0
  31. data/ext/oci8/connection_pool.c +216 -0
  32. data/ext/oci8/encoding.c +196 -0
  33. data/ext/oci8/env.c +139 -0
  34. data/ext/oci8/error.c +385 -0
  35. data/ext/oci8/extconf.rb +219 -0
  36. data/ext/oci8/hook_funcs.c +407 -0
  37. data/ext/oci8/lob.c +1278 -0
  38. data/ext/oci8/metadata.c +279 -0
  39. data/ext/oci8/object.c +919 -0
  40. data/ext/oci8/oci8.c +1058 -0
  41. data/ext/oci8/oci8.h +556 -0
  42. data/ext/oci8/oci8lib.c +704 -0
  43. data/ext/oci8/ocidatetime.c +506 -0
  44. data/ext/oci8/ocihandle.c +852 -0
  45. data/ext/oci8/ocinumber.c +1922 -0
  46. data/ext/oci8/oraconf.rb +1145 -0
  47. data/ext/oci8/oradate.c +670 -0
  48. data/ext/oci8/oranumber_util.c +352 -0
  49. data/ext/oci8/oranumber_util.h +24 -0
  50. data/ext/oci8/plthook.h +66 -0
  51. data/ext/oci8/plthook_elf.c +702 -0
  52. data/ext/oci8/plthook_osx.c +505 -0
  53. data/ext/oci8/plthook_win32.c +391 -0
  54. data/ext/oci8/post-config.rb +5 -0
  55. data/ext/oci8/stmt.c +448 -0
  56. data/ext/oci8/thread_util.c +81 -0
  57. data/ext/oci8/thread_util.h +18 -0
  58. data/ext/oci8/util.c +71 -0
  59. data/ext/oci8/win32.c +117 -0
  60. data/lib/.document +1 -0
  61. data/lib/dbd/STACI.rb +591 -0
  62. data/lib/oci8/.document +8 -0
  63. data/lib/oci8/bindtype.rb +333 -0
  64. data/lib/oci8/check_load_error.rb +146 -0
  65. data/lib/oci8/compat.rb +117 -0
  66. data/lib/oci8/connection_pool.rb +179 -0
  67. data/lib/oci8/cursor.rb +605 -0
  68. data/lib/oci8/datetime.rb +605 -0
  69. data/lib/oci8/encoding-init.rb +45 -0
  70. data/lib/oci8/encoding.yml +537 -0
  71. data/lib/oci8/metadata.rb +2148 -0
  72. data/lib/oci8/object.rb +641 -0
  73. data/lib/oci8/oci8.rb +756 -0
  74. data/lib/oci8/ocihandle.rb +591 -0
  75. data/lib/oci8/oracle_version.rb +153 -0
  76. data/lib/oci8/properties.rb +196 -0
  77. data/lib/oci8/version.rb +3 -0
  78. data/lib/ruby-staci.rb +1 -0
  79. data/lib/staci.rb +190 -0
  80. data/metaconfig +142 -0
  81. data/pre-distclean.rb +7 -0
  82. data/ruby-aci.gemspec +83 -0
  83. data/setup.rb +1342 -0
  84. data/test/README.md +37 -0
  85. data/test/config.rb +201 -0
  86. data/test/setup_test_object.sql +199 -0
  87. data/test/setup_test_package.sql +59 -0
  88. data/test/test_all.rb +56 -0
  89. data/test/test_appinfo.rb +62 -0
  90. data/test/test_array_dml.rb +333 -0
  91. data/test/test_bind_array.rb +70 -0
  92. data/test/test_bind_boolean.rb +99 -0
  93. data/test/test_bind_integer.rb +47 -0
  94. data/test/test_bind_raw.rb +45 -0
  95. data/test/test_bind_string.rb +105 -0
  96. data/test/test_bind_time.rb +177 -0
  97. data/test/test_break.rb +124 -0
  98. data/test/test_clob.rb +86 -0
  99. data/test/test_connection_pool.rb +124 -0
  100. data/test/test_connstr.rb +220 -0
  101. data/test/test_datetime.rb +585 -0
  102. data/test/test_dbi.rb +365 -0
  103. data/test/test_dbi_clob.rb +53 -0
  104. data/test/test_encoding.rb +103 -0
  105. data/test/test_error.rb +87 -0
  106. data/test/test_metadata.rb +2674 -0
  107. data/test/test_object.rb +546 -0
  108. data/test/test_oci8.rb +624 -0
  109. data/test/test_oracle_version.rb +68 -0
  110. data/test/test_oradate.rb +255 -0
  111. data/test/test_oranumber.rb +786 -0
  112. data/test/test_package_type.rb +981 -0
  113. data/test/test_properties.rb +17 -0
  114. data/test/test_rowid.rb +32 -0
  115. metadata +158 -0
data/ruby-aci.gemspec ADDED
@@ -0,0 +1,83 @@
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? STACI
18
+ oci8_version = STACI::VERSION
19
+ else
20
+ # Load oci8/version.rb temporarily and delete STACI.
21
+ # Some 'bundler' tasks load this file before 'require "oci8"'
22
+ # and fail with 'TypeError: superclass mismatch for class STACI.'
23
+ Kernel.load File.dirname(__FILE__) + '/lib/oci8/version.rb'
24
+ oci8_version = STACI::VERSION
25
+ Object.send(:remove_const, :STACI)
26
+ end
27
+
28
+ spec = Gem::Specification.new do |s|
29
+ s.name = 'ruby-staci'
30
+ s.version = oci8_version
31
+ s.summary = 'Ruby interface for ShenTong using STACI API'
32
+ s.email = 'liuyongsheng@shentongdata.com'
33
+ s.homepage = 'http://www.rubydoc.info/github/kubo/ruby-aci'
34
+ s.description = 'ruby-aci is a ruby interface for ShenTong using STACI API. '
35
+ s.authors = ['liu yongsheng']
36
+ # s.platform = gem_platform
37
+ s.license = 'BSD-2-Clause'
38
+ files = File.read('dist-files').split("\n")
39
+ if gem_platform == Gem::Platform::RUBY
40
+ s.extensions << 'ext/oci8/extconf.rb'
41
+ s.required_ruby_version = '>= 1.9.1'
42
+ else
43
+ so_files = Dir.glob('ext/oci8/stacilib_*.so')
44
+ so_vers = so_files.collect do |file|
45
+ $1 if /ext\/oci8\/oci8lib_(\S+).so/ =~ file
46
+ end.sort
47
+
48
+ # add map files to analyze a core (minidump) file.
49
+ so_vers.each do |ver|
50
+ map_file = 'ext/oci8/oci8lib_#{ver}.map'
51
+ so_files << map_file if File.exists? map_file
52
+ end
53
+
54
+ # least version in so_vers
55
+ so_vermin = so_vers.collect do |ver|
56
+ "#$1.#$2.#{$3||'0'}" if /^(?:rbx)?(\d)(\d)(\d)?/ =~ ver
57
+ end.sort.first
58
+
59
+ case so_vers.length
60
+ when 0
61
+ raise "No compiled binary are found. Run make in advance."
62
+ when 1
63
+ puts "Binary gem for ruby #{so_vers.first}"
64
+ s.required_ruby_version = "~> #{so_vermin}"
65
+ else
66
+ puts "Binary gem for ruby #{so_vers.join(', ')}"
67
+ s.required_ruby_version = ">= #{so_vermin}"
68
+ end
69
+
70
+ FileUtils.copy so_files, 'lib', :preserve => true
71
+ files.reject! do |fname|
72
+ fname =~ /^ext/
73
+ end
74
+ so_files.each do |fname|
75
+ files << 'lib/' + File.basename(fname)
76
+ end
77
+ files << 'lib/staci.rb'
78
+ end
79
+ s.require_paths = ['lib']
80
+ s.files = files
81
+ s.test_files = 'test/test_all.rb'
82
+ s.extra_rdoc_files = ['README.md']
83
+ end