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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0c2745bcbfeed99065f77a6e37a5f3cea9350ab63276d0c26c959a20e2d7ee4
4
- data.tar.gz: 6bf00a16ff74612d5cb272350e9a27be10feff8388507e3e41787e792a229370
3
+ metadata.gz: c6d5bad764c7d3c8cd2d97410f10264ab9d44983ca5378ef808c3e9473b2dcf9
4
+ data.tar.gz: c69d93782957914e8c335673e1998504e0b92e56e1c770d6e6db35a11a0bc3d3
5
5
  SHA512:
6
- metadata.gz: 589a3f87971310f85c844671fb28dc354657899d74e578cafb8540f3ee9f43c79579fecd5851a78ab32b4ddd2c5f0696f61e490af7da603be012c7d02e234fd4
7
- data.tar.gz: 33e3f2ce0a817065bc76ed06f3f8ba1ee7c4a7a3a437c0c88c5fb4f438e747a2e78117e83b1c0a117796e0b8b794dd9a521d10dc14c44fca4834c5306c601446
6
+ metadata.gz: da8db6136f74baa5e292a8b45b335eeed8b876f679f4e83432a3839a9718796c834b72a227c522272f9acf16169155b5387cbfddb6e3f7610c82af8be01f1a78
7
+ data.tar.gz: 879002b832b5319889b7a1647cf961fda3e1c0f417f25de77e84e388e6c4fa457976c413be4e913791a212a71efbbfb6d8afeae690486fc21c0945981a33baa9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vseries (0.1.1)
4
+ vseries (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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
@@ -1,3 +1,3 @@
1
1
  module Vseries
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.1
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-06 00:00:00.000000000 Z
11
+ date: 2020-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler