graphql-hive 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 63bc735d6516da78a9f7cab670defd21e68a8295132dba4f871d0b4fa6f8b944
4
- data.tar.gz: df3580ad1ebabd31c5ec3960811c1d4defc1702c020c1152ee029ac2879574cc
3
+ metadata.gz: 07376f19ffa9683acd9915b1110922fcf802e21eef2b98be11bdaaf9fac30ba7
4
+ data.tar.gz: 18979f799df3a8edd50244c9d9b1c62895b25fbeccd8e9f1245a552da6b6878b
5
5
  SHA512:
6
- metadata.gz: 0624adc8d88ef8ef468ec08b4fa9a0c3f375bd35a2a700dac3a4bca22631c1f88aec175405d598210b48d330c145a878af11188dc396c45f52dd1706bb99b784
7
- data.tar.gz: 7c2cc7f8327471969eb9512e5ab4550f9f9093042a930fe1c497adf2958c01f868f468ed6aac3ec2def5d750b5352e7543dc9c1168e0d049a89134939460476f
6
+ metadata.gz: b36fb877de650e2df40ea5b34cf5f62eb69930fe40123b4bf24036aead8c6c377714c0fa4a5605bb8db6d182596b3bb95c176cf57254a1029139223e62d2946c
7
+ data.tar.gz: 67663762c7c1f853ebb651d84a4ddba6aabf7cda456a755de614e5e2f5ad3d7cd0a5eec0536377f9ac1a94def1609cbab7426725488bf3322eb8b21ecae1ba5b
data/.gitignore CHANGED
@@ -9,4 +9,4 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
- graphql-hive-0.1.0.gem
12
+ *.gem
data/README.md CHANGED
@@ -58,7 +58,7 @@ end
58
58
 
59
59
  The `reporting` configuration is required to push your GraphQL Schema to the Hive registry.
60
60
  Doing so will help better detect breaking changes and more upcoming features.
61
- If you only want to use the operations monitoring, replace the `monitoring` option with the following `report_schema: false`.
61
+ If you only want to use the operations monitoring, replace the `reporting` option with the following `report_schema: false`.
62
62
 
63
63
  <br/>
64
64
 
@@ -23,6 +23,7 @@ module GraphQL
23
23
  def initialize(options, client)
24
24
  @@instance = self
25
25
 
26
+ @options = options
26
27
  @buffer_size = options[:buffer_size]
27
28
  @logger = options[:logger]
28
29
  @client = client
@@ -113,9 +114,10 @@ module GraphQL
113
114
  }
114
115
  }
115
116
 
116
- # context = results[0].query.context
117
- # TBD
118
- # operation_record[:metadata] = { client: @options[:client_info].call(context) } if @options[:client_info]
117
+ if results[0]
118
+ context = results[0].query.context
119
+ operation_record[:metadata] = { client: @options[:client_info].call(context) } if @options[:client_info]
120
+ end
119
121
 
120
122
  report[:map][operation_map_key] = {
121
123
  fields: fields.to_a,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Graphql
4
4
  module Hive
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-hive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charly POLY
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-20 00:00:00.000000000 Z
11
+ date: 2022-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql