Command `gem server` causes `NoMethodError`

Open
#11 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Reproduce the failure with gem server, then trace the Gem::RDoc.load_rdoc call and the RDoc::RubygemsHook method named in the error. Done means the command no longer raises NoMethodError and starts the expected local gem server.

Written by the indexing model from the issue text.

Description

Environment

> ruby -v && gem --version && gem info rubygems-server
ruby 3.3.6 (2024-11-05 revision 75015d4c1f) +YJIT [arm64-darwin24]
3.5.23

*** LOCAL GEMS ***

rubygems-server (0.3.0)
    Author: Hiroshi SHIBATA
    Homepage: https://github.com/rubygems/rubygems-server
    License: MIT
    Installed at: /Users/stephan/.rbenv/versions/3.3.6/lib/ruby/gems/3.3.0

    Gem::Server and allows users to serve gems for consumption by `gem
    --remote-install`.

Hardware:

  • OS: macOS Sequoia 15.2 arm64
  • Kernel: Darwin 24.2.0

Behaviour

 > gem server
ERROR:  While executing gem ... (NoMethodError)
    undefined method `load_rdoc' for class RDoc::RubygemsHook

    Gem::RDoc.load_rdoc
             ^^^^^^^^^^

I expected to get a runing local gem server.
Am I doing it wrong? Should I be using something else?
Or maybe my expectation mislead?

Dominant language
Ruby
Stars
17
Forks
4
PR merge metrics
No merged PRs in 30d

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.

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.