ruby-lsapi 5.4 → 5.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/ext/lsapi/lsruby.c +9 -2
  3. data/lsapi.gemspec +2 -2
  4. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a220d3f4f42cb5d58212a8947a2650b1998d5dba3c8bddbd492dd5864be96bf
4
- data.tar.gz: 42cd393c94027e4620c08d6d661bca16508036312099321c074ed6c788654d2c
3
+ metadata.gz: 683129ad091d40aea2e77ed9d334ebec39445f6fb8d8a90e8447653a99734982
4
+ data.tar.gz: 59d3d25ac7ac9d6d2b99550608e892ff56ea78058cf386a80abeff42c00f15c1
5
5
  SHA512:
6
- metadata.gz: b1af0f8254ac6a7c89077b89ee9176f9024f763c6102c20a5c3545127620fa06f05fb4fc4f4be3871721bf0d0bfd30ae2496b47d642f60c64cfb171f23aa6459
7
- data.tar.gz: bf5f7cefabdbb163081d693a5dffc17a843b2764b1b3a7875fda53ae9c6cfe527c7a7a5eae52e9828a1ab9ffb3699cd7f0d2c8805710970dc63cee75fa75ae73
6
+ metadata.gz: 9ff5c2961a204c0dc4b31412252a056e0829865b3fe45bacad4f0edb97f489f68d791e006b310f78ea899dd9ed79d18f30b2cc65024f07005913b76c6ce799b5
7
+ data.tar.gz: f6cbbac34f011be2534ef74e58bbce4cb89e8ea18092b9ea41699998a6b3c40d483ac7ec1e5594e3ebe199ad5e09916f8e72180979857433298fc37b39d91d8d
data/ext/lsapi/lsruby.c CHANGED
@@ -45,6 +45,13 @@ static VALUE lsapi_env;
45
45
 
46
46
  static int MAX_BODYBUF_LENGTH = (10 * 1024 * 1024);
47
47
 
48
+ #if RUBY_API_VERSION_CODE >= 20700
49
+ # if defined rb_tainted_str_new
50
+ # undef rb_tainted_str_new
51
+ # endif
52
+ # define rb_tainted_str_new(p,l) rb_str_new((p),(l))
53
+ #endif
54
+
48
55
  /* static VALUE lsapi_objrefs; */
49
56
 
50
57
  typedef struct lsapi_data
@@ -353,7 +360,7 @@ static VALUE lsapi_printf(int argc, VALUE *argv, VALUE out)
353
360
 
354
361
  static VALUE lsapi_puts _((int, VALUE*, VALUE));
355
362
 
356
- #if defined( RUBY_19 ) || defined( RUBY_2 )
363
+ #if RUBY_API_VERSION_CODE >= 10900
357
364
  static VALUE lsapi_puts_ary(VALUE ary, VALUE out, int recur )
358
365
  {
359
366
  VALUE tmp;
@@ -411,7 +418,7 @@ static VALUE lsapi_puts(int argc, VALUE *argv, VALUE out)
411
418
  line = rb_str_new2("nil");
412
419
  break;
413
420
  case T_ARRAY:
414
- #if defined( RUBY_19 ) || defined( RUBY_2 )
421
+ #if RUBY_API_VERSION_CODE >= 10900
415
422
  rb_exec_recursive(lsapi_puts_ary, argv[i], out);
416
423
  #else
417
424
  rb_protect_inspect(lsapi_puts_ary, argv[i], out);
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.4"
4
- s.date = %q{2022-01-17}
3
+ s.version = "5.6"
4
+ s.date = %q{2024-01-22}
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.4'
4
+ version: '5.6'
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: 2022-01-17 00:00:00.000000000 Z
11
+ date: 2024-01-22 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: []