sorbet-runtime 0.4.4471 → 0.4.4472

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
  SHA1:
3
- metadata.gz: 0f49b115cddbefeb8b9e212a8e82b2eff5369c61
4
- data.tar.gz: 173e934ba362714a1cc2757674c88c69ecf65215
3
+ metadata.gz: f8a8b4923b8931649dd95fa7f039ba848b84990d
4
+ data.tar.gz: e2bfc998f4b1312b920cc9232d9d99a3dff221dd
5
5
  SHA512:
6
- metadata.gz: 3c3368211612c4694435c892b16820ce90dba4953f702819a4af764015444b613de5edbdfcbad26f16a4f6b571bf348575c1924be00235b94df10f29e2f57b8b
7
- data.tar.gz: 2a3c1b32f899115a456257965cd4824fff986d4de55036cb56dd57962ec9987489d8587fe8750f025a265c358bd3879a9732399d05d479a470200a6739a04595
6
+ metadata.gz: 717fc4d69f03393e336ccd00d204a750ba99cd2085214d90344b8c453a5686b313cb6ca6db787cd7e1f8faae56d8c3b210b20ec1dde90f8da32f210d1ecac9bf
7
+ data.tar.gz: 8208290e9829296a7e3a900991ed1f17f28f94948972668c0ad9e14c7cd000c0cd5edb230f3c2fcff8d63e22089b8f44a8b5d9c6d5803633b17e5e8e31341b6f
@@ -34,6 +34,7 @@ module T::Private::Final
34
34
  mod.extend(mod.is_a?(Class) ? NoInherit : NoIncludeExtend)
35
35
  mark_as_final_module(mod)
36
36
  mark_as_final_module(mod.singleton_class)
37
+ T::Private::Methods.add_module_with_final(mod)
37
38
  T::Private::Methods.install_hooks(mod)
38
39
  end
39
40
 
@@ -43,6 +44,5 @@ module T::Private::Final
43
44
 
44
45
  private_class_method def self.mark_as_final_module(mod)
45
46
  mod.instance_variable_set(:@sorbet_final_module, true)
46
- T::Private::Methods.add_module_with_final(mod)
47
47
  end
48
48
  end
@@ -11,8 +11,11 @@ module T::Private::Methods
11
11
  # - they are done possibly before any sig block has run.
12
12
  # - they are done even if the method being defined doesn't have a sig.
13
13
  @final_methods = Set.new
14
- # if a module directly defines a final method, or includes, extends, or inherits from a module which does so, then it
15
- # should be in this set.
14
+ # a module-with-final is a module for which at least one of the following is true:
15
+ # - is declared final
16
+ # - defines a method that is declared final
17
+ # - includes an module-with-final
18
+ # - extends an module-with-final
16
19
  @modules_with_final = Set.new
17
20
  @old_included_extended = nil
18
21
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sorbet-runtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4471
4
+ version: 0.4.4472
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe