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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f98e7ed286afbc8f36bc63f732a74de14c518bf
4
- data.tar.gz: d93d7017c56fc9e89c01e40b5b5cb325eb318bdb
3
+ metadata.gz: 93020dfa7813c261d0e69bbe9c1db5dbb44b74b3
4
+ data.tar.gz: 81dfd1362804357f16dea54950d8a3f1fc773144
5
5
  SHA512:
6
- metadata.gz: 194e775943432b6aea87d091ee276b06107f89b6139753decc86575569448100d6342f2c38a53f8870a46acad175893503133218405fd034a8905dc5e59d4a54
7
- data.tar.gz: 3689fcd9696f240039ed5b65eaece574e30be23806a322c525e086ab96c29970f610ebc73ae44cc4c8bc212d87a3c9de6b246c1dedc92b67202173aab77d1b38
6
+ metadata.gz: 6e1b809584e97a056af2e0f8c49245efad7d23a3b99bd58120296f0fb4abd56548e7b6cde6ba85146e28474b35daf028e09abc72794a206d55bff882dfebfdaf
7
+ data.tar.gz: fbb4cc9cae63b973e829b5d2fba836be5653aedd8d0e658f74c4951c7967dcd93095d7848bc39e4084b125c52afda897340a5dc6cefc135dfd189f3b4c624bd9
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/26561.png)](https://asciinema.org/a/40455)
52
+ [![asciicast](https://asciinema.org/a/40455.png)](https://asciinema.org/a/40455)
53
53
 
54
54
  # Requirements
55
55
 
@@ -56,7 +56,7 @@ module Versionaire
56
56
  end
57
57
 
58
58
  def array_to_arguments
59
- Version.arguments(*value.fill(0, value.size..2))
59
+ Version.arguments(*value.dup.fill(0, value.size..2))
60
60
  end
61
61
 
62
62
  def required_keys?
@@ -12,7 +12,7 @@ module Versionaire
12
12
  end
13
13
 
14
14
  def self.version
15
- "1.1.0"
15
+ "1.2.0"
16
16
  end
17
17
 
18
18
  def self.version_label
@@ -8,19 +8,23 @@ module Versionaire
8
8
  attr_reader :major, :minor, :maintenance
9
9
 
10
10
  def self.keys
11
- %i(major minor maintenance)
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 # Start of string.
17
- v? # Optional prefix.
18
- \d{1,} # Major version.
19
- \. # Delimiter.
20
- \d{1,} # Minor version.
21
- \. # Delimiter.
22
- \d{1,} # Maintenance version.
23
- \z # End of string.
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}.#{minor}.#{maintenance}"
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.1.0
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-04-03 00:00:00.000000000 Z
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.11'
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.11'
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.37'
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.37'
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.2
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