Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update initialize, start, etc to use kwargs #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nevans
Copy link

@nevans nevans commented Nov 7, 2023

  • 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
Author

nevans commented Nov 7, 2023

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 nevans force-pushed the kwargs-initialize-and-start branch from 2653f50 to dbc9c43 Compare November 7, 2023 14:04
@nevans nevans 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 nevans force-pushed the kwargs-initialize-and-start branch from dbc9c43 to 460f3e0 Compare June 23, 2024 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant