ruby-odbc 0.99995 → 0.99996
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.
- checksums.yaml +4 -4
- data/ChangeLog +6 -0
- data/README +2 -2
- data/ext/extconf.rb +34 -0
- data/ext/odbc.c +1080 -127
- data/ruby-odbc.gemspec +1 -1
- data/test/45delete.rb +8 -0
- data/test/test.rb +3 -3
- data/test/utf8/test.rb +3 -3
- metadata +5 -4
data/ruby-odbc.gemspec
CHANGED
data/test/45delete.rb
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
$count = $c.do("delete from test where 1 = 1")
|
2
|
+
if $count != 4
|
3
|
+
$stderr.print "delete row count: expected 4, got ", $count, "\n"
|
4
|
+
end
|
5
|
+
$count = $c.do("delete from test where 1 = 1")
|
6
|
+
if $count != 0
|
7
|
+
$stderr.print "delete row count: expected 0, got ", $count, "\n"
|
8
|
+
end
|
data/test/test.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: test.rb,v 1.
|
1
|
+
# $Id: test.rb,v 1.8 2015/03/25 10:53:59 chw Exp chw $
|
2
2
|
#
|
3
3
|
# Execute in ruby-odbc top directory.
|
4
4
|
#
|
@@ -13,8 +13,8 @@ $uid = ARGV.shift
|
|
13
13
|
$pwd = ARGV.shift
|
14
14
|
|
15
15
|
begin
|
16
|
-
Dir.glob("
|
17
|
-
f =~
|
16
|
+
Dir.glob("[0-9]*.rb").sort.each do |f|
|
17
|
+
f =~ /\d+(.*)\.rb$/
|
18
18
|
print $1 + "."*(20-$1.length)
|
19
19
|
$stdout.flush
|
20
20
|
load f
|
data/test/utf8/test.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: test.rb,v 1.
|
1
|
+
# $Id: test.rb,v 1.4 2015/03/25 10:54:18 chw Exp chw $
|
2
2
|
#
|
3
3
|
# Execute in ruby-odbc utf8 directory.
|
4
4
|
#
|
@@ -13,8 +13,8 @@ $uid = ARGV.shift
|
|
13
13
|
$pwd = ARGV.shift
|
14
14
|
|
15
15
|
begin
|
16
|
-
Dir.glob("../
|
17
|
-
f =~
|
16
|
+
Dir.glob("../[0-9]*.rb").sort.each do |f|
|
17
|
+
f =~ /^..\/\d+(.*)\.rb$/
|
18
18
|
print $1 + "."*(20-$1.length)
|
19
19
|
$stdout.flush
|
20
20
|
load f
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-odbc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.99996'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Werner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: chw @nospam@ ch-werner.de
|
@@ -35,6 +35,7 @@ files:
|
|
35
35
|
- MANIFEST
|
36
36
|
- doc/odbc.html
|
37
37
|
- ChangeLog
|
38
|
+
- test/45delete.rb
|
38
39
|
- test/20insert.rb
|
39
40
|
- test/10create_table.rb
|
40
41
|
- test/test.rb
|
@@ -56,12 +57,12 @@ require_paths:
|
|
56
57
|
- lib
|
57
58
|
required_ruby_version: !ruby/object:Gem::Requirement
|
58
59
|
requirements:
|
59
|
-
- -
|
60
|
+
- - ">="
|
60
61
|
- !ruby/object:Gem::Version
|
61
62
|
version: '0'
|
62
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
64
|
requirements:
|
64
|
-
- -
|
65
|
+
- - ">="
|
65
66
|
- !ruby/object:Gem::Version
|
66
67
|
version: '0'
|
67
68
|
requirements: []
|