ibruby 0.5.1-mswin32

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/UnitTest.rb ADDED
@@ -0,0 +1,64 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ #-------------------------------------------------------------------------------
4
+ # Old Unit Test Suite
5
+ #
6
+ # This code has been dropped for two reasons. First, adding new tests requires
7
+ # that this code be updated. Second, running the tests in a single Ruby
8
+ # interpreter seems to cause issues as the tests create, use and drop a lot of
9
+ # database files and this seems to cause intermittent problems with one or more
10
+ # of the test scripts that doesn't occur when the script is run on its own.
11
+ # Changing the number of scripts run also seemed to cause the problems to go
12
+ # away. It didn't seem to matter which scripts where left out which leads me
13
+ # to believe that the problem is related to timing issues.
14
+ #
15
+ # The new unit test suite, below, searches the directory for unit test files
16
+ # and executes each in their own interpreter. I have left this code here for
17
+ # reference purposes.
18
+ #-------------------------------------------------------------------------------
19
+ #require 'DatabaseTest'
20
+ #require 'ConnectionTest'
21
+ #require 'TransactionTest'
22
+ #require 'StatementTest'
23
+ #require 'ResultSetTest'
24
+ #require 'RowCountTest'
25
+ #require 'RowTest'
26
+ #require 'GeneratorTest'
27
+ #require 'DDLTest'
28
+ #require 'SQLTest'
29
+ #require 'ServiceManagerTest'
30
+ #require 'CharacterSetTest'
31
+ #require 'KeyTest'
32
+ #require 'TypeTest'
33
+ #require 'SQLTypeTest'
34
+ #if PLATFORM.include?('powerpc-darwin') == false
35
+ # require 'BackupRestoreTest'
36
+ # require 'AddRemoveUserTest'
37
+ #end
38
+ #-------------------------------------------------------------------------------
39
+ SPECIALS = ['AddRemoveUserTest',
40
+ 'BackupRestoreTest',
41
+ 'ServiceManagerTest']
42
+ begin
43
+ files = Dir.entries(".")
44
+ files.reject! do |name|
45
+ ['.', '..', 'UnitTest.rb'].include?(name) or
46
+ name[-7,7] != 'Test.rb'
47
+ end
48
+ files.each do |name|
49
+ execute = true
50
+ if SPECIALS.include?(name)
51
+ execute = !(PLATFORM.include?('powerpc-darwin'))
52
+ end
53
+
54
+ if execute
55
+ system("ruby #{name}")
56
+
57
+ if $? != 0
58
+ raise StandardError.new("Error executing '#{name}'. Testing terminated.")
59
+ end
60
+ end
61
+ end
62
+ rescue => error
63
+ puts "\n\nERROR: #{error.message}"
64
+ end
metadata ADDED
@@ -0,0 +1,77 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.0
3
+ specification_version: 1
4
+ name: ibruby
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.5.1
7
+ date: 2006-12-05 00:00:00 +13:00
8
+ summary: Ruby interface library for the InterBase database.
9
+ require_paths:
10
+ - lib
11
+ email: paw220470@yahoo.ie, rvowles@codegear.com
12
+ homepage: http://rubyforge.org/projects/ibruby/
13
+ rubyforge_project:
14
+ description: IBRuby is an extension to the Ruby programming language that provides access to the InterBase RDBMS. IBRuby is based in the InterBase C API and has no additional dependencies. The IBRuby library wraps the API calls in a Ruby OO interface.
15
+ autorequire: ibruby
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: mswin32
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - Peter Wood, Richard Vowles
31
+ files:
32
+ - lib/ibruby.rb
33
+ - lib/ib_lib.so
34
+ - lib/mkdoc
35
+ - lib/SQLType.rb
36
+ - lib/src.rb
37
+ - test/AddRemoveUserTest.rb
38
+ - test/BackupRestoreTest.rb
39
+ - test/BooleanTest.rb
40
+ - test/CharacterSetTest.rb
41
+ - test/ConnectionTest.rb
42
+ - test/DatabaseTest.rb
43
+ - test/DDLTest.rb
44
+ - test/GeneratorTest.rb
45
+ - test/KeyTest.rb
46
+ - test/ResultSetTest.rb
47
+ - test/RoleTest.rb
48
+ - test/RowCountTest.rb
49
+ - test/RowTest.rb
50
+ - test/ServiceManagerTest.rb
51
+ - test/SQLTest.rb
52
+ - test/SQLTypeTest.rb
53
+ - test/StatementTest.rb
54
+ - test/TestSetup.rb
55
+ - test/TransactionTest.rb
56
+ - test/TypeTest.rb
57
+ - test/UnitTest.rb
58
+ - doc/classes
59
+ - doc/files
60
+ - doc/license.txt
61
+ - doc/README
62
+ - examples/example01.rb
63
+ test_files:
64
+ - test/UnitTest.rb
65
+ rdoc_options:
66
+ - --main
67
+ - doc/README
68
+ extra_rdoc_files:
69
+ - doc/README
70
+ executables: []
71
+
72
+ extensions: []
73
+
74
+ requirements: []
75
+
76
+ dependencies: []
77
+