rubyfb 0.5.7 → 0.5.8

Sign up to get free protection for your applications and to get access to all the features.
data/test/RowTest.rb CHANGED
@@ -8,8 +8,7 @@ require 'rubyfb'
8
8
  include Rubyfb
9
9
 
10
10
  class RowTest < Test::Unit::TestCase
11
- CURDIR = "#{Dir.getwd}"
12
- DB_FILE = "#{CURDIR}#{File::SEPARATOR}row_unit_test.fdb"
11
+ DB_FILE = File.join(DB_DIR, "row_unit_test.fdb")
13
12
 
14
13
  def setup
15
14
  puts "#{self.class.name} started." if TEST_LOGGING
data/test/SQLTest.rb CHANGED
@@ -8,8 +8,7 @@ require 'rubyfb'
8
8
  include Rubyfb
9
9
 
10
10
  class SQLTest < Test::Unit::TestCase
11
- CURDIR = "#{Dir.getwd}"
12
- DB_FILE = "#{CURDIR}#{File::SEPARATOR}sql_unit_test.fdb"
11
+ DB_FILE = File.join(DB_DIR, "sql_unit_test.fdb")
13
12
  ITERATIONS = 100
14
13
 
15
14
  INSERT_SQL = "INSERT INTO TEST_TABLE VALUES(?, ?, ?, ?, ?, ?)"
data/test/SQLTypeTest.rb CHANGED
@@ -8,8 +8,7 @@ require 'rubyfb'
8
8
  include Rubyfb
9
9
 
10
10
  class SQLTypeTest < Test::Unit::TestCase
11
- CURDIR = "#{Dir.getwd}"
12
- DB_FILE = "#{CURDIR}#{File::SEPARATOR}sql_type_test.fdb"
11
+ DB_FILE = File.join(DB_DIR, "sql_type_test.fdb")
13
12
 
14
13
  def setup
15
14
  puts "#{self.class.name} started." if TEST_LOGGING
@@ -8,8 +8,7 @@ require 'rubyfb'
8
8
  include Rubyfb
9
9
 
10
10
  class StatementTest < Test::Unit::TestCase
11
- CURDIR = "#{Dir.getwd}"
12
- DB_FILE = "#{CURDIR}#{File::SEPARATOR}stmt_unit_test.fdb"
11
+ DB_FILE = File.join(DB_DIR, "stmt_unit_test.fdb")
13
12
 
14
13
  def setup
15
14
  puts "#{self.class.name} started." if TEST_LOGGING
data/test/TestSetup.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ require 'tmpdir'
2
3
 
3
4
  # Add extra search paths.
4
5
  basedir = File::dirname(Dir.getwd)
@@ -6,6 +7,7 @@ $:.push(basedir)
6
7
  $:.push("#{basedir}#{File::SEPARATOR}test")
7
8
  $:.push("#{basedir}#{File::SEPARATOR}lib")
8
9
 
10
+ DB_DIR = Dir.tmpdir
9
11
  DB_USER_NAME = 'sysdba'
10
12
  DB_PASSWORD = 'masterkey'
11
13
  TEST_LOGGING = false
@@ -8,8 +8,7 @@ require 'rubyfb'
8
8
  include Rubyfb
9
9
 
10
10
  class TransactionTest < Test::Unit::TestCase
11
- CURDIR = "#{Dir.getwd}"
12
- DB_FILE = "#{CURDIR}#{File::SEPARATOR}tx_unit_test.fdb"
11
+ DB_FILE = File.join(DB_DIR, "tx_unit_test.fdb")
13
12
 
14
13
  def setup
15
14
  puts "#{self.class.name} started." if TEST_LOGGING
data/test/TypeTest.rb CHANGED
@@ -9,8 +9,7 @@ require 'date'
9
9
  include Rubyfb
10
10
 
11
11
  class TypeTest < Test::Unit::TestCase
12
- CURDIR = "#{Dir.getwd}"
13
- DB_FILE = "#{CURDIR}#{File::SEPARATOR}types_unit_test.fdb"
12
+ DB_FILE = File.join(DB_DIR, "types_unit_test.fdb")
14
13
 
15
14
  def setup
16
15
  puts "#{self.class.name} started." if TEST_LOGGING
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyfb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 7
10
- version: 0.5.7
9
+ - 8
10
+ version: 0.5.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - George Georgiev
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-14 00:00:00 +02:00
18
+ date: 2011-04-03 00:00:00 +03:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -35,6 +35,7 @@ extra_rdoc_files:
35
35
  - lib/ProcedureCall.rb
36
36
  - lib/SQLType.rb
37
37
  - lib/rubyfb.rb
38
+ - lib/rubyfb_options.rb
38
39
  - lib/src.rb
39
40
  files:
40
41
  - CHANGELOG
@@ -84,14 +85,17 @@ files:
84
85
  - ext/extconf.rb
85
86
  - ext/rfbint.h
86
87
  - ext/rfbsleep.h
88
+ - ext/uncrustify.cfg
87
89
  - lib/Connection.rb
88
90
  - lib/ProcedureCall.rb
89
91
  - lib/SQLType.rb
90
92
  - lib/active_record/connection_adapters/rubyfb_adapter.rb
91
93
  - lib/arel/visitors/rubyfb.rb
94
+ - lib/arel/visitors/rubyfb_15compat.rb
92
95
  - lib/mkdoc
93
96
  - lib/rubyfb.rb
94
97
  - lib/rubyfb_lib.so
98
+ - lib/rubyfb_options.rb
95
99
  - lib/src.rb
96
100
  - mswin32fb/fbclient_mingw.def
97
101
  - mswin32fb/fbclient_mingw.lib