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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f174dad33ad91ad3f978dca0a7048436f5174ddc4697d986352eea398efe3ce
4
- data.tar.gz: 0425e0dbfc6549cccdac000060c1f968d7877fb815c2f7e0374e494101887d40
3
+ metadata.gz: '09a2ab1fb19dbb21eca8ebf9e52a8ae2be2e7ac108567034f49b10bfc6bc47d4'
4
+ data.tar.gz: 314792d1a906f5fb2187bc26366acd1b55a63bb48be0e786c7bc1c99cab8971e
5
5
  SHA512:
6
- metadata.gz: 1e63e26d0ad9e645e56efeda20b3df2aab26f0fac3da887a175c8d1b75dc8062a1360b6e615f370b8b6f065f93c93961e7947006a1840d76e89c2014c233c5c0
7
- data.tar.gz: 9e7310699fe6272d445e59a46b1c08c17fc3ccf0e27c0aecf3b41b8a595415ab5bcf52919db8a40d43e2efe4b971dc2516df2bf76c017ad87d07c7ed35fb7e27
6
+ metadata.gz: 96ffdfe38017072c987d5078a07c7e37c6514ac9ba77d1a76aebc22dcc412ec730c4427f90fd3edb054ce4c4dda509ba76b923bfa2c99fcf259e4420757b88e8
7
+ data.tar.gz: 2b65e0c170f058ecf1d2e1cdf14d3de2b6269220b4ec5d59c173dbf913dab1714a4e4145afa621bba8baeb18988fa4f26cbb651674846b0af20423f216b0b233
data/.cz.yaml CHANGED
@@ -15,7 +15,7 @@ commitizen:
15
15
  - mise run format
16
16
  tag_format: v$version
17
17
  update_changelog_on_bump: true
18
- version: 1.5.0
18
+ version: 1.5.1
19
19
  version_files:
20
20
  - lib/sorbet_typed/props/version.rb
21
21
  version_scheme: semver2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v1.5.1 (2026-06-23)
2
+
3
+ ### Fix
4
+
5
+ - **props**: adapt to sorbet-runtime bound_setter signature change
6
+
1
7
  ## v1.5.0 (2026-06-22)
2
8
 
3
9
  ### Feat
@@ -5,7 +5,7 @@
5
5
 
6
6
  module SorbetTyped
7
7
  module Props
8
- VERSION = '1.5.0'
8
+ VERSION = '1.5.1'
9
9
  end
10
10
  end
11
11
 
@@ -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, setter_proc|
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
- instance.instance_exec(val, &setter_proc)
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)
@@ -3,5 +3,5 @@
3
3
  #
4
4
  # Each value is the definitive upper bound (patch-level inclusive); update:appraisal
5
5
  # tests all minors from the gemspec lower bound up to and including this exact version.
6
- sorbet-runtime: '0.6.13298'
6
+ sorbet-runtime: '0.6.13310'
7
7
  tapioca: '0.19.1'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sorbet_typed-props
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Kramer