Skip to content

Update initialize, start, etc to use kwargs - #22

Open
nevans wants to merge 1 commit into
ruby:masterfrom
nevans:kwargs-initialize-and-start
Open

Update initialize, start, etc to use kwargs#22
nevans wants to merge 1 commit into
ruby:masterfrom
nevans:kwargs-initialize-and-start

Conversation

@nevans

Copy link
Copy Markdown
  • update POP3.foreach, POP3.delete_all, and POP3.auth_only to forward all arguments (*arg, **kwarg) to POP3.start.
  • update auth_only to only forward args to start and return true
  • marked POP3.create_ssl_params with :nodoc: to discourage its use.
  • update #initialize, .start, #start, etc to allow kwargs for port and apop,
  • add the ability to set the basic configuration parameters to #initialize: ssl, open_timeout, read_timeout, and debug_output.
  • add auth keyword param to start, with the ability to forward it as keyword params into the #auth kw args

@nevans

Copy link
Copy Markdown
Author

These changes should all be backward compatible. Although they aren't strictly necessary for it, they simplified my SASL PR (TODO: make PR and insert number here).

If you would like me to, I can split this PR into several smaller PRs (for example, if you have concerns about some changes but others are okay).

@nevans
nevansforce-pushed the kwargs-initialize-and-start branch from 2653f50 to dbc9c43CompareNovember 7, 2023 14:04
@nevansnevans mentioned this pull request Jun 7, 2024
* update `POP3.foreach`, `POP3.delete_all`, and `POP3.auth_only` to
forward all arguments (`*arg, **kwarg`) to `POP3.start`.
* update `auth_only` to *only* forward args to `start` and return `true`
* marked `POP3.create_ssl_params` with `:nodoc:` to discourage its use.
* update `#initialize`, `.start`, `#start`, etc to allow kwargs for
`port` and `apop`,
* add the ability to set the basic configuration parameters to
`#initialize`: `ssl`, `open_timeout`, `read_timeout`, and
`debug_output`.
* add `auth` keyword param to `start`, with the ability to forward it as
keyword params into the `#auth` kw args
@nevans
nevansforce-pushed the kwargs-initialize-and-start branch from dbc9c43 to 460f3e0CompareJune 23, 2024 11:32
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@nevans