发布 gem https://rubygems.org

Publishing gem https://rubygems.org

我正在尝试构建一个 cli ruby gem。万事俱备,只差发布了

首先我尝试了这个,

Enter your RubyGems.org credentials.                                                                                                                               
Don't have an account yet? Create one at https://rubygems.org/sign_up                                                                                              
   Email:   hima.chhag@gmail.com                                                                                                                                   
Password:                                                                                                                                                          

Signed in.                                                                                                                                                         
ERROR:  While executing gem ... (Gem::Package::FormatError)                                                                                                        
    No such file or directory @ rb_sysopen - popular_deals-0.1.0.gem

并出现错误,所以在做了一些研究后我知道我需要先制作 gem,

这也是..

 gem build popular_deals-0.1.0.gem                                                                                                                             
ERROR:  Gemspec file not found: popular_deals-0.1.0.gem                                                                                                            
[19:14:21] (master) popular-deals-from-slickdeals.net-cli

但是,仍然出现错误,我是不是遗漏了什么?我应该怎么做才能解决“错误:未找到 Gemspec 文件:popular_deals-0.1.0.gem”错误?我有 "popular_deals.gemspec"

非常感谢您的帮助!

此问题已解决。这是我的错,我需要用我的 gemspec 文件构建 gem。所以,命令 gem build pupular_deals.gemspec 成功了!