graphql-libgraphqlparser 0.2.0 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9179e88cf9dbcbaf1f0056654b0c21e1a1288f06
4
- data.tar.gz: 14eb4b007589bc481be0f75d45cfad1af2fe60d7
3
+ metadata.gz: 49728523192a9cd15fd7133a7072c14ca3a8bf1d
4
+ data.tar.gz: a23cbef156b74384e73f501d8615744486374224
5
5
  SHA512:
6
- metadata.gz: d6d2bab24aa2d2de4ebe23f243a813c56503713f390707f4699d79634e59fbcb1c1f73e5c5817eb218b39c3618e89525ba8c1e34c707b4eb734517000f9b8d0d
7
- data.tar.gz: 34be420854c696575db12014db0758b356d998d0a4ad85d6482fcf0c0e6eb7e261d28d29b56070f5c72cbdbc0b3d942d0fb72046fce9bafc72c1d0d90c5f5fda
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 = StringValuePtr(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
- exception = rb_exc_new_cstr(Libgraphqlparser_ParseError, parse_error_message);
25
- graphql_error_free(parse_error_message);
26
- rb_exc_raise(exception);
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);
@@ -1,5 +1,5 @@
1
1
  module GraphQL
2
2
  module Libgraphqlparser
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  end
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.0
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-08 00:00:00.000000000 Z
11
+ date: 2016-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql