qb 0.1.75 → 0.1.76

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: '0685cd00c38bd874ded2add2e7187221f8931501'
4
- data.tar.gz: 2432a968c863c72a0d25322a73dbd85f071ad089
3
+ metadata.gz: 278f4d439b1c8ed74ea0316095723d51e2000449
4
+ data.tar.gz: '08c472b627d62061061b14da42ef7db029e5a975'
5
5
  SHA512:
6
- metadata.gz: 8a5fb626dd25a699d3ce3b4b07cab4625883e1b492386d4e396bc22f5162228a5c7e5696494536d0946837a51a526aef3b6b82a94936ff6bb36e099d7440558c
7
- data.tar.gz: 4162536a610312e7d07159bd06d73cdb4c544403adb348efd7f20f7b1726ea07ca5e748623b43663d166c8df5cce3f917e369055dacdd0ea465e86f0895f0cbc
6
+ metadata.gz: f896170a886b41e19be31d1cf8e0b3e5de895781f825d90dc78b0f3d303fd42b6eb89b9207f0d5ec536a1e5946f0345f0eac6bb1c98d197ea88f51e14558780a
7
+ data.tar.gz: ec44ca9cf50006219d52060a8c690cd4513647a5423851a050ba5a5998af95bfab944e5e6b6681e00322a2852afecd7762cdb82a7c10ab012b1b10252a7c1e68
@@ -268,10 +268,15 @@ module QB
268
268
  #
269
269
  # @return [QB::Package::Version]
270
270
  #
271
- def build_version branch: nil, ref: nil, time: nil
271
+ def build_version branch: nil, ref: nil, time: nil, dirty: nil
272
272
  time = self.class.to_time_segment(time) unless time.nil?
273
273
 
274
- segments = [branch, ref, time].reject &:nil?
274
+ segments = [
275
+ branch,
276
+ ref,
277
+ ('dirty' if dirty),
278
+ time,
279
+ ].reject &:nil?
275
280
 
276
281
  if segments.empty?
277
282
  raise ArgumentError,
data/lib/qb/version.rb CHANGED
@@ -4,7 +4,7 @@ module QB
4
4
 
5
5
  GEM_NAME = 'qb'
6
6
 
7
- VERSION = "0.1.75"
7
+ VERSION = "0.1.76"
8
8
 
9
9
  MIN_ANSIBLE_VERSION = Gem::Version.new '2.1.2'
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.75
4
+ version: 0.1.76
5
5
  platform: ruby
6
6
  authors:
7
7
  - nrser