ruby-odbc-supported 1.0.0

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.
data/test/test.rb ADDED
@@ -0,0 +1,32 @@
1
+ # $Id: test.rb,v 1.7 2010/02/18 12:30:43 chw Exp chw $
2
+ #
3
+ # Execute in ruby-odbc top directory.
4
+ #
5
+ # ruby test.rb "mysql-DSN" "mysql-user" "mysql-password"
6
+ #
7
+ # Test creates and deletes table "test" in that DSN.
8
+
9
+ require 'odbc'
10
+
11
+ $dsn = ARGV.shift
12
+ $uid = ARGV.shift
13
+ $pwd = ARGV.shift
14
+
15
+ begin
16
+ Dir.glob("test/[0-9]*.rb").sort.each do |f|
17
+ f =~ /^test\/\d+(.*)\.rb$/
18
+ print $1 + "."*(20-$1.length)
19
+ $stdout.flush
20
+ load f
21
+ print "ok\n"
22
+ end
23
+ ensure
24
+ begin
25
+ $c.drop_all unless $c.class != ODBC::Database
26
+ rescue
27
+ end
28
+ begin
29
+ ODBC.connect($dsn, $uid, $pwd).do("drop table test")
30
+ rescue
31
+ end
32
+ end
data/test/utf8/test.rb ADDED
@@ -0,0 +1,32 @@
1
+ # $Id: test.rb,v 1.3 2010/02/18 12:30:43 chw Exp chw $
2
+ #
3
+ # Execute in ruby-odbc utf8 directory.
4
+ #
5
+ # ruby test.rb "mysql-DSN" "mysql-user" "mysql-password"
6
+ #
7
+ # Test creates and deletes table "test" in that DSN.
8
+
9
+ require 'odbc_utf8'
10
+
11
+ $dsn = ARGV.shift
12
+ $uid = ARGV.shift
13
+ $pwd = ARGV.shift
14
+
15
+ begin
16
+ Dir.glob("../test/[0-9]*.rb").sort.each do |f|
17
+ f =~ /^..\/test\/\d+(.*)\.rb$/
18
+ print $1 + "."*(20-$1.length)
19
+ $stdout.flush
20
+ load f
21
+ print "ok\n"
22
+ end
23
+ ensure
24
+ begin
25
+ $c.drop_all unless $c.class != ODBC::Database
26
+ rescue
27
+ end
28
+ begin
29
+ ODBC.connect($dsn, $uid, $pwd).do("drop table test")
30
+ rescue
31
+ end
32
+ end
metadata ADDED
@@ -0,0 +1,72 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby-odbc-supported
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Christian Werner
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2025-11-14 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email: chw @nospam@ ch-werner.de
15
+ executables: []
16
+ extensions:
17
+ - ext/extconf.rb
18
+ - ext/utf8/extconf.rb
19
+ extra_rdoc_files:
20
+ - README.rdoc
21
+ - COPYING
22
+ - ChangeLog
23
+ - GPL
24
+ - doc/odbc.html
25
+ files:
26
+ - COPYING
27
+ - ChangeLog
28
+ - GPL
29
+ - MANIFEST
30
+ - README.rdoc
31
+ - Rakefile
32
+ - doc/odbc.html
33
+ - ext/extconf.rb
34
+ - ext/init.c
35
+ - ext/odbc.c
36
+ - ext/utf8/extconf.rb
37
+ - ext/utf8/init.c
38
+ - ext/utf8/odbc.c
39
+ - lib/cqgen.rb
40
+ - ruby-odbc-supported.gemspec
41
+ - test/00connect.rb
42
+ - test/10create_table.rb
43
+ - test/20insert.rb
44
+ - test/30select.rb
45
+ - test/40update.rb
46
+ - test/50drop_table.rb
47
+ - test/70close.rb
48
+ - test/test.rb
49
+ - test/utf8/test.rb
50
+ homepage: http://www.ch-werner.de/rubyodbc
51
+ licenses: []
52
+ metadata: {}
53
+ post_install_message:
54
+ rdoc_options: []
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ requirements: []
68
+ rubygems_version: 3.4.19
69
+ signing_key:
70
+ specification_version: 4
71
+ summary: ODBC binding for Ruby
72
+ test_files: []