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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/rails/on/sorbet/version.rb +1 -1
- data/rbi/map.rbi +25 -0
- 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: 8ed0619a2df969a26e1a4c8a393f0c939d6f5810754404bc7d65dae595f86b56
|
4
|
+
data.tar.gz: 682c7f75757f90a583dac625a9b7a745f666d4893629b5ff78e1fbb3564d93f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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
|