ruby-lsapi 2.0 → 2.1
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/lsapi/lsruby.c +8 -1
- metadata +3 -4
data/ext/lsapi/lsruby.c
CHANGED
@@ -494,6 +494,13 @@ static VALUE lsapi_setsync(VALUE self,VALUE sync)
|
|
494
494
|
return Qfalse;
|
495
495
|
}
|
496
496
|
|
497
|
+
static VALUE lsapi_close(VALUE self)
|
498
|
+
{
|
499
|
+
LSAPI_Flush_r( &g_req );
|
500
|
+
return Qnil;
|
501
|
+
}
|
502
|
+
|
503
|
+
|
497
504
|
void Init_lsapi()
|
498
505
|
{
|
499
506
|
VALUE remove_env;
|
@@ -593,7 +600,7 @@ void Init_lsapi()
|
|
593
600
|
rb_define_method(cLSAPI, "read", lsapi_read, -1);
|
594
601
|
rb_define_method(cLSAPI, "eof", lsapi_eof, 0);
|
595
602
|
rb_define_method(cLSAPI, "eof?", lsapi_eof, 0);
|
596
|
-
|
603
|
+
rb_define_method(cLSAPI, "close", lsapi_close, 0);
|
597
604
|
// rb_define_method(cLSAPI, "closed?", lsapi_closed, 0);
|
598
605
|
rb_define_method(cLSAPI, "binmode", lsapi_binmode, 0);
|
599
606
|
//rb_define_method(cLSAPI, "isatty", lsapi_isatty, 0);
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.
|
2
|
+
rubygems_version: 0.8.11
|
3
3
|
specification_version: 1
|
4
4
|
name: ruby-lsapi
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "2.
|
7
|
-
date: 2007-
|
6
|
+
version: "2.1"
|
7
|
+
date: 2007-03-07 00:00:00 -05:00
|
8
8
|
summary: A ruby extension for fast communication with LiteSpeed Web Server.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -25,7 +25,6 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
25
25
|
platform: ruby
|
26
26
|
signing_key:
|
27
27
|
cert_chain:
|
28
|
-
post_install_message:
|
29
28
|
authors:
|
30
29
|
- LiteSpeed Technologies Inc.
|
31
30
|
files:
|