summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitris Zorbas <zorbash@skroutz.gr>2015-10-06 22:19:43 +0300
committerDimitris Zorbas <zorbash@skroutz.gr>2015-10-06 22:27:02 +0300
commit69dad0786a0326811bd6013acb4e57000103c773 (patch)
treef3815d652992b291a7002cf5ed9314ae6cd78c1a
parent317baeae5a7ecae1bb537e9afc49b158452e284b (diff)
downloadbundler-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.rb2
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