sorbet 0.4.4506 → 0.4.4507

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/serialize.rb +4 -4
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91dd2ada11aeb2a4e80c856f2a8291494019d172
4
- data.tar.gz: 7439b794368dda3234deb35315bb66e856e6cb8c
3
+ metadata.gz: a3e2ad6d926719e77236e7c933da0d4845750bb2
4
+ data.tar.gz: f899ccea8ce81570ae99ec01b3bb4a9c66701a1a
5
5
  SHA512:
6
- metadata.gz: '00074448d838d84c783e62c514f5a29620358214e13656c56dbfba229f84574e08a8e0450dc1d09aa3e65173159393ca01b210a65c7071b42d567779f661a6d6'
7
- data.tar.gz: 20537446551b73ef7263cb8e03f883a250895b32a63441f6d27d40448821df3497f21b4d6c88b218b911988ab09b784d69b43585501c36196f34e5671cf95633
6
+ metadata.gz: 7b300a7b30f38a59077a22c37889e777f6857ca5526059ae07cbd72b1da077b97b8009a9fd857e0a58bcdcc112de886719281188eb666834967ffd51d55a7ce8
7
+ data.tar.gz: 56a50e31c2d8bc3e717b58372fad20835bd37e3e935072481fca2c68eaf3c6afe4fb37cdf05f061aafd847cc11cfec07a8f20095e5fa4c9ce2cbd4d01a300d94
@@ -102,8 +102,8 @@ class Sorbet::Private::Serialize
102
102
  next if Sorbet::Private::ConstantLookupCache::DEPRECATED_CONSTANTS.include?("#{class_name}::#{const_sym}")
103
103
  begin
104
104
  value = klass.const_get(const_sym)
105
- rescue LoadError, NameError, RuntimeError, ArgumentError
106
- ret << "# Failed to load #{class_name}::#{const_sym}\n"
105
+ rescue LoadError, NameError, RuntimeError, ArgumentError => err
106
+ ret << "# Got #{err.class} when trying to get class constant symbol #{class_name}::#{const_sym}\n"
107
107
  next
108
108
  end
109
109
  # next if !Sorbet::Private::RealStdlib.real_is_a?(value, T::Types::TypeVariable)
@@ -116,8 +116,8 @@ class Sorbet::Private::Serialize
116
116
  next if Sorbet::Private::ConstantLookupCache::DEPRECATED_CONSTANTS.include?("#{class_name}::#{const_sym}")
117
117
  begin
118
118
  value = klass.const_get(const_sym, false)
119
- rescue LoadError, NameError, RuntimeError, ArgumentError
120
- ret << "# Failed to load #{class_name}::#{const_sym}\n"
119
+ rescue LoadError, NameError, RuntimeError, ArgumentError => err
120
+ ret << "# Got #{err.class} when trying to get class constant symbol #{class_name}::#{const_sym}_\n"
121
121
  next
122
122
  end
123
123
  next if Sorbet::Private::RealStdlib.real_is_a?(value, Module)
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.4506
4
+ version: 0.4.4507
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.4506
19
+ version: 0.4.4507
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.4506
26
+ version: 0.4.4507
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement