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 +4 -4
- data/lib/qb/package/version.rb +7 -2
- data/lib/qb/version.rb +1 -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: 278f4d439b1c8ed74ea0316095723d51e2000449
|
4
|
+
data.tar.gz: '08c472b627d62061061b14da42ef7db029e5a975'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f896170a886b41e19be31d1cf8e0b3e5de895781f825d90dc78b0f3d303fd42b6eb89b9207f0d5ec536a1e5946f0345f0eac6bb1c98d197ea88f51e14558780a
|
7
|
+
data.tar.gz: ec44ca9cf50006219d52060a8c690cd4513647a5423851a050ba5a5998af95bfab944e5e6b6681e00322a2852afecd7762cdb82a7c10ab012b1b10252a7c1e68
|
data/lib/qb/package/version.rb
CHANGED
@@ -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 = [
|
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