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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3140039795ccd548621ff01b27d87e156432fdc3
4
- data.tar.gz: 3a379f581e1fe46d0ac49c2f352650f1e950e4d7
3
+ metadata.gz: dfdf1a4023fb94f5c04bb12063bf3188c0ea5d9d
4
+ data.tar.gz: 3de17b0f153a6c5e22c78405fa3b28fa987fbe98
5
5
  SHA512:
6
- metadata.gz: 832c461114f1226090115b91051b123f83aeffd34ac45e0b7cb24ddf6718582226b4c5437791ad879beb1af1fd60515ebafd9c1bdb62771a1a8b0119be75e1cf
7
- data.tar.gz: 37661bb1f86374c8dea0b2c3e78529c20d6ff7e75ed36d8313ff1348b1208bcd5337a05d96e52c5f4b1cf61b5114116746137caad4d41598bff222fdb4ca0634
6
+ metadata.gz: 8222f2d3e192cf021e0c479236d7e650dd9cc21c7404ec2af75bceb0a5a3e916fbadb2347188a1661cc760d4452bfc7e451a4d919c1d2037c1d95ef5011f7ad7
7
+ data.tar.gz: 93785a11033a0debc712a3da946a7f7c025a0940cc2f0fb3233f0040c3d5774c015255892d8ebadd6286c7f66bfd3cfda7b5712eed09bd9c7a27a88bf932ab15
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Common
3
- VERSION = '1.3202.0'
3
+ VERSION = '1.3213.0'
4
4
  end
5
5
  end
@@ -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.3202.0
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-02-23 00:00:00.000000000 Z
11
+ date: 2016-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semi_semantic