fireruby 0.4.0-i586-linux → 0.4.1-i586-linux
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/CVS/Entries +2 -3
- data/doc/CVS/Entries.Log +2 -0
- data/doc/CVS/Repository +0 -0
- data/doc/CVS/Root +0 -0
- data/doc/README +112 -69
- data/doc/classes/CVS/Entries +1 -1
- data/doc/classes/CVS/Entries.Log +1 -0
- data/doc/classes/CVS/Repository +0 -0
- data/doc/classes/CVS/Root +0 -0
- data/doc/classes/FireRuby/CVS/Entries +1 -7
- data/doc/classes/FireRuby/CVS/Entries.Log +7 -0
- data/doc/classes/FireRuby/CVS/Repository +0 -0
- data/doc/classes/FireRuby/CVS/Root +0 -0
- data/doc/classes/FireRuby/Connection.src/CVS/Entries +0 -0
- data/doc/classes/FireRuby/Connection.src/CVS/Repository +0 -0
- data/doc/classes/FireRuby/Connection.src/CVS/Root +0 -0
- data/doc/classes/FireRuby/Database.src/CVS/Entries +0 -0
- data/doc/classes/FireRuby/Database.src/CVS/Repository +0 -0
- data/doc/classes/FireRuby/Database.src/CVS/Root +0 -0
- data/doc/classes/FireRuby/FireRubyError.src/CVS/Entries +0 -0
- data/doc/classes/FireRuby/FireRubyError.src/CVS/Repository +0 -0
- data/doc/classes/FireRuby/FireRubyError.src/CVS/Root +0 -0
- data/doc/classes/FireRuby/Generator.src/CVS/Entries +0 -0
- data/doc/classes/FireRuby/Generator.src/CVS/Repository +0 -0
- data/doc/classes/FireRuby/Generator.src/CVS/Root +0 -0
- data/doc/classes/FireRuby/ResultSet.src/CVS/Entries +0 -0
- data/doc/classes/FireRuby/ResultSet.src/CVS/Repository +0 -0
- data/doc/classes/FireRuby/ResultSet.src/CVS/Root +0 -0
- data/doc/classes/FireRuby/Statement.src/CVS/Entries +0 -0
- data/doc/classes/FireRuby/Statement.src/CVS/Repository +0 -0
- data/doc/classes/FireRuby/Statement.src/CVS/Root +0 -0
- data/doc/classes/FireRuby/Transaction.src/CVS/Entries +0 -0
- data/doc/classes/FireRuby/Transaction.src/CVS/Repository +0 -0
- data/doc/classes/FireRuby/Transaction.src/CVS/Root +0 -0
- data/doc/files/CVS/Entries +0 -0
- data/doc/files/CVS/Repository +0 -0
- data/doc/files/CVS/Root +0 -0
- data/doc/license.txt +0 -0
- data/examples/CVS/Entries +0 -0
- data/examples/CVS/Repository +0 -0
- data/examples/CVS/Root +0 -0
- data/examples/example01.rb +0 -0
- data/lib/CVS/Entries +4 -4
- data/lib/CVS/Repository +0 -0
- data/lib/CVS/Root +0 -0
- data/lib/SQLType.rb +0 -0
- data/lib/fireruby.rb +0 -0
- data/lib/fr_lib.so +0 -0
- data/lib/mkdoc +0 -0
- data/lib/src.rb +0 -0
- data/test/AddRemoveUserTest.rb +0 -0
- data/test/BackupRestoreTest.rb +0 -0
- data/test/CVS/Entries +19 -19
- data/test/CVS/Repository +0 -0
- data/test/CVS/Root +0 -0
- data/test/CharacterSetTest.rb +0 -0
- data/test/ConnectionTest.rb +0 -0
- data/test/DDLTest.rb +0 -0
- data/test/DatabaseTest.rb +0 -0
- data/test/GeneratorTest.rb +0 -0
- data/test/KeyTest.rb +0 -0
- data/test/ResultSetTest.rb +0 -0
- data/test/RowCountTest.rb +0 -0
- data/test/RowTest.rb +0 -0
- data/test/SQLTest.rb +0 -0
- data/test/SQLTypeTest.rb +0 -0
- data/test/ServiceManagerTest.rb +0 -0
- data/test/StatementTest.rb +0 -0
- data/test/TestSetup.rb +0 -0
- data/test/TransactionTest.rb +0 -0
- data/test/TypeTest.rb +0 -0
- data/test/UnitTest.rb +0 -0
- metadata +7 -5
- data/test/UnitTest.rb~ +0 -64
data/doc/CVS/Entries
CHANGED
data/doc/CVS/Entries.Log
ADDED
data/doc/CVS/Repository
CHANGED
File without changes
|
data/doc/CVS/Root
CHANGED
File without changes
|
data/doc/README
CHANGED
@@ -1,67 +1,44 @@
|
|
1
|
-
|
2
|
-
Its been a while but I'm glad to release version 0.4.0 of the FireRuby library.
|
1
|
+
= FireRuby Version 0.4.1
|
3
2
|
FireRuby is an extension for the Ruby programming language that provides access
|
4
|
-
to the Firebird open source RDBMS.
|
5
|
-
|
6
|
-
please read the enhancements and alterations section to see what has been done.
|
3
|
+
to the Firebird open source RDBMS. The FireRuby library is release under the
|
4
|
+
Mozilla Public Licence version 1.1 and is free for commercial use.
|
7
5
|
|
8
|
-
|
6
|
+
---
|
9
7
|
|
10
|
-
|
11
|
-
forward by Ken Kunz to enhancement support for the Firebird ActiveRecord
|
12
|
-
adapter he developed. The first of these changes involved switching the keying
|
13
|
-
of Row objects away from using the column name to using the column alias. This
|
14
|
-
is a logical change as the alias is more likely to be unique. I realise that
|
15
|
-
change has the potential to break existing code so I've included a work around
|
16
|
-
that can be used to have the library behave as it used to. To use keying on
|
17
|
-
columns insert the following line into your code after you've loaded the
|
18
|
-
FireRuby library and before you've done any database work...
|
19
|
-
|
20
|
-
$FireRubySettings[:ALIAS_KEYS] = false
|
21
|
-
|
22
|
-
This will cause the library to use column names as keys on rows. A second change
|
23
|
-
I've made that could impact existing code is for the retrieval of data from
|
24
|
-
columns of SQL type DATE. These were being returned as a Time object but are now
|
25
|
-
being returned as a Date object, again a fairly logical change. If this causes
|
26
|
-
problems for your code then you can add the following line to get the library to
|
27
|
-
return Times by adding the following line...
|
28
|
-
|
29
|
-
$FireRubySettings[:DATE_AS_DATE] = false
|
30
|
-
|
31
|
-
The final change I've made for this release from Ken's wish list is that I have
|
32
|
-
incorporated Enumerable into the Row and ResultSet classes. Your code may
|
33
|
-
already do this and, unfortunately, I'm not providing any sort of work around
|
34
|
-
other than you remove this from your own code.
|
8
|
+
== Enhancements & Alterations
|
35
9
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
NUMERIC but I can't give you the precision and scale for example).
|
10
|
+
This release has been brought about as a direct result of efforts to get the
|
11
|
+
library working on a 64 bit platform. This process exposed some code of
|
12
|
+
questionable quality. All of the issues raised in getting a 64 bit build have
|
13
|
+
been addressed and it's only fair that the improvements obtained be passed on
|
14
|
+
to all platforms. Functionally nothing has changed since the last release and
|
15
|
+
the new version should replace the old with no problems.
|
43
16
|
|
44
|
-
|
45
|
-
types supported by FireRuby. It also allows for querying of table types. In this
|
46
|
-
case, as I'm referring to the actual database, I can provide more specific
|
47
|
-
details (so I can tell you that a column is NUMERIC, has a precision of 5 and a
|
48
|
-
scale or 2 for example). See the API documentation for this class for more
|
49
|
-
information.
|
17
|
+
=== Bug Fixes
|
50
18
|
|
51
|
-
|
52
|
-
|
19
|
+
A number of bug fixes were implemented as part of the effort to get the library
|
20
|
+
working on a 64 bit platform. None of these had been raised as bugs against the
|
21
|
+
library so I have nothing specific to tick off.
|
53
22
|
|
54
|
-
|
23
|
+
=== Backward Compatibility
|
55
24
|
|
56
|
-
|
57
|
-
|
25
|
+
Version 0.4.0 of the library made fundamental changes to functionality that was
|
26
|
+
available in earlier versions of the library. To help accommodate this change
|
27
|
+
elements were added to support backward compatibility. The relevant details are
|
28
|
+
listed here...
|
58
29
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
30
|
+
- Row objects were switched from keying on column names to keying on column
|
31
|
+
aliases. To revert to the older functionality assign a value of true to the
|
32
|
+
$FireRubySettings[:ALIAS_KEYS] global setting.
|
33
|
+
|
34
|
+
- DATE columns were switched from being returned as Time objects to be returned
|
35
|
+
as Date objects. To revert to the older functionality assign a value of true
|
36
|
+
to the $FireRubySettings[:DATE_AS_DATE] global setting.
|
37
|
+
|
38
|
+
One other point to note is that, as of version 0.4.0, Enumerable is included in
|
39
|
+
the Row and ResultSet classes.
|
63
40
|
|
64
|
-
|
41
|
+
=== Issues
|
65
42
|
|
66
43
|
Nothing is perfect so this section outlines those issues that are known to
|
67
44
|
exist as of this release.
|
@@ -89,6 +66,29 @@ exist as of this release.
|
|
89
66
|
note that you may need to alter permissions on the test directory to run the
|
90
67
|
actual unit tests on Linux/Unix.
|
91
68
|
|
69
|
+
---
|
70
|
+
|
71
|
+
== Credit Where Credit Is Due
|
72
|
+
|
73
|
+
Over its lifetime the FireRuby library has benefitted from input provided by a
|
74
|
+
number of individuals. This section acknowledges these inputs...
|
75
|
+
|
76
|
+
<b>Ken Kunz</b>: Ken has been a strong supporter of the library from early on and
|
77
|
+
has contributed through feedback, testing and suggestions. For some time he
|
78
|
+
produced and tested the Linux builds of the library.
|
79
|
+
|
80
|
+
<b>David Walthour</b>: David basically executed all of the work to generate the
|
81
|
+
64 bit version of the library, along the way exposing some flaws in the code
|
82
|
+
(amazing what a bit of peer review can find!). David produced the 64 bit version
|
83
|
+
of the library gem.
|
84
|
+
|
85
|
+
<b>John Wood</b>: John currently builds and tests the Mac OS X version of the
|
86
|
+
library.
|
87
|
+
|
88
|
+
<b>Art Federov</b>: Art provided input on handling and testing character sets.
|
89
|
+
|
90
|
+
---
|
91
|
+
|
92
92
|
== Installation & Usage
|
93
93
|
|
94
94
|
The library is provided as a gem and built for use with Ruby 1.8+. Testing
|
@@ -97,13 +97,13 @@ the Ruby Gems package to be installed. Assuming that these installation criteria
|
|
97
97
|
have been met the library can be installed on Windows by executing a command
|
98
98
|
such as the following...
|
99
99
|
|
100
|
-
gem install fireruby-0.4.
|
100
|
+
gem install fireruby-0.4.1-mswin32.gem
|
101
101
|
|
102
102
|
On the Mac OS X platform you may require super user privilege if your Ruby is
|
103
103
|
installed to the default location (i.e. /usr/local/lib). In this case you can
|
104
104
|
use the sudo command to make the installation like this...
|
105
105
|
|
106
|
-
sudo gem install fireruby-0.4.
|
106
|
+
sudo gem install fireruby-0.4.1-powerpc-darwin.gem
|
107
107
|
|
108
108
|
Once the gem installation is complete the FireRuby functionality can be accessed
|
109
109
|
in code with the usual gem style requires...
|
@@ -111,20 +111,63 @@ in code with the usual gem style requires...
|
|
111
111
|
require 'rubygems'
|
112
112
|
require 'fireruby'
|
113
113
|
|
114
|
-
|
114
|
+
=== Build Details
|
115
|
+
|
116
|
+
The FireRuby library is a Ruby extension written in C. The avoid build issues
|
117
|
+
binary versions are provided for a number of platforms, including...
|
118
|
+
|
119
|
+
- Windows: Built against a version of Ruby installed using the one-click
|
120
|
+
installer and using the freely available Microsoft development tools. This
|
121
|
+
version was compiled against version 1.5.2 of Firebird.
|
122
|
+
|
123
|
+
- Linux: Built on Ubuntu Linux (Breezy Badger) using a version of Ruby 1.8.2
|
124
|
+
installed via the Synaptic package manager. This package manager was also
|
125
|
+
used to make an installation of Firebird.
|
126
|
+
|
127
|
+
- Mac OS X: Build on version 10.4.3 of OS X against the 1.8.2 version of Ruby
|
128
|
+
that comes with the operating system. A framework installation of Firebird
|
129
|
+
version 1.5.1 was used to make the build.
|
130
|
+
|
131
|
+
Its possible to try and build the library on other platforms so I'll provide a
|
132
|
+
few details as to how to go about doing this. The first step is to download the
|
133
|
+
CVS tar ball from the Ruby Forge site and expand it into a local directory. This
|
134
|
+
will create a directory called fireruby. Change into this directory and then
|
135
|
+
into the fireruby/src subdirectory.
|
136
|
+
|
137
|
+
This directory contains a file called extconf.rb that is used to create the
|
138
|
+
make file used to build the library. The make file is created by executing this
|
139
|
+
file but before you do there are a number of parameters that you should be
|
140
|
+
aware of. The main one of these is --with-firebird-dir. This parameter is used
|
141
|
+
to indicate the whereabouts of the Firebird headers and libraries. The following
|
142
|
+
is an example of how this might be used...
|
143
|
+
|
144
|
+
ruby extconf.rb --with-firebird-dir=/usr/local/firebird
|
145
|
+
|
146
|
+
You may need to customise the path for your own Firebird installation. The path
|
147
|
+
specified should be a directory that contains subdirectories called 'lib' and
|
148
|
+
'include'. The lib subdirectory should contain the fbclient shared library and
|
149
|
+
include should contain the ibase.h header file.
|
150
|
+
|
151
|
+
A note for Windows users. The library requires the free Microsoft C++ compiler,
|
152
|
+
the Windows SDK, the .NET SDK and nmake to build. If you have all of these
|
153
|
+
and Firebird installed to default locations then you can create a make file
|
154
|
+
using the mkmf.bat batch file in the src directory.
|
155
|
+
|
156
|
+
Once you have the make file you can attempt a library build using either make
|
157
|
+
(on Unix/Linux) or nmake (on Windows). If it builds successfully you can move
|
158
|
+
on to creating a gem file for installation. To do this, change into the ../gem
|
159
|
+
directory. In this directory you can do the following (on Windows)...
|
160
|
+
|
161
|
+
make_gem
|
162
|
+
|
163
|
+
...or the following (on Unix/Linux)...
|
115
164
|
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
a Ruby installation created using the one-click installer, version 1.8.2. The
|
121
|
-
Windows build was created using the freely available Microsoft compilers and
|
122
|
-
SDKs and built against a standard installation of Firebird, version 1.5.2. On
|
123
|
-
Linux the library is built using an Ubuntu system (Breezy Badger release) using
|
124
|
-
Firebird installed through the Synaptic package manager and version 1.8.2 of
|
125
|
-
Ruby installed using the same tool.
|
165
|
+
ruby make_gem.rb
|
166
|
+
|
167
|
+
This will create the gem file in the main fireruby directory. Install this and
|
168
|
+
execute the unit tests to check whether you're version is working.
|
126
169
|
|
127
|
-
|
170
|
+
=== So How Do I Use It?
|
128
171
|
|
129
172
|
This section will provide some examples of usage for the the FireRuby classes.
|
130
173
|
Throughout the code the following set of assumptions are made.
|
@@ -374,7 +417,7 @@ database administrator you might do the following...
|
|
374
417
|
|
375
418
|
Assuming that this succeeds you are now ready to execute tasks through your
|
376
419
|
ServiceManager object. Within the FireRuby library individual task are broken
|
377
|
-
out into separate classes. For this release (0.4.
|
420
|
+
out into separate classes. For this release (0.4.1) there are four task classes
|
378
421
|
provided in the library - Backup, Restore, AddUser and RemoveUser. I think the
|
379
422
|
class names are relatively self explanatory but if you want more information
|
380
423
|
consult the API documentation for a class.
|
data/doc/classes/CVS/Entries
CHANGED
@@ -1 +1 @@
|
|
1
|
-
D
|
1
|
+
D
|
@@ -0,0 +1 @@
|
|
1
|
+
A D/FireRuby////
|
data/doc/classes/CVS/Repository
CHANGED
File without changes
|
data/doc/classes/CVS/Root
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/doc/files/CVS/Entries
CHANGED
File without changes
|
data/doc/files/CVS/Repository
CHANGED
File without changes
|
data/doc/files/CVS/Root
CHANGED
File without changes
|
data/doc/license.txt
CHANGED
File without changes
|
data/examples/CVS/Entries
CHANGED
File without changes
|
data/examples/CVS/Repository
CHANGED
File without changes
|
data/examples/CVS/Root
CHANGED
File without changes
|
data/examples/example01.rb
CHANGED
File without changes
|
data/lib/CVS/Entries
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
+
/SQLType.rb/1.1/Sat Oct 29 17:37:42 2005//
|
2
|
+
/fireruby.bundle/1.3/Fri Jun 10 12:20:22 2005//
|
3
|
+
/fireruby.rb/1.1/Sat Oct 29 17:37:42 2005//
|
1
4
|
/mkdoc/1.2/Mon Mar 21 08:53:22 2005//
|
2
|
-
/
|
3
|
-
/fireruby.rb/1.1/Tue Oct 25 19:45:08 2005//
|
4
|
-
/fireruby.bundle/1.3/Fri Nov 11 21:18:30 2005//
|
5
|
-
/src.rb/1.6/Sat Oct 29 17:06:06 2005//
|
5
|
+
/src.rb/1.6/Sat Oct 29 17:31:38 2005//
|
6
6
|
D
|
data/lib/CVS/Repository
CHANGED
File without changes
|
data/lib/CVS/Root
CHANGED
File without changes
|
data/lib/SQLType.rb
CHANGED
File without changes
|
data/lib/fireruby.rb
CHANGED
File without changes
|
data/lib/fr_lib.so
CHANGED
Binary file
|
data/lib/mkdoc
CHANGED
File without changes
|
data/lib/src.rb
CHANGED
File without changes
|
data/test/AddRemoveUserTest.rb
CHANGED
File without changes
|
data/test/BackupRestoreTest.rb
CHANGED
File without changes
|
data/test/CVS/Entries
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
/AddRemoveUserTest.rb/1.2/Sat Oct
|
2
|
-
/BackupRestoreTest.rb/1.2/Sat Oct
|
3
|
-
/CharacterSetTest.rb/1.2/Sat Oct
|
4
|
-
/ConnectionTest.rb/1.6/Sat Oct
|
5
|
-
/DDLTest.rb/1.6/Sat Oct
|
6
|
-
/DatabaseTest.rb/1.4/Sat Oct
|
7
|
-
/GeneratorTest.rb/1.4/Sat Oct
|
8
|
-
/
|
9
|
-
/
|
10
|
-
/
|
11
|
-
/
|
12
|
-
/
|
13
|
-
/
|
14
|
-
/
|
15
|
-
/
|
16
|
-
/
|
17
|
-
/
|
18
|
-
/TypeTest.rb/1.1/Sat Oct 29
|
19
|
-
/UnitTest.rb/1.10/Fri Nov 11 21:
|
1
|
+
/AddRemoveUserTest.rb/1.2/Sat Oct 29 17:31:38 2005//
|
2
|
+
/BackupRestoreTest.rb/1.2/Sat Oct 29 17:31:39 2005//
|
3
|
+
/CharacterSetTest.rb/1.2/Sat Oct 29 17:31:39 2005//
|
4
|
+
/ConnectionTest.rb/1.6/Sat Oct 29 17:31:39 2005//
|
5
|
+
/DDLTest.rb/1.6/Sat Oct 29 17:31:39 2005//
|
6
|
+
/DatabaseTest.rb/1.4/Sat Oct 29 17:31:39 2005//
|
7
|
+
/GeneratorTest.rb/1.4/Sat Oct 29 17:31:39 2005//
|
8
|
+
/KeyTest.rb/1.1/Sat Oct 29 17:37:43 2005//
|
9
|
+
/ResultSetTest.rb/1.4/Sat Oct 29 17:31:39 2005//
|
10
|
+
/RowCountTest.rb/1.3/Sat Oct 29 17:31:39 2005//
|
11
|
+
/RowTest.rb/1.3/Sat Oct 29 17:31:39 2005//
|
12
|
+
/SQLTest.rb/1.5/Sat Oct 29 17:31:39 2005//
|
13
|
+
/SQLTypeTest.rb/1.1/Sat Oct 29 17:37:43 2005//
|
14
|
+
/ServiceManagerTest.rb/1.2/Sat Oct 29 17:31:39 2005//
|
15
|
+
/StatementTest.rb/1.5/Sat Oct 29 17:31:39 2005//
|
16
|
+
/TestSetup.rb/1.2/Sat Oct 29 17:31:39 2005//
|
17
|
+
/TransactionTest.rb/1.6/Sat Oct 29 17:31:39 2005//
|
18
|
+
/TypeTest.rb/1.1/Sat Oct 29 17:37:43 2005//
|
19
|
+
/UnitTest.rb/1.10/Fri Nov 11 21:34:10 2005//
|
20
20
|
D
|
data/test/CVS/Repository
CHANGED
File without changes
|
data/test/CVS/Root
CHANGED
File without changes
|
data/test/CharacterSetTest.rb
CHANGED
File without changes
|
data/test/ConnectionTest.rb
CHANGED
File without changes
|
data/test/DDLTest.rb
CHANGED
File without changes
|
data/test/DatabaseTest.rb
CHANGED
File without changes
|
data/test/GeneratorTest.rb
CHANGED
File without changes
|
data/test/KeyTest.rb
CHANGED
File without changes
|
data/test/ResultSetTest.rb
CHANGED
File without changes
|
data/test/RowCountTest.rb
CHANGED
File without changes
|
data/test/RowTest.rb
CHANGED
File without changes
|
data/test/SQLTest.rb
CHANGED
File without changes
|
data/test/SQLTypeTest.rb
CHANGED
File without changes
|
data/test/ServiceManagerTest.rb
CHANGED
File without changes
|
data/test/StatementTest.rb
CHANGED
File without changes
|
data/test/TestSetup.rb
CHANGED
File without changes
|
data/test/TransactionTest.rb
CHANGED
File without changes
|
data/test/TypeTest.rb
CHANGED
File without changes
|
data/test/UnitTest.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: fireruby
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.4.
|
7
|
-
date: 2005-11-
|
6
|
+
version: 0.4.1
|
7
|
+
date: 2005-11-27 00:00:00 +00:00
|
8
8
|
summary: Ruby interface library for the Firebird database.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -56,22 +56,22 @@ files:
|
|
56
56
|
- test/TestSetup.rb
|
57
57
|
- test/TransactionTest.rb
|
58
58
|
- test/TypeTest.rb
|
59
|
-
- test/CVS
|
60
59
|
- test/UnitTest.rb
|
61
|
-
- test/
|
60
|
+
- test/CVS
|
62
61
|
- test/CVS/Entries
|
63
62
|
- test/CVS/Repository
|
64
63
|
- test/CVS/Root
|
65
64
|
- doc/license.txt
|
65
|
+
- doc/README
|
66
66
|
- doc/files
|
67
67
|
- doc/CVS
|
68
68
|
- doc/classes
|
69
|
-
- doc/README
|
70
69
|
- doc/files/CVS
|
71
70
|
- doc/files/CVS/Entries
|
72
71
|
- doc/files/CVS/Repository
|
73
72
|
- doc/files/CVS/Root
|
74
73
|
- doc/CVS/Entries
|
74
|
+
- doc/CVS/Entries.Log
|
75
75
|
- doc/CVS/Repository
|
76
76
|
- doc/CVS/Root
|
77
77
|
- doc/classes/FireRuby
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- doc/classes/FireRuby/Database.src/CVS/Repository
|
110
110
|
- doc/classes/FireRuby/Database.src/CVS/Root
|
111
111
|
- doc/classes/FireRuby/CVS/Entries
|
112
|
+
- doc/classes/FireRuby/CVS/Entries.Log
|
112
113
|
- doc/classes/FireRuby/CVS/Repository
|
113
114
|
- doc/classes/FireRuby/CVS/Root
|
114
115
|
- doc/classes/FireRuby/Connection.src/CVS
|
@@ -116,6 +117,7 @@ files:
|
|
116
117
|
- doc/classes/FireRuby/Connection.src/CVS/Repository
|
117
118
|
- doc/classes/FireRuby/Connection.src/CVS/Root
|
118
119
|
- doc/classes/CVS/Entries
|
120
|
+
- doc/classes/CVS/Entries.Log
|
119
121
|
- doc/classes/CVS/Repository
|
120
122
|
- doc/classes/CVS/Root
|
121
123
|
- examples/example01.rb
|
data/test/UnitTest.rb~
DELETED
@@ -1,64 +0,0 @@
|
|
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
|
-
EXCLUDES = ['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 EXCLUDES.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
|