diff options
author | David RodrÃguez <[email protected]> | 2022-06-23 11:22:36 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2022-06-24 10:52:02 +0900 |
commit | 12a5fa408bd318f8fb242e86beb225f2dcae8df9 () | |
tree | f132650f5999535da69ee998956f260007afd371 /lib/rubygems/source.rb | |
parent | 333754ace8ae9bc5d2dfb4aee160fcfa0f38350d (diff) |
Sync RubyGems & Bundler with upstream repo
Notes: Merged: https://.com/ruby/ruby/pull/6054
-rw-r--r-- | lib/rubygems/source.rb | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -26,15 +26,8 @@ class Gem::Source # Creates a new Source which will use the index located at +uri+. def initialize(uri) - begin - unless uri.kind_of? URI - uri = URI.parse(uri.to_s) - end - rescue URI::InvalidURIError - raise if Gem::Source == self.class - end - - @uri = uri @update_cache = nil end |