Commit 3c8e9ab
authored
Fix parent type of some Net::IMAP classes: (sorbet#8392)
- Net::IMAP::Atom: [source](https://github.com/ruby/net-imap/blob/6a520fb1eb3bbeeb1f97fdeed7c425b4f7addaa5/lib/net/imap/command_data.rb#L138)
- Net::IMAP::Literal [source](https://github.com/ruby/net-imap/blob/6a520fb1eb3bbeeb1f97fdeed7c425b4f7addaa5/lib/net/imap/command_data.rb#L150)
- Net::IMAP::MessageSet [source](https://github.com/ruby/net-imap/blob/6a520fb1eb3bbeeb1f97fdeed7c425b4f7addaa5/lib/net/imap/command_data.rb#L157)
- Net::IMAP::QuotedString [source](https://github.com/ruby/net-imap/blob/6a520fb1eb3bbeeb1f97fdeed7c425b4f7addaa5/lib/net/imap/command_data.rb#L144)
- Net::IMAP::RawData [source](https://github.com/ruby/net-imap/blob/6a520fb1eb3bbeeb1f97fdeed7c425b4f7addaa5/lib/net/imap/command_data.rb#L132)
Added a new class for Net::IMAP::CommandData, since that class is
defined
[here](https://github.com/ruby/net-imap/blob/6a520fb1eb3bbeeb1f97fdeed7c425b4f7addaa5/lib/net/imap/command_data.rb#L123-L130)
as `Data.define(:data)`, with two methods, `send_data` and `validate`, I
added all three and initialize in the definition.
The changes were made in this commit, included [in 0.5.2][1]
[1]:https://github.com/ruby/net-imap/releases/tag/v0.5.21 parent d7d76de commit 3c8e9ab
1 file changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4345 | 4345 | | |
4346 | 4346 | | |
4347 | 4347 | | |
4348 | | - | |
| 4348 | + | |
| 4349 | + | |
| 4350 | + | |
| 4351 | + | |
| 4352 | + | |
| 4353 | + | |
| 4354 | + | |
| 4355 | + | |
| 4356 | + | |
| 4357 | + | |
| 4358 | + | |
4349 | 4359 | | |
4350 | 4360 | | |
4351 | 4361 | | |
| |||
5010 | 5020 | | |
5011 | 5021 | | |
5012 | 5022 | | |
5013 | | - | |
| 5023 | + | |
5014 | 5024 | | |
5015 | 5025 | | |
5016 | 5026 | | |
| |||
5191 | 5201 | | |
5192 | 5202 | | |
5193 | 5203 | | |
5194 | | - | |
| 5204 | + | |
5195 | 5205 | | |
5196 | 5206 | | |
5197 | 5207 | | |
| |||
5227 | 5237 | | |
5228 | 5238 | | |
5229 | 5239 | | |
5230 | | - | |
| 5240 | + | |
5231 | 5241 | | |
5232 | 5242 | | |
5233 | 5243 | | |
5234 | 5244 | | |
5235 | 5245 | | |
5236 | 5246 | | |
5237 | 5247 | | |
5238 | | - | |
| 5248 | + | |
5239 | 5249 | | |
5240 | 5250 | | |
5241 | 5251 | | |
| |||
0 commit comments