clc-promote 0.4.0.dev.2 → 0.4.0.dev.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/promote/git_repo.rb +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: affc397344666cece47f225795d14f6141694871
|
4
|
+
data.tar.gz: 12c97dabe9f9f4b6e7557e4735e6aa02305c2370
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f56722722623bda5e1af7854ec06ca913a79882043984c3bb704ffc450e1a2a5117367e092bd10b7f15b4eeb6843721dd3070e6d1932a501e8aad3d2def5214
|
7
|
+
data.tar.gz: a0567eaa3f4215dd431296cac8fc98e1e4750d057a9218b1f19abf3788966cba89f5b9ad82867092864332becef2fbf988df3476013e780f9cea3e592f78ec17
|
data/lib/promote/git_repo.rb
CHANGED
@@ -17,7 +17,13 @@ module Promote
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def current_tag
|
20
|
-
@current_tag
|
20
|
+
if @current_tag.nil?
|
21
|
+
@current_tag = git.tags.select { |t| t.name[/^[0-9\.]+/] }[-1]
|
22
|
+
if @current_tag.nil?
|
23
|
+
@current_tag = Git::Object.new(git, '0.1.0', 'tag', true)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
@current_tag
|
21
27
|
end
|
22
28
|
|
23
29
|
def sha1
|