ruby-odbc 0.99995 → 0.999991
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/COPYING +1 -1
- data/ChangeLog +27 -0
- data/README +8 -6
- data/doc/odbc.html +18 -11
- data/ext/extconf.rb +38 -3
- data/ext/odbc.c +1189 -186
- data/ext/utf8/extconf.rb +5 -3
- data/ruby-odbc.gemspec +1 -1
- data/test/30select.rb +1 -1
- data/test/45delete.rb +8 -0
- data/test/test.rb +3 -3
- data/test/utf8/test.rb +3 -3
- metadata +20 -20
data/ext/utf8/extconf.rb
CHANGED
@@ -40,6 +40,8 @@ def have_func_nolink(func, headers = nil, &b)
|
|
40
40
|
end
|
41
41
|
|
42
42
|
dir_config("odbc")
|
43
|
+
have_header("version.h")
|
44
|
+
have_header("ruby/version.h")
|
43
45
|
have_header("sql.h") || begin
|
44
46
|
puts "ERROR: sql.h not found"
|
45
47
|
exit 1
|
@@ -113,9 +115,9 @@ if PLATFORM =~ /mswin32/ then
|
|
113
115
|
have_func("SQLInstallerError", "odbcinst.h")
|
114
116
|
have_func("SQLInstallerErrorW", "odbcinst.h")
|
115
117
|
elsif PLATFORM =~ /(mingw|cygwin)/ then
|
116
|
-
have_library("odbc32"
|
117
|
-
have_library("odbccp32"
|
118
|
-
have_library("user32"
|
118
|
+
have_library("odbc32")
|
119
|
+
have_library("odbccp32")
|
120
|
+
have_library("user32")
|
119
121
|
header = ["windows.h", "odbcinst.h"]
|
120
122
|
have_func("SQLConfigDataSourceW", header)
|
121
123
|
have_func("SQLWriteFileDSNW", header)
|
data/ruby-odbc.gemspec
CHANGED
data/test/30select.rb
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.999991'
|
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: 2020-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: chw @nospam@ ch-werner.de
|
@@ -24,28 +24,29 @@ extra_rdoc_files:
|
|
24
24
|
- doc/odbc.html
|
25
25
|
files:
|
26
26
|
- COPYING
|
27
|
-
-
|
27
|
+
- ChangeLog
|
28
|
+
- GPL
|
29
|
+
- MANIFEST
|
30
|
+
- README
|
31
|
+
- doc/odbc.html
|
28
32
|
- ext/extconf.rb
|
33
|
+
- ext/init.c
|
29
34
|
- ext/odbc.c
|
30
|
-
- ext/utf8/init.c
|
31
35
|
- ext/utf8/extconf.rb
|
36
|
+
- ext/utf8/init.c
|
32
37
|
- ext/utf8/odbc.c
|
38
|
+
- lib/cqgen.rb
|
33
39
|
- ruby-odbc.gemspec
|
34
|
-
-
|
35
|
-
- MANIFEST
|
36
|
-
- doc/odbc.html
|
37
|
-
- ChangeLog
|
38
|
-
- test/20insert.rb
|
40
|
+
- test/00connect.rb
|
39
41
|
- test/10create_table.rb
|
40
|
-
- test/
|
41
|
-
- test/50drop_table.rb
|
42
|
+
- test/20insert.rb
|
42
43
|
- test/30select.rb
|
43
|
-
- test/utf8/test.rb
|
44
|
-
- test/70close.rb
|
45
44
|
- test/40update.rb
|
46
|
-
- test/
|
47
|
-
-
|
48
|
-
-
|
45
|
+
- test/45delete.rb
|
46
|
+
- test/50drop_table.rb
|
47
|
+
- test/70close.rb
|
48
|
+
- test/test.rb
|
49
|
+
- test/utf8/test.rb
|
49
50
|
homepage: http://www.ch-werner.de/rubyodbc
|
50
51
|
licenses: []
|
51
52
|
metadata: {}
|
@@ -56,17 +57,16 @@ 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: []
|
68
|
-
|
69
|
-
rubygems_version: 2.0.0
|
69
|
+
rubygems_version: 3.1.4
|
70
70
|
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: ODBC binding for Ruby
|