rails-on-sorbet 0.2.7 → 0.2.8

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: 9c4cb80ad204ac1ff75b170054b6c3722eaab381d2c707eaa04e9ae937bc7e39
4
- data.tar.gz: 2796d4d8a2ac13e1d30618aa60016208201349df01f4ebcdf8d4af3fd84fe020
3
+ metadata.gz: 8ed0619a2df969a26e1a4c8a393f0c939d6f5810754404bc7d65dae595f86b56
4
+ data.tar.gz: 682c7f75757f90a583dac625a9b7a745f666d4893629b5ff78e1fbb3564d93f8
5
5
  SHA512:
6
- metadata.gz: c30c27cc7e051c159e5f8af119cc48862410974a4808af8dac082d3a9be5aa56802bf5aa9c12d13ba43d274a554f33dd88fc65c60a181ab46089a95d07206d59
7
- data.tar.gz: fd0d8cdd737a867e9fe269a76823626b1040f643710e7aa56090b39411eaed24310d9d11bcc7593de9c8c03d4c5ca3aa5d430302c5fea0cea3f6ce505449f515
6
+ metadata.gz: fa387b998f9c63a795ed3f1849f83bf4909343c6c87ae865b16d747e7cc9dfa46ecab8e7e7d918213f2367c4c754f8759beca26f5a40594bcfe4972e5418925c
7
+ data.tar.gz: 76311248119ffa6f7b17c3ae9a8219cfee17957f25d2fbc21864ebda0134c66eee9fda3d9d962aaf3f38a169e5a9348b0f66f2d91310be503491c594b49a4ba1
data/CHANGELOG.md CHANGED
@@ -12,6 +12,13 @@ Add changes in new features here. Do not change the gem's version in pull/merge
12
12
  ### Changes
13
13
  -
14
14
 
15
+ ## [0.2.8] - 16.10.2025
16
+
17
+ [Diff](https://github.com/espago/rails-on-sorbet/compare/v0.2.7...v0.2.8)
18
+
19
+ ### Changes
20
+ - Add missing `Map#each` method
21
+
15
22
  ## [0.2.7] - 08.10.2025
16
23
 
17
24
  [Diff](https://github.com/espago/rails-on-sorbet/compare/v0.2.6...v0.2.7)
@@ -3,7 +3,7 @@
3
3
  module Rails
4
4
  module On
5
5
  module Sorbet
6
- VERSION = '0.2.7'
6
+ VERSION = '0.2.8'
7
7
  end
8
8
  end
9
9
  end
data/rbi/map.rbi CHANGED
@@ -87,6 +87,31 @@ module Map
87
87
  sig {abstract.returns(T::Enumerator[K])}
88
88
  def each_key(&blk); end
89
89
 
90
+ # Calls *block* once for each key in *hsh*, passing the key-value pair as
91
+ # parameters.
92
+ #
93
+ # If no block is given, an enumerator is returned instead.
94
+ #
95
+ # ```ruby
96
+ # h = { "a" => 100, "b" => 200 }
97
+ # h.each {|key, value| puts "#{key} is #{value}" }
98
+ # ```
99
+ #
100
+ # *produces:*
101
+ #
102
+ # ```ruby
103
+ # a is 100
104
+ # b is 200
105
+ # ```
106
+ sig do
107
+ abstract.params(
108
+ blk: T.proc.params(arg0: [K, V]).returns(BasicObject),
109
+ )
110
+ .returns(T::Hash[K, V])
111
+ end
112
+ sig {returns(T::Enumerator[[K, V]])}
113
+ def each(&blk); end
114
+
90
115
  # Returns `true` if the given key is present in *hsh*.
91
116
  #
92
117
  # ```ruby
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-on-sorbet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Drewniak