Giter VIP home page Giter VIP logo

Comments (2)

shugo avatar shugo commented on August 24, 2024

There are other gems such as ncurses-ruby and ncursesw, but I wouldn't like to list all gems in README.

I think the gem version badge in README and the homepage attribute of the curses gem are sufficient.

from curses.

unurgunite avatar unurgunite commented on August 24, 2024

I know that this issue is old and has been closed several years ago but I came across this solution: just download the ncurses gem from https://rubygems.org/gems/ncurses via Download button or just type wget https://rubygems.org/downloads/ncurses-0.9.1.gem, then write gem unpack ncurses-0.9.1.gem, cd to unarchived folder of gem and create .gemspec file in project root with following content:

# frozen_string_literal: true

Gem::Specification.new do |s|
  s.name        = 'ncurses'
  s.version     = '0.9.1'
  s.licenses    = ['MIT']
  s.summary     = 'This is an example!'
  s.description = 'Much longer explanation of the example!'
  s.authors     = ['Ruby Coder']
  s.email       = '[email protected]'
  s.files       = ['lib/ncurses.rb']
  s.homepage    = 'https://rubygems.org/gems/example'
  s.metadata    = { 'source_code_uri' => 'https://github.com/example/example' }
end

You can also edit all of this metatags if you want. Then do gem build .gemspec && gem install ncurses-0.9.1.gem

I know that ncurses gem is deprecated and replaced by ncurses-ruby gem (luckily, there is the same author for both gems), so this info is just for scientific interest or "just for fun". I think that the issue is in RubyGems utility: first releases of gem didn't check for some values of .gemspec file, but now it does, so RubyGems version < 2.x will install this gem without any errors, so this case is better suited for legacy versions of Ruby (1.8-2.0)

from curses.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.