fb 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/extconf.rb +5 -1
- data/fb.c +15 -1
- metadata +34 -41
data/extconf.rb
CHANGED
@@ -26,7 +26,11 @@ case RUBY_PLATFORM
|
|
26
26
|
$CFLAGS = $CFLAGS + " -DOS_WIN32"
|
27
27
|
libs.push "fbclient_ms"
|
28
28
|
when /darwin/
|
29
|
-
|
29
|
+
hosttype = `uname -m`.chomp
|
30
|
+
#$CFLAGS += " -DOS_UNIX"
|
31
|
+
$CFLAGS.gsub!(/-arch (\w+)/) { |m| $1 == hosttype ? m : '' }
|
32
|
+
$LDFLAGS.gsub!(/-arch (\w+)/) { |m| $1 == hosttype ? m : '' }
|
33
|
+
CONFIG['LDSHARED'].gsub!(/-arch (\w+)/) { |m| $1 == hosttype ? m : '' }
|
30
34
|
$CPPFLAGS += " -I/Library/Frameworks/Firebird.framework/Headers"
|
31
35
|
$LDFLAGS += " -framework Firebird"
|
32
36
|
when /linux/
|
data/fb.c
CHANGED
@@ -158,6 +158,7 @@ static long calculate_buffsize(XSQLDA *sqlda)
|
|
158
158
|
return offset;
|
159
159
|
}
|
160
160
|
|
161
|
+
#if (FB_API_VER >= 20)
|
161
162
|
static VALUE fb_error_msg(const ISC_STATUS *isc_status)
|
162
163
|
{
|
163
164
|
char msg[512];
|
@@ -169,6 +170,19 @@ static VALUE fb_error_msg(const ISC_STATUS *isc_status)
|
|
169
170
|
}
|
170
171
|
return result;
|
171
172
|
}
|
173
|
+
#else
|
174
|
+
static VALUE fb_error_msg(ISC_STATUS *isc_status)
|
175
|
+
{
|
176
|
+
char msg[512];
|
177
|
+
VALUE result = rb_str_new(NULL, 0);
|
178
|
+
while (isc_interprete(msg, &isc_status))
|
179
|
+
{
|
180
|
+
result = rb_str_cat(result, msg, strlen(msg));
|
181
|
+
result = rb_str_cat(result, "\n", strlen("\n"));
|
182
|
+
}
|
183
|
+
return result;
|
184
|
+
}
|
185
|
+
#endif
|
172
186
|
|
173
187
|
struct time_object {
|
174
188
|
struct timeval tv;
|
@@ -2861,7 +2875,7 @@ static VALUE database_s_create(int argc, VALUE *argv, VALUE klass)
|
|
2861
2875
|
*/
|
2862
2876
|
static VALUE database_connect(VALUE self)
|
2863
2877
|
{
|
2864
|
-
|
2878
|
+
ISC_STATUS isc_status[20];
|
2865
2879
|
char *dbp;
|
2866
2880
|
int length;
|
2867
2881
|
isc_db_handle handle = NULL;
|
metadata
CHANGED
@@ -1,26 +1,33 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.9.4
|
3
|
+
specification_version: 1
|
2
4
|
name: fb
|
3
5
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
5
|
-
|
6
|
-
|
7
|
-
|
6
|
+
version: 0.5.5
|
7
|
+
date: 2008-01-03 00:00:00 -07:00
|
8
|
+
summary: Firebird and Interbase driver
|
9
|
+
require_paths:
|
10
|
+
- .
|
11
|
+
email: rowland@rowlandresearch.com
|
12
|
+
homepage: http://www.rowlandresearch.com/ruby/
|
13
|
+
rubyforge_project: fblib
|
14
|
+
description:
|
8
15
|
autorequire:
|
9
|
-
bindir: bin
|
10
|
-
cert_chain: []
|
11
|
-
|
12
|
-
date: 2007-12-13 00:00:00 -07:00
|
13
16
|
default_executable:
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
post_install_message:
|
29
|
+
authors: []
|
19
30
|
|
20
|
-
extensions:
|
21
|
-
- extconf.rb
|
22
|
-
extra_rdoc_files:
|
23
|
-
- README
|
24
31
|
files:
|
25
32
|
- extconf.rb
|
26
33
|
- fb.c
|
@@ -32,9 +39,8 @@ files:
|
|
32
39
|
- test/FbTestCases.rb
|
33
40
|
- test/FbTestSuite.rb
|
34
41
|
- test/TransactionTestCases.rb
|
35
|
-
|
36
|
-
|
37
|
-
post_install_message:
|
42
|
+
test_files:
|
43
|
+
- test/FbTestSuite.rb
|
38
44
|
rdoc_options:
|
39
45
|
- --title
|
40
46
|
- Fb -- Ruby Firebird Extension
|
@@ -42,26 +48,13 @@ rdoc_options:
|
|
42
48
|
- README
|
43
49
|
- -x
|
44
50
|
- test
|
45
|
-
|
46
|
-
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
version: "0"
|
52
|
-
version:
|
53
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
-
requirements:
|
55
|
-
- - ">="
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: "0"
|
58
|
-
version:
|
51
|
+
extra_rdoc_files:
|
52
|
+
- README
|
53
|
+
executables: []
|
54
|
+
|
55
|
+
extensions:
|
56
|
+
- extconf.rb
|
59
57
|
requirements:
|
60
58
|
- Firebird client library fbclient.dll
|
61
|
-
|
62
|
-
|
63
|
-
signing_key:
|
64
|
-
specification_version: 2
|
65
|
-
summary: Firebird and Interbase driver
|
66
|
-
test_files:
|
67
|
-
- test/FbTestSuite.rb
|
59
|
+
dependencies: []
|
60
|
+
|