fcgi 0.8.7 → 0.8.8
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/ext/fcgi/fcgi.c +5 -5
- metadata +34 -31
data/ext/fcgi/fcgi.c
CHANGED
@@ -222,7 +222,7 @@ static VALUE fcgi_stream_write(VALUE self, VALUE str)
|
|
222
222
|
rb_secure(4);
|
223
223
|
Data_Get_Struct(self, FCGX_Stream, stream);
|
224
224
|
str = rb_obj_as_string(str);
|
225
|
-
len = FCGX_PutStr(
|
225
|
+
len = FCGX_PutStr(RSTRING_PTR(str), RSTRING_LEN(str), stream);
|
226
226
|
if (len == EOF) CHECK_STREAM_ERROR(stream);
|
227
227
|
return INT2NUM(len);
|
228
228
|
}
|
@@ -271,8 +271,8 @@ static VALUE fcgi_stream_puts_ary(VALUE ary, VALUE out)
|
|
271
271
|
VALUE tmp;
|
272
272
|
int i;
|
273
273
|
|
274
|
-
for (i=0; i<
|
275
|
-
tmp =
|
274
|
+
for (i=0; i<RARRAY_LEN(ary); i++) {
|
275
|
+
tmp = RARRAY_PTR(ary)[i];
|
276
276
|
if (rb_inspecting_p(tmp)) {
|
277
277
|
tmp = rb_str_new2("[...]");
|
278
278
|
}
|
@@ -305,7 +305,7 @@ static VALUE fcgi_stream_puts(int argc, VALUE *argv, VALUE out)
|
|
305
305
|
}
|
306
306
|
line = rb_obj_as_string(line);
|
307
307
|
fcgi_stream_write(out, line);
|
308
|
-
if (
|
308
|
+
if (RSTRING_PTR(line)[RSTRING_LEN(line)-1] != '\n') {
|
309
309
|
fcgi_stream_write(out, rb_default_rs);
|
310
310
|
}
|
311
311
|
}
|
@@ -379,7 +379,7 @@ static VALUE fcgi_stream_gets(VALUE self)
|
|
379
379
|
rb_str_cat(str, buff, strlen(buff));
|
380
380
|
if (strchr(buff, '\n')) break;
|
381
381
|
}
|
382
|
-
if (
|
382
|
+
if (RSTRING_LEN(str) > 0)
|
383
383
|
return str;
|
384
384
|
else
|
385
385
|
return Qnil;
|
metadata
CHANGED
@@ -1,52 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.11
|
3
|
-
specification_version: 1
|
4
2
|
name: fcgi
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.8.
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
- lib
|
11
|
-
email:
|
12
|
-
homepage:
|
13
|
-
rubyforge_project: fcgi
|
14
|
-
description: FastCGI is a language independent, scalable, open extension to CGI that provides high performance without the limitations of server specific APIs. For more information, see http://www.fastcgi.com/.
|
4
|
+
version: 0.8.8
|
5
|
+
platform: ruby
|
6
|
+
authors: []
|
7
|
+
|
15
8
|
autorequire: fcgi
|
16
|
-
default_executable:
|
17
9
|
bindir: bin
|
18
|
-
has_rdoc: false
|
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
10
|
cert_chain:
|
28
|
-
|
11
|
+
date: 2009-11-13 07:23:00 -05:00
|
12
|
+
default_executable:
|
13
|
+
dependencies: []
|
14
|
+
|
15
|
+
description: FastCGI is a language independent, scalable, open extension to CGI that provides high performance without the limitations of server specific APIs. For more information, see http://www.fastcgi.com/.
|
16
|
+
email:
|
17
|
+
executables: []
|
18
|
+
|
19
|
+
extensions:
|
20
|
+
- ext/fcgi/extconf.rb
|
21
|
+
extra_rdoc_files: []
|
29
22
|
|
30
23
|
files:
|
31
24
|
- lib/fcgi.rb
|
32
|
-
- ext/fcgi
|
33
25
|
- ext/fcgi/extconf.rb
|
34
26
|
- ext/fcgi/fcgi.c
|
35
27
|
- ext/fcgi/MANIFEST
|
36
28
|
- ChangeLog
|
37
29
|
- README
|
38
30
|
- README.signals
|
39
|
-
|
31
|
+
has_rdoc: false
|
32
|
+
homepage:
|
33
|
+
licenses: []
|
40
34
|
|
35
|
+
post_install_message:
|
41
36
|
rdoc_options: []
|
42
37
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
-
|
38
|
+
require_paths:
|
39
|
+
- lib
|
40
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ">"
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 0.0.0
|
45
|
+
version:
|
46
|
+
required_rubygems_version:
|
49
47
|
requirements: []
|
50
48
|
|
51
|
-
|
49
|
+
rubyforge_project: fcgi
|
50
|
+
rubygems_version: 1.3.5
|
51
|
+
signing_key:
|
52
|
+
specification_version: 1
|
53
|
+
summary: FastCGI library for Ruby.
|
54
|
+
test_files: []
|
52
55
|
|