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.
- checksums.yaml +4 -4
- data/lib/types/enum.rb +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb5df84b25b673471262ad7510c669aef8eeb1facac2cc3b292629b670125c55
|
4
|
+
data.tar.gz: 4b481c193d2a36b59784ab00bdd21f08151c217a4410099d32425e9fd1e00451
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47ac7e78bc54dcf2ef9065b0757d031fa1cba02609c1494bdd91eca4ff3d70da3308bc511c6ac680fed191f2adfa8bbebf9b6f947a2b1f1f18f98dae373b5e45
|
7
|
+
data.tar.gz: 65d7a0a4358f3e5be49a3bf8de04c78151bd8bb01f1269c61bc43d0206aeb98e07f37485c7609e47ad771b66f1924e75bcda5cbea1f803a0fee436165f4e4e62
|
data/lib/types/enum.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2020-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|