neocities / neocities-ruby

The Neocities Gem - A CLI and library for using the Neocities web site API.
https://neocities.org
51 stars 14 forks source link

Fix undefined `Gem::Command` error #34

Closed jonchang closed 2 years ago

jonchang commented 2 years ago

Fixes this error on newer versions of Rubygems:

% gem install --no-document neocities
Successfully installed tty-screen-0.6.5
Successfully installed unicode_utils-1.4.0
Successfully installed unicode-display_width-1.8.0
Successfully installed strings-ansi-0.2.0
Successfully installed strings-0.1.8
Successfully installed tty-color-0.4.3
Successfully installed equatable-0.5.0
Successfully installed pastel-0.7.2
Successfully installed necromancer-0.4.0
Successfully installed tty-table-0.10.0
Successfully installed wisper-1.6.1
Successfully installed tty-cursor-0.4.0
Successfully installed tty-prompt-0.12.0
Successfully installed rake-12.3.3
Successfully installed httpclient-2.8.3
Building native extensions. This could take a while...
ERROR:  Error installing neocities:
    ERROR: Failed to build gem native extension.

    current directory: /usr/local/bundle/gems/neocities-0.0.15/ext
/usr/local/bin/ruby mkrf_conf.rb
mkrf_conf.rb:4:in `<main>': uninitialized constant Gem::Command (NameError)
jamesgecko commented 2 years ago

This fixes the issue for me. :+1:

Vargnaar commented 2 years ago

Still recieving the same error.

kyledrake commented 2 years ago

I'm not sure why there's so much deviance on this but I'll give this a shot, thanks