sorbet-runtime 0.6.13198 → 0.6.13201
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 +0 -20
- 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: 79fd6653c60d5ef471285c20e256f0c648b7c4eecabdb6fd984a001e3a65777d
|
|
4
|
+
data.tar.gz: ad5746e9bb9b4ac3e308b14eebb2a087ca380172fa5d7155e364b6d225348d00
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b41d0550e429ed6b54de6a67639134015e1fdfb1e313a9138a031a5783542e0884d92a2493ad19fbeafb61fb2a8961ea1561f9340c47d2d1febcdccd076867db
|
|
7
|
+
data.tar.gz: ff0278c3333264eec7ad1468fa0459cde87037946137d0b649a5686c0ec3fb3163c2eb51e5237c32047590a3140d89d990aabb08faa9c7ba7750cc02bfa329bc
|
|
@@ -56,11 +56,6 @@ module T::Private::Methods
|
|
|
56
56
|
nil
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
-
# See tests for how to use this. But you shouldn't be using this.
|
|
60
|
-
def self._declare_sig(mod, arg=nil, &blk)
|
|
61
|
-
_declare_sig_internal(mod, caller_locations(1, 1)&.first, arg, raw: true, &blk)
|
|
62
|
-
end
|
|
63
|
-
|
|
64
59
|
private_class_method def self._declare_sig_internal(mod, loc, arg, raw: false, &blk)
|
|
65
60
|
install_hooks(mod)
|
|
66
61
|
|
|
@@ -76,21 +71,6 @@ module T::Private::Methods
|
|
|
76
71
|
DeclarationBlock.new(mod, loc, blk, arg == :final, raw)
|
|
77
72
|
end
|
|
78
73
|
|
|
79
|
-
def self._with_declared_signature(mod, declblock, &blk)
|
|
80
|
-
# If declblock is provided, this code is equivalent to the check in
|
|
81
|
-
# _declare_sig_internal, above.
|
|
82
|
-
# If declblock is not provided and we have an active declaration, we are
|
|
83
|
-
# obviously doing something wrong.
|
|
84
|
-
if T::Private::DeclState.current.active_declaration
|
|
85
|
-
T::Private::DeclState.current.reset!
|
|
86
|
-
raise "You called sig twice without declaring a method in between"
|
|
87
|
-
end
|
|
88
|
-
if declblock
|
|
89
|
-
T::Private::DeclState.current.active_declaration = declblock
|
|
90
|
-
end
|
|
91
|
-
mod.module_exec(&blk)
|
|
92
|
-
end
|
|
93
|
-
|
|
94
74
|
def self.start_proc
|
|
95
75
|
DeclBuilder.new(PROC_TYPE, false)
|
|
96
76
|
end
|
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.6.
|
|
4
|
+
version: 0.6.13201
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stripe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05-
|
|
11
|
+
date: 2026-05-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: benchmark
|