sorbet-runtime 0.4.5005 → 0.4.5015
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/sig.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: f7eda156a3d96efe8baf728d315ac5b53f6335575707e9289b3f4779e3cb8f07
|
4
|
+
data.tar.gz: '020396b200533a5833061bb8773604784b8a04ca6dddaa38b7c8b5e7c5cf1bf0'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fa64149eafa84c3dacfb20f9c09d9c8fd7fd5ab8d868e46a63f9d0ef4f2ab94e9f5ea7b2275082bf8734bc74d522ab441132e4cd739b0fe3def43d7c8c8367d
|
7
|
+
data.tar.gz: df0f7adfd7f08e8bb1130c52ea7b8dc9fe0a04a39cd6122f12530d75c32f5eeb41b82252b7e268a7299d6dfaf072dc0f5dccc9bbda50a720c45f177ddb9c0e92
|
data/lib/types/sig.rb
CHANGED
@@ -7,15 +7,15 @@ module T::Sig
|
|
7
7
|
module WithoutRuntime
|
8
8
|
# At runtime, does nothing, but statically it is treated exactly the same
|
9
9
|
# as T::Sig#sig. Only use it in cases where you can't use T::Sig#sig.
|
10
|
-
def self.sig(
|
10
|
+
def self.sig(arg0=nil, &blk); end # rubocop:disable PrisonGuard/BanBuiltinMethodOverride
|
11
11
|
|
12
12
|
original_verbose = $VERBOSE
|
13
13
|
$VERBOSE = false
|
14
14
|
|
15
15
|
# At runtime, does nothing, but statically it is treated exactly the same
|
16
16
|
# as T::Sig#sig. Only use it in cases where you can't use T::Sig#sig.
|
17
|
-
T::Sig::WithoutRuntime.sig {params(
|
18
|
-
def self.sig(
|
17
|
+
T::Sig::WithoutRuntime.sig {params(arg0: T.nilable(Symbol), blk: T.proc.bind(T::Private::Methods::DeclBuilder).void).void}
|
18
|
+
def self.sig(arg0=nil, &blk); end # rubocop:disable PrisonGuard/BanBuiltinMethodOverride, Lint/DuplicateMethods
|
19
19
|
|
20
20
|
$VERBOSE = original_verbose
|
21
21
|
end
|
@@ -23,8 +23,8 @@ module T::Sig
|
|
23
23
|
# Declares a method with type signatures and/or
|
24
24
|
# abstract/override/... helpers. See the documentation URL on
|
25
25
|
# {T::Helpers}
|
26
|
-
T::Sig::WithoutRuntime.sig {params(
|
27
|
-
def sig(
|
28
|
-
T::Private::Methods.declare_sig(self,
|
26
|
+
T::Sig::WithoutRuntime.sig {params(arg0: T.nilable(Symbol), blk: T.proc.bind(T::Private::Methods::DeclBuilder).void).void}
|
27
|
+
def sig(arg0=nil, &blk) # rubocop:disable PrisonGuard/BanBuiltinMethodOverride
|
28
|
+
T::Private::Methods.declare_sig(self, arg0, &blk)
|
29
29
|
end
|
30
30
|
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.4.
|
4
|
+
version: 0.4.5015
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|