sorbet-runtime 0.4.4886 → 0.4.4891
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/types/props/decorator.rb +3 -0
- data/lib/types/props/utils.rb +2 -0
- data/lib/types/utils.rb +2 -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: a62a52021102cd072caa5bb9aae32a0cb181711cb9ab5ae67f3f74f4e7ded197
|
|
4
|
+
data.tar.gz: 1da6996697ac49c663f2cbb6c78133bb69f679a63826542d56af069bcc5dd229
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2722a8a333518a260cde3da7433fcab5452b41e5b18b66510ca9ef0368cc97e0b9c9494a01ec3bfa56a613c7a6fe1984bbcfd8fdcc66f6b7a963b70b2dc7ae22
|
|
7
|
+
data.tar.gz: 75d826d89050245c37e7f0bfb46bc6b53da2b9bd94874a8394336b09e397646fc489cd71069259cc5660142e21fd47ac69c8e5f45d7f799fb67eca1255307597
|
|
@@ -556,6 +556,9 @@ class T::Props::Decorator
|
|
|
556
556
|
if defined?(Opus) && defined?(Opus::Enum)
|
|
557
557
|
TYPES_NOT_NEEDING_CLONE << Opus::Enum
|
|
558
558
|
end
|
|
559
|
+
if defined?(T::Enum)
|
|
560
|
+
TYPES_NOT_NEEDING_CLONE << T::Enum
|
|
561
|
+
end
|
|
559
562
|
|
|
560
563
|
sig {params(type: PropType).returns(T::Boolean)}
|
|
561
564
|
private def shallow_clone_ok(type)
|
data/lib/types/props/utils.rb
CHANGED
data/lib/types/utils.rb
CHANGED
|
@@ -30,6 +30,8 @@ module T::Utils
|
|
|
30
30
|
T::Private::Methods.finalize_proc(val.decl)
|
|
31
31
|
elsif defined?(::Opus) && defined?(::Opus::Enum) && val.is_a?(::Opus::Enum)
|
|
32
32
|
T::Types::OpusEnum.new(val) # rubocop:disable PrisonGuard/UseOpusTypesShortcut
|
|
33
|
+
elsif defined?(::T::Enum) && val.is_a?(::T::Enum)
|
|
34
|
+
T::Types::OpusEnum.new(val) # rubocop:disable PrisonGuard/UseOpusTypesShortcut
|
|
33
35
|
else
|
|
34
36
|
raise "Invalid value for type constraint. Must be an #{T::Types::Base}, a " \
|
|
35
37
|
"class/module, or an array. Got a `#{val.class}`."
|
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.4.
|
|
4
|
+
version: 0.4.4891
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stripe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-10-
|
|
11
|
+
date: 2019-10-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: minitest
|