alpha_omega 1.3.47 → 1.3.48
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/alpha_omega/config/deploy_notify.rb +3 -6
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.48
|
@@ -83,7 +83,8 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def map_sha_tag rev
|
86
|
-
%x(git show-ref | grep '^#{rev} refs/tags/' | cut -d/ -f3).chomp
|
86
|
+
tag = %x(git show-ref | grep '^#{rev} refs/tags/' | cut -d/ -f3).chomp
|
87
|
+
tag.empty? ? rev : tag
|
87
88
|
end
|
88
89
|
|
89
90
|
def public_git_url url
|
@@ -91,11 +92,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
91
92
|
end
|
92
93
|
|
93
94
|
def notify_message
|
94
|
-
|
95
|
-
summary = "#{public_git_url repository}/compare/#{map_sha_tag cmp_previous_revision}...#{map_sha_tag cmp_current_revision}"
|
96
|
-
else
|
97
|
-
summary = "#{public_git_url repository}/commit/#{cmp_current_revision}"
|
98
|
-
end
|
95
|
+
summary = "#{public_git_url repository}/compare/#{map_sha_tag cmp_previous_revision}...#{map_sha_tag cmp_current_revision}"
|
99
96
|
|
100
97
|
"#{ENV['_AO_DEPLOYER']} deployed #{application} to #{ENV['_AO_ARGS']} (#{dna['app_env']}): #{ENV['FLAGS_tag']}" +
|
101
98
|
"\n\nSummary:\n\n" + summary +
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alpha_omega
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 123
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 48
|
10
|
+
version: 1.3.48
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Nghiem
|