kstrano 0.0.38 → 0.0.39
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/lib/kstrano.rb +10 -7
- metadata +2 -2
data/lib/kstrano.rb
CHANGED
|
@@ -53,15 +53,18 @@ namespace :kuma do
|
|
|
53
53
|
|
|
54
54
|
desc "Show log of what changed compared to the deployed version"
|
|
55
55
|
task :changelog do
|
|
56
|
-
Kumastrano
|
|
57
|
-
|
|
56
|
+
Kumastrano.say "nb releases #{releases.length}"
|
|
57
|
+
if releases.length > 0
|
|
58
|
+
Kumastrano::GitHelper.fetch
|
|
59
|
+
changelog = `git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --no-merges #{current_revision}..#{real_revision}`
|
|
58
60
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
if current_revision == real_revision && changelog.strip.empty?
|
|
62
|
+
changelog = "No changes found!"
|
|
63
|
+
end
|
|
62
64
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
Kumastrano.say "Changelog of what will be deployed to #{domain}"
|
|
66
|
+
Kumastrano.say changelog, ''
|
|
67
|
+
end
|
|
65
68
|
end
|
|
66
69
|
|
|
67
70
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kstrano
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.39
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-02-
|
|
12
|
+
date: 2013-02-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: capifony
|