rspec-graphql_types 1.0.2 → 1.0.3

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: 11f73ac9e786a08627ae1afbd8fbc58309604d990290c5a5b7e20650e9ba8c63
4
- data.tar.gz: 6204c42cb10b3008f2f5bb25afe6f101dfa9661c70416e9bdaace47213c16cd3
3
+ metadata.gz: 1992c4572ac3e3e1200b6d30fbd26643b2217f6bc8770265bb3c85e36f8f6b70
4
+ data.tar.gz: c4f29574be27726a6a62c4f79c950c816038be987f249386d76bfbf5621737f8
5
5
  SHA512:
6
- metadata.gz: 2f5b269d2510d38015e1019eb644103fc7c053b8b8b876a5ab0c593caa85ddb1bb4c1c00c614de1564cdf922777ce2ff71e5fdc6c4bff631109858a2885e7212
7
- data.tar.gz: a2cda1ae737bf004e587df3b46e686a3b7d45cd3b6b6fe35cfabe3f0369558d351428153aa7702a45d2ef83d0bc6088899c27f6c9c57b0cf0c2b1039b4faf3cc
6
+ metadata.gz: b060bb971fa11038c8612e194af8fc1910f1dd4309457443054c1bd1129f75287f81e7cde78bffc067407667bf5c3235422bdf244d5cfa2aef8ee2f208b73c05
7
+ data.tar.gz: 7bd5191b168fd8f0077e91d5fa49022a7fad859fb4e6fdc7725a9e9b15a481da537105d8e59f69a54990fb49c9fa9e72349f28304d42ae7653a19122e79cd0bc
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-graphql_types (1.0.2)
4
+ rspec-graphql_types (1.0.3)
5
5
  activesupport
6
6
  graphql
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (6.1.4)
11
+ activesupport (6.1.4.1)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 1.6, < 2)
14
14
  minitest (>= 5.1)
@@ -16,7 +16,7 @@ GEM
16
16
  zeitwerk (~> 2.3)
17
17
  concurrent-ruby (1.1.9)
18
18
  diff-lcs (1.4.4)
19
- graphql (1.12.14)
19
+ graphql (1.12.16)
20
20
  i18n (1.8.10)
21
21
  concurrent-ruby (~> 1.0)
22
22
  minitest (5.14.4)
@@ -40,6 +40,7 @@ GEM
40
40
 
41
41
  PLATFORMS
42
42
  arm64-darwin-20
43
+ x86_64-darwin-20
43
44
 
44
45
  DEPENDENCIES
45
46
  rake (~> 13.0)
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
- # Rspec::GraphqlTypes
1
+ # Rspec::GraphQLTypes
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rspec/graphql_types`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ This library can be used to unit test GraphQL types from the 'graphql' library.
6
4
 
7
5
  ## Installation
8
6
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rspec
4
4
  module GraphQLTypes
5
- VERSION = "1.0.2"
5
+ VERSION = "1.0.3"
6
6
  end
7
7
  end
@@ -16,6 +16,10 @@ module Rspec
16
16
  def multiplex
17
17
  nil
18
18
  end
19
+
20
+ def warden
21
+ @warden
22
+ end
19
23
  end
20
24
 
21
25
  included do
@@ -36,6 +40,8 @@ module Rspec
36
40
  type.coerce_result(value, context)
37
41
  when 'LIST'
38
42
  value.map { |v| graphql_object(type.of_type, v) }
43
+ when 'ENUM'
44
+ type.coerce_result(value, context)
39
45
  else
40
46
  raise "Unknown type kind #{type.kind.name}"
41
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-graphql_types
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tejas Dinkar
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-27 00:00:00.000000000 Z
11
+ date: 2021-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport