versionaire 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +1 -1
- data/lib/versionaire/conversion.rb +1 -1
- data/lib/versionaire/identity.rb +1 -1
- data/lib/versionaire/version.rb +14 -10
- metadata +7 -7
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93020dfa7813c261d0e69bbe9c1db5dbb44b74b3
|
4
|
+
data.tar.gz: 81dfd1362804357f16dea54950d8a3f1fc773144
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e1b809584e97a056af2e0f8c49245efad7d23a3b99bd58120296f0fb4abd56548e7b6cde6ba85146e28474b35daf028e09abc72794a206d55bff882dfebfdaf
|
7
|
+
data.tar.gz: fbb4cc9cae63b973e829b5d2fba836be5653aedd8d0e658f74c4951c7967dcd93095d7848bc39e4084b125c52afda897340a5dc6cefc135dfd189f3b4c624bd9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -49,7 +49,7 @@ Provides immutable, thread-safe, semantic versioning.
|
|
49
49
|
|
50
50
|
# Screencasts
|
51
51
|
|
52
|
-
[![asciicast](https://asciinema.org/a/
|
52
|
+
[![asciicast](https://asciinema.org/a/40455.png)](https://asciinema.org/a/40455)
|
53
53
|
|
54
54
|
# Requirements
|
55
55
|
|
data/lib/versionaire/identity.rb
CHANGED
data/lib/versionaire/version.rb
CHANGED
@@ -8,19 +8,23 @@ module Versionaire
|
|
8
8
|
attr_reader :major, :minor, :maintenance
|
9
9
|
|
10
10
|
def self.keys
|
11
|
-
%i
|
11
|
+
%i[major minor maintenance]
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.delimiter
|
15
|
+
"."
|
12
16
|
end
|
13
17
|
|
14
18
|
def self.string_format
|
15
19
|
/
|
16
|
-
\A
|
17
|
-
v?
|
18
|
-
\d{1,}
|
19
|
-
|
20
|
-
\d{1,}
|
21
|
-
|
22
|
-
\d{1,}
|
23
|
-
\z
|
20
|
+
\A # Start of string.
|
21
|
+
v? # Optional prefix.
|
22
|
+
\d{1,} # Major version.
|
23
|
+
#{delimiter} # Delimiter.
|
24
|
+
\d{1,} # Minor version.
|
25
|
+
#{delimiter} # Delimiter.
|
26
|
+
\d{1,} # Maintenance version.
|
27
|
+
\z # End of string.
|
24
28
|
/x
|
25
29
|
end
|
26
30
|
|
@@ -61,7 +65,7 @@ module Versionaire
|
|
61
65
|
end
|
62
66
|
|
63
67
|
def to_s
|
64
|
-
"#{major}
|
68
|
+
"#{major}#{self.class.delimiter}#{minor}#{self.class.delimiter}#{maintenance}"
|
65
69
|
end
|
66
70
|
alias to_str to_s
|
67
71
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: versionaire
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
aSif+qBc6oHD7EQWPF5cZkzkIURuwNwPBngZGxIKaMAgRhjGFXzUMAaq++r59cS9
|
31
31
|
xTfQ4k6fglKEgpnLAXiKdo2c8Ym+X4rIKFfedQ==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2016-
|
33
|
+
date: 2016-05-11 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: bundler
|
@@ -38,14 +38,14 @@ dependencies:
|
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '1.
|
41
|
+
version: '1.12'
|
42
42
|
type: :development
|
43
43
|
prerelease: false
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '1.
|
48
|
+
version: '1.12'
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: rake
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
@@ -290,14 +290,14 @@ dependencies:
|
|
290
290
|
requirements:
|
291
291
|
- - "~>"
|
292
292
|
- !ruby/object:Gem::Version
|
293
|
-
version: '0.
|
293
|
+
version: '0.40'
|
294
294
|
type: :development
|
295
295
|
prerelease: false
|
296
296
|
version_requirements: !ruby/object:Gem::Requirement
|
297
297
|
requirements:
|
298
298
|
- - "~>"
|
299
299
|
- !ruby/object:Gem::Version
|
300
|
-
version: '0.
|
300
|
+
version: '0.40'
|
301
301
|
- !ruby/object:Gem::Dependency
|
302
302
|
name: codeclimate-test-reporter
|
303
303
|
requirement: !ruby/object:Gem::Requirement
|
@@ -354,7 +354,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
354
354
|
version: '0'
|
355
355
|
requirements: []
|
356
356
|
rubyforge_project:
|
357
|
-
rubygems_version: 2.6.
|
357
|
+
rubygems_version: 2.6.4
|
358
358
|
signing_key:
|
359
359
|
specification_version: 4
|
360
360
|
summary: Provides immutable, thread-safe, semantic versioning.
|
metadata.gz.sig
CHANGED
Binary file
|