sorbet-runtime 0.5.9763 → 0.5.9767

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: 7dbd0fa902541ac016639e76f95a11272f6a1265eccfdb495c3a76ed85518dc5
4
- data.tar.gz: 4abf3321012787f7519565b22a8df5576730e2c4ec15c7b35b9355abac9e82c6
3
+ metadata.gz: 72ba4087e92949bb7b8b2466a0711e67635d542c33b7cf599ab366546604f41e
4
+ data.tar.gz: e5820afd958ee13d154b2ee940c0deaeae35028db257c2a24609a712499f7966
5
5
  SHA512:
6
- metadata.gz: 3caab23181b7d8604dfdc9e16da83a328df3fb38f15ba0ebc6e3ff42792616a41441e2954206269d0de2c742c38b4e0b15f46033326065ac3216417046ca6799
7
- data.tar.gz: e7a092943b7693e1b09b7a37b41a4971f64458a8f877355555f57aab7c11cc53600266fb65b65d7af2c4e17bedb470a4838dad90963380f0e80b61df29cede03
6
+ metadata.gz: 384af2af97a2e40a4cc540ec65112e6e680f5beb53ab7637a630e7b16276cce2cc431526c7700207ac2927a25510e0c1512887ed2753143928a93c099ef599e6
7
+ data.tar.gz: 1dd88a9ad8e79c389d116022865e436496d02f8335d497226c7bb2a4655d88655c9eb1bfde50fb751881fe91339e0b208592e15f7f0a2ce827395247f6403725
@@ -43,17 +43,17 @@ class T::InterfaceWrapper
43
43
  def initialize(target_obj, interface_mod)
44
44
  if target_obj.is_a?(T::InterfaceWrapper)
45
45
  # wrapped_dynamic_cast should guarantee this never happens.
46
- raise "Unexpected: wrapping a wrapper. Please report to #dev-productivity."
46
+ raise "Unexpected: wrapping a wrapper. Please report this bug at https://github.com/sorbet/sorbet/issues"
47
47
  end
48
48
 
49
49
  if !target_obj.is_a?(interface_mod)
50
50
  # wrapped_dynamic_cast should guarantee this never happens.
51
- raise "Unexpected: `is_a?` failed. Please report to #dev-productivity."
51
+ raise "Unexpected: `is_a?` failed. Please report this bug at https://github.com/sorbet/sorbet/issues"
52
52
  end
53
53
 
54
54
  if target_obj.class == interface_mod
55
55
  # wrapped_dynamic_cast should guarantee this never happens.
56
- raise "Unexpected: exact class match. Please report to #dev-productivity."
56
+ raise "Unexpected: exact class match. Please report this bug at https://github.com/sorbet/sorbet/issues"
57
57
  end
58
58
 
59
59
  @target_obj = target_obj
@@ -78,7 +78,7 @@ class T::InterfaceWrapper
78
78
  elsif target_obj.singleton_class.private_method_defined?(method_name)
79
79
  singleton_class.send(:private, method_name)
80
80
  else
81
- raise "This should never happen. Report to #dev-productivity"
81
+ raise "This should never happen. Report this bug at https://github.com/sorbet/sorbet/issues"
82
82
  end
83
83
  end
84
84
  end
@@ -37,7 +37,6 @@ module T::Private::Abstract::Hooks
37
37
  private def prepended(other)
38
38
  # Prepending abstract methods is weird. You'd only be able to override them via other prepended
39
39
  # modules, or in subclasses. Punt until we have a use case.
40
- Kernel.raise "Prepending abstract mixins is not currently supported. Please explain your use case " \
41
- "to #dev-productivity."
40
+ Kernel.raise "Prepending abstract mixins is not currently supported."
42
41
  end
43
42
  end
@@ -89,8 +89,7 @@ module T::Private::ClassUtils
89
89
  #
90
90
  # That's not necessarily a deal breaker, but for now, we're keeping it as unsupported.
91
91
  raise "You're trying to replace `#{name}` on `#{mod}`, but that method exists in a " \
92
- "prepended module (#{ancestor}), which we don't currently support. Talk to " \
93
- "#dev-productivity for help."
92
+ "prepended module (#{ancestor}), which we don't currently support."
94
93
  end
95
94
  end
96
95
 
@@ -182,7 +182,10 @@ class T::Private::Methods::Signature
182
182
  arg_types = @arg_types
183
183
 
184
184
  if @has_rest
185
- arg_types += [[@rest_name, @rest_type]] * (args_length - @arg_types.length)
185
+ rest_count = args_length - @arg_types.length
186
+ rest_count = 0 if rest_count.negative?
187
+
188
+ arg_types += [[@rest_name, @rest_type]] * rest_count
186
189
 
187
190
  elsif (args_length < @req_arg_count) || (args_length > @arg_types.length)
188
191
  expected_str = @req_arg_count.to_s
@@ -72,7 +72,7 @@ module T::Private::Methods::SignatureValidation
72
72
  " Child definition: #{method_loc_str(signature.method)}\n"
73
73
  end
74
74
  else
75
- raise "Unexpected mode: #{signature.mode}. Please report to #dev-productivity."
75
+ raise "Unexpected mode: #{signature.mode}. Please report this bug at https://github.com/sorbet/sorbet/issues"
76
76
  end
77
77
  end
78
78
 
@@ -97,7 +97,7 @@ module T::Private::Methods::SignatureValidation
97
97
  # Peaceful
98
98
  nil
99
99
  else
100
- raise "Unexpected mode: #{signature.mode}. Please report to #dev-productivity."
100
+ raise "Unexpected mode: #{signature.mode}. Please report this bug at https://github.com/sorbet/sorbet/issues"
101
101
  end
102
102
 
103
103
  # Given a singleton class, we can check if it belongs to a
@@ -4,7 +4,7 @@
4
4
  # A placeholder for when an untyped thing must provide a type.
5
5
  # Raises an exception if it is ever used for validation.
6
6
  class T::Private::Types::NotTyped < T::Types::Base
7
- ERROR_MESSAGE = "Validation is being done on a `NotTyped`. Please report to #dev-productivity."
7
+ ERROR_MESSAGE = "Validation is being done on a `NotTyped`. Please report this bug at https://github.com/sorbet/sorbet/issues"
8
8
 
9
9
  # overrides Base
10
10
  def name
@@ -4,7 +4,7 @@
4
4
  # A marking class for when methods return void.
5
5
  # Should never appear in types directly.
6
6
  class T::Private::Types::Void < T::Types::Base
7
- ERROR_MESSAGE = "Validation is being done on an `Void`. Please report to #dev-productivity."
7
+ ERROR_MESSAGE = "Validation is being done on an `Void`. Please report this bug at https://github.com/sorbet/sorbet/issues"
8
8
 
9
9
  # The actual return value of `.void` methods.
10
10
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sorbet-runtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.9763
4
+ version: 0.5.9767
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-16 00:00:00.000000000 Z
11
+ date: 2022-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest