Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

clean up Source::Rubygems#name

  • Loading branch information...
commit da76ebdb271b48eb3057423ab0dcf2b0d0d47832 1 parent d001d49
@indirect indirect authored
Showing with 3 additions and 8 deletions.
  1. +3 −8 lib/bundler/source.rb
View
11 lib/bundler/source.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.