graphql-libgraphqlparser 0.1.4 → 0.2.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: aaa793720d91c1391df9ad95f858fd4faf02bc3d
4
- data.tar.gz: 3d178fb7550204d1ee54dda2d1cf825801ddd922
3
+ metadata.gz: 9179e88cf9dbcbaf1f0056654b0c21e1a1288f06
4
+ data.tar.gz: 14eb4b007589bc481be0f75d45cfad1af2fe60d7
5
5
  SHA512:
6
- metadata.gz: 84ec2c62e65e44b877d16096d979c238729f467cca30bcd9798597ba546202b3eff2757186d05c7bfe62634a249ff7098d89bd3168838985513e1307dc52b703
7
- data.tar.gz: 1717afeaa4ea0d225ef71df670fac24f04a6378b8de4c0887b360a96872fe1e32e9183dde0260ad6a34df2a713128ec443ea4a458e308adcee979efaca4947ba
6
+ metadata.gz: d6d2bab24aa2d2de4ebe23f243a813c56503713f390707f4699d79634e59fbcb1c1f73e5c5817eb218b39c3618e89525ba8c1e34c707b4eb734517000f9b8d0d
7
+ data.tar.gz: 34be420854c696575db12014db0758b356d998d0a4ad85d6482fcf0c0e6eb7e261d28d29b56070f5c72cbdbc0b3d942d0fb72046fce9bafc72c1d0d90c5f5fda
@@ -0,0 +1,6 @@
1
+ # Changelog
2
+
3
+
4
+ # 0.2.0
5
+
6
+ - Search `/usr`, `/usr/local`, or `--with-graphql-*` for installed `libgraphqlparser`
@@ -1,6 +1,12 @@
1
1
  require 'mkmf'
2
2
 
3
- dir_config('graphql', '/usr/local/include/graphqlparser', '/usr/local/lib')
4
- abort 'missing libgraphqlparser' unless have_library 'graphqlparser'
3
+ prefixes = %w(/usr /usr/local)
4
+ if prefix = prefixes.find{ |prefix| Dir["#{prefix}/lib/libgraphqlparser*"].first }
5
+ dir_config('graphql', "#{prefix}/include/graphqlparser", "#{prefix}/lib")
6
+ else
7
+ dir_config('graphql')
8
+ end
9
+ abort 'missing libgraphqlparser' unless have_library('graphqlparser')
10
+ abort 'missing libgraphqlparser headers' unless have_header('c/GraphQLParser.h')
5
11
 
6
12
  create_makefile "graphql_libgraphqlparser_ext"
@@ -1,5 +1,5 @@
1
1
  module GraphQL
2
2
  module Libgraphqlparser
3
- VERSION = '0.1.4'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-libgraphqlparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Mosolgo
@@ -160,6 +160,7 @@ extra_rdoc_files: []
160
160
  files:
161
161
  - ".gitignore"
162
162
  - ".travis.yml"
163
+ - CHANGELOG.md
163
164
  - Gemfile
164
165
  - Guardfile
165
166
  - README.md