graphql-libgraphqlparser 0.1.3 → 0.1.4

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: 531be18cb503a27ef9302801f2d0658e2f8fca82
4
- data.tar.gz: c38554b8988671b157fa0536f58437c0180ac5e4
3
+ metadata.gz: aaa793720d91c1391df9ad95f858fd4faf02bc3d
4
+ data.tar.gz: 3d178fb7550204d1ee54dda2d1cf825801ddd922
5
5
  SHA512:
6
- metadata.gz: 4d12023d1a99965dd29493455849509a5a0644d8a0e286bcb31fe270c6ca4c90b6f7394f6c71c04ffce74a51d93e6dde4614c2a6d0b667280c93cece62bc4913
7
- data.tar.gz: e173be433ad458a047e6bf5e6704c8fe9a061a0392921a41dfb0e4a99f2980bda463ff61dd6bde1789cbf2a44523808d683b18e2dbaf4e57ab972c8fa91fdbdb
6
+ metadata.gz: 84ec2c62e65e44b877d16096d979c238729f467cca30bcd9798597ba546202b3eff2757186d05c7bfe62634a249ff7098d89bd3168838985513e1307dc52b703
7
+ data.tar.gz: 1717afeaa4ea0d225ef71df670fac24f04a6378b8de4c0887b360a96872fe1e32e9183dde0260ad6a34df2a713128ec443ea4a458e308adcee979efaca4947ba
data/.travis.yml CHANGED
@@ -2,7 +2,9 @@ language: ruby
2
2
  cache: bundler
3
3
  sudo: required
4
4
  rvm:
5
+ - 2.1
5
6
  - 2.2
7
+ - 2.3.0
6
8
  addons:
7
9
  apt:
8
10
  packages:
data/README.md CHANGED
@@ -32,6 +32,8 @@ This gem depends on [libgraphqlparser](https://github.com/graphql/libgraphqlpars
32
32
  cd libgraphqlparser-0.4.0/ && cmake . && make && make install
33
33
  ```
34
34
 
35
+ - With [`heroku-buildpack-libgraphqlparser`](https://github.com/goco-inc/heroku-buildpack-libgraphqlparser)
36
+
35
37
  Then, install this gem:
36
38
 
37
39
  ```ruby
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ Rake::TestTask.new do |t|
10
10
  t.pattern = "test/**/*_test.rb"
11
11
  end
12
12
 
13
- Rake::ExtensionTask.new "libgraphqlparser" do |ext|
13
+ Rake::ExtensionTask.new "graphql_libgraphqlparser_ext" do |ext|
14
14
 
15
15
  end
16
16
 
@@ -3,4 +3,4 @@ require 'mkmf'
3
3
  dir_config('graphql', '/usr/local/include/graphqlparser', '/usr/local/lib')
4
4
  abort 'missing libgraphqlparser' unless have_library 'graphqlparser'
5
5
 
6
- create_makefile "libgraphqlparser"
6
+ create_makefile "graphql_libgraphqlparser_ext"
@@ -1,4 +1,4 @@
1
- #include "libgraphqlparser.h"
1
+ #include "graphql_libgraphqlparser_ext.h"
2
2
  #include "visitor_functions.h"
3
3
 
4
4
  #define ATTACH_CALLBACKS(node_name) \
@@ -33,7 +33,7 @@ VALUE GraphQL_Libgraphqlparser_parse(VALUE self, VALUE query_string) {
33
33
  }
34
34
 
35
35
  // Initialize the extension
36
- void Init_libgraphqlparser() {
36
+ void Init_graphql_libgraphqlparser_ext() {
37
37
  VALUE GraphQL = rb_define_module("GraphQL");
38
38
  VALUE Libgraphqlparser = rb_define_module_under(GraphQL, "Libgraphqlparser");
39
39
  rb_define_singleton_method(Libgraphqlparser, "builder_parse", GraphQL_Libgraphqlparser_parse, 1);
@@ -8,6 +8,6 @@
8
8
  #include <c/GraphQLAstVisitor.h>
9
9
  #include <c/GraphQLAst.h>
10
10
 
11
- void Init_libgraphqlparser();
11
+ void Init_graphql_libgraphqlparser_ext();
12
12
 
13
13
  #endif
@@ -1,4 +1,4 @@
1
- #include "libgraphqlparser.h"
1
+ #include "graphql_libgraphqlparser_ext.h"
2
2
 
3
3
  // These macros are a bit janky,
4
4
  // they depend on the function signature
@@ -277,10 +277,12 @@ 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");
281
- const char* str_value = GraphQLAstEnumValue_get_value(node);
282
- VALUE rb_string = rb_str_new2(str_value);
280
+ const char* str_value;
281
+ VALUE rb_string;
283
282
  int enc = rb_enc_find_index("UTF-8");
283
+ BEGIN("Enum");
284
+ str_value = GraphQLAstEnumValue_get_value(node);
285
+ rb_string = rb_str_new2(str_value);
284
286
  rb_enc_associate_index(rb_string, enc);
285
287
  rb_funcall(rb_node, name_set_intern, 1, rb_string);
286
288
  return 1;
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = "Use Libgraphqlparser to parse queries for the GraphQL gem"
12
12
  spec.license = "minitest"
13
13
 
14
- spec.extensions = ['ext/libgraphqlparser/extconf.rb']
14
+ spec.extensions = ['ext/graphql_libgraphqlparser_ext/extconf.rb']
15
15
  spec.files = `git ls-files -z`.split("\x0")
16
16
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
@@ -1,5 +1,5 @@
1
1
  module GraphQL
2
2
  module Libgraphqlparser
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
@@ -2,7 +2,7 @@ require 'graphql'
2
2
  require 'graphql/libgraphqlparser/builder'
3
3
  require 'graphql/libgraphqlparser/monkey_patches/abstract_node'
4
4
  require 'graphql/libgraphqlparser/version'
5
- require_relative '../libgraphqlparser'
5
+ require_relative '../graphql_libgraphqlparser_ext'
6
6
 
7
7
  module GraphQL
8
8
  module Libgraphqlparser
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.3
4
+ version: 0.1.4
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-04 00:00:00.000000000 Z
11
+ date: 2016-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql
@@ -155,7 +155,7 @@ email:
155
155
  - rdmosolgo@gmail.com
156
156
  executables: []
157
157
  extensions:
158
- - ext/libgraphqlparser/extconf.rb
158
+ - ext/graphql_libgraphqlparser_ext/extconf.rb
159
159
  extra_rdoc_files: []
160
160
  files:
161
161
  - ".gitignore"
@@ -165,11 +165,11 @@ files:
165
165
  - README.md
166
166
  - Rakefile
167
167
  - benchmark.rb
168
- - ext/libgraphqlparser/extconf.rb
169
- - ext/libgraphqlparser/libgraphqlparser.c
170
- - ext/libgraphqlparser/libgraphqlparser.h
171
- - ext/libgraphqlparser/visitor_functions.c
172
- - ext/libgraphqlparser/visitor_functions.h
168
+ - ext/graphql_libgraphqlparser_ext/extconf.rb
169
+ - ext/graphql_libgraphqlparser_ext/graphql_libgraphqlparser_ext.c
170
+ - ext/graphql_libgraphqlparser_ext/graphql_libgraphqlparser_ext.h
171
+ - ext/graphql_libgraphqlparser_ext/visitor_functions.c
172
+ - ext/graphql_libgraphqlparser_ext/visitor_functions.h
173
173
  - graphql-libgraphqlparser.gemspec
174
174
  - lib/graphql/libgraphqlparser.rb
175
175
  - lib/graphql/libgraphqlparser/builder.rb
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  version: '0'
198
198
  requirements: []
199
199
  rubyforge_project:
200
- rubygems_version: 2.2.2
200
+ rubygems_version: 2.5.1
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: Use Libgraphqlparser to parse queries for the GraphQL gem