alpha_omega 1.3.43 → 1.3.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.43
1
+ 1.3.44
@@ -5,14 +5,14 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
5
5
  namespace :notify do
6
6
  task :default do
7
7
  if $deploy["notify"]
8
- email if $deploy["notify"].member? "email"
9
-
10
8
  unless skip_notifications
11
9
  airbrake if $deploy["notify"].member? "airbrake"
12
10
  newrelic if $deploy["notify"].member? "newrelic"
13
11
  campfire if $deploy["notify"].member? "campfire"
14
12
  flowdock if $deploy["notify"].member? "flowdock"
15
13
  end
14
+
15
+ email if $deploy["notify"].member? "email"
16
16
  end
17
17
  end
18
18
 
@@ -86,11 +86,15 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
86
86
  %x(git show-ref | grep '^#{rev} refs/tags/' | cut -d/ -f3).chomp
87
87
  end
88
88
 
89
+ def public_git_url url
90
+ url.sub("git@github.com:","https://github.com/").sub(/\.git$/,'')
91
+ end
92
+
89
93
  def notify_message
90
94
  if dna["app_env"] == "production"
91
- summary = "#{repository.sub("git@github.com:","https://github.com/")}/compare/#{map_sha_tag cmp_previous_revision}...#{map_sha_tag cmp_active_revision}"
95
+ summary = "#{public_git_url repository}/compare/#{map_sha_tag cmp_previous_revision}...#{map_sha_tag cmp_current_revision}"
92
96
  else
93
- summary = "#{repository.sub("git@github.com:","https://github.com/")}/commit/#{cmp_active_revision}"
97
+ summary = "#{public_git_url repository)}/commit/#{cmp_current_revision}"
94
98
  end
95
99
 
96
100
  "#{ENV['_AO_DEPLOYER']} deployed #{application} to #{ENV['_AO_ARGS']} (#{dna['app_env']}): #{ENV['FLAGS_tag']}" +
@@ -164,11 +164,11 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
164
164
 
165
165
  _cset(:rollback_revision) { capture("cat #{rollback_release}/REVISION 2>&- || true").strip }
166
166
  _cset(:previous_revision) { capture("cat #{previous_release}/REVISION 2>&- || true").strip }
167
- _cset(:cmp_previous_revision) { capture("cat #{previous_release}/REVISION 2>&- || true").strip }
167
+ _cset(:cmp_previous_revision) { capture("cat #{previous_path}/REVISION 2>&- || true").strip }
168
168
  _cset(:current_revision) { capture("cat #{current_release}/REVISION 2>&- || true").strip }
169
+ _cset(:cmp_current_revision) { capture("cat #{current_path}/REVISION 2>&- || true").strip }
169
170
  _cset(:next_revision) { capture("cat #{next_release}/REVISION 2>&- || true").strip }
170
171
  _cset(:active_revision) { capture("cat #{active_release}/REVISION 2>&- || true").strip }
171
- _cset(:cmp_active_revision) { capture("cat #{active_release}/REVISION 2>&- || true").strip }
172
172
  _cset(:compare_revision) { capture("cat #{compare_release}/REVISION 2>&- || true").strip }
173
173
  _cset(:migrate_revision) { capture("cat #{migrate_release}/REVISION 2>&- || true").strip }
174
174
  _cset(:deploy_revision) { capture("cat #{deploy_release}/REVISION 2>&- || true").strip }
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: 77
4
+ hash: 67
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 43
10
- version: 1.3.43
9
+ - 44
10
+ version: 1.3.44
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem