crossroads_capistrano 1.3.60 → 1.3.61
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "crossroads_capistrano"
|
6
|
-
s.version = "1.3.
|
6
|
+
s.version = "1.3.61"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["Steve Kenworthy", "Ben Tillman", "Nathan Broadbent"]
|
9
9
|
s.email = ["it_dept@crossroads.org.hk"]
|
@@ -6,9 +6,9 @@ namespace :deploy do
|
|
6
6
|
branch_indent = " "*(i=10-branch.size;i<0 ? 0 : i) << branch.capitalize
|
7
7
|
current_is_deployed = current == latest
|
8
8
|
puts "\n * \033[0;32m== Showing revisions and diffs for [\033[1;32m#{application} #{stage}\033[0;32m]\033[0m\n\n"
|
9
|
-
puts "
|
10
|
-
puts "
|
11
|
-
puts "
|
9
|
+
puts " \033[1;33m#{branch_indent} Branch: \033[1;37m#{latest}\033[0m"
|
10
|
+
puts " \033[#{current == latest ? 1 : 0};33mDeployed Revision: \033[#{current == latest ? 1 : 0};37m#{current}\033[0m"
|
11
|
+
puts " \033[#{previous == latest ? 1 : 0};33mPrevious Revision: \033[#{previous == latest ? 1 : 0};37m#{previous}\033[0m\n\n"
|
12
12
|
|
13
13
|
# If deployed and master are the same, show the difference between the last 2 deployments.
|
14
14
|
base_label, new_label, base_rev, new_rev = latest != current ? \
|
@@ -19,9 +19,9 @@ namespace :deploy do
|
|
19
19
|
if (diff = `git log #{base_rev}..#{new_rev} --oneline`) != ""
|
20
20
|
# Colorize refs
|
21
21
|
diff.gsub!(/^([a-f0-9]+) /, "\033[1;37m\\1\033[0m: ")
|
22
|
-
diff = "
|
22
|
+
diff = " " << diff.gsub("\n", "\n ") << "\n"
|
23
23
|
# Indent commit messages nicely, max 80 chars per line, line has to end with space.
|
24
|
-
diff = diff.split("\n").map{|l|l.scan(/.{1,120}/).join("\n"<<" "*
|
24
|
+
diff = diff.split("\n").map{|l|l.scan(/.{1,120}/).join("\n"<<" "*19).gsub(/([^ ]*)\n {19}/m,"\n"<<" "*19<<"\\1")}.join("\n")
|
25
25
|
puts " * \033[0;32m== Difference between \033[1;32m#{base_label}\033[0;32m and \033[1;32m#{new_label}\033[0;32m:\033[0m\n\n"
|
26
26
|
puts diff
|
27
27
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crossroads_capistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 97
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 61
|
10
|
+
version: 1.3.61
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steve Kenworthy
|