ruby-oci8 2.1.5.1-x64-mingw32 → 2.1.7-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,4 @@
1
1
  require 'oci8'
2
- require 'test/unit'
3
2
  require File.dirname(__FILE__) + '/config'
4
3
 
5
4
  conn = OCI8.new($dbuser, $dbpass, $dbname)
@@ -49,7 +48,7 @@ EOS
49
48
  class RbTestIntArray < OCI8::Object::Base
50
49
  end
51
50
 
52
- class TestObj1 < Test::Unit::TestCase
51
+ class TestObj1 < Minitest::Test
53
52
  Delta = 0.00001
54
53
 
55
54
  def setup
@@ -71,7 +70,7 @@ class TestObj1 < Test::Unit::TestCase
71
70
  end
72
71
 
73
72
  class ExpectedVal
74
- include Test::Unit::Assertions
73
+ include Minitest::Assertions
75
74
 
76
75
  attr_reader :n
77
76
  attr_reader :int_val
@@ -97,8 +96,11 @@ class TestObj1 < Test::Unit::TestCase
97
96
  attr_reader :date_val
98
97
  # attr_reader :date_array_val
99
98
 
99
+ attr_accessor :assertions
100
+
100
101
  def initialize
101
102
  @n = 0.0
103
+ @assertions = 0
102
104
  end
103
105
 
104
106
  def to_test_date(n)
@@ -303,9 +305,7 @@ class TestObj1 < Test::Unit::TestCase
303
305
  while expected_val.next
304
306
  obj = RbTestObj.new(expected_val.n)
305
307
  expected_val.should_be_equal(obj)
306
- assert_nothing_raised do
307
- obj.inspect
308
- end
308
+ obj.inspect
309
309
  end
310
310
  end
311
311
 
@@ -318,10 +318,7 @@ class TestObj1 < Test::Unit::TestCase
318
318
  end
319
319
 
320
320
  def _test_implicit_constructor2 # TODO
321
- obj = nil
322
- assert_nothing_raised do
323
- obj = RbTestObj.new(nil, nil, nil)
324
- end
321
+ obj = RbTestObj.new(nil, nil, nil)
325
322
  assert_nil(obj.int_val)
326
323
  assert_nil(obj.flt_val)
327
324
  assert_nil(obj.str_val)
@@ -447,7 +444,7 @@ BEGIN
447
444
  END;
448
445
  EOS
449
446
  [nil, [], [1, nil, 3]].each do |ary|
450
- csr.bind_param(:in, ary, RbTestIntArray)
447
+ csr.bind_param(:in, ary, :named_type, 'rb_test_int_array')
451
448
  csr.bind_param(:cnt, nil, Integer)
452
449
  csr.bind_param(:out1, nil, Integer)
453
450
  csr.bind_param(:out2, nil, Integer)
@@ -1,10 +1,9 @@
1
1
  require 'oci8'
2
- require 'test/unit'
3
2
  require File.dirname(__FILE__) + '/config'
4
3
  require 'bigdecimal'
5
4
  require 'rational'
6
5
 
7
- class TestOCI8 < Test::Unit::TestCase
6
+ class TestOCI8 < Minitest::Test
8
7
 
9
8
  def setup
10
9
  @conn = get_oci8_connection
@@ -1,8 +1,7 @@
1
1
  require 'oci8'
2
- require 'test/unit'
3
2
  require File.dirname(__FILE__) + '/config'
4
3
 
5
- class TestOracleVersion < Test::Unit::TestCase
4
+ class TestOracleVersion < Minitest::Test
6
5
 
7
6
  def test_init
8
7
  oraver = OCI8::OracleVersion.new('8.1.6.2.3')
@@ -67,4 +66,3 @@ class TestOracleVersion < Test::Unit::TestCase
67
66
  end
68
67
  end
69
68
 
70
- Test::Unit::AutoRunner.run() if $0 == __FILE__
@@ -1,9 +1,8 @@
1
1
  # Low-level API
2
2
  require 'oci8'
3
- require 'test/unit'
4
3
  require File.dirname(__FILE__) + '/config'
5
4
 
6
- class TestOraDate < Test::Unit::TestCase
5
+ class TestOraDate < Minitest::Test
7
6
 
8
7
  YEAR_CHECK_TARGET = [-4712, -1, 1, 1192, 1868, 2002, 9999]
9
8
  MONTH_CHECK_TARGET = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
@@ -1,12 +1,11 @@
1
1
  # Low-level API
2
2
  require 'oci8'
3
- require 'test/unit'
4
3
  require File.dirname(__FILE__) + '/config'
5
4
  require 'yaml'
6
5
  require 'bigdecimal'
7
6
  require 'rational'
8
7
 
9
- class TestOraNumber < Test::Unit::TestCase
8
+ class TestOraNumber < Minitest::Test
10
9
 
11
10
  LARGE_RANGE_VALUES = [
12
11
  "12345678901234567890123456789012345678",
@@ -103,7 +102,7 @@ class TestOraNumber < Test::Unit::TestCase
103
102
  # explicity convert actual_val to a Float to prevent
104
103
  # SEGV in OCINumberSub() if the Oracle client vesion
105
104
  # is less than 10.2.0.4.
106
- if defined? ::MiniTest and OCI8.oracle_client_version < OCI8::OracleVersion.new('10.2.0.4')
105
+ if OCI8.oracle_client_version < OCI8::OracleVersion.new('10.2.0.4')
107
106
  actual_val = actual_val.to_f
108
107
  end
109
108
  assert_in_delta(expected_val, actual_val, delta, x)
@@ -476,7 +475,7 @@ EOS
476
475
  Proc.new {|x, y| x.round_prec(y)})
477
476
  else
478
477
  # Oracle 8.0 client
479
- assert_raise NoMethodError do
478
+ assert_raises NoMethodError do
480
479
  OraNumber.new(1).round_prec(1)
481
480
  end
482
481
  end
@@ -491,7 +490,7 @@ EOS
491
490
  Proc.new {|x, y| x.shift(y)})
492
491
  else
493
492
  # Oracle 8.0 client
494
- assert_raise NoMethodError do
493
+ assert_raises NoMethodError do
495
494
  OraNumber.new(1).shift(1)
496
495
  end
497
496
  end
@@ -702,7 +701,7 @@ EOS
702
701
 
703
702
  def test_new_from_bigdecimal
704
703
  ["+Infinity", "-Infinity", "NaN"].each do |n|
705
- assert_raise TypeError do
704
+ assert_raises TypeError do
706
705
  OraNumber.new(BigDecimal.new(n))
707
706
  end
708
707
  end
@@ -1,8 +1,7 @@
1
1
  require 'oci8'
2
- require 'test/unit'
3
2
  require File.dirname(__FILE__) + '/config'
4
3
 
5
- class TestRowid < Test::Unit::TestCase
4
+ class TestRowid < Minitest::Test
6
5
 
7
6
  def setup
8
7
  @conn = get_oci8_connection
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.1.5.1
4
+ version: 2.1.7
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Kubo Takehiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-11 00:00:00.000000000 Z
11
+ date: 2014-02-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  ruby-oci8 is a ruby interface for Oracle using OCI8 API. It is available with Oracle8i, Oracle9i, Oracle10g, Oracle11g and Oracle Instant Client.
@@ -79,8 +79,9 @@ files:
79
79
  - test/test_oranumber.rb
80
80
  - test/test_rowid.rb
81
81
  - lib/oci8lib_200.so
82
+ - lib/oci8lib_210.so
82
83
  - lib/oci8.rb
83
- homepage: http://ruby-oci8.rubyforge.org
84
+ homepage: https://github.com/kubo/ruby-oci8/
84
85
  licenses:
85
86
  - 2-clause BSD-style license
86
87
  metadata: {}
@@ -91,9 +92,9 @@ require_paths:
91
92
  - ext/oci8
92
93
  required_ruby_version: !ruby/object:Gem::Requirement
93
94
  requirements:
94
- - - ~>
95
+ - - '>='
95
96
  - !ruby/object:Gem::Version
96
- version: 2.0.0.0
97
+ version: 2.0.0
97
98
  required_rubygems_version: !ruby/object:Gem::Requirement
98
99
  requirements:
99
100
  - - '>='