ruby / ruby/reline

Rewrite `Win32API` class to Fiddle

Open
#494 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Windows
Dominant language
Ruby
Stars
311
Forks
99
Avg merge
6d 4h
Merged PRs (30d)
1

Description

There is no reason we use Win32API.rb instead of Fiddle directly.

https://github.com/ruby/reline/blob/master/lib/reline/windows.rb#L55

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at lib/reline/windows.rb around line 55 and inspect how Win32API.rb is used there. Replace that wrapper with direct Fiddle usage, then run the relevant Reline tests to confirm the Windows API behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
cli
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.