ruby-oci8 2.0.2 → 2.0.3
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/ext/oci8/.document +16 -1
- data/ext/oci8/apiwrap.yml +9 -0
- data/ext/oci8/attr.c +1 -1
- data/ext/oci8/bind.c +1 -38
- data/ext/oci8/extconf.rb +8 -9
- data/ext/oci8/lob.c +5 -3
- data/ext/oci8/object.c +12 -0
- data/ext/oci8/oci8.c +403 -115
- data/ext/oci8/oci8.h +4 -0
- data/ext/oci8/oci8lib.c +10 -1
- data/ext/oci8/ocidatetime.c +47 -5
- data/ext/oci8/ocinumber.c +254 -47
- data/ext/oci8/oraconf.rb +40 -11
- data/ext/oci8/oradate.c +1 -1
- data/lib/.document +0 -1
- 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/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 +3 -3
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: ruby
|
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
|
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
requirements: []
|
120
120
|
|
121
121
|
rubyforge_project: ruby-oci8
|
122
|
-
rubygems_version: 1.
|
122
|
+
rubygems_version: 1.2.0
|
123
123
|
signing_key:
|
124
124
|
specification_version: 2
|
125
125
|
summary: Ruby interface for Oracle using OCI8 API
|