sorbet-runtime 0.5.6196 → 0.5.6210

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: a2eb27afdcb25bb872c881742c1cc6853aba0f5f5ddea3e6c3917d71938b9cae
4
- data.tar.gz: eb7f318711fce6d4804bc355cdfb6aec653763ecabaaa08221292241dc68056b
3
+ metadata.gz: d96f573100aca25efc082a55332ac9e77dcf77000bbb55d206ecbe6f8cd8b1c7
4
+ data.tar.gz: 9e3584c586f9e22667438159bc536b8f59041c353a89ca47de8b798be37aba9a
5
5
  SHA512:
6
- metadata.gz: 88f07d378540358502f4bf988d46e51fd9c4e9e4cc52f74f698a8badfba0db705b8c229844d9ed2f2d09134751e9caaac72f5efbfedb5a7979e1ac52018f38ed
7
- data.tar.gz: 74cbe84fc2dead253357c1ec92eee88656ea2b424b735391330502f311260ae4ce9efdaf9cbb69a9e6da554b0c8b61458f86b4c67aa63d18f4812422f187a2ce
6
+ metadata.gz: 5b06839aa494f0897fa17cea0ace23ca79f58ba380733af919e9c9a3940094d2500c80bfe337c89af38b4576f0293f2fc317a0fe8f273927f6668eb2f99d4d56
7
+ data.tar.gz: 8257fec1635756b18390b4ab858f1e62ec863f4d1d224ffd3457d5797e1e2e7299ded450e3bc0ae3d6a3a9c27feefc08014ff3250c16818871cc389102f22ab5
@@ -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.6196
4
+ version: 0.5.6210
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-06 00:00:00.000000000 Z
11
+ date: 2021-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest