sorbet-runtime 0.5.6193 → 0.5.6206

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: da1e18f5bf2d1bb67d0164d740345781f23379d2ab062b17b9f054d618d010c0
4
- data.tar.gz: 838159e0d1248a14b2c183d5116c916bdfe118399117c52049b7fd8c13852194
3
+ metadata.gz: 8decaac1d4db7b0e34b1fc7746f56721daaa8070aa5cb267cead5d76273b2e9f
4
+ data.tar.gz: 1feaad88b989eb3ccc43c1a367e3a79918db0c2740ef889b7569f950ccbd25a8
5
5
  SHA512:
6
- metadata.gz: 18ba4e67b78a17be87fb4045d8916e751f08099ae08b6e0e1b974b18a12e368bf6362e19cab659183024e024e7f83eb51e58636cca22314664a7c59bb1f78cf6
7
- data.tar.gz: deff3fbfa49139faddc11fb284f2380cacb8194146dd8a129fc553a4e9e23e8a88d7fdd5a3a62ee002faa061618a41697d33b720a23678ab7e7e084d92b23dbe
6
+ metadata.gz: a6c991e3322321298a70e0c32e5c12e0fedd62a815d31f5a4bb02d59998c0ae8b6319d6e1c31c6b9f9d973430c25fbb01a0bd8bcf8fe438115a00193186a9d5b
7
+ data.tar.gz: 37545f65a65f685022b91740cdf4046cb29d28a4043da412b8ac5824f4e9f052adc15914ee5181d467b7fef74376a354c6e8a8622eb646864866cecd9aef5bf0
@@ -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.6193
4
+ version: 0.5.6206
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-05 00:00:00.000000000 Z
11
+ date: 2021-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest