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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/promote/git_repo.rb +7 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 858f93f5955bbfd889e6856666ae739e5fe83d19
4
- data.tar.gz: 6204cb4ed661c3b3e1139e5964ffff6c040838b1
3
+ metadata.gz: affc397344666cece47f225795d14f6141694871
4
+ data.tar.gz: 12c97dabe9f9f4b6e7557e4735e6aa02305c2370
5
5
  SHA512:
6
- metadata.gz: b3688e3a727a3131b6b383f6a32c479178422eb3ddb3063fce058df092685a8b8ac964d073d9b6edff7962a24a45fc2f95f466422a3278967908c22491f6001b
7
- data.tar.gz: 4aa3450016b5e70303cf1d7a2ace8abb9cf2dc7d190bef881a2158f17c7ab97adfa22047c566583b2f5c52fe68ce5c9b127be64c06f3e5f638b41d53620455d2
6
+ metadata.gz: 2f56722722623bda5e1af7854ec06ca913a79882043984c3bb704ffc450e1a2a5117367e092bd10b7f15b4eeb6843721dd3070e6d1932a501e8aad3d2def5214
7
+ data.tar.gz: a0567eaa3f4215dd431296cac8fc98e1e4750d057a9218b1f19abf3788966cba89f5b9ad82867092864332becef2fbf988df3476013e780f9cea3e592f78ec17
@@ -17,7 +17,13 @@ module Promote
17
17
  end
18
18
 
19
19
  def current_tag
20
- @current_tag ||= git.tags.select { |t| t.name[/^[0-9\.]+/] }[-1] || '0.1.0'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clc-promote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.dev.2
4
+ version: 0.4.0.dev.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud