apollo-federation 1.0.0 → 1.0.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: 1c9617a66dc6c2f6494bffedd691cc4058c9f3caddb3ebb597eb2379baeb0849
4
- data.tar.gz: 53e28fe56d42405030a674d7d4f27bc0360fd7768e2f635d57eb27923cc1f94a
3
+ metadata.gz: 5447e41edfbfe54ff9555f72f648b65d6b8bcfd424e869d39ec728b34e44ffac
4
+ data.tar.gz: 3eff395ab5a52ebfd54b4668ce309354c45f0c4a7c6e90a509dd13f462e0cb3e
5
5
  SHA512:
6
- metadata.gz: 7163ef5206d0d86cbf97830b965561bb6d9d5e3b35a1370053fda2d4285a95c45d5fd9eb820c258a2f0f7caabcd4ad63e4884ecf346e68a94f971a3c034741a9
7
- data.tar.gz: 782dcece3899ee1edce74aa137cd1ccddd0778acc6a548a3b090d89deba1ca67f7a6adaba7344c100fd83d7f36250ef303457db2fc7f797c62eba51e3667b372
6
+ metadata.gz: 51cd3316349b31c17e068e43dff5297598457eba6f56b12aedb303a3f792cec01a960e537dd757e10bba4ca477cf4da2cce3492c56ad50231b3459db8ee38d1d
7
+ data.tar.gz: 8d24372e4ab0d6f916089b95a8be62ce166dbed95f6afd5c65bbc09d2d91b2bd063fcc13cdbf9d2403b3875741113f6c34e8e9105955736a5fb51a3b97d5d890
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.0.1](https://github.com/Gusto/apollo-federation-ruby/compare/v1.0.0...v1.0.1) (2020-01-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Send context to SDL generation / don't cache ([#45](https://github.com/Gusto/apollo-federation-ruby/issues/45)) ([9a29be1](https://github.com/Gusto/apollo-federation-ruby/commit/9a29be1))
7
+
1
8
  # [1.0.0](https://github.com/Gusto/apollo-federation-ruby/compare/v0.5.1...v1.0.0) (2019-12-09)
2
9
 
3
10
 
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # apollo-federation
2
2
 
3
+ [![CircleCI](https://circleci.com/gh/Gusto/apollo-federation-ruby/tree/master.svg?style=svg)](https://circleci.com/gh/Gusto/apollo-federation-ruby/tree/master)
4
+
3
5
  This gem extends the [GraphQL Ruby](http://graphql-ruby.org/) gem to add support for creating an [Apollo Federation](https://www.apollographql.com/docs/apollo-server/federation/introduction/) schema.
4
6
 
5
7
  ## DISCLAIMER
@@ -47,11 +47,9 @@ module ApolloFederation
47
47
  super
48
48
  end
49
49
 
50
- def federation_sdl
51
- @federation_sdl ||= begin
52
- document_from_schema = FederatedDocumentFromSchemaDefinition.new(self)
53
- GraphQL::Language::Printer.new.print(document_from_schema.document)
54
- end
50
+ def federation_sdl(context: nil)
51
+ document_from_schema = FederatedDocumentFromSchemaDefinition.new(self, context: context)
52
+ GraphQL::Language::Printer.new.print(document_from_schema.document)
55
53
  end
56
54
  end
57
55
  end
@@ -10,7 +10,7 @@ module ApolloFederation
10
10
  field(:_service, Service, null: false)
11
11
 
12
12
  def _service
13
- { sdl: context.schema.class.federation_sdl }
13
+ { sdl: context.schema.class.federation_sdl(context) }
14
14
  end
15
15
  end
16
16
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApolloFederation
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apollo-federation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noa Elad
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-12-09 00:00:00.000000000 Z
12
+ date: 2020-01-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: graphql