sorbet-runtime 0.5.6198 → 0.5.6212

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: b9ad14907c264d6ca3dae954f1bf9cdfdff0544411fad7a390fcb424465bf828
4
- data.tar.gz: f02410f71f442e62a635881ec386a23911f1cb1a4d4c5eae77693d1a10a0695d
3
+ metadata.gz: dc3d3100960728c03bc0190d8f2ef6d4e7a3fc3d7298ccf204bb2ea9e7e46af8
4
+ data.tar.gz: 60ec983b6982fbf5d6c97e0255b66fe3fa7d8ebe566073f9790e5d91f99a2c09
5
5
  SHA512:
6
- metadata.gz: 1bb53ba112fb1793b4e138e1a65ed648e2e202af6e8ec79be17b444c11c02a63a7c385b0abb474e38dca78a03ad91f02149ff24b7c5f622f7d1943c4d4c846b1
7
- data.tar.gz: bf301214903ea532fb931314c823f68a3017a2de5868f32d074a642664c4cf266864201d9ae4a62573a9713bb888d132cb0aadd23c77aaf628b8d443163bae36
6
+ metadata.gz: 1cec14c68d752556a949253e4f536c5abc35c80e1403dbe460aa189a1daf612f7c5d93f2687a3d6577240806b8baff101ee8399ee4cafb3998b081c34cc73e39
7
+ data.tar.gz: 034c5591fa0bfa38a22e1ef2e03b0eff26ddc05f6186a9bd5bb788612f1db8b68ce538774d6cf8cb9e568286f04999f6f4951b3c4876dbc6ba0173b457547a12
@@ -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.6198
4
+ version: 0.5.6212
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-07 00:00:00.000000000 Z
11
+ date: 2021-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest