Git Product home page Git Product logo

Comments (3)

rubyFeedback avatar rubyFeedback commented on June 11, 2024 1

You are right - that's interesting.

The .gemspec file has this entry:

spec.homepage      = "https://github.com/net-ssh/net-sftp"

Perhaps there needs to be some additional routine to check specifically whether the
URL shown on rubygems.org needs to be updated; I assume it has had to be stored
at one point in the past, as you indicate e. g. in 2021 or so. Perhaps some other older
gems also have that problem.

Aside from this, I think it would be pretty neat if we could have autogenerated documentation
at rubygems.org for gems too. I don't know if we have enough resources for that,
but I have had issues with external documentation before - often the gems I publish,
where the documentation is on, https://www.rubydoc.info/gems/, is often lagging behind,
or sometimes claiming that it does not exist, even though I pushed the gem just recently.
So there is some delay. Would be neat if there would be no delay and all could be contained
on rubygems.org directly, without having to depend on anything external (github, rubydoc
and so forth).

from rubygems.org.

simi avatar simi commented on June 11, 2024 1

Uff, this was though one to resolve, but I think I got it.

Before 2019, it was only possible to maintain those links (like docs) manually using WEB UI form, but that was removed at #1815.

net-sftp gem has this value still filled in.

irb(main):001:0> Rubygem.find_by(name: 'net-sftp').linkset
=> 
#<Linkset:                               
 id: 0,
 rubygem_id: 0,
 home: "https://github.com/net-ssh/net-sftp",
 wiki: "",
 docs: "http://net-ssh.github.com/net-sftp",
 mail: "",
 code: "https://github.com/net-ssh/net-sftp",
 bugs: "https://github.com/net-ssh/net-sftp/issues",

To override those values, net-sftp gem should utilize gemspec metadata. Logic picking on one of the values (from old linkset or modern metadata) lives in links model.

If I understand it well, there is nothing to do on rubygems.org side to fix this. 🤔

from rubygems.org.

rubyFeedback avatar rubyFeedback commented on June 11, 2024

Ah, .homepage is for the homepage, not the documentation of course. All my own gems get the default documentation link e. g. via https://www.rubydoc.info/gems/NAME_OF_THE_GEM_GOES_IN_HERE. I guess a new routine should check whether this entry is still specified or not; and if not, delete it (unless it was specified e. g. in the .gemspec file).

from rubygems.org.

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.