sorbet 0.4.5144 → 0.4.5146
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gem-generator-tracepoint/tracepoint_serializer.rb +2 -1
- data/lib/real_stdlib.rb +5 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 924c61d943fad6353c398d37aafa87a8423219ed
|
4
|
+
data.tar.gz: bd5e03a7d6dc6befd9990f48be1554cc7c5eb64f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0923124df02235058763574cd98b3ae08198071b984e04f152bfe21e69ef76ff047b07e1b26d34a4cf5368b4332773a5ae7ab8207af0179840bd5b981590ec4e'
|
7
|
+
data.tar.gz: de8bbfeb24b25e3d02869a73f0c934ba60485e60d7be9743c82a1d7e0085b991d3c313d99f7e48fd80b888cb9b16ad97c780d5f99ae905cd52746d1eb9745318
|
@@ -74,7 +74,8 @@ module Sorbet::Private
|
|
74
74
|
next
|
75
75
|
end
|
76
76
|
begin
|
77
|
-
method = item[:singleton] ?
|
77
|
+
method = item[:singleton] ? Sorbet::Private::RealStdlib.real_method(klass, item[:method]) : klass.instance_method(item[:method])
|
78
|
+
|
78
79
|
"#{generate_method(method, !item[:singleton])}"
|
79
80
|
rescue NameError
|
80
81
|
end
|
data/lib/real_stdlib.rb
CHANGED
@@ -76,4 +76,9 @@ module Sorbet::Private::RealStdlib
|
|
76
76
|
@real_const_get ||= Object.singleton_class.instance_method(:const_get)
|
77
77
|
@real_const_get.bind(obj).call(const, arg)
|
78
78
|
end
|
79
|
+
|
80
|
+
def self.real_method(obj, sym)
|
81
|
+
@real_method ||= Object.instance_method(:method)
|
82
|
+
@real_method.bind(obj).call(sym)
|
83
|
+
end
|
79
84
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sorbet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5146
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.4.
|
19
|
+
version: 0.4.5146
|
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.4.
|
26
|
+
version: 0.4.5146
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|