bosh_common 1.3202.0 → 1.3213.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/common/version.rb +1 -1
- data/lib/common/version/stemcell_version.rb +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfdf1a4023fb94f5c04bb12063bf3188c0ea5d9d
|
4
|
+
data.tar.gz: 3de17b0f153a6c5e22c78405fa3b28fa987fbe98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8222f2d3e192cf021e0c479236d7e650dd9cc21c7404ec2af75bceb0a5a3e916fbadb2347188a1661cc760d4452bfc7e451a4d919c1d2037c1d95ef5011f7ad7
|
7
|
+
data.tar.gz: 93785a11033a0debc712a3da946a7f7c025a0940cc2f0fb3233f0040c3d5774c015255892d8ebadd6286c7f66bfd3cfda7b5712eed09bd9c7a27a88bf932ab15
|
data/lib/common/version.rb
CHANGED
@@ -14,6 +14,17 @@ module Bosh::Common
|
|
14
14
|
self.new(SemiSemantic::Version.parse(version))
|
15
15
|
end
|
16
16
|
|
17
|
+
def self.match(str_a, str_b)
|
18
|
+
version_a, version_b = parse(str_a), parse(str_b)
|
19
|
+
version_a.matches(version_b)
|
20
|
+
end
|
21
|
+
|
22
|
+
def matches(other)
|
23
|
+
release_self = self.version.release
|
24
|
+
release_other = other.version.release
|
25
|
+
release_self.components[0] == release_other.components[0]
|
26
|
+
end
|
27
|
+
|
17
28
|
private
|
18
29
|
|
19
30
|
def default_post_release_segment
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh_common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3213.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VMware
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semi_semantic
|