tapioca 0.11.11 → 0.11.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tapioca/dsl/helpers/graphql_type_helper.rb +11 -1
- data/lib/tapioca/gemfile.rb +1 -0
- data/lib/tapioca/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9bce9a6dcef31e80f1933bbc3528bf2d8c1328ec4c129b3d9609c8c053e095f
|
4
|
+
data.tar.gz: af1d5587e075471824d7c29fc5f90cae50ed1e401a21549fa8a2a2c6e390c158
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e25d29263e331bc34f67f46a9dd09629ab9cba280db30fe9c8e15679325162583908760b5e163dae09c269edad870c76916dd3195dbc066186c1952cf346acc2
|
7
|
+
data.tar.gz: 5add77a326f6a60a3f4b8c435b9b0d38e90d117e888aedcc1d48a15bded3c0d7c556a7d6c187020ac35e44709580e7bd9b53813e86cc78259ac9ca5c666561bc
|
@@ -28,7 +28,7 @@ module Tapioca
|
|
28
28
|
type_for_constant(Float)
|
29
29
|
when GraphQL::Types::ID.singleton_class, GraphQL::Types::String.singleton_class
|
30
30
|
type_for_constant(String)
|
31
|
-
when GraphQL::Types::Int.singleton_class
|
31
|
+
when GraphQL::Types::Int.singleton_class, GraphQL::Types::BigInt.singleton_class
|
32
32
|
type_for_constant(Integer)
|
33
33
|
when GraphQL::Types::ISO8601Date.singleton_class
|
34
34
|
type_for_constant(Date)
|
@@ -45,6 +45,16 @@ module Tapioca
|
|
45
45
|
else
|
46
46
|
"T.any(#{value_types.join(", ")})"
|
47
47
|
end
|
48
|
+
when GraphQL::Schema::Scalar.singleton_class
|
49
|
+
method = Runtime::Reflection.method_of(unwrapped_type, :coerce_input)
|
50
|
+
signature = Runtime::Reflection.signature_of(method)
|
51
|
+
return_type = signature&.return_type
|
52
|
+
|
53
|
+
if return_type && !(T::Private::Types::Void === return_type || T::Private::Types::NotTyped === return_type)
|
54
|
+
return_type.to_s
|
55
|
+
else
|
56
|
+
"T.untyped"
|
57
|
+
end
|
48
58
|
when GraphQL::Schema::InputObject.singleton_class
|
49
59
|
type_for_constant(unwrapped_type)
|
50
60
|
when Module
|
data/lib/tapioca/gemfile.rb
CHANGED
data/lib/tapioca/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tapioca
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ufuk Kayserilioglu
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2023-11-
|
14
|
+
date: 2023-11-08 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|