sorbet-runtime 0.5.6140 → 0.5.6161

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: 7b00674526248e9f951f02b1f19c9c01e8f4910add0b3b19735d6105a21cc74f
4
- data.tar.gz: aa464c2b087d90930db6e8e553000146e2b9840b8038c6f66f829764314bc493
3
+ metadata.gz: bb5df84b25b673471262ad7510c669aef8eeb1facac2cc3b292629b670125c55
4
+ data.tar.gz: 4b481c193d2a36b59784ab00bdd21f08151c217a4410099d32425e9fd1e00451
5
5
  SHA512:
6
- metadata.gz: 2e023f1189241d78f9da6d90f9de242ade5f9c8ad2a3e54bcd3396b0f73d53fd2171835f4b3d7cba8e761882a9e3020719980bf3844567b81dc9c33caa8fa1b3
7
- data.tar.gz: 9004ce40b287ec80a642c25a619ddbcabcc8e214a5cf374c4d8414f7e197475b490d875070e047f951cad5a859f154b2b06dc3711f67177bd76b1e4460a03b95
6
+ metadata.gz: 47ac7e78bc54dcf2ef9065b0757d031fa1cba02609c1494bdd91eca4ff3d70da3308bc511c6ac680fed191f2adfa8bbebf9b6f947a2b1f1f18f98dae373b5e45
7
+ data.tar.gz: 65d7a0a4358f3e5be49a3bf8de04c78151bd8bb01f1269c61bc43d0206aeb98e07f37485c7609e47ad771b66f1924e75bcda5cbea1f803a0fee436165f4e4e62
@@ -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.6140
4
+ version: 0.5.6161
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-09 00:00:00.000000000 Z
11
+ date: 2020-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest