sorbet-runtime 0.5.6188 → 0.5.6203

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: a480c6b3f6985e0f2cf1863230a2157f3b80bbccbcc7baacc2ae441c0c068cb0
4
- data.tar.gz: dcadda1e106740499b42122aac2b9970c5b605b9682a2d015a3ba909eb2bee8e
3
+ metadata.gz: 3885a2008c2e48438d53346b1cb43f6ae71e74fc378313255be4148092882fab
4
+ data.tar.gz: 9ee1e8552d52f7c73af20e1444e4bd2e6b8fa6dd6c1ba541c720c4fd3942292c
5
5
  SHA512:
6
- metadata.gz: 9c9a8fb4585cbf5ec31751dfd0d1f58a084261fc355673823ae42486cb6f1a41f550a23be6170f43cc1127d35ca7e5d8a0b37f29febd8586d6d0e9ee0210ac12
7
- data.tar.gz: d29813a4c55c812b6a3394678a591b2bf11c8b194b9536f1083ac846b1ef947b850cd8eda6d5db3ae76b1286e1dbb1cae9b716d9ce9313291c2900c60476d20b
6
+ metadata.gz: 425f90023ce97708a14c425342aa3ae5121e37dc6b0449ce43304af99f8837df7faa914cd20540c0a01a98285a35e5ab50b72aaff8a41280602a3d3e540c89f2
7
+ data.tar.gz: b6e00e2deaca3ac858a2ce9db09a3c9ac00b2040e1758038023d3fd86fd86583d060feb4c3dbbeb56669f2796fd26efb613a82ad3304eaecc0ce8c8dc212d306
@@ -33,7 +33,7 @@ module T::Helpers
33
33
  # end
34
34
  #
35
35
  # Except that it is statically analyzed by sorbet.
36
- def mixes_in_class_methods(mod)
37
- Private::Mixins.declare_mixes_in_class_methods(self, mod)
36
+ def mixes_in_class_methods(mod, *mods)
37
+ Private::Mixins.declare_mixes_in_class_methods(self, [mod].concat(mods))
38
38
  end
39
39
  end
@@ -4,8 +4,8 @@
4
4
  module T::Private
5
5
  module MixesInClassMethods
6
6
  def included(other)
7
- mod = Abstract::Data.get(self, :class_methods_mixin)
8
- other.extend(mod)
7
+ mods = Abstract::Data.get(self, :class_methods_mixins)
8
+ mods.each {|mod| other.extend(mod)}
9
9
  super
10
10
  end
11
11
  end
@@ -16,12 +16,12 @@ module T::Private
16
16
  raise "Classes cannot be used as mixins, and so mixes_in_class_methods cannot be used on a Class."
17
17
  end
18
18
 
19
- if Abstract::Data.key?(mixin, :class_methods_mixin)
20
- raise "mixes_in_class_methods can only be used once per module."
19
+ if Abstract::Data.key?(mixin, :class_methods_mixins)
20
+ class_methods = Abstract::Data.get(mixin, :class_methods_mixins) + class_methods
21
21
  end
22
22
 
23
23
  mixin.singleton_class.include(MixesInClassMethods)
24
- Abstract::Data.set(mixin, :class_methods_mixin, class_methods)
24
+ Abstract::Data.set(mixin, :class_methods_mixins, class_methods)
25
25
  end
26
26
  end
27
27
  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.6188
4
+ version: 0.5.6203
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-24 00:00:00.000000000 Z
11
+ date: 2021-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest