ruby-fcgi 0.8.8 → 0.8.9
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/ChangeLog +6 -2
- data/README +3 -2
- data/README.rdoc +3 -2
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/ext/fcgi/fcgi.c +11 -3
- metadata +3 -3
data/ChangeLog
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
Wed Nov 28 11:15:09 JST 2009 saksmlz@gmail.com
|
2
|
+
* ruby 1.8.x compability patch
|
3
|
+
|
1
4
|
Thu Nov 21 10:14:15 JST 2009 saksmlz@gmail.com
|
2
5
|
* patch from http://blog.rubyists.com/2009/06/02/ruby-fcgi-on-1-9-x
|
3
6
|
|
@@ -10,8 +13,8 @@ Fri Apr 1 10:20:14 JST 2005 sugi@nemui.org
|
|
10
13
|
|
11
14
|
Fri Apr 1 08:09:13 JST 2005 aredridel@nbtsc.org
|
12
15
|
* Report actual errors
|
13
|
-
|
14
|
-
Adds reporting of errors fcgi experiences. Credit to David Heinemier Hansson
|
16
|
+
|
17
|
+
Adds reporting of errors fcgi experiences. Credit to David Heinemier Hansson
|
15
18
|
for discovery.
|
16
19
|
|
17
20
|
Fri Apr 1 08:08:07 JST 2005 aredridel@nbtsc.org
|
@@ -31,3 +34,4 @@ Wed Mar 30 21:43:02 JST 2005 sugi@nemui.org
|
|
31
34
|
Wed Mar 30 21:40:22 JST 2005 sugi@nemui.org
|
32
35
|
* init-from-0.8.5
|
33
36
|
Initalize DARCS repository from MoonWolf's 0.8.5 release.
|
37
|
+
|
data/README
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= fcgi - FastCGI library for Ruby
|
2
2
|
|
3
|
-
Version 0.8.
|
3
|
+
Version 0.8.9
|
4
4
|
|
5
5
|
== Depends
|
6
6
|
|
@@ -64,7 +64,7 @@ Using the FastCGI native interface:
|
|
64
64
|
|
65
65
|
#!/usr/bin/ruby
|
66
66
|
require "fcgi"
|
67
|
-
|
67
|
+
|
68
68
|
FCGI.each {|request|
|
69
69
|
out = request.out
|
70
70
|
out.print "Content-Type: text/plain\r\n"
|
@@ -108,3 +108,4 @@ standard CGI library.
|
|
108
108
|
fastcgi.rb 0.7 Copyright (C) 2001 Eli Green
|
109
109
|
fcgi.rb 0.8 Copyright (C) 2002 MoonWolf <moonwolf@moonwolf.com>
|
110
110
|
fcgi.rb 0.8.5 Copyright (C) 2004 Minero Aoki
|
111
|
+
|
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= fcgi - FastCGI library for Ruby
|
2
2
|
|
3
|
-
Version 0.8.
|
3
|
+
Version 0.8.9
|
4
4
|
|
5
5
|
== Depends
|
6
6
|
|
@@ -64,7 +64,7 @@ Using the FastCGI native interface:
|
|
64
64
|
|
65
65
|
#!/usr/bin/ruby
|
66
66
|
require "fcgi"
|
67
|
-
|
67
|
+
|
68
68
|
FCGI.each {|request|
|
69
69
|
out = request.out
|
70
70
|
out.print "Content-Type: text/plain\r\n"
|
@@ -108,3 +108,4 @@ standard CGI library.
|
|
108
108
|
fastcgi.rb 0.7 Copyright (C) 2001 Eli Green
|
109
109
|
fcgi.rb 0.8 Copyright (C) 2002 MoonWolf <moonwolf@moonwolf.com>
|
110
110
|
fcgi.rb 0.8.5 Copyright (C) 2004 Minero Aoki
|
111
|
+
|
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ begin
|
|
6
6
|
Jeweler::Tasks.new do |gem|
|
7
7
|
gem.name = "ruby-fcgi"
|
8
8
|
gem.summary = %Q{FastCGI library for Ruby.}
|
9
|
-
gem.description = %Q{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/.}
|
9
|
+
gem.description = %Q{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/. This is the fork of fcgi implementation for ruby but with ruby1.9 - ruby1.9.1 compability}
|
10
10
|
gem.email = "saksmlz@gmail.com"
|
11
11
|
gem.homepage = "http://github.com/saks/fcgi"
|
12
12
|
gem.authors = ["saks"]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.9
|
data/ext/fcgi/fcgi.c
CHANGED
@@ -11,12 +11,21 @@
|
|
11
11
|
#include <fcntl.h>
|
12
12
|
|
13
13
|
#include "ruby.h"
|
14
|
+
|
15
|
+
#ifndef RSTRING_PTR
|
16
|
+
#define RSTRING_PTR(str) (RSTRING(str)->ptr)
|
17
|
+
#endif
|
18
|
+
#ifndef RSTRING_LEN
|
19
|
+
#define RSTRING_LEN(str) (RSTRING(str)->len)
|
20
|
+
#endif
|
21
|
+
|
14
22
|
#ifdef HAVE_FASTCGI_FCGIAPP_H
|
15
23
|
#include <fastcgi/fcgiapp.h>
|
16
24
|
#else
|
17
25
|
#include "fcgiapp.h"
|
18
26
|
#endif
|
19
27
|
|
28
|
+
|
20
29
|
static VALUE cFCGI;
|
21
30
|
static VALUE eFCGIError;
|
22
31
|
static VALUE cFCGIStream;
|
@@ -358,11 +367,10 @@ static VALUE fcgi_stream_ungetc(VALUE self, VALUE ch)
|
|
358
367
|
return INT2NUM(c);
|
359
368
|
}
|
360
369
|
|
361
|
-
static VALUE fcgi_stream_gets(VALUE self)
|
362
|
-
{
|
370
|
+
static VALUE fcgi_stream_gets(VALUE self) {
|
363
371
|
FCGX_Stream *stream;
|
364
372
|
char buff[BUFSIZ];
|
365
|
-
VALUE str = rb_str_new(
|
373
|
+
VALUE str = rb_str_new(0,0);
|
366
374
|
OBJ_TAINT(str);
|
367
375
|
|
368
376
|
if (rb_safe_level() >= 4 && !OBJ_TAINTED(self)) {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-fcgi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- saks
|
@@ -9,11 +9,11 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-28 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
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
|
+
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/. This is the fork of fcgi implementation for ruby but with ruby1.9 - ruby1.9.1 compability
|
17
17
|
email: saksmlz@gmail.com
|
18
18
|
executables: []
|
19
19
|
|