vseries 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -0
- data/lib/vseries/semantic_version.rb +10 -0
- data/lib/vseries/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6d5bad764c7d3c8cd2d97410f10264ab9d44983ca5378ef808c3e9473b2dcf9
|
4
|
+
data.tar.gz: c69d93782957914e8c335673e1998504e0b92e56e1c770d6e6db35a11a0bc3d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da8db6136f74baa5e292a8b45b335eeed8b876f679f4e83432a3839a9718796c834b72a227c522272f9acf16169155b5387cbfddb6e3f7610c82af8be01f1a78
|
7
|
+
data.tar.gz: 879002b832b5319889b7a1647cf961fda3e1c0f417f25de77e84e388e6c4fa457976c413be4e913791a212a71efbbfb6d8afeae690486fc21c0945981a33baa9
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -47,6 +47,9 @@ version_2.up(:minor).to_s # => '1.2.0-rc.1'
|
|
47
47
|
version_2.up(:major).to_s # => '2.0.0-rc.1'
|
48
48
|
version_2.up(:pre_release).to_s # => '1.1.2-rc.3'
|
49
49
|
|
50
|
+
version_2.release_version.to_s #=> 1.1.2
|
51
|
+
version_1.with_pre_release('rc').to_s #=> 1.1.2-rc.1
|
52
|
+
|
50
53
|
```
|
51
54
|
|
52
55
|
## Development
|
@@ -20,6 +20,10 @@ module Vseries
|
|
20
20
|
instance
|
21
21
|
end
|
22
22
|
|
23
|
+
def self.empty
|
24
|
+
new('')
|
25
|
+
end
|
26
|
+
|
23
27
|
def initialize(pre_release, initial_number: DEFAULT_PRE_RELEASE_INITIAL_NUMBER)
|
24
28
|
name, number = pre_release.match(REGEXP)&.captures
|
25
29
|
|
@@ -110,6 +114,12 @@ module Vseries
|
|
110
114
|
new_version
|
111
115
|
end
|
112
116
|
|
117
|
+
def release_version
|
118
|
+
new_version = self.dup
|
119
|
+
new_version.pre_release = PreRelease.empty
|
120
|
+
new_version
|
121
|
+
end
|
122
|
+
|
113
123
|
def pre_release?
|
114
124
|
pre_release.present?
|
115
125
|
end
|
data/lib/vseries/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vseries
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Atkinson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|