tapioca 0.11.11 → 0.11.12

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: 84489402f0ea53d60251615f8b40358f946e88fd302d33d2b06adb09bfadfeb6
4
- data.tar.gz: 34f1790682595d9f63479463c6a3e76dbff2682e40680e9d0971fb7ce3fd7de8
3
+ metadata.gz: c9bce9a6dcef31e80f1933bbc3528bf2d8c1328ec4c129b3d9609c8c053e095f
4
+ data.tar.gz: af1d5587e075471824d7c29fc5f90cae50ed1e401a21549fa8a2a2c6e390c158
5
5
  SHA512:
6
- metadata.gz: 8defde6f57d9d373d2982e7450ac217e0ba7e3cc2402ec740b124bdd0a7e1def41bf8bc8432699029016c98c83fd0c036248879ec6532869b350facdde4a4bc5
7
- data.tar.gz: f8225d925a796ba74424637b6b843c5a53a14fb52de6e5fcce4751a136639f3738d48373f053111cc5958ba55e3bbda055d00259b629b94cd0b80b2f4c815b44
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
@@ -120,6 +120,7 @@ module Tapioca
120
120
  "sorbet-runtime",
121
121
  "sorbet-static-and-runtime",
122
122
  "debug",
123
+ "irb",
123
124
  "fakefs",
124
125
  ].freeze,
125
126
  T::Array[String],
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Tapioca
5
- VERSION = "0.11.11"
5
+ VERSION = "0.11.12"
6
6
  end
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.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-06 00:00:00.000000000 Z
14
+ date: 2023-11-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler