无法将我的 gem 发布到 github
我对这里发生的事情感到困惑:
$ 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了这个关于发布私人宝石的教程,一切正常。
http://www.cerebris.com/blog/2011/03/15/creating-and-managing-private-rubygems-with-jeweler-github-and-bundler/
I found this tutorial on publishing private gems, and everything worked.
http://www.cerebris.com/blog/2011/03/15/creating-and-managing-private-rubygems-with-jeweler-github-and-bundler/