deploy_tracker 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,10 +21,12 @@ Capistrano::Configuration.instance(:must_exist).load do
21
21
 
22
22
  puts "[DeployTracker] Tracking Deployment"
23
23
 
24
+ email = `git config --get user.email`.chomp
25
+ throw "[DeployTracker] Please set your email with...\n\t`git config --global user.email YOUR_EMAIL_ADDRESS`." if email.size==0
24
26
  github_username = `git config --get github.user`.chomp
25
27
  throw "[DeployTracker] Please set your github username with...\n\t`git config --global github.user YOUR_GITHUB_USERNAME`." if github_username.size==0
26
28
 
27
- data = "deploy[github_username]=#{github_username}&deploy[environment]=#{rails_env}&deploy[revision]=#{current_revision}&deploy[repository]=#{repository}&api_key=#{deploy_tracking_api_key}"
29
+ 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}"
28
30
 
29
31
  http = Net::HTTP.new('deploytracking.heroku.com', 443)
30
32
  http.use_ssl = true
@@ -1,3 +1,3 @@
1
1
  module DeployTracker
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deploy_tracker
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrew Nesbitt