sorbet-runtime 0.5.6133 → 0.5.6154

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: 5455c1b9214bb3e33a83544f439c3130a4c7f690dc3bf1ec6dc0682bc27b1972
4
- data.tar.gz: 5a2d0a317cfc0c05053d3d31cae3385f24a2f3cccd3b8b9234969272dcebf601
3
+ metadata.gz: 6a915933d2e99d7ee9b339823acc3ee771d3c3ba872f6c71e48225ef137b58fc
4
+ data.tar.gz: 72b97622861286a88874e6fddb1bd120c14bd2ef89439c927b6a5cafbace8722
5
5
  SHA512:
6
- metadata.gz: 141d9f04f4683a51d6d520fef97732cc2eb4a98d674f4f664d3d1387550070aabb215093ca9d2d970579ecbea35533a11b67b3dee1821a0af447d0b3b25b3990
7
- data.tar.gz: efc87ac7205ba9b7300c33f116b52d266706d00f897d1bc2f607e88b8bbf42a94b6d41a8ade5a236417d0e75057ff6e1442014d95e6bec220748b915bcf93999
6
+ metadata.gz: d32b13f459ff38b688a86bcfcb3a96c693f805dcf4df4c31bb30f27a13f00f927e33260c03eb6b21ca5eba6833d0dc07c36e0423ed36e12e150011aacc803723
7
+ data.tar.gz: 4909e6d536f013218fe60a0ce9ba7ccae250505b0439e4de9d8d5ad431696327db518b6cb304e3437f9237b209e33ea18cdc08d28e98ae54d3a9d466705ba7ae
@@ -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.6133
4
+ version: 0.5.6154
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-04 00:00:00.000000000 Z
11
+ date: 2020-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest