graphql-libgraphqlparser 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/libgraphqlparser/visitor_functions.c +3 -1
- data/lib/graphql/libgraphqlparser/builder.rb +2 -0
- data/lib/graphql/libgraphqlparser/monkey_patches/abstract_node.rb +1 -2
- data/lib/graphql/libgraphqlparser/version.rb +1 -1
- data/test/graphql/libgraphqlparser_test.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 531be18cb503a27ef9302801f2d0658e2f8fca82
|
4
|
+
data.tar.gz: c38554b8988671b157fa0536f58437c0180ac5e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d12023d1a99965dd29493455849509a5a0644d8a0e286bcb31fe270c6ca4c90b6f7394f6c71c04ffce74a51d93e6dde4614c2a6d0b667280c93cece62bc4913
|
7
|
+
data.tar.gz: e173be433ad458a047e6bf5e6704c8fe9a061a0392921a41dfb0e4a99f2980bda463ff61dd6bde1789cbf2a44523808d683b18e2dbaf4e57ab972c8fa91fdbdb
|
@@ -277,15 +277,17 @@ void string_value_end_visit(const struct GraphQLAstStringValue* node, void* buil
|
|
277
277
|
}
|
278
278
|
|
279
279
|
int enum_value_begin_visit(const struct GraphQLAstEnumValue* node, void* builder_ptr) {
|
280
|
+
BEGIN("Enum");
|
280
281
|
const char* str_value = GraphQLAstEnumValue_get_value(node);
|
281
282
|
VALUE rb_string = rb_str_new2(str_value);
|
282
283
|
int enc = rb_enc_find_index("UTF-8");
|
283
284
|
rb_enc_associate_index(rb_string, enc);
|
284
|
-
|
285
|
+
rb_funcall(rb_node, name_set_intern, 1, rb_string);
|
285
286
|
return 1;
|
286
287
|
}
|
287
288
|
|
288
289
|
void enum_value_end_visit(const struct GraphQLAstEnumValue* node, void* builder_ptr) {
|
290
|
+
END;
|
289
291
|
}
|
290
292
|
|
291
293
|
int array_value_begin_visit(const struct GraphQLAstArrayValue* node, void* builder_ptr) {
|
@@ -14,6 +14,7 @@ module GraphQL
|
|
14
14
|
end
|
15
15
|
def type; self.of_type; end
|
16
16
|
end
|
17
|
+
|
17
18
|
class NonNullType
|
18
19
|
def type=(inner_type)
|
19
20
|
self.of_type = inner_type
|
@@ -21,8 +22,6 @@ module GraphQL
|
|
21
22
|
def type; self.of_type; end
|
22
23
|
end
|
23
24
|
|
24
|
-
|
25
|
-
|
26
25
|
class ArrayLiteral < AbstractNode
|
27
26
|
attr_reader :values
|
28
27
|
|
@@ -184,7 +184,8 @@ describe GraphQL::Libgraphqlparser do
|
|
184
184
|
end
|
185
185
|
|
186
186
|
it "parses enums" do
|
187
|
-
|
187
|
+
assert_instance_of GraphQL::Language::Nodes::Enum, inputs[4].value
|
188
|
+
assert_equal "ENUM_NAME", inputs[4].value.name
|
188
189
|
end
|
189
190
|
|
190
191
|
it "parses arrays" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-libgraphqlparser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Mosolgo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|