sorbet-runtime 0.5.10625 → 0.5.10626
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/private/methods/_methods.rb +6 -1
- 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: e2df0fc9175dca7fadcaeeaf9d1c735bcc0c6cb3b74a1856f98fc86123da5759
|
|
4
|
+
data.tar.gz: 80f82b3b9fa004b847e4dfe3a13a55c7fb45981e87ae3e69f55c70b391e55b91
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d1188622facbefc09b70006e296d9d7f8b5c440622c3dea5671b57a38474c70298c57187c1a60576be4c058fe9f3b053501332e148f02e4b0ad7213047c2558
|
|
7
|
+
data.tar.gz: d59e5d320de7676f9a902a0b9f0f1e70e31bc5d2096f00b3ce6784772fbb5ad0a119cc348dfb4baa3fbf1661322537f039f0f8b225ef30744335cf9c53dda746
|
|
@@ -117,6 +117,11 @@ module T::Private::Methods
|
|
|
117
117
|
@signatures_by_method[key]
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
+
# Fetch the directory name of the file that defines the `T::Private` constant and
|
|
121
|
+
# add a trailing slash to allow us to match it as a directory prefix.
|
|
122
|
+
SORBET_RUNTIME_LIB_PATH = File.dirname(T.const_source_location(:Private).first) + File::SEPARATOR
|
|
123
|
+
private_constant :SORBET_RUNTIME_LIB_PATH
|
|
124
|
+
|
|
120
125
|
# when target includes a module with instance methods source_method_names, ensure there is zero intersection between
|
|
121
126
|
# the final instance methods of target and source_method_names. so, for every m in source_method_names, check if there
|
|
122
127
|
# is already a method defined on one of target_ancestors with the same name that is final.
|
|
@@ -158,7 +163,7 @@ module T::Private::Methods
|
|
|
158
163
|
|
|
159
164
|
definition_file, definition_line = T::Private::Methods.signature_for_method(ancestor.instance_method(method_name)).method.source_location
|
|
160
165
|
is_redefined = target == ancestor
|
|
161
|
-
caller_loc = caller_locations&.find {|l| !l.to_s.
|
|
166
|
+
caller_loc = caller_locations&.find {|l| !l.to_s.start_with?(SORBET_RUNTIME_LIB_PATH)}
|
|
162
167
|
extra_info = "\n"
|
|
163
168
|
if caller_loc
|
|
164
169
|
extra_info = (is_redefined ? "Redefined" : "Overridden") + " here: #{caller_loc.path}:#{caller_loc.lineno}\n"
|
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.10626
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stripe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-01-
|
|
11
|
+
date: 2023-01-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: minitest
|