sorbet-runtime 0.5.10030 → 0.5.10042
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/types/props/decorator.rb +8 -0
- data/lib/types/props/optional.rb +8 -0
- data/lib/types/props/serializable.rb +8 -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: 3a4f670b933af676e396e3dfacce249d37b7c516df68c32553a40da09692c010
|
4
|
+
data.tar.gz: 7f43390751fb65513785bfad5efb48325dbcce11abd152f7bc5b3a8eda5ac9af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41d6d516c5dd4dc068df7e570735cdf44f98f09e67332f65b4a399c0bc02c87c075bcd3e62baebea8a73e1671cfaa9954c2944e026f399b02016fe73edaa18de
|
7
|
+
data.tar.gz: 97856e40038385be23c4e0448b188dc2a8a33c11917ad458b9f0a030aa00984ac2e634d295d944e8228661e067799e325918b663461b178f540e94f13617c37e
|
@@ -58,6 +58,14 @@ class T::Props::Decorator
|
|
58
58
|
@props = @props.merge(prop => rules.freeze).freeze
|
59
59
|
end
|
60
60
|
|
61
|
+
# Heads up!
|
62
|
+
#
|
63
|
+
# There are already too many ad-hoc options on the prop DSL.
|
64
|
+
#
|
65
|
+
# We have already done a lot of work to remove unnecessary and confusing
|
66
|
+
# options. If you're considering adding a new rule key, please come chat with
|
67
|
+
# the Sorbet team first, as we'd really like to learn more about how to best
|
68
|
+
# solve the problem you're encountering.
|
61
69
|
VALID_RULE_KEYS = T.let(%i[
|
62
70
|
enum
|
63
71
|
foreign
|
data/lib/types/props/optional.rb
CHANGED
@@ -12,6 +12,14 @@ end
|
|
12
12
|
module T::Props::Optional::DecoratorMethods
|
13
13
|
extend T::Sig
|
14
14
|
|
15
|
+
# Heads up!
|
16
|
+
#
|
17
|
+
# There are already too many ad-hoc options on the prop DSL.
|
18
|
+
#
|
19
|
+
# We have already done a lot of work to remove unnecessary and confusing
|
20
|
+
# options. If you're considering adding a new rule key, please come chat with
|
21
|
+
# the Sorbet team first, as we'd really like to learn more about how to best
|
22
|
+
# solve the problem you're encountering.
|
15
23
|
VALID_RULE_KEYS = {
|
16
24
|
default: true,
|
17
25
|
factory: true,
|
@@ -179,6 +179,14 @@ end
|
|
179
179
|
module T::Props::Serializable::DecoratorMethods
|
180
180
|
include T::Props::HasLazilySpecializedMethods::DecoratorMethods
|
181
181
|
|
182
|
+
# Heads up!
|
183
|
+
#
|
184
|
+
# There are already too many ad-hoc options on the prop DSL.
|
185
|
+
#
|
186
|
+
# We have already done a lot of work to remove unnecessary and confusing
|
187
|
+
# options. If you're considering adding a new rule key, please come chat with
|
188
|
+
# the Sorbet team first, as we'd really like to learn more about how to best
|
189
|
+
# solve the problem you're encountering.
|
182
190
|
VALID_RULE_KEYS = {dont_store: true, name: true, raise_on_nil_write: true}.freeze
|
183
191
|
private_constant :VALID_RULE_KEYS
|
184
192
|
|
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.10042
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|