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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7f55528d1e8b286cf337eee2997599dd814981b
4
- data.tar.gz: 0e40162e650a17d64e436d80e9eb6caeb4d676e8
3
+ metadata.gz: 924c61d943fad6353c398d37aafa87a8423219ed
4
+ data.tar.gz: bd5e03a7d6dc6befd9990f48be1554cc7c5eb64f
5
5
  SHA512:
6
- metadata.gz: 420761cd336e6106d8285096fc0a056f3e8faab7c4798f0f016e1f0883952ce5ecc9220bc8e08d18ecef9a044dced13f985d183fab03a006e1a52b2e5c1b29d0
7
- data.tar.gz: ac8c43708de51529c4c578e0941318f522e2cdc0e8072d257546a278349533204eb737e2b867e006b75238b959cbf3c68930c74632c2fab518ad3f5da964a814
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] ? klass.method(item[:method]) : klass.instance_method(item[:method])
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
@@ -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.5144
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.5144
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.5144
26
+ version: 0.4.5146
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement