lib/deploy_tracker/capistrano.rb in deploy_tracker-0.0.2 vs lib/deploy_tracker/capistrano.rb in deploy_tracker-0.0.3

- old
+ new

@@ -19,13 +19,15 @@ rails_env = fetch(:rails_env, "production") executable = RUBY_PLATFORM.downcase.include?('mswin') ? 'rake.bat' : 'rake' puts "[DeployTracker] Tracking Deployment" + email = `git config --get user.email`.chomp + throw "[DeployTracker] Please set your email with...\n\t`git config --global user.email YOUR_EMAIL_ADDRESS`." if email.size==0 github_username = `git config --get github.user`.chomp throw "[DeployTracker] Please set your github username with...\n\t`git config --global github.user YOUR_GITHUB_USERNAME`." if github_username.size==0 - data = "deploy[github_username]=#{github_username}&deploy[environment]=#{rails_env}&deploy[revision]=#{current_revision}&deploy[repository]=#{repository}&api_key=#{deploy_tracking_api_key}" + data = "deploy[github_username]=#{github_username}&deploy[environment]=#{rails_env}&deploy[revision]=#{current_revision}&deploy[repository]=#{repository}&api_key=#{deploy_tracking_api_key}&source=capistrano&branch=#{branch}&user_email=#{email}" http = Net::HTTP.new('deploytracking.heroku.com', 443) http.use_ssl = true path = '/deploys'