ruby-oci8 2.0.2-x86-mswin32-60 → 2.0.3-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +121 -0
- data/Makefile +11 -4
- data/NEWS +126 -0
- data/VERSION +1 -1
- data/lib/.document +0 -1
- data/lib/oci8.rb +2 -2
- data/lib/oci8.rb.in +1 -1
- data/lib/oci8/.document +2 -2
- data/lib/oci8/bindtype.rb +32 -8
- data/lib/oci8/compat.rb +5 -0
- data/lib/oci8/datetime.rb +284 -160
- data/lib/oci8/object.rb +18 -4
- data/lib/oci8/oci8.rb +24 -4
- data/lib/oci8lib_18.so +0 -0
- data/lib/oci8lib_191.so +0 -0
- data/test/test_appinfo.rb +34 -0
- data/test/test_clob.rb +13 -0
- data/test/test_datetime.rb +160 -7
- data/test/test_oci8.rb +31 -3
- data/test/test_oranumber.rb +12 -7
- metadata +2 -2
data/test/test_oranumber.rb
CHANGED
@@ -349,13 +349,18 @@ class TestOraNumber < Test::Unit::TestCase
|
|
349
349
|
|
350
350
|
# onum <=> other -> -1, 0, +1
|
351
351
|
def test_cmp
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
352
|
+
assert_equal(-1, 1 <=> OraNumber(2))
|
353
|
+
assert_equal(-1, 1.0 <=> OraNumber(2))
|
354
|
+
assert_equal(-1, BigDecimal("1") <=> OraNumber(2))
|
355
|
+
assert_equal(-1, Rational(1) <=> OraNumber(2))
|
356
|
+
assert_equal(0, 2 <=> OraNumber(2))
|
357
|
+
assert_equal(0, 2.0 <=> OraNumber(2))
|
358
|
+
assert_equal(0, BigDecimal("2") <=> OraNumber(2))
|
359
|
+
assert_equal(0, Rational(2) <=> OraNumber(2))
|
360
|
+
assert_equal(1, 3 <=> OraNumber(2))
|
361
|
+
assert_equal(1, 3.0 <=> OraNumber(2))
|
362
|
+
assert_equal(1, BigDecimal("3") <=> OraNumber(2))
|
363
|
+
assert_equal(1, Rational(3) <=> OraNumber(2))
|
359
364
|
end
|
360
365
|
|
361
366
|
# onum.abs -> ocinumber
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-oci8
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: x86-mswin32-60
|
6
6
|
authors:
|
7
7
|
- KUBO Takehiro
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-10-21 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|