aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/source_list.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-04 00:29:40 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-04 00:29:40 +0000
commite373d99f356779c1823c81603eaee6ed71cf68f5 (patch)
treee15086587f691a1f5bd3c7ddbfa38e825828caf6 /lib/rubygems/source_list.rb
parent984ea2cb815c33cfd50eb103a604e1c7462069a2 (diff)
downloadruby-e373d99f356779c1823c81603eaee6ed71cf68f5.tar.gz
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.1.
Please see entries of 2.6.0 and 2.6.1 on https://github.com/rubygems/rubygems/blob/master/History.txt [fix GH-1270] Patch by @segiddins git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/source_list.rb')
-rw-r--r--lib/rubygems/source_list.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/source_list.rb b/lib/rubygems/source_list.rb
index 942d657963..66ce4d57ed 100644
--- a/lib/rubygems/source_list.rb
+++ b/lib/rubygems/source_list.rb
@@ -59,7 +59,7 @@ class Gem::SourceList
Gem::Source.new(URI.parse(obj))
end
- @sources << src
+ @sources << src unless @sources.include?(src)
src
end