Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Refactor time!#2

Open
timothyekl wants to merge 5 commits intomasterfrom
refactor-time
Open

Refactor time!#2
timothyekl wants to merge 5 commits intomasterfrom
refactor-time

Conversation

@timothyekl
Copy link
Copy Markdown

@fernferret said (secretly in a comment in the source) that he wanted a refactor on some of this code, and it looked fun. Here goes:

  • Breaks out Cinch handlers into a separate folder handlers with individual files per-handler
  • Converts the handlers to Cinch plugins for various reasons
  • Collapses the multiple wiki handlers into one

There's probably still more that can be done in handlers.rb, but it's a start.

Also compresses down wiki handlers into a single handler using regex
magic and judicious ternary operators. (Told you it was refactor time.)
Also minor fixes for page scraping
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant