简体   繁体   English

https://rubygems.org/不是URI

[英]https://rubygems.org/ is not a URI

While trying to add any URL to gem sources, I find that this URL is not a URI. 尝试将任何URL添加到gem来源时,我发现此URL不是URI。 For example when I execute 例如当我执行

gem sources -a https://rubygems.org

It tells me that 告诉我

https://rubygems.org is not a URI https://rubygems.org不是URI

Any help is appreciated 任何帮助表示赞赏

I think the problem is related to the uri component of Ruby itself. 我认为问题与Ruby本身的uri组件有关。 I think following will work: Go to /lib/ruby/1.9.3/uri , open common.rb , find userinfo and replace the definition with this line 我认为以下方法会起作用:转到/lib/ruby/1.9.3/uri ,打开common.rb ,找到userinfo并用此行替换定义

ret[:USERINFO] = userinfo = "(?:[#{unreserved};:&=+$,\\\\]|#{escaped})*"

可能是DNS问题,尽管我不确定,但可以尝试使用开放式DNS(例如8.8.8.8)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 gemspec不允许使用“ https://rubygems.org”,而只能使用“'http://rubygems.org'” - “https://rubygems.org” is not allowed by the gemspec, which only allows “'http://rubygems.org'” 未定义的方法规范:“https://rubygems.org”:符号 - undefined method specs for :“https://rubygems.org”:Symbol 无法验证 https://rubygems.org/ 的 SSL 证书 - Could not verify the SSL certificate for https://rubygems.org/ 捆绑安装无法从 https://rubygems.org/ 获取规范 - Bundle Install could not fetch specs from https://rubygems.org/ gem mongoid:无法从https://rubygems.org/获取规格 - gem mongoid : Could not fetch specs from https://rubygems.org/ 无法从https://rubygems.org/获取规范 - Could not fetch specs from https://rubygems.org/ SSL 安装 rubygems 时出错,无法从“https://rubygems.org/”提取数据 - SSL Error When installing rubygems, Unable to pull data from 'https://rubygems.org/ 是否可以验证 Gemfile.lock 中的所有宝石是否存在于 https://rubygems.org? - Is it possible to verify if all gems in a Gemfile.lock exist at https://rubygems.org? 捆绑器为什么要寻找mysql2 -v'0.4.4'--source'https://rubygems.org/' - Why is bundler looking for mysql2 -v '0.4.4' --source 'https://rubygems.org/' “无法从https://rubygems.org/下载数据”,因为“证书验证失败” - “Unable to download data from https://rubygems.org/” because “certificate verify failed”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM