diff options
author | Dimitris Zorbas <zorbash@skroutz.gr> | 2015-10-06 22:19:43 +0300 |
---|---|---|
committer | Dimitris Zorbas <zorbash@skroutz.gr> | 2015-10-06 22:27:02 +0300 |
commit | 69dad0786a0326811bd6013acb4e57000103c773 (patch) | |
tree | f3815d652992b291a7002cf5ed9314ae6cd78c1a | |
parent | 317baeae5a7ecae1bb537e9afc49b158452e284b (diff) | |
download | bundler-69dad0786a0326811bd6013acb4e57000103c773.tar.gz |
Fix bitbucket source deprecation warning
The deprecation warning tries to access `user_name` which is not yet
assigned and falls back to `method_missing` which raises an error.
-rw-r--r-- | lib/bundler/dsl.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb index d51aad005b..6ebac5cb47 100644 --- a/lib/bundler/dsl.rb +++ b/lib/bundler/dsl.rb @@ -230,8 +230,8 @@ module Bundler # TODO 2.0 remove this deprecated git source git_source(:bitbucket) do |repo_name| - warn_deprecated_git_source(:bitbucket, "https://#{user_name}@bitbucket.org/#{user_name}/#{repo_name}.git") user_name, repo_name = repo_name.split "/" + warn_deprecated_git_source(:bitbucket, "https://#{user_name}@bitbucket.org/#{user_name}/#{repo_name}.git") repo_name ||= user_name "https://#{user_name}@bitbucket.org/#{user_name}/#{repo_name}.git" end |