sorbet-runtime 0.4.4375 → 0.4.4398
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/utils.rb +0 -20
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af4d1867e5caafedef289561e2ad9413bffa3fad
|
|
4
|
+
data.tar.gz: 5652f7e1c9d2d54b253fcc6d2e5e5330c9c34691
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 430f858624d11168a7a5a7109115fc02d26bb919e4d14aa1bb94018abf88276d143a7550e23f320ce135be24d283dc70198d250a568339da9cb2a02ad94dfbbb
|
|
7
|
+
data.tar.gz: 1f1e4cdaba1209536d9cc5da0ef766f841c80a50963146f11dcda2374beaa62835dd79ce5d8c2d6093f354d176bbac42f34d03067b9adf23d391f50e553e329e
|
data/lib/types/utils.rb
CHANGED
|
@@ -74,26 +74,6 @@ module T::Utils
|
|
|
74
74
|
T::Private::Methods.run_all_sig_blocks
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
-
# This can be called in a wholesome test to make sure all the `sig`s are well
|
|
78
|
-
# formed.
|
|
79
|
-
def self.validate_sigs
|
|
80
|
-
exceptions = []
|
|
81
|
-
run_all_sig_blocks
|
|
82
|
-
ObjectSpace.each_object(Module) do |mod| # rubocop:disable PrisonGuard/NoDynamicConstAccess
|
|
83
|
-
begin
|
|
84
|
-
T::Private::Abstract::Validate.validate_subclass(mod)
|
|
85
|
-
if T::AbstractUtils.abstract_module?(mod)
|
|
86
|
-
T::Private::Abstract::Validate.validate_abstract_module(mod)
|
|
87
|
-
end
|
|
88
|
-
rescue => e
|
|
89
|
-
exceptions << e
|
|
90
|
-
end
|
|
91
|
-
end
|
|
92
|
-
if !exceptions.empty?
|
|
93
|
-
raise "#{exceptions.count} exception thrown during validation:\n\n#{exceptions.map(&:message).sort.join("\n\n")}"
|
|
94
|
-
end
|
|
95
|
-
end
|
|
96
|
-
|
|
97
77
|
# Give a type which is a subclass of T::Types::Base, determines if the type is a simple nilable type (union of NilClass and something else).
|
|
98
78
|
# If so, returns the T::Types::Base of the something else. Otherwise, returns nil.
|
|
99
79
|
def self.unwrap_nilable(type)
|
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.4398
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stripe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-07-
|
|
11
|
+
date: 2019-07-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: minitest
|