sorbet_typed-props 1.5.0 → 1.5.1
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/.cz.yaml +1 -1
- data/CHANGELOG.md +6 -0
- data/lib/sorbet_typed/props/version.rb +1 -1
- data/lib/sorbet_typed/props/without_init_param_and_no_default_plugin.rb +2 -2
- data/tested_gem_versions.yml +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '09a2ab1fb19dbb21eca8ebf9e52a8ae2be2e7ac108567034f49b10bfc6bc47d4'
|
|
4
|
+
data.tar.gz: 314792d1a906f5fb2187bc26366acd1b55a63bb48be0e786c7bc1c99cab8971e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96ffdfe38017072c987d5078a07c7e37c6514ac9ba77d1a76aebc22dcc412ec730c4427f90fd3edb054ce4c4dda509ba76b923bfa2c99fcf259e4420757b88e8
|
|
7
|
+
data.tar.gz: 2b65e0c170f058ecf1d2e1cdf14d3de2b6269220b4ec5d59c173dbf913dab1714a4e4145afa621bba8baeb18988fa4f26cbb651674846b0af20423f216b0b233
|
data/.cz.yaml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -92,14 +92,14 @@ module SorbetTyped
|
|
|
92
92
|
# code is taken straight from sorbet, so there shouldn't really be a
|
|
93
93
|
# need to retest it. I also couldn't even construct a scenario where
|
|
94
94
|
# props_without_defaults would be nil.
|
|
95
|
-
T.unsafe(self).props_without_defaults&.each_pair do |p,
|
|
95
|
+
T.unsafe(self).props_without_defaults&.each_pair do |p, bound_setter|
|
|
96
96
|
# :nocov:
|
|
97
97
|
|
|
98
98
|
# NOTE: this is the only change to this method taken from T::Props::Constructor::DecoratorMethods
|
|
99
99
|
next if T.unsafe(self).props.dig(p, :extra, :initializer) == false
|
|
100
100
|
|
|
101
101
|
val = hash[p]
|
|
102
|
-
|
|
102
|
+
bound_setter.call(instance, val)
|
|
103
103
|
result += 1 if val || hash.key?(p)
|
|
104
104
|
rescue TypeError, T::Props::InvalidValueError
|
|
105
105
|
unless hash.key?(p)
|
data/tested_gem_versions.yml
CHANGED