ruby-odbc 0.99995 → 0.999991

Sign up to get free protection for your applications and to get access to all the features.
@@ -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)
@@ -1,7 +1,7 @@
1
1
  require 'date'
2
2
  spec = Gem::Specification.new do |s|
3
3
  s.name = "ruby-odbc"
4
- s.version = "0.99995"
4
+ s.version = "0.999991"
5
5
  s.date = Date.today.to_s
6
6
  s.author = "Christian Werner"
7
7
  s.email = "chw @nospam@ ch-werner.de"
@@ -1,4 +1,4 @@
1
- $q = $c.prepare("select id,str from test")
1
+ $q = $c.prepare("select id,str from test order by id")
2
2
 
3
3
  if $q.column(0).name.upcase != "ID" then raise "fetch failed" end
4
4
  if $q.column(1).name.upcase != "STR" then raise "fetch failed" end
@@ -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
@@ -1,4 +1,4 @@
1
- # $Id: test.rb,v 1.7 2010/02/18 12:30:43 chw Exp chw $
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("test/[0-9]*.rb").sort.each do |f|
17
- f =~ /^test\/\d+(.*)\.rb$/
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
@@ -1,4 +1,4 @@
1
- # $Id: test.rb,v 1.3 2010/02/18 12:30:43 chw Exp chw $
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("../test/[0-9]*.rb").sort.each do |f|
17
- f =~ /^..\/test\/\d+(.*)\.rb$/
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.99995'
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: 2013-03-13 00:00:00.000000000 Z
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
- - ext/init.c
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
- - README
35
- - MANIFEST
36
- - doc/odbc.html
37
- - ChangeLog
38
- - test/20insert.rb
40
+ - test/00connect.rb
39
41
  - test/10create_table.rb
40
- - test/test.rb
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/00connect.rb
47
- - lib/cqgen.rb
48
- - GPL
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
- rubyforge_project:
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