graphql-libgraphqlparser 0.2.0 → 0.2.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49728523192a9cd15fd7133a7072c14ca3a8bf1d
|
4
|
+
data.tar.gz: a23cbef156b74384e73f501d8615744486374224
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17ae0ee014ceea5583b0c20b0cd89378e4c4caa411ac058632057c4b45cb06e4fb887eb7140a6d7992f66691c4d187c9e39f6cd7e654e97a11d7a701558d6032
|
7
|
+
data.tar.gz: 4b09bd2f774f37b577b830bf7f0d35bd08f737667e7cf6a0b990f1c34a40b1b4661448416dfcd49e214c95c90d0ca488dffdd47cc27616576e138046276ef34a
|
@@ -13,7 +13,7 @@ static struct GraphQLAstVisitorCallbacks Libgraphqlparser_Callbacks;
|
|
13
13
|
// Given a Ruby querystring, return a
|
14
14
|
// GraphQL::Nodes::Document instance.
|
15
15
|
VALUE GraphQL_Libgraphqlparser_parse(VALUE self, VALUE query_string) {
|
16
|
-
const char* c_query_string =
|
16
|
+
const char* c_query_string = StringValueCStr(query_string);
|
17
17
|
const char* parse_error_message;
|
18
18
|
VALUE exception;
|
19
19
|
VALUE builder = Qnil;
|
@@ -21,9 +21,9 @@ VALUE GraphQL_Libgraphqlparser_parse(VALUE self, VALUE query_string) {
|
|
21
21
|
struct GraphQLAstNode *parse_result = graphql_parse_string(c_query_string, &parse_error_message);
|
22
22
|
|
23
23
|
if (parse_result == NULL) {
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
exception = rb_exc_new_cstr(Libgraphqlparser_ParseError, parse_error_message);
|
25
|
+
graphql_error_free(parse_error_message);
|
26
|
+
rb_exc_raise(exception);
|
27
27
|
} else {
|
28
28
|
builder = rb_class_new_instance(0, NULL, Libgraphqlparser_Builder);
|
29
29
|
graphql_node_visit(parse_result, &Libgraphqlparser_Callbacks, (void*)builder);
|
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.2.
|
4
|
+
version: 0.2.1
|
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-03-
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|