capistrano-gitinfos 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/gitinfos/version.rb +1 -1
- data/lib/capistrano/tasks/gitinfos.rake +1 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c1b07a606674a26fe3b3826122f8442881689f9
|
4
|
+
data.tar.gz: 7f3d38b58f1935035de7564ae5658cff850ec1ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36f5aafbe5caeca5e2072a9745b9993f84ebedb7e0c96d328431e6caaa947b24399c5d7f314771840f787e51ef9bc2526381a54d73b97a0dc7c90b2668afdaca
|
7
|
+
data.tar.gz: 64f91a1d1d6b9ff9cb32dc5eba50ecfea36bd7f84d12f8ae5f9bbc546be7aedd55aca29a57a147ec72ea49899423ed39bbf60cb83c8d897102f13f1a92f19678
|
@@ -2,13 +2,7 @@ def getGitInfos(commit)
|
|
2
2
|
rawCommitDate = capture(:git, "log -1 --pretty=tformat:'{%ci}' --no-color --date=local #{commit}").slice(/\{(.+)\}/,1).sub(/\s/, 'T').sub(/\s/, '')
|
3
3
|
abbrevCommit = capture(:git, "rev-list --max-count=1 --abbrev-commit #{commit}")
|
4
4
|
fullCommit = capture(:git, "rev-list --max-count=1 --no-abbrev-commit #{commit}")
|
5
|
-
|
6
|
-
version = capture(:git, "describe --tag #{commit}")
|
7
|
-
rescue SSHKit::Runner::ExecuteError => e
|
8
|
-
puts 'No tag in the Git repository'
|
9
|
-
version = abbrevCommit
|
10
|
-
end
|
11
|
-
|
5
|
+
version = capture(:git, "describe --tag --always #{commit}")
|
12
6
|
if version.empty?
|
13
7
|
version = abbrevCommit
|
14
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-gitinfos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Sanquer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
177
|
version: '0'
|
178
178
|
requirements: []
|
179
179
|
rubyforge_project:
|
180
|
-
rubygems_version: 2.
|
180
|
+
rubygems_version: 2.5.1
|
181
181
|
signing_key:
|
182
182
|
specification_version: 4
|
183
183
|
summary: Fetch git commit informations when deploying with Capistrano 3.
|