sorbet-runtime 0.6.13580 → 0.6.13583
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 +4 -4
- data/lib/types/private/methods/call_validation_2_7.rb +10 -10
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 74d7f487fe5c3548e6404a4e0d5c3b899a9d666764e67c2841982f9bc6cd1a00
|
|
4
|
+
data.tar.gz: 876ea455a84ac9fd409beba3aea9a9af013eac91184b1465efe6c86e42b08040
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 89cb6c967c88901e448f611bab7612befb977715a8854ec57ffb0b162a2a29004e21a01ba19bda9bd8ab414aa4b3ea449a29b9342708ba8093b4ae62098bfe61
|
|
7
|
+
data.tar.gz: 22c6a294c524b07d92181fa80c6250b77ff0d638f22472cd9993755887a6160b8e2632aa140d3602e5110d7cb1e4b831bc9755c3537dee2bfa664a003b7286bd
|
|
@@ -2250,7 +2250,7 @@ module T::Private::Methods::CallValidation
|
|
|
2250
2250
|
def self.create_validator_method_optional_args1_2(mod, original_method, method_sig, original_visibility, return_type, arg0_type, arg1_type)
|
|
2251
2251
|
T::Private::ClassUtils.def_with_visibility(mod, method_sig.method_name, original_visibility) do |*args, &blk|
|
|
2252
2252
|
# This method is a manually sped-up version of more general code in `validate_call`
|
|
2253
|
-
unless arg0_type.valid?(args[0])
|
|
2253
|
+
unless args.empty? || arg0_type.valid?(args[0])
|
|
2254
2254
|
CallValidation.report_error(
|
|
2255
2255
|
method_sig,
|
|
2256
2256
|
method_sig.arg_types[0][1].error_message_for_obj(args[0]),
|
|
@@ -2357,7 +2357,7 @@ module T::Private::Methods::CallValidation
|
|
|
2357
2357
|
def self.create_validator_method_optional_args1_3(mod, original_method, method_sig, original_visibility, return_type, arg0_type, arg1_type, arg2_type)
|
|
2358
2358
|
T::Private::ClassUtils.def_with_visibility(mod, method_sig.method_name, original_visibility) do |*args, &blk|
|
|
2359
2359
|
# This method is a manually sped-up version of more general code in `validate_call`
|
|
2360
|
-
unless arg0_type.valid?(args[0])
|
|
2360
|
+
unless args.empty? || arg0_type.valid?(args[0])
|
|
2361
2361
|
CallValidation.report_error(
|
|
2362
2362
|
method_sig,
|
|
2363
2363
|
method_sig.arg_types[0][1].error_message_for_obj(args[0]),
|
|
@@ -2416,7 +2416,7 @@ module T::Private::Methods::CallValidation
|
|
|
2416
2416
|
def self.create_validator_method_optional_args2_3(mod, original_method, method_sig, original_visibility, return_type, arg0_type, arg1_type, arg2_type)
|
|
2417
2417
|
T::Private::ClassUtils.def_with_visibility(mod, method_sig.method_name, original_visibility) do |*args, &blk|
|
|
2418
2418
|
# This method is a manually sped-up version of more general code in `validate_call`
|
|
2419
|
-
unless arg0_type.valid?(args[0])
|
|
2419
|
+
unless args.empty? || arg0_type.valid?(args[0])
|
|
2420
2420
|
CallValidation.report_error(
|
|
2421
2421
|
method_sig,
|
|
2422
2422
|
method_sig.arg_types[0][1].error_message_for_obj(args[0]),
|
|
@@ -2427,7 +2427,7 @@ module T::Private::Methods::CallValidation
|
|
|
2427
2427
|
caller_offset: -1
|
|
2428
2428
|
)
|
|
2429
2429
|
end
|
|
2430
|
-
unless arg1_type.valid?(args[1])
|
|
2430
|
+
unless args.length <= 1 || arg1_type.valid?(args[1])
|
|
2431
2431
|
CallValidation.report_error(
|
|
2432
2432
|
method_sig,
|
|
2433
2433
|
method_sig.arg_types[1][1].error_message_for_obj(args[1]),
|
|
@@ -2545,7 +2545,7 @@ module T::Private::Methods::CallValidation
|
|
|
2545
2545
|
def self.create_validator_method_optional_args1_4(mod, original_method, method_sig, original_visibility, return_type, arg0_type, arg1_type, arg2_type, arg3_type)
|
|
2546
2546
|
T::Private::ClassUtils.def_with_visibility(mod, method_sig.method_name, original_visibility) do |*args, &blk|
|
|
2547
2547
|
# This method is a manually sped-up version of more general code in `validate_call`
|
|
2548
|
-
unless arg0_type.valid?(args[0])
|
|
2548
|
+
unless args.empty? || arg0_type.valid?(args[0])
|
|
2549
2549
|
CallValidation.report_error(
|
|
2550
2550
|
method_sig,
|
|
2551
2551
|
method_sig.arg_types[0][1].error_message_for_obj(args[0]),
|
|
@@ -2615,7 +2615,7 @@ module T::Private::Methods::CallValidation
|
|
|
2615
2615
|
def self.create_validator_method_optional_args2_4(mod, original_method, method_sig, original_visibility, return_type, arg0_type, arg1_type, arg2_type, arg3_type)
|
|
2616
2616
|
T::Private::ClassUtils.def_with_visibility(mod, method_sig.method_name, original_visibility) do |*args, &blk|
|
|
2617
2617
|
# This method is a manually sped-up version of more general code in `validate_call`
|
|
2618
|
-
unless arg0_type.valid?(args[0])
|
|
2618
|
+
unless args.empty? || arg0_type.valid?(args[0])
|
|
2619
2619
|
CallValidation.report_error(
|
|
2620
2620
|
method_sig,
|
|
2621
2621
|
method_sig.arg_types[0][1].error_message_for_obj(args[0]),
|
|
@@ -2626,7 +2626,7 @@ module T::Private::Methods::CallValidation
|
|
|
2626
2626
|
caller_offset: -1
|
|
2627
2627
|
)
|
|
2628
2628
|
end
|
|
2629
|
-
unless arg1_type.valid?(args[1])
|
|
2629
|
+
unless args.length <= 1 || arg1_type.valid?(args[1])
|
|
2630
2630
|
CallValidation.report_error(
|
|
2631
2631
|
method_sig,
|
|
2632
2632
|
method_sig.arg_types[1][1].error_message_for_obj(args[1]),
|
|
@@ -2685,7 +2685,7 @@ module T::Private::Methods::CallValidation
|
|
|
2685
2685
|
def self.create_validator_method_optional_args3_4(mod, original_method, method_sig, original_visibility, return_type, arg0_type, arg1_type, arg2_type, arg3_type)
|
|
2686
2686
|
T::Private::ClassUtils.def_with_visibility(mod, method_sig.method_name, original_visibility) do |*args, &blk|
|
|
2687
2687
|
# This method is a manually sped-up version of more general code in `validate_call`
|
|
2688
|
-
unless arg0_type.valid?(args[0])
|
|
2688
|
+
unless args.empty? || arg0_type.valid?(args[0])
|
|
2689
2689
|
CallValidation.report_error(
|
|
2690
2690
|
method_sig,
|
|
2691
2691
|
method_sig.arg_types[0][1].error_message_for_obj(args[0]),
|
|
@@ -2696,7 +2696,7 @@ module T::Private::Methods::CallValidation
|
|
|
2696
2696
|
caller_offset: -1
|
|
2697
2697
|
)
|
|
2698
2698
|
end
|
|
2699
|
-
unless arg1_type.valid?(args[1])
|
|
2699
|
+
unless args.length <= 1 || arg1_type.valid?(args[1])
|
|
2700
2700
|
CallValidation.report_error(
|
|
2701
2701
|
method_sig,
|
|
2702
2702
|
method_sig.arg_types[1][1].error_message_for_obj(args[1]),
|
|
@@ -2707,7 +2707,7 @@ module T::Private::Methods::CallValidation
|
|
|
2707
2707
|
caller_offset: -1
|
|
2708
2708
|
)
|
|
2709
2709
|
end
|
|
2710
|
-
unless arg2_type.valid?(args[2])
|
|
2710
|
+
unless args.length <= 2 || arg2_type.valid?(args[2])
|
|
2711
2711
|
CallValidation.report_error(
|
|
2712
2712
|
method_sig,
|
|
2713
2713
|
method_sig.arg_types[2][1].error_message_for_obj(args[2]),
|