sorbet-runtime 0.5.6141 → 0.5.6164

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: 90252542c23ed2ec834e0b3ee21175f7f8da45e3e15a0729ff442ea7d0cc5f04
4
- data.tar.gz: bb82ce3189943a7e990d9a9b69909190c99af4da1d0e3000da05b8eaccb27359
3
+ metadata.gz: b51530878b628ed08eb5365e8f2c29cc0513824663bbc8747731ff565095b7c3
4
+ data.tar.gz: 97959717978d9074b8104b4b86c25b63db32c6f8eff6b86d6eb397a92ca32f30
5
5
  SHA512:
6
- metadata.gz: f759d15351e363c9799754c649b1b5f69b3f2e61893472a4065ff8aae743ac83beef757c402744c3d23e9b4ba4518c28f306cf132dc5da40c5328795bcb60966
7
- data.tar.gz: 27ed866d8c0a69ea43153ba920169497d7a995c963d9eba7b2cd6201534919d37072fb70f28f166a1c9dfba1a4c07399dc45857e6ef646b05a5a92391fe64afe
6
+ metadata.gz: 73854249dc4f1ae52dcec6eebe03817771f40434f4a80c5b2bd0a457ce60d500931b5afb3845be1d810687208ba28ed431a1185df547c1279526642e13cd850f
7
+ data.tar.gz: 6ad1f94ecaa3888569a827f9d4f82ce8d7a43887dcfb754465c45cd022cc045c12b21f03ce32103b5b894ed1964b33a8545e8ed6e4755aef3f6a1281383ecf7d
@@ -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.6141
4
+ version: 0.5.6164
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-10 00:00:00.000000000 Z
11
+ date: 2020-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest