sorbet-runtime 0.5.11305 → 0.5.11311
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/pretty_printable.rb +6 -6
- 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: 5992e6769b3e1ef59f7ab1a82c249dff739bca29f5bdc15d16f93c444ddae3b5
|
4
|
+
data.tar.gz: 02d468fb8a2fddd17c43e74be005e4d46b3ad5988face887f0c107bbd6223369
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9132a6da770065757d47b8741055fd1382dd3c937fe46a501668d90fd1b352d911dd9a55d09fd9845ca3d9de54ab5ff0058cf1c848042c6dccef46419fe2053
|
7
|
+
data.tar.gz: cfc95a2b8bb8e74d124eb7149f17902827e807b47727f231c1df021beb1186c76efbecf505a86e69514ee642b9d4bcd777d0edb4c371a9c5f3a67f82da6c9479
|
@@ -7,13 +7,13 @@ module T::Props::PrettyPrintable
|
|
7
7
|
|
8
8
|
# Override the PP gem with something that's similar, but gives us a hook to do redaction and customization
|
9
9
|
def pretty_print(pp)
|
10
|
-
|
10
|
+
klass = T.unsafe(T.cast(self, Object).class).decorator
|
11
11
|
multiline = pp.is_a?(PP)
|
12
|
-
pp.group(1, "<#{
|
13
|
-
|
12
|
+
pp.group(1, "<#{klass.inspect_class_with_decoration(self)}", ">") do
|
13
|
+
klass.all_props.sort.each do |prop|
|
14
14
|
pp.breakable
|
15
|
-
val =
|
16
|
-
rules =
|
15
|
+
val = klass.get(self, prop)
|
16
|
+
rules = klass.prop_rules(prop)
|
17
17
|
pp.text("#{prop}=")
|
18
18
|
if (custom_inspect = rules[:inspect])
|
19
19
|
inspected = if T::Utils.arity(custom_inspect) == 1
|
@@ -28,7 +28,7 @@ module T::Props::PrettyPrintable
|
|
28
28
|
val.pretty_print(pp)
|
29
29
|
end
|
30
30
|
end
|
31
|
-
|
31
|
+
klass.pretty_print_extra(self, pp)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
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.11311
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|