无法将我的gem发布到github

时间:2011-08-16 15:55:29

标签: git github gem bundler

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

$ 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是当前版本,所以我不确定为什么宝石会被删除。我想准备重新创建吗?所以我承诺。但是当我去做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'

我将这个发布到一个私人仓库,这可能很重要,因为我能够向公共仓库发布测试宝石。有什么想法吗?

1 个答案:

答案 0 :(得分:0)