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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/types/utils.rb +0 -20
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62d9529bff7ed508939f3a8afec4dd9b2795190c
4
- data.tar.gz: 6101b7766ca75e44e1372931b124c9ad505bb4e1
3
+ metadata.gz: af4d1867e5caafedef289561e2ad9413bffa3fad
4
+ data.tar.gz: 5652f7e1c9d2d54b253fcc6d2e5e5330c9c34691
5
5
  SHA512:
6
- metadata.gz: c2220c978ad9e510fde8ee0435d12a334b670fbb94178ba3a79217ade6e1b34931596a6d57616445887e951bf0f69ac6e9e9b18096235ce71d8d78da7a2319bc
7
- data.tar.gz: ef8dd00fea3274ef9b2847c519388a7a2949a619cdae065361bc34fbe74f2343a1207ae6069805f0e08b0d24934102e6d9234f2fda844159310f942d02f09b37
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.4375
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-02 00:00:00.000000000 Z
11
+ date: 2019-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest