gpt4 book ai didi

gem - 耙子释放不起作用

转载 作者:行者123 更新时间:2023-12-01 06:22:39 35 4
gpt4 key购买 nike

我正在尝试发布运行此命令的 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

我尝试过但没有奏效的事情:
  • 删除github标签并再次发布。
  • 更新 gem 到最新版本 (2.4.8) 做 gem update --system .
  • 重置我的 ruby​​gems API key 。
  • 使用 API。 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.

  • 使用 gems
    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)

  • 有什么线索吗?

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

    最佳答案

    对我来说,启用后 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/

    35 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com