sorbet 0.5.11193 → 0.5.11200
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/bin/srb +1 -1
- data/bin/srb-rbi +1 -1
- data/lib/hidden-definition-finder.rb +1 -1
- data/lib/serialize.rb +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ced30946af07c997c0e3e7fd54e3a5cf4f9592ce007d1d4017a6edc56d8a9b92
|
4
|
+
data.tar.gz: 6bba6924aa942a68b702cf615ac67d27726c8d4ce867318ceeaff112b60c4a0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6006f018730ecb70be06aa632dbc9a0be322f9a599a56add8087da96f3162bff4aefb8edfef5837270ac17eb4a3c288f9520408d49db37c013b52d372a53ede3
|
7
|
+
data.tar.gz: f5c25843e79576f7d40bc3d74829e1c56f81814788d75437aeaebc580f522f05d456a327ab9b7138c7759b0ca1ed1ed9291741ae96fa0259b8c8e2494a492947
|
data/bin/srb
CHANGED
@@ -72,7 +72,7 @@ typecheck() {
|
|
72
72
|
gems_path="${without_bin_srb%/sorbet*}"
|
73
73
|
|
74
74
|
# /path/to/gems/sorbet-static-0.0.1-darwin-17/libexec/sorbet
|
75
|
-
# (assumes people only have one platform-
|
75
|
+
# (assumes people only have one platform-dependent gem installed per version)
|
76
76
|
guess_sorbet=("$gems_path/sorbet-static$version_suffix"*/libexec/sorbet)
|
77
77
|
|
78
78
|
if [[ -f "${guess_sorbet[0]}" ]]; then
|
data/bin/srb-rbi
CHANGED
@@ -436,7 +436,7 @@ class Sorbet::Private::HiddenMethodFinder
|
|
436
436
|
valid.split("\n").each do |line|
|
437
437
|
category = categorize(line)
|
438
438
|
if category == :errors
|
439
|
-
# Don't ever switch to errors output
|
439
|
+
# Don't ever switch to errors output permanently
|
440
440
|
output[category] << line + "\n"
|
441
441
|
next
|
442
442
|
end
|
data/lib/serialize.rb
CHANGED
@@ -56,7 +56,7 @@ class Sorbet::Private::Serialize
|
|
56
56
|
superclass_str = !superclass_str || superclass_str.empty? ? '' : " < #{superclass_str}"
|
57
57
|
ret << (Sorbet::Private::RealStdlib.real_is_a?(klass, Class) ? "class #{class_name}#{superclass_str}\n" : "module #{class_name}\n")
|
58
58
|
|
59
|
-
# We don't use .included_modules since that also has all the
|
59
|
+
# We don't use .included_modules since that also has all the awful things
|
60
60
|
# that are mixed into Object. This way we at least have a delimiter before
|
61
61
|
# the awefulness starts (the superclass).
|
62
62
|
Sorbet::Private::RealStdlib.real_ancestors(klass).each do |ancestor|
|
@@ -144,14 +144,14 @@ class Sorbet::Private::Serialize
|
|
144
144
|
initialize = nil
|
145
145
|
end
|
146
146
|
if initialize && initialize.owner == klass
|
147
|
-
# This method never
|
147
|
+
# This method never appears in the reflection list...
|
148
148
|
instance_methods += [:initialize]
|
149
149
|
end
|
150
150
|
Sorbet::Private::RealStdlib.real_ancestors(klass).reject {|ancestor| @constant_cache.name_by_class(ancestor)}.each do |ancestor|
|
151
151
|
instance_methods += ancestor.instance_methods(false)
|
152
152
|
end
|
153
153
|
|
154
|
-
# uniq here is required because we populate additional
|
154
|
+
# uniq here is required because we populate additional methods from anonymous superclasses and there
|
155
155
|
# might be duplicates
|
156
156
|
methods += instance_methods.sort.uniq.map do |method_sym|
|
157
157
|
begin
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sorbet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.11200
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet-static
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.5.
|
19
|
+
version: 0.5.11200
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.5.
|
26
|
+
version: 0.5.11200
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|