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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 952ab729e7e36bd2c39487de6a6f16e38f46543c
4
- data.tar.gz: 202f22422483104aef4262bfe8fc6ccc3bef666c
3
+ metadata.gz: 8c1b07a606674a26fe3b3826122f8442881689f9
4
+ data.tar.gz: 7f3d38b58f1935035de7564ae5658cff850ec1ca
5
5
  SHA512:
6
- metadata.gz: c4a1c1a9f335a69cd9f95031c3ff5dbd93a840d60fd56bd31fb657ab6115ebf9c1c9ef1e0bdb1155c8fbd48487676c5bb6f237874193006957fe6ecc8865521e
7
- data.tar.gz: 2ef90a668c15410e5580c6ebfa9380be44f9a4d4035e88c279334efc5bde29906b9bc25b358b88d5822759b3a3cbd263a11d6bd553f16d4c2aa203b367b3a253
6
+ metadata.gz: 36f5aafbe5caeca5e2072a9745b9993f84ebedb7e0c96d328431e6caaa947b24399c5d7f314771840f787e51ef9bc2526381a54d73b97a0dc7c90b2668afdaca
7
+ data.tar.gz: 64f91a1d1d6b9ff9cb32dc5eba50ecfea36bd7f84d12f8ae5f9bbc546be7aedd55aca29a57a147ec72ea49899423ed39bbf60cb83c8d897102f13f1a92f19678
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Gitinfos
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
@@ -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
- begin
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.5
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: 2015-12-21 00:00:00.000000000 Z
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.4.5.1
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.