graphql-libgraphqlparser 0.4.0 → 0.5.0
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/.travis.yml +3 -3
- data/CHANGELOG.md +4 -0
- data/README.md +13 -4
- data/Rakefile +1 -0
- data/ext/graphql_libgraphqlparser_ext/graphql_libgraphqlparser_ext.c +1 -1
- data/ext/graphql_libgraphqlparser_ext/visitor_functions.c +3 -3
- data/ext/graphql_libgraphqlparser_ext/visitor_functions.h +1 -1
- data/lib/graphql/libgraphqlparser/builder.rb +1 -1
- data/lib/graphql/libgraphqlparser/monkey_patches/abstract_node.rb +1 -1
- data/lib/graphql/libgraphqlparser/version.rb +1 -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: 70cb618e8f60a0f386733ff8df7f21b7c53bcc46
|
4
|
+
data.tar.gz: 49779e4778bccbb9b251f4f8a8ddb72921881627
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b3d6bdbdb1d4ccffbe9d84df0a09e59c64b07ca97686246a0ecd890c78dce1baead1177844d889fa958be642e38f421238bceab8ab1aa0a03f0dd71ad56ffa9
|
7
|
+
data.tar.gz: de253ca616d9026135ecb0988176648f89391a2eb7cb479b3a9a7674b60283a21786ccd83c3e7225eaede2237e3d4356f44c4c3d3d69026da2bfd0d8a3ee629e
|
data/.travis.yml
CHANGED
@@ -17,9 +17,9 @@ before_install:
|
|
17
17
|
- sudo unlink /usr/bin/g++ && sudo ln -s /usr/bin/g++-5 /usr/bin/g++
|
18
18
|
- g++ --version
|
19
19
|
- sudo apt-get install bison
|
20
|
-
- wget https://github.com/graphql/libgraphqlparser/archive/v0.
|
21
|
-
- tar -xzvf v0.
|
22
|
-
- cd libgraphqlparser-0.
|
20
|
+
- wget https://github.com/graphql/libgraphqlparser/archive/v0.5.0.tar.gz
|
21
|
+
- tar -xzvf v0.5.0.tar.gz
|
22
|
+
- cd libgraphqlparser-0.5.0/ && sudo cmake . && sudo make && sudo make install
|
23
23
|
- gem update --system
|
24
24
|
- gem install bundler
|
25
25
|
script:
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -21,15 +21,15 @@ C 0.010000 0.000000 0.010000 ( 0.008584)
|
|
21
21
|
|
22
22
|
## Installation
|
23
23
|
|
24
|
-
This gem depends on [libgraphqlparser](https://github.com/graphql/libgraphqlparser). You can install it a few ways:
|
24
|
+
This gem depends on [libgraphqlparser](https://github.com/graphql/libgraphqlparser) (>= 0.5.0). You can install it a few ways:
|
25
25
|
|
26
26
|
- Homebrew: `brew install libgraphqlparser`
|
27
27
|
- From Source:
|
28
28
|
|
29
29
|
```
|
30
|
-
wget https://github.com/graphql/libgraphqlparser/archive/v0.
|
31
|
-
tar -xzvf v0.
|
32
|
-
cd libgraphqlparser-0.
|
30
|
+
wget https://github.com/graphql/libgraphqlparser/archive/v0.5.0.tar.gz
|
31
|
+
tar -xzvf v0.5.0.tar.gz
|
32
|
+
cd libgraphqlparser-0.5.0/ && cmake . && make && make install
|
33
33
|
```
|
34
34
|
|
35
35
|
- With [`heroku-buildpack-libgraphqlparser`](https://github.com/goco-inc/heroku-buildpack-libgraphqlparser)
|
@@ -45,3 +45,12 @@ When you `require` this gem, it overrides `GraphQL.parse`:
|
|
45
45
|
```ruby
|
46
46
|
require "graphql/libgraphqlparser"
|
47
47
|
```
|
48
|
+
|
49
|
+
## Libgraphqlparser versions
|
50
|
+
|
51
|
+
The Ruby gem expects certain versions of `libgraphqlparser` to be installed. I couldn't figure out how to check this in [`extconf.rb`](#), so I documented it here:
|
52
|
+
|
53
|
+
`libgraphqlparser` version | `graphql-libgraphqlparser`(Ruby gem) version
|
54
|
+
----|----
|
55
|
+
>= 0.5.0 | 0.5.0
|
56
|
+
<= 0.4.0 | 0.4.0
|
data/Rakefile
CHANGED
@@ -61,7 +61,7 @@ void Init_graphql_libgraphqlparser_ext() {
|
|
61
61
|
ATTACH_CALLBACKS(boolean_value);
|
62
62
|
ATTACH_CALLBACKS(string_value);
|
63
63
|
ATTACH_CALLBACKS(enum_value);
|
64
|
-
ATTACH_CALLBACKS(
|
64
|
+
ATTACH_CALLBACKS(list_value);
|
65
65
|
ATTACH_CALLBACKS(object_value);
|
66
66
|
ATTACH_CALLBACKS(object_field);
|
67
67
|
}
|
@@ -301,12 +301,12 @@ void enum_value_end_visit(const struct GraphQLAstEnumValue* node, void* builder_
|
|
301
301
|
END;
|
302
302
|
}
|
303
303
|
|
304
|
-
int
|
305
|
-
BEGIN("
|
304
|
+
int list_value_begin_visit(const struct GraphQLAstListValue* node, void* builder_ptr) {
|
305
|
+
BEGIN("ListLiteral")
|
306
306
|
return 1;
|
307
307
|
}
|
308
308
|
|
309
|
-
void
|
309
|
+
void list_value_end_visit(const struct GraphQLAstListValue* node, void* builder_ptr) {
|
310
310
|
END
|
311
311
|
}
|
312
312
|
|
@@ -24,7 +24,7 @@ VISITOR_CALLBACKS(int_value, IntValue);
|
|
24
24
|
VISITOR_CALLBACKS(boolean_value, BooleanValue);
|
25
25
|
VISITOR_CALLBACKS(string_value, StringValue);
|
26
26
|
VISITOR_CALLBACKS(enum_value, EnumValue);
|
27
|
-
VISITOR_CALLBACKS(
|
27
|
+
VISITOR_CALLBACKS(list_value, ListValue);
|
28
28
|
VISITOR_CALLBACKS(object_value, ObjectValue);
|
29
29
|
VISITOR_CALLBACKS(object_field, ObjectField);
|
30
30
|
|
@@ -43,7 +43,7 @@ module GraphQL
|
|
43
43
|
# Using ||= because FragmentDefinition has already assigned
|
44
44
|
# this as a plain string :(
|
45
45
|
current.type ||= node
|
46
|
-
when Nodes::
|
46
|
+
when Nodes::ListLiteral
|
47
47
|
# mutability! 🎉
|
48
48
|
current.value = node.values
|
49
49
|
when Nodes::InputObject
|
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.
|
4
|
+
version: 0.5.0
|
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-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|