ruby-lsapi 5.5 → 5.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dec44a2d3510fddc7b579c45b074da900d2c643f9d6f0f262744cafea8651a9e
4
- data.tar.gz: ee876a52384db249328ff617e55ddaece9ffaf2f2ef554b53718233323590b5f
3
+ metadata.gz: 47bd3a585cd4f426d40112a0dc34e37b63f8f68f56778d6f202a9b999d017040
4
+ data.tar.gz: ab4cb86972a775d34f634336554c71534ef48cbffd171732defba3269699a97a
5
5
  SHA512:
6
- metadata.gz: 6a866894eb216a6065f268310a84ff1d05c1de3e33a49e193e977d17a5d814e4fab4b736b4a127c8b3d5cf3a204627ca9eaf5ba99b0f783ad4fdfcbe9a88af85
7
- data.tar.gz: 587defe8c9198bc71bad28ef7dfb97e4a1b260bed8564053bd646e7f3016f861d0d260b4c0996991b1098711f380b1ed636c378691201f68a614dd61d6ad3be3
6
+ metadata.gz: 7cbe99752b66e2f5afd4d2d8688f39655c95168bc35623232f2f613812045f1b58cf44dd383fbced3490898b249bb127221cb2584beff372192c5e964d570e4a
7
+ data.tar.gz: 6576c10d61cb72d62a6259553df323682f282eb876ffbe9cbaf853703a780b7fbbe8f523e4a3336f3fa8a9822a57f6903ac91d4687b70fbbb26498a8d765ed20
data/ext/lsapi/extconf.rb CHANGED
@@ -3,6 +3,9 @@ dir_config( 'lsapi' )
3
3
  if ( have_library( "socket" ))
4
4
  have_library( "nsl" )
5
5
  end
6
+ if RUBY_VERSION =~ /1.8/ then
7
+ $CPPFLAGS += " -DRUBY_18"
8
+ end
6
9
  if RUBY_VERSION =~ /1.9/ then
7
10
  $CPPFLAGS += " -DRUBY_19"
8
11
  end
data/ext/lsapi/lsapidef.h CHANGED
@@ -97,7 +97,7 @@ enum
97
97
  #define LSAPI_INTERNAL_ERROR 9
98
98
 
99
99
 
100
- #define LSAPI_MAX_HEADER_LEN 65535
100
+ #define LSAPI_MAX_HEADER_LEN (1024 * 256)
101
101
  #define LSAPI_MAX_DATA_PACKET_LEN 16384
102
102
 
103
103
  #define LSAPI_RESP_HTTP_HEADER_MAX 32768
data/ext/lsapi/lsruby.c CHANGED
@@ -1,7 +1,10 @@
1
1
 
2
2
  #include "ruby.h"
3
3
 
4
- #if defined( RUBY_VERSION_CODE ) && RUBY_VERSION_CODE < 180
4
+ #if defined( RUBY_18 )
5
+ #include "util.h"
6
+ #include "version.h"
7
+ #elif defined( RUBY_VERSION_CODE ) && RUBY_VERSION_CODE < 180
5
8
  #include "util.h"
6
9
  #else
7
10
  #include <ruby/util.h>
@@ -45,6 +48,13 @@ static VALUE lsapi_env;
45
48
 
46
49
  static int MAX_BODYBUF_LENGTH = (10 * 1024 * 1024);
47
50
 
51
+ #if RUBY_API_VERSION_CODE >= 20700
52
+ # if defined rb_tainted_str_new
53
+ # undef rb_tainted_str_new
54
+ # endif
55
+ # define rb_tainted_str_new(p,l) rb_str_new((p),(l))
56
+ #endif
57
+
48
58
  /* static VALUE lsapi_objrefs; */
49
59
 
50
60
  typedef struct lsapi_data
data/lsapi.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{ruby-lsapi}
3
- s.version = "5.5"
4
- s.date = %q{2023-06-08}
3
+ s.version = "5.7"
4
+ s.date = %q{2024-03-13}
5
5
  s.description = "This is a ruby extension for fast communication with LiteSpeed Web Server."
6
6
  s.summary = %q{A ruby extension for fast communication with LiteSpeed Web Server.}
7
7
  s.has_rdoc = false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-lsapi
3
3
  version: !ruby/object:Gem::Version
4
- version: '5.5'
4
+ version: '5.7'
5
5
  platform: ruby
6
6
  authors:
7
7
  - LiteSpeed Technologies Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-08 00:00:00.000000000 Z
11
+ date: 2024-03-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This is a ruby extension for fast communication with LiteSpeed Web Server.
14
14
  email: info@litespeedtech.com
@@ -33,7 +33,7 @@ files:
33
33
  homepage: http://www.litespeedtech.com/
34
34
  licenses: []
35
35
  metadata: {}
36
- post_install_message:
36
+ post_install_message:
37
37
  rdoc_options: []
38
38
  require_paths:
39
39
  - lib
@@ -48,8 +48,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  requirements: []
51
- rubygems_version: 3.3.3
52
- signing_key:
51
+ rubygems_version: 3.3.5
52
+ signing_key:
53
53
  specification_version: 4
54
54
  summary: A ruby extension for fast communication with LiteSpeed Web Server.
55
55
  test_files: []