semver2 3.4.1 → 3.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/.semver +1 -1
  3. data/lib/xsemver.rb +1 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f248590a7f6575c4c28a8547f98b8548fcd9a019
4
- data.tar.gz: 2b483383617d749c3945e1de18bc0dac15000ae5
3
+ metadata.gz: eb00a7f4c9973549fd506d9dabe049be736276f7
4
+ data.tar.gz: 5a54d9edfe9886d9c9b13641bab805bb47cede5a
5
5
  SHA512:
6
- metadata.gz: 907e9bdc75037edfb8e83a0910bea4ce75099cec451ff4a0dc8c61d891ab0c4490daf148b223c49db577fa6276d36651ad3d3931e80e5bbf1060262f4ca9b157
7
- data.tar.gz: 142607de6ab36a3cd029bd96676838bb67cc7aad144dfd09924c91c0753ebed6be81c6e6f5419190ff4d18949351459c087f4092ebef1f5be235129439573e73
6
+ metadata.gz: b003bb7bbbf66a4c9acb32768185bfc80296a5f6278e5694f3091633744c7e2f70c7e1e169c52009f3a272a19aeb0f23dac8dad8517d1446ea0a602857053bf0
7
+ data.tar.gz: adcd5f2de765496353e613397db3231a3ecc723a8810bd09620cbf411ddff3b5e717362963ffabbfd7afed9db8b15b67c94e5bdffaccbb22150d6c86d7871018
data/.semver CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  :major: 3
3
3
  :minor: 4
4
- :patch: 1
4
+ :patch: 2
5
5
  :special: ''
6
6
  :metadata: ''
@@ -111,6 +111,7 @@ module XSemVer
111
111
 
112
112
  # Convert all the format characters to named capture groups
113
113
  regex_str = regex_str.
114
+ gsub(/^v/, 'v?').
114
115
  gsub('%M', '(?<major>\d+)').
115
116
  gsub('%m', '(?<minor>\d+)').
116
117
  gsub('%p', '(?<patch>\d+)').
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semver2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.1
4
+ version: 3.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Lazzarino
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-01-06 00:00:00.000000000 Z
13
+ date: 2015-03-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake