耙释放不起作用

rake release does not work

我正在尝试发布我的 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

我尝试过但没有奏效的事情:

有什么线索吗?

RubyGems’ status page 对我来说都是绿色的。

这是我的问题How to reduce the size of a gem

尝试发送带有 585MB tmp 垃圾的 gem 不是最好的主意...

对我来说,在启用 2FA on Rubygems.org 之后,我无法再 运行 rake release

release:rubygem_push 步骤挂起。结果 older versions of gem don't support 2FA, and intermediate versions had a bug where the process is waiting for 2FA code entry but there's no prompt.

我的解决方案是在进程等待时输入 2FA 代码 + return

最终您应该能够 gem update --system 获得具有完整 2FA 支持的 gem 的新版本。