作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试发布运行此命令的 gem 的新版本:rake release --trace
但过程卡在这里:
rake release --trace
** Invoke load_app (first_time)
** Execute load_app
** Invoke release (first_time)
** Invoke build (first_time)
** Execute build
paperclip_upload 1.2.0 built to pkg/paperclip_upload-1.2.0.gem.
** Invoke release:guard_clean (first_time)
** Execute release:guard_clean
** Invoke release:source_control_push (first_time)
** Execute release:source_control_push
Tag v1.2.0 has already been created.
** Invoke release:rubygem_push (first_time)
** Execute release:rubygem_push
gem update --system
. curl --data-binary @pkg/paperclip_upload-1.2.0.gem -H 'Authorization:XXX' https://rubygems.org/api/v1/gems
The POST is not working but I can retrieve my gems performing a GET.
require 'rubygems'
require 'gems'
Gems.configure do |config|
config.username = 'xxx'
config.password = 'xxx'
end
Gems.push(File.new("pkg/paperclip_upload-1.2.0.gem"))
gem build
的 rake 任务然后 gem push -v pkg/paperclip_upload-1.2.0.gem
但也卡住了:gem push -v pkg/paperclip_upload-1.2.0.gem
GET https://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz
304 Not Modified
GET http://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET http://rubygems.org/quick/Marshal.4.8/rubygems-update-2.4.8.gemspec.rz
302 Moved Temporarily
GET http://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/rubygems-update-2.4.8.gemspec.rz
200 OK
Pushing gem to http://rubygems.org/...
POST http://rubygems.org//api/v1/gems
connection reset after 1 requests, retrying
POST http://rubygems.org//api/v1/gems
connection reset after 1 requests, retrying
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
too many connection resets (http://rubygems.org//api/v1/gems)
最佳答案
对我来说,启用后 2FA on Rubygems.org我无法运行 rake release
没有了。release:rubygem_push
步被悬。原来older versions of gem
don't support 2FA , 和中间版本有一个错误,进程是 waiting for 2FA code entry but there's no prompt .
我的解决方案是输入 2FA 代码 + return
当进程在等待时。
最终你应该可以 gem update --system
获取 gem
的新版本具有完整的 2FA 支持。
关于gem - 耙子释放不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31881961/
我是一名优秀的程序员,十分优秀!