0

我试过做rake release,但挂起..

然后看到这个http://help.rubygems.org/discussions/problems/7607-rake-release-hangs-on-new-gem-submission

我已经删除了创建并使用它构建的 .gem

gem build mygem.gemspec

然后我尝试 gem push 创建并得到的 gem

C:/Ruby193/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): control characters are not allowed at line 1 column 1 (Psych::SyntaxError)
        from C:/Ruby193/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
        from C:/Ruby193/lib/ruby/1.9.1/psych.rb:151:in `parse'
        from C:/Ruby193/lib/ruby/1.9.1/psych.rb:127:in `load'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:318:in `load_file'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:270:in `load_api_keys'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:286:in `rubygems_api_key'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/gemcutter_utilities.rb:31:in `sign_in'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/commands/push_command.rb:39:in `execute'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:305:in `invoke_with_build_args'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:170:in `process_args'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:130:in `run'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:60:in `run'
        from C:/Ruby193/bin/gem:21:in `<main>'

使用 ruby​​ 1.9.3 和最新的 ruby​​gems 2.0.7

我能做些什么来推动我的宝石?

4

1 回答 1

2

删除了 ruby​​gems 告诉我创建并再次推送的凭据文件,这次是我自己登录..

然后它起作用了

于 2013-09-04T13:43:02.040 回答