diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-11-11 23:58:40 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2021-12-03 20:00:50 +0900 |
| commit | 248fae0ec43c2df6d9b545acc7f56bdfd5f89dec (patch) | |
| tree | 1aaabdcb798992c18c1fa0fa5004fa99fb92416e /lib/bundler/plugin | |
| parent | 7d974cc56fa0555beed0bf4f6fe34322cd24cd26 (diff) | |
[rubygems/rubygems] Improve sources representation
We have two representations of a source. Once used for sorting, which
should not depend on the source's state, but solely on its static
information, like remotes. Another one used for error and informational
messages, which should properly inform about the exact state of the
source when the message is printed.
This commit makes the latter be the default implementation of `to_s`, so
that error and informational messages are more accurate by default.
https://github.com/rubygems/rubygems/commit/b5f2b88957
Diffstat (limited to 'lib/bundler/plugin')
| -rw-r--r-- | lib/bundler/plugin/api/source.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/plugin/api/source.rb b/lib/bundler/plugin/api/source.rb index f6f4ac4f0a..32b1d0ee38 100644 --- a/lib/bundler/plugin/api/source.rb +++ b/lib/bundler/plugin/api/source.rb @@ -283,6 +283,7 @@ module Bundler def to_s "plugin source for #{@type} with uri #{@uri}" end + alias_method :identifier, :to_s # Note: Do not override if you don't know what you are doing. def include?(other) |
