Permalink
Browse files

clean up Source::Rubygems#name

  • Loading branch information...
1 parent d001d49 commit da76ebdb271b48eb3057423ab0dcf2b0d0d47832 @indirect indirect committed Nov 11, 2010
Showing with 3 additions and 8 deletions.
  1. +3 −8 lib/bundler/source.rb
View
@@ -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
@@ -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

0 comments on commit da76ebd

Please sign in to comment.