sorbet-runtime 0.5.6189 → 0.5.6205

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: '078455e4f5dfee05efee1b1dc5283a572d80e4583699ef18fbd51cc606c1a559'
4
- data.tar.gz: 6d77cb7b423ae756a33c04e15a50ff0d7d17a0cbd0e25460c0ce89b25959fa97
3
+ metadata.gz: 22654c7e33f85d5a335dd53083404514ac87e14f19d78ab9900100670b314961
4
+ data.tar.gz: 180110f1ab1b0be1a30fa5db592b3cb36ed7a1d697c0040e6ff1a2157685cf4d
5
5
  SHA512:
6
- metadata.gz: 171c564c0b615d126fa8e14bff2dc5567baa53a2c0d702032f8971fd4f83e1cd3c3d888e4c4ac0e9843e0b516fe1563807cd6d8afcb9d8c0dfa15da28ff8758d
7
- data.tar.gz: 967a1bb33ed88e50c31bf01dbbfdaad43e7ef7f66723c5648a58bc47d19cb5f5c46b7fd9a3733310cc07eb72743d32bb80341aa7e3f529ea5584def01195591e
6
+ metadata.gz: 7aedc7b99b01895c477307d956170d16643f4a007a8fb8f0e339202ceb0fe767e21b335a7a025944a7f5e1d4fad2de4f1ed707d81cd90648653d19deeb54027b
7
+ data.tar.gz: e16af24448959561367b1d83db953991290c2c468efb8dd8e214e205edf1da7c6779f11353e317a876d413276424206621172f8cef54fa161a9ac8736c9b7b57
@@ -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.6189
4
+ version: 0.5.6205
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-26 00:00:00.000000000 Z
11
+ date: 2021-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest