还挺容易的。详见: http://help.rubygems.org/kb/gemcutter/publishing-your-own-rubygem Simple How-to
Sign up for an account on Gemcutter Make sure you’re running at least RubyGems 1.3.3. gem -v Create your gem. Get started with Jeweler(我这一步没做也成功了) Install the gemcutter gem with: gem install gemcutter Build your gem with: gem build yourgem.gemspec Push it! gem push yourgem-0.0.1.gem
注意事项: gem 的名字必须是唯一的。 $ gem push yourgem-0.0.1.gem 后再 $ gem push yourgem-0.0.1.gem 就不行了,必须是 yourgem-0.0.2.gem 这样。
其它参考页: http://docs.rubygems.org/read/chapter/5 http://guides.rubygems.org/make-your-own-gem/ 广告: 我的故事 http://mystory.cc/ 多人博客系统,源代码在: https://github.com/gazeldx/mystory/