agoo 2.15.6 → 2.15.7
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/ext/agoo/sdl.c +13 -2
- data/lib/agoo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6860d541228cbc1c4eb2cde9ff1ca990165c8bc6a94e7c3100b9815c5e7f355a
|
4
|
+
data.tar.gz: 67a498d6cb3a1b979d17222f0c6b0b15fe6860af2bc2f16eefe665801e8257f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35bebcb546facab91fffd989fcf8d6abe4e09130840abe5066063a9858d2e7432b8979e497a1e3f3cd7e7c6a1673920c51c2ed92475cf81ed478c809973f34e5
|
7
|
+
data.tar.gz: '0302865a039bcee648d1212296ec72039beff8edc02ce32dae21f1a5badcb4b8de9586ca97e6e9afcdd3cfbf72a4398af7c135354dcfdf4afeb7ab1556d41445'
|
data/CHANGELOG.md
CHANGED
data/ext/agoo/sdl.c
CHANGED
@@ -1385,6 +1385,16 @@ lookup_field_type(gqlType type, const char *field, bool qroot) {
|
|
1385
1385
|
return ftype;
|
1386
1386
|
}
|
1387
1387
|
|
1388
|
+
static bool
|
1389
|
+
has_all_fields(gqlType type, gqlSel sel) {
|
1390
|
+
for (; NULL != sel; sel = sel->next) {
|
1391
|
+
if (NULL == lookup_field_type(type, sel->name, false)) {
|
1392
|
+
return false;
|
1393
|
+
}
|
1394
|
+
}
|
1395
|
+
return true;
|
1396
|
+
}
|
1397
|
+
|
1388
1398
|
static int
|
1389
1399
|
make_op(agooErr err, agooDoc doc, gqlDoc gdoc, gqlOpKind kind) {
|
1390
1400
|
char name[256];
|
@@ -1463,8 +1473,9 @@ make_op(agooErr err, agooDoc doc, gqlDoc gdoc, gqlOpKind kind) {
|
|
1463
1473
|
gqlType schema = gql_root_type();
|
1464
1474
|
gqlType type = lookup_field_type(schema, kind_str, false);
|
1465
1475
|
|
1466
|
-
if ((NULL
|
1467
|
-
(
|
1476
|
+
if ((NULL != lookup_field_type(type, name, false)) &&
|
1477
|
+
!has_all_fields(type, op->sels)) {
|
1478
|
+
|
1468
1479
|
gqlSel wrap = sel_create(err, NULL, name, NULL);
|
1469
1480
|
|
1470
1481
|
if (NULL == wrap) {
|
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.15.
|
4
|
+
version: 2.15.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: 2023-07-
|
11
|
+
date: 2023-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|