graphql_grpc 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 158e30253a0e941f7b730b0739e5c1fb671e5e18489ea42092b5cdd58b851837
4
- data.tar.gz: 7018ba7e55e00652a0b0cb178dbfa01f3d9575ddc60c00e557d7107403bf7bbc
3
+ metadata.gz: 06d989878ec186d18927efeceed776b0a295a56397d45b35429a236e1bb1b5de
4
+ data.tar.gz: 335e7bbc7570f5e984f04c3cf580ba36e1aeda004109d2ec2d0ae652821f3db9
5
5
  SHA512:
6
- metadata.gz: 9b5f07c0bbfd395ca72c46915e365cc52aaf57b344a79ba22cc7bd887d64e6e9cd6bbf3eb4dba4cff7bc327591be8227c4e936bee48e609b1822e9b14aef5907
7
- data.tar.gz: 9ee2649721eb890e078d02ad91bdcea1153dd136b76b002b4aa28e1e474b569d4247c8fce3df41e415d8005e27f8c6a48f1db53ad15014d506a3f9bf67eb16ec
6
+ metadata.gz: 5b6bef286f6df1c4515ed7079c172746b355164bdb1c59aada4b432171c9f165a17c831abc408ed520a4c41bea13cb602d3fb722d8785d89c84309284297c43b
7
+ data.tar.gz: 07fb3f97a773bab2271f342a4c45e49648d97164e010b937a1a346d4a664b2f6bafa5203ad4f5c9484d3208758ef5fb85d1e8fc8f84d844d0ed5016f8c6b68de
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- graphql_grpc (0.1.1)
4
+ graphql_grpc (0.1.2)
5
5
  activesupport
6
6
  graphql
7
7
  grpc
data/bin/example.rb CHANGED
@@ -47,8 +47,8 @@ end)
47
47
  STDERR.puts 'Be sure to run ruby_robot_grpc_server before attempting to use this proxy...'
48
48
 
49
49
  # Call a method defined in :ruby_robot on the proxy
50
- puts 'gRPC #remove result: ' + proxy.remove(nil).to_s
51
- puts 'gRPC #report result: ' + proxy.report(nil).to_s
50
+ puts 'gRPC #remove result: ' + proxy.remove.to_s
51
+ puts 'gRPC #report result: ' + proxy.report.to_s
52
52
 
53
53
  # GraphQL
54
54
  gql_query_doc = <<GRAPHQL_QUERY
@@ -65,11 +65,16 @@ module GraphqlGrpc
65
65
  end
66
66
 
67
67
  def to_gql_type(prefix = '')
68
+ if entries.any?
68
69
  <<EOF
69
70
  #{input_or_type(prefix)} #{prefix}#{type_name} {
70
71
  #{types(prefix).join("\n ")}
71
72
  }
72
73
  EOF
74
+ else
75
+ # For now, treat empty types as scalars
76
+ "scalar #{prefix}#{type_name}"
77
+ end
73
78
  end
74
79
  end
75
80
 
@@ -1,3 +1,3 @@
1
1
  module GraphqlGrpc
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql_grpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zane Claes