sorbet-runtime 0.5.10965 → 0.5.10987

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: 3303096ffdfdbc1d11667a38899c7325b0f6a2f078e9043b0871a438c65c9fa1
4
- data.tar.gz: f29a3c7c0b4cf8f92f9c279a58149970c4a42a7a5abbea88617dcab0e0e847e4
3
+ metadata.gz: 397a3d021f41a034af6779f47d4146e2fc752fd1cece9e62696944e0aa2ccd33
4
+ data.tar.gz: bddd66cfd957fa9ee63e1303b2ace7bed44ae8a85fe2bc7ecfe6e48b6eaeac51
5
5
  SHA512:
6
- metadata.gz: 3bed03408c2d46439eb061a5969910c41c1e90bf553d8d966e7fbb23b121e8a91f5b9235a58b414d6124c54409f124e51a0530ee352b928288bbad6ae48ef386
7
- data.tar.gz: d33988d3e4890ad7727c0793fc685b0e180759b287242c202bf1c4a40415b4ee1999d043c75e8eb96d2236c06a868bf47ed34d933845bfb3ac6a127db04d60b5
6
+ metadata.gz: 2e9da4bea4ecc6f660f256a9e4f385b3b97e9afb72fdd8bcc91300b33cd4b686de6a6771d5bf675b8a91f45ce89960ef4900645c533b2c5f32aeb185db5fc289
7
+ data.tar.gz: a96ec017468c7f2a6bd730f5829e7eee516d22d66e56a8afa5e82dc468c0d7f41c6f71603671c207bae0c933e7f49684954904e64f5d6482b71adc04ff6f96be
data/lib/types/enum.rb CHANGED
@@ -357,7 +357,7 @@ class T::Enum
357
357
  @fully_initialized = true
358
358
  end
359
359
 
360
- sig {params(child_class: Module).void}
360
+ sig {params(child_class: T::Class[T.anything]).void}
361
361
  def self.inherited(child_class)
362
362
  super
363
363
 
@@ -163,7 +163,7 @@ module T::Private::Methods
163
163
 
164
164
  definition_file, definition_line = T::Private::Methods.signature_for_method(ancestor.instance_method(method_name)).method.source_location
165
165
  is_redefined = target == ancestor
166
- caller_loc = caller_locations&.find {|l| !l.to_s.start_with?(SORBET_RUNTIME_LIB_PATH)}
166
+ caller_loc = caller_locations.find {|l| !l.to_s.start_with?(SORBET_RUNTIME_LIB_PATH)}
167
167
  extra_info = "\n"
168
168
  if caller_loc
169
169
  extra_info = (is_redefined ? "Redefined" : "Overridden") + " here: #{caller_loc.path}:#{caller_loc.lineno}\n"
@@ -176,7 +176,7 @@ module T::Props
176
176
  base_message = "Can't set #{klass.name}.#{prop} to #{val.inspect} (instance of #{val.class}) - need a #{type}"
177
177
 
178
178
  pretty_message = "Parameter '#{prop}': #{base_message}\n"
179
- caller_loc = caller_locations&.find {|l| !l.to_s.include?('sorbet-runtime/lib/types/props')}
179
+ caller_loc = caller_locations.find {|l| !l.to_s.include?('sorbet-runtime/lib/types/props')}
180
180
  if caller_loc
181
181
  pretty_message += "Caller: #{caller_loc.path}:#{caller_loc.lineno}\n"
182
182
  end
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.10965
4
+ version: 0.5.10987
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-15 00:00:00.000000000 Z
11
+ date: 2023-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest