diff options
author | Caden Lovelace <caden@herostrat.us> | 2015-06-22 23:23:46 +0100 |
---|---|---|
committer | Caden Lovelace <caden@herostrat.us> | 2015-08-23 23:48:55 +0100 |
commit | 99078ec8eb8ec49f8978516e2a838a3d4871cb3f (patch) | |
tree | af46006d0a21e38003812ac6d0d1ee822d61a1c5 /lib/bundler | |
parent | c8f7985e95727472c9ad3f77e07a4621ae58c5e4 (diff) | |
download | bundler-99078ec8eb8ec49f8978516e2a838a3d4871cb3f.tar.gz |
Add ability to update gems via source for backwards-compatibility.
See comments.
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/definition.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index f53579fc52..a6e124eddb 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -557,6 +557,11 @@ module Bundler # Don't add a spec to the list if its source is expired. For example, # if you change a Git gem to Rubygems. next if s.source.nil? || @unlock[:sources].include?(s.source.name) + + # XXX This is a backwards-compatibility fix to preserve the ability to + # unlock a single gem by passing its name via `--source`. See issue #3759 + next if s.source.nil? || @unlock[:sources].include?(s.name) + # If the spec is from a path source and it doesn't exist anymore # then we just unlock it. |