无法将我的 gem 发布到 github

发布于 2024-11-29 17:48:35 字数 1531 浏览 1 评论 0原文

我对这里发生的事情感到困惑:

$ sudo rake install
(in /Users/****/code/parsley)
WARNING:  no rubyforge_project specified
WARNING:  description and summary are identical
  Successfully built RubyGem
  Name: parsley
  Version: 0.1.1
  File: parsley-0.1.1.gem
Executing "ruby -S gem install ./pkg/parsley-0.1.1.gem":
ruby -S gem install ./pkg/parsley-0.1.1.gem
Successfully installed parsley-0.1.1
1 gem installed
Installing ri documentation for parsley-0.1.1...
Installing RDoc documentation for parsley-0.1.1...

但我注意到我不再有一个干净的回购协议,所以:

 $ git status
# On branch master
# Changes not staged for commit:
#   (use "git add/rm <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   deleted:    parsley-0.1.1.gem
#
no changes added to commit (use "git add" and/or "git commit -a")

这对我来说似乎很奇怪。 0.1.1 是当前版本,所以我不确定为什么 gem 会被删除。我想是为了重新创建它做准备?所以我承诺。但是当我去进行 rake 发布时,我收到此错误:

$ rake release
(in /Users/****/code/parsley)
Pushing master to origin
Generated: parsley.gemspec
parsley.gemspec is valid.
WARNING:  no rubyforge_project specified
WARNING:  description and summary are identical
  Successfully built RubyGem
  Name: parsley
  Version: 0.1.0
  File: parsley-0.1.0.gem
rake aborted!
Permission denied - (./parsley-0.1.0.gem, ./pkg/parsley-0.1.0.gem)
/usr/local/lib/ruby/1.9.1/fileutils.rb:515:in `rename'

我正在将其发布到私人存储库,这在这里可能很重要,因为我能够将测试 gem 发布到公共存储库。有什么想法吗?

I'm confused as to what is happening here:

$ sudo rake install
(in /Users/****/code/parsley)
WARNING:  no rubyforge_project specified
WARNING:  description and summary are identical
  Successfully built RubyGem
  Name: parsley
  Version: 0.1.1
  File: parsley-0.1.1.gem
Executing "ruby -S gem install ./pkg/parsley-0.1.1.gem":
ruby -S gem install ./pkg/parsley-0.1.1.gem
Successfully installed parsley-0.1.1
1 gem installed
Installing ri documentation for parsley-0.1.1...
Installing RDoc documentation for parsley-0.1.1...

But I notice I no longer have a clean repo, so:

 $ git status
# On branch master
# Changes not staged for commit:
#   (use "git add/rm <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   deleted:    parsley-0.1.1.gem
#
no changes added to commit (use "git add" and/or "git commit -a")

This seems strange to me. 0.1.1 is the current release, so I'm not sure why the gem would be deleted. I guess in preparation for it to be recreated? So I commit. But then when I go to do rake release, I get this error:

$ rake release
(in /Users/****/code/parsley)
Pushing master to origin
Generated: parsley.gemspec
parsley.gemspec is valid.
WARNING:  no rubyforge_project specified
WARNING:  description and summary are identical
  Successfully built RubyGem
  Name: parsley
  Version: 0.1.0
  File: parsley-0.1.0.gem
rake aborted!
Permission denied - (./parsley-0.1.0.gem, ./pkg/parsley-0.1.0.gem)
/usr/local/lib/ruby/1.9.1/fileutils.rb:515:in `rename'

I am releasing this to a private repo, that might be important here because I was able to release a test gem to a public repo. Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文