sorbet-runtime 0.5.6134 → 0.5.6155

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/types/enum.rb +11 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e960efb31bb2304b8963f2b9c1cc33f1a8d8ebeee824ddfc6f5d9a8ae95d587
4
- data.tar.gz: 8ed19dbcf41dbd00ef0f9ae1eac1f10489a4dbcaafda48199b9cf5515712f315
3
+ metadata.gz: c4c43d2dc241a6bd87c082347fdcecd1b1111c67d5d4fd09aa16ab9fa251b0c3
4
+ data.tar.gz: 2e4673c612153e8c0ec7dffb36faa536a4b0506da2ea040a99d4d0c8bf171e5f
5
5
  SHA512:
6
- metadata.gz: 616fc66585dfc23166e4fa03fccfb964ea86784ae4428640143a75fe8a4bc8296a9146b697fe330b105a691fbf7ab461d11e06fb5ccb6446520a8d5b2fd1f9ba
7
- data.tar.gz: d9109a9503b82c5f6df92c69280afcba691e0466a4aa5a41301f7e568461815a60e916d891e244942e09bae2ef0ae6f6799a934a95d6bf3d6380d7bbe64141b1
6
+ metadata.gz: aca7d4f283a255f46b3c4011fe7934321f32f3624137f195834bd1bb477b88bdcb3f1b4e44035cb8901a41df03ceb9c373c0c416db3143ef86c7feba6f142425
7
+ data.tar.gz: 52be317f96ec80974cdf91ba5f99ddab61b85b7ded013f26f300cfd979f8edbe81cf094907f3db29b7d0d9b7d8e749585b601544d27d27f9248f8e6d4f4a8d28
@@ -357,4 +357,15 @@ class T::Enum
357
357
 
358
358
  raise "Inheriting from children of T::Enum is prohibited" if self != T::Enum
359
359
  end
360
+
361
+ # Marshal support
362
+ sig {params(_level: Integer).returns(String)}
363
+ def _dump(_level)
364
+ Marshal.dump(serialize)
365
+ end
366
+
367
+ sig {params(args: String).returns(T.attached_class)}
368
+ def self._load(args)
369
+ deserialize(Marshal.load(args))
370
+ end
360
371
  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.6134
4
+ version: 0.5.6155
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-05 00:00:00.000000000 Z
11
+ date: 2020-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest