显示源代码URL的RubyGems不起作用
我在RubyGem上有多个宝石,其中一些显示了源代码链接,有些则没有。
我的印象是,您要设置源代码链接所需要做的就是设置source_code_uri
.gemspec
中的元数据
是否还有其他需要配置的设置?
# This one Works
spec.metadata['source_code_uri'] = 'https://github.com/klueless-io/handlebars-helpers'
# This one does NOT work
spec.metadata['source_code_uri'] = 'https://github.com/klueless-io/cmdlet'
“ nofollow noreferrer”> handlebars-helpers gemspec gemspec
href =“ https://github.com/klueless-io/cmdlet/blob/main/cmdlet.gemspec” rel =“ nofollow noreferrer”> cmdlet gemspec
I have multiple GEMs on RubyGems and some of them show the Source Code link and some do not.
I am under the impression that all you need to do to set the source code link is set the source_code_uri
meta data in the .gemspec
Is there another setting that needs to be configured?
# This one Works
spec.metadata['source_code_uri'] = 'https://github.com/klueless-io/handlebars-helpers'
# This one does NOT work
spec.metadata['source_code_uri'] = 'https://github.com/klueless-io/cmdlet'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看
是缺少rubygem信息的宝石,然后有这些行:cmdlet.gemspec
然后在同一文件中下面:
这意味着如何方式您设置
RubyGems_Mfa_required
重置整个spec.metadata
hash。只需将
rubygems_mfa_required
分配更改为以下内容,它将在下一个GEM推向RubyGems之后起作用:When looking into the
cmdlet.gemspec
which is the gem that is missing information on Rubygems, then there are these lines:and then below in the same file:
That means the way how you set
rubygems_mfa_required
resets the wholespec.metadata
hash.Just change the
rubygems_mfa_required
assignment to the following and it will work after the next gem push to Rubygems: