sorbet-runtime 0.5.9195 → 0.5.9204

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/types/helpers.rb +4 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3db4ec91dce4c52303e8c13ba0ae8605f8f4dc954ad15ae455c3cac3f4e15ed3
4
- data.tar.gz: e874774df6cb201146d1db7033e35f63f0ddbe20349c85cf40420139e4787547
3
+ metadata.gz: 3816decf2cda63ae2397c11518a03442eec1f278f2084f99bb4defdc98b2e300
4
+ data.tar.gz: e422cf4e35e0b4ed2aba961ad390df64b58720b2089f153cad90ed31cb60eb26
5
5
  SHA512:
6
- metadata.gz: f70c31fe47e4bfb0de9b2b579e41dfff6daa40b051dfff13f031fc01672697f1d575b542512cae1ec6a1b202fb72f0951d066d05b4afc2662014e6c5e1addf01
7
- data.tar.gz: 34df15e3d5ec575898f3442d697cba6887af7884ed9b6a5eebaf9bf066527d39ab29c14f8e77464ef8d8b83016534146f5ca2bd24e6d855d0d76f6b6823312f1
6
+ metadata.gz: d400482fe99e058b94f4e4ddb02926090969199d9a915629f26163ba5d998c36cf86e588de93073c3f3b989b967616f7a47d6d1ff17d2258a7d98031f43da731
7
+ data.tar.gz: 751d4901723758a81c2f9fe9dd206b025c7031c06be387f32909da59f33bd45fc4005d9258dcc3a774120f49b4fabe7ddfa1df639a749ff5e6476145c9c0a749
data/lib/types/helpers.rb CHANGED
@@ -4,6 +4,8 @@
4
4
  # Use as a mixin with extend (`extend T::Helpers`).
5
5
  # Docs at https://confluence.corp.stripe.com/display/PRODINFRA/Ruby+Types
6
6
  module T::Helpers
7
+ extend T::Sig
8
+
7
9
  Private = T::Private
8
10
 
9
11
  ### Class/Module Helpers ###
@@ -44,7 +46,7 @@ module T::Helpers
44
46
  # module MyHelper
45
47
  # extend T::Helpers
46
48
  #
47
- # requires_ancestor Kernel
49
+ # requires_ancestor { Kernel }
48
50
  # end
49
51
  #
50
52
  # class MyClass < BasicObject # error: `MyClass` must include `Kernel` (required by `MyHelper`)
@@ -52,5 +54,5 @@ module T::Helpers
52
54
  # end
53
55
  #
54
56
  # TODO: implement the checks in sorbet-runtime.
55
- def requires_ancestor(mod, *mods); end
57
+ def requires_ancestor(&block); end
56
58
  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.9195
4
+ version: 0.5.9204
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-05 00:00:00.000000000 Z
11
+ date: 2021-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest