sorbet-runtime 0.5.9211 → 0.5.9218
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50debdab68e222f1e7e09dc2ffd9b715e89ea9f40fb4488578c3d1475e3dc3d7
|
4
|
+
data.tar.gz: 0d5baa83dd4cf79d41464d0742cebfd3b340d8629c73a7f8c4ef5551b6141499
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf03b57017b4b7659011b55f4dd8cc23c5be26a090f6e97d8e6c65aea1937df379c23468187690f669c8ab99095806c8d45f0f7de0b0613c2f602f25b9c0b4d5
|
7
|
+
data.tar.gz: 5db711732ff8dd1d84f1b097bfdda2bc01af31758b77ccd39d541e115615eb1f41c429647d42b18ed67bd5606daa5cada725f423678c8d28a14add8b4d437a75
|
@@ -40,6 +40,11 @@ module T::Private::Abstract::Declare
|
|
40
40
|
end
|
41
41
|
super(*args, &blk)
|
42
42
|
end
|
43
|
+
|
44
|
+
# Ruby doesn not emit "method redefined" warnings for aliased methods
|
45
|
+
# (more robust than undef_method that would create a small window in which the method doesn't exist)
|
46
|
+
mod.send(:alias_method, :initialize, :initialize)
|
47
|
+
|
43
48
|
if mod.respond_to?(:ruby2_keywords, true)
|
44
49
|
mod.send(:ruby2_keywords, :initialize)
|
45
50
|
end
|
@@ -83,6 +83,11 @@ module T::Props
|
|
83
83
|
lazily_defined_methods[name] = blk
|
84
84
|
|
85
85
|
cls = decorated_class
|
86
|
+
if cls.method_defined?(name)
|
87
|
+
# Ruby doesn not emit "method redefined" warnings for aliased methods
|
88
|
+
# (more robust than undef_method that would create a small window in which the method doesn't exist)
|
89
|
+
cls.send(:alias_method, name, name)
|
90
|
+
end
|
86
91
|
cls.send(:define_method, name) do |*args|
|
87
92
|
self.class.decorator.send(:eval_lazily_defined_method!, name)
|
88
93
|
send(name, *args)
|
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.9218
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|