graphql-libgraphqlparser 0.4.0 → 0.5.0

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: 04eb54d2a820c7feb3665a0248c50d4efba85183
4
- data.tar.gz: cee6d0ba79be3ddc8a2d6876a679335520893463
3
+ metadata.gz: 70cb618e8f60a0f386733ff8df7f21b7c53bcc46
4
+ data.tar.gz: 49779e4778bccbb9b251f4f8a8ddb72921881627
5
5
  SHA512:
6
- metadata.gz: 0ec0914c1a78e9dfec3cfd24d2921c2ced720c2e4c69b1d9a23df36edab94a97356c50f4a00c6d73cca1a5a8e2633be8cf18fd85da42542127d50f491bc9f95e
7
- data.tar.gz: 5f7f987b1474ef12b691544f1d8a2cf567d34171bc04058cc13d8b40ce7ca6b8ee332aa955b27ef190cfe3eaedd30ce6f446205e4af24436a1bfb68b140517d3
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.4.1.tar.gz
21
- - tar -xzvf v0.4.1.tar.gz
22
- - cd libgraphqlparser-0.4.1/ && sudo cmake . && sudo make && sudo make install
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
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ # 0.5.0
4
+
5
+ - Support `libgraphqlparser` 0.5.0 (but not 0.4.0)
6
+
3
7
  # 0.4.0
4
8
 
5
9
  - Raise a `ParseError` when the query string contains a null byte
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.4.0.tar.gz
31
- tar -xzvf v0.4.0.tar.gz
32
- cd libgraphqlparser-0.4.0/ && cmake . && make && make install
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
@@ -8,6 +8,7 @@ require 'rake/testtask'
8
8
  Rake::TestTask.new do |t|
9
9
  t.libs << "test" << "lib"
10
10
  t.pattern = "test/**/*_test.rb"
11
+ t.warning = false
11
12
  end
12
13
 
13
14
  Rake::ExtensionTask.new "graphql_libgraphqlparser_ext" do |ext|
@@ -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(array_value);
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 array_value_begin_visit(const struct GraphQLAstArrayValue* node, void* builder_ptr) {
305
- BEGIN("ArrayLiteral")
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 array_value_end_visit(const struct GraphQLAstArrayValue* node, void* builder_ptr) {
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(array_value, ArrayValue);
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::ArrayLiteral
46
+ when Nodes::ListLiteral
47
47
  # mutability! 🎉
48
48
  current.value = node.values
49
49
  when Nodes::InputObject
@@ -22,7 +22,7 @@ module GraphQL
22
22
  def type; self.of_type; end
23
23
  end
24
24
 
25
- class ArrayLiteral < AbstractNode
25
+ class ListLiteral < AbstractNode
26
26
  attr_reader :values
27
27
 
28
28
  def initialize
@@ -1,5 +1,5 @@
1
1
  module GraphQL
2
2
  module Libgraphqlparser
3
- VERSION = '0.4.0'
3
+ VERSION = '0.5.0'
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.4.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-09-29 00:00:00.000000000 Z
11
+ date: 2016-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql