While trying to add any URL to gem sources, I find that this URL is not a URI. For example when I execute
gem sources -a https://rubygems.org
It tells me that
https://rubygems.org is not a URI
Any help is appreciated
I think the problem is related to the uri component of Ruby itself. 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
ret[:USERINFO] = userinfo = "(?:[#{unreserved};:&=+$,\\\\]|#{escaped})*"
可能是DNS问题,尽管我不确定,但可以尝试使用开放式DNS(例如8.8.8.8)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.