Skip to content

refactor: name methods and variables for what they do - #42

Merged
Thejus-Paul merged 11 commits into
mainfrom
naming
Oct 15, 2026
Merged

Thejus-Paul merged 11 commits into
mainfrom
naming

Conversation

@Thejus-Paul

@Thejus-Paul Thejus-Paul commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Reading the plugin, several names said one thing while the code did another. The step that puts compiled binaries back where Ruby can find them was named as if it only checked them. The step that builds and uploads every gem queued during install was named as if it only waited for work already running. A yes-or-no checksum comparison was named like a command, and the same value carried different names in neighbouring files. Each one cost a reader a detour into the body to learn what the call actually did.

Every name now says what the code does, and nothing behaves differently.

validate copied nested binaries to the extension_dir root. A validator
that mutates misleads; repair names what happens.
Matches the DEFAULT_ prefix family set by DEFAULT_HTTP_URL.
mock_, make_ and create_ all meant the same thing.
Nothing runs before the call. The method builds every enqueued gem
serially, then pushes; the old name promised a wait on prior work.
handlers.js already calls the same customMetadata object metadata.
One-line wrapper around mark_build_complete under a negated name.
It is the gem that fetch may still return after the delete, not a path
belonging to the trigger.
@Thejus-Paul Thejus-Paul self-assigned this Oct 15, 2026
@Thejus-Paul
Thejus-Paul marked this pull request as ready for review October 15, 2026 01:10
@Thejus-Paul
Thejus-Paul merged commit 7d550a5 into main Oct 15, 2026
6 checks passed
@Thejus-Paul
Thejus-Paul deleted the naming branch October 15, 2026 01:10
Sign up for free to 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