Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
clean up Source::Rubygems#name
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Nov 11, 2010
1 parent d001d49 commit da76ebd
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lib/bundler/source.rb
Expand Up @@ -39,12 +39,6 @@ def eql?(o)

alias == eql?

# Not really needed, but it seems good to implement this method for interface
# consistency. Source name is mostly used to identify Path & Git sources
def name
":gems"
end

def options
{ "remotes" => @remotes.map { |r| r.to_s } }
end
Expand All @@ -62,9 +56,10 @@ def to_lock
end

def to_s
remotes = self.remotes.map { |r| r.to_s }.join(', ')
"rubygems repository #{remotes}"
remote_names = self.remotes.map { |r| r.to_s }.join(', ')
"rubygems repository #{remote_names}"
end
alias_method :name :to_s

def specs
@specs ||= fetch_specs
Expand Down

0 comments on commit da76ebd

Please sign in to comment.