agoo 2.11.6 → 2.11.7
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of agoo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -8
- data/ext/agoo/extconf.rb +1 -0
- data/ext/agoo/rgraphql.c +4 -4
- data/ext/agoo/rserver.c +18 -11
- data/lib/agoo.rb +1 -0
- data/lib/agoo/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06273c8f4d9d00c382ed4d0abec44bc54b24a1063cb7cc15796137153a169206
|
4
|
+
data.tar.gz: ba1e9f93e1cbd39e2777ce5a0d9e61498f5718c3742ad001d28490eec848e838
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccf05a2fed955f9e44461a6557c7d3232280c0fd316d523bbbb97cfc9942ef8407a4f31e92b4ba888d3d895578d85753d12e2966aeb08d8725a4de6f5c74eb2f
|
7
|
+
data.tar.gz: 3af05ec64f0af3ab57bbb0c95652d8050ca6c73d0cf39777cfeff8e5c0ac2cc71ddc783b4d0fecc5d675e865616fe8dee7c145268359e51e5bc7864f00428733
|
data/CHANGELOG.md
CHANGED
@@ -2,9 +2,19 @@
|
|
2
2
|
|
3
3
|
All changes to the Agoo gem are documented here. Releases follow semantic versioning.
|
4
4
|
|
5
|
-
## [
|
5
|
+
## [2.11.7] - 2020-01-02
|
6
6
|
|
7
|
-
|
7
|
+
Ruby 2.7.0 cleanup
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
|
11
|
+
- .travis.yml cleanup (thanks waghanza).
|
12
|
+
|
13
|
+
- Compile warnings eliminated.
|
14
|
+
|
15
|
+
- Added `require 'stringio'` to agoo.rb (issue #80)
|
16
|
+
|
17
|
+
## [2.11.6] - 2019-12-15
|
8
18
|
|
9
19
|
Bug fixes
|
10
20
|
|
@@ -14,7 +24,7 @@ Bug fixes
|
|
14
24
|
|
15
25
|
- Eliminated the type cast warnings introduced by the Ruby 2.6.5 which uses stricter makefile settings.
|
16
26
|
|
17
|
-
## [2.11.5] -
|
27
|
+
## [2.11.5] - 2019-11-11
|
18
28
|
|
19
29
|
Alpine
|
20
30
|
|
@@ -22,7 +32,7 @@ Alpine
|
|
22
32
|
|
23
33
|
- Added compiler directives to allow building on Alpine linux.
|
24
34
|
|
25
|
-
## [2.11.4] -
|
35
|
+
## [2.11.4] - 2019-11-10
|
26
36
|
|
27
37
|
GraphQL Introspection
|
28
38
|
|
@@ -32,13 +42,13 @@ GraphQL Introspection
|
|
32
42
|
|
33
43
|
- Missing SCHEMA __Type kind added.
|
34
44
|
|
35
|
-
## [2.11.3] -
|
45
|
+
## [2.11.3] - 2019-11-02
|
36
46
|
|
37
47
|
Benchamark options
|
38
48
|
|
39
49
|
- An option for polling timeout added. Trade off CPU use with reponsiveness.
|
40
50
|
|
41
|
-
## [2.11.2] -
|
51
|
+
## [2.11.2] - 2019-10-20
|
42
52
|
|
43
53
|
Coerce improvements
|
44
54
|
|
@@ -49,14 +59,14 @@ Coerce improvements
|
|
49
59
|
|
50
60
|
- Handle comments in all locations.
|
51
61
|
|
52
|
-
## [2.11.1] -
|
62
|
+
## [2.11.1] - 2019-09-22
|
53
63
|
|
54
64
|
Race fix
|
55
65
|
|
56
66
|
### Fixed
|
57
67
|
- A race condion occurred with a slow Ruby response and a connection close. Fixed.
|
58
68
|
|
59
|
-
## [2.11.0] -
|
69
|
+
## [2.11.0] - 2019-09-15
|
60
70
|
|
61
71
|
TLS using OpenSSL
|
62
72
|
|
data/ext/agoo/extconf.rb
CHANGED
@@ -17,6 +17,7 @@ $CFLAGS += ' -D_POSIX_SOURCE -D_GNU_SOURCE'
|
|
17
17
|
# does not work to check args with varargs so just remove the check.
|
18
18
|
CONFIG['warnflags'].slice!(/ -Wsuggest-attribute=format/)
|
19
19
|
CONFIG['warnflags'].slice!(/ -Wdeclaration-after-statement/)
|
20
|
+
CONFIG['warnflags'].slice!(/ -Wmissing-noreturn/)
|
20
21
|
|
21
22
|
have_header('stdatomic.h')
|
22
23
|
#have_header('sys/epoll.h')
|
data/ext/agoo/rgraphql.c
CHANGED
@@ -62,7 +62,7 @@ make_ruby_use(agooErr err, VALUE root, const char *method, const char *type_name
|
|
62
62
|
}
|
63
63
|
|
64
64
|
static VALUE
|
65
|
-
rescue_error(VALUE x) {
|
65
|
+
rescue_error(VALUE x, VALUE ignore) {
|
66
66
|
Eval eval = (Eval)x;
|
67
67
|
volatile VALUE info = rb_errinfo();
|
68
68
|
volatile VALUE msg = rb_funcall(info, rb_intern("message"), 0);
|
@@ -75,8 +75,8 @@ rescue_error(VALUE x) {
|
|
75
75
|
}
|
76
76
|
|
77
77
|
static VALUE
|
78
|
-
call_eval(
|
79
|
-
Eval eval = (Eval)x;
|
78
|
+
call_eval(VALUE x) {
|
79
|
+
Eval eval = (Eval)(void*)x;
|
80
80
|
|
81
81
|
eval->value = gql_doc_eval(eval->err, eval->doc);
|
82
82
|
|
@@ -548,7 +548,7 @@ root_op(const char *op) {
|
|
548
548
|
}
|
549
549
|
|
550
550
|
static VALUE
|
551
|
-
rescue_yield_error(VALUE x) {
|
551
|
+
rescue_yield_error(VALUE x, VALUE ignore) {
|
552
552
|
agooErr err = (agooErr)x;
|
553
553
|
volatile VALUE info = rb_errinfo();
|
554
554
|
volatile VALUE msg = rb_funcall(info, rb_intern("message"), 0);
|
data/ext/agoo/rserver.c
CHANGED
@@ -325,7 +325,7 @@ rserver_init(int argc, VALUE *argv, VALUE self) {
|
|
325
325
|
static const char bad500[] = "HTTP/1.1 500 Internal Error\r\nConnection: Close\r\nContent-Length: ";
|
326
326
|
|
327
327
|
static VALUE
|
328
|
-
rescue_error(VALUE x) {
|
328
|
+
rescue_error(VALUE x, VALUE ignore) {
|
329
329
|
agooReq req = (agooReq)x;
|
330
330
|
volatile VALUE info = rb_errinfo();
|
331
331
|
volatile VALUE msg = rb_funcall(info, rb_intern("message"), 0);
|
@@ -364,8 +364,8 @@ rescue_error(VALUE x) {
|
|
364
364
|
}
|
365
365
|
|
366
366
|
static VALUE
|
367
|
-
handle_base_inner(
|
368
|
-
agooReq req = (agooReq)x;
|
367
|
+
handle_base_inner(VALUE x) {
|
368
|
+
agooReq req = (agooReq)(void*)x;
|
369
369
|
volatile VALUE rr = request_wrap(req);
|
370
370
|
volatile VALUE rres = response_new();
|
371
371
|
|
@@ -387,7 +387,8 @@ handle_base(void *x) {
|
|
387
387
|
}
|
388
388
|
|
389
389
|
static int
|
390
|
-
header_cb(VALUE key, VALUE value,
|
390
|
+
header_cb(VALUE key, VALUE value, VALUE tv) {
|
391
|
+
agooText *tp = (agooText*)tv;
|
391
392
|
const char *ks = StringValuePtr(key);
|
392
393
|
int klen = (int)RSTRING_LEN(key);
|
393
394
|
const char *vs = StringValuePtr(value);
|
@@ -424,28 +425,34 @@ header_cb(VALUE key, VALUE value, agooText *tp) {
|
|
424
425
|
}
|
425
426
|
|
426
427
|
static VALUE
|
427
|
-
header_each_cb(VALUE kv,
|
428
|
-
|
428
|
+
header_each_cb(VALUE kv, VALUE cb_arg, int argc, const VALUE *argv, VALUE blockarg) {
|
429
|
+
agooText *tp = (agooText*)cb_arg;
|
430
|
+
|
431
|
+
header_cb(rb_ary_entry(kv, 0), rb_ary_entry(kv, 1), (VALUE)tp);
|
429
432
|
|
430
433
|
return Qnil;
|
431
434
|
}
|
432
435
|
|
433
436
|
static VALUE
|
434
|
-
body_len_cb(VALUE v, int *
|
437
|
+
body_len_cb(VALUE v, VALUE cb_arg, int argc, const VALUE *argv, VALUE blockarg) {
|
438
|
+
int *sizep = (int*)cb_arg;
|
439
|
+
|
435
440
|
*sizep += (int)RSTRING_LEN(v);
|
436
441
|
|
437
442
|
return Qnil;
|
438
443
|
}
|
439
444
|
|
440
445
|
static VALUE
|
441
|
-
body_append_cb(VALUE v,
|
446
|
+
body_append_cb(VALUE v, VALUE cb_arg, int argc, const VALUE *argv, VALUE blockarg) {
|
447
|
+
agooText *tp = (agooText*)cb_arg;
|
448
|
+
|
442
449
|
*tp = agoo_text_append(*tp, StringValuePtr(v), (int)RSTRING_LEN(v));
|
443
450
|
|
444
451
|
return Qnil;
|
445
452
|
}
|
446
453
|
|
447
454
|
static VALUE
|
448
|
-
handle_rack_inner(
|
455
|
+
handle_rack_inner(VALUE x) {
|
449
456
|
agooReq req = (agooReq)x;
|
450
457
|
agooText t;
|
451
458
|
volatile VALUE env = request_env(req, request_wrap(req));
|
@@ -611,7 +618,7 @@ handle_rack(void *x) {
|
|
611
618
|
}
|
612
619
|
|
613
620
|
static VALUE
|
614
|
-
handle_wab_inner(
|
621
|
+
handle_wab_inner(VALUE x) {
|
615
622
|
agooReq req = (agooReq)x;
|
616
623
|
volatile VALUE rr = request_wrap(req);
|
617
624
|
volatile VALUE rres = response_new();
|
@@ -634,7 +641,7 @@ handle_wab(void *x) {
|
|
634
641
|
}
|
635
642
|
|
636
643
|
static VALUE
|
637
|
-
handle_push_inner(
|
644
|
+
handle_push_inner(VALUE x) {
|
638
645
|
agooReq req = (agooReq)x;
|
639
646
|
|
640
647
|
switch (req->method) {
|
data/lib/agoo.rb
CHANGED
data/lib/agoo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agoo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.11.
|
4
|
+
version: 2.11.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Ohler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '3.
|
19
|
+
version: '3.10'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.10.0
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '3.
|
29
|
+
version: '3.10'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.10.0
|
33
33
|
description: A fast HTTP server supporting rack.
|
34
34
|
email: peter@ohler.com
|
35
35
|
executables:
|
@@ -175,7 +175,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
175
175
|
requirements:
|
176
176
|
- - ">="
|
177
177
|
- !ruby/object:Gem::Version
|
178
|
-
version: 2.
|
178
|
+
version: '2.5'
|
179
179
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
180
|
requirements:
|
181
181
|
- - ">="
|
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
183
|
version: '0'
|
184
184
|
requirements:
|
185
185
|
- Linux or macOS
|
186
|
-
rubygems_version: 3.
|
186
|
+
rubygems_version: 3.1.2
|
187
187
|
signing_key:
|
188
188
|
specification_version: 4
|
189
189
|
summary: An HTTP server
|