versionaire 6.0.0 → 7.0.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: bfa5b237d69c1fa2dba5f0a2bb8b06114cd36cca57a053152b4f2e56cba15cfd
4
- data.tar.gz: a68fa46cee6a0b88372df70bda2c47b103ca2f04c154f0d20af6637853c1752a
3
+ metadata.gz: 1e015fa264c36d4e42f1300b90df8c253e5d55d3af04d0fa1ec49028d0073360
4
+ data.tar.gz: 72b461b147c85e4035fb284a0c9b37a4e8663d77fa774f3141344a44b1f16df8
5
5
  SHA512:
6
- metadata.gz: d5b71ce12b3981e2b1cc5fe7862a232bce7f709f36cdcb888ee34332f89b6d73d9af1e8ca007edbaef07dda01102a14b31f00c0984c661ca56a05e3b3a6698b6
7
- data.tar.gz: 48be6d961d260f49b5d42ef3cb6682fba1f0b24d39f3f9058196cd5831b2ae84e03dc648025f70525a98b86571728d2df7e0f5980ac617ba81ffa8dc9263cf39
6
+ metadata.gz: 566f172dacd7caf1cd90ec90863007ad66bb5b13247941dcf92757f219eeb7d158aacfed5ee59e91d6d4225a528eed7a33ee3f2a7a216d206a06794492f07f4e
7
+ data.tar.gz: 4731da593a494b3e326e2402dc9733cfaf48a6df3bf533c7f9aad0da13aa493a21d37214ccf79fc58cbcdff5da3acbc16b4cfaf111d70d00503e972ac8d188b8
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -52,7 +52,7 @@ Provides immutable, thread-safe, semantic versioning.
52
52
 
53
53
  ## Requirements
54
54
 
55
- 0. [Ruby 2.5.x](https://www.ruby-lang.org)
55
+ 1. [Ruby 2.6.x](https://www.ruby-lang.org).
56
56
 
57
57
  ## Setup
58
58
 
@@ -2,6 +2,8 @@
2
2
 
3
3
  # The gem namespace.
4
4
  module Versionaire
5
+ module_function
6
+
5
7
  # Conversion function (strict) for casting an object into a version.
6
8
  # :reek:TooManyStatements
7
9
  def Version object
@@ -16,8 +18,6 @@ module Versionaire
16
18
  end
17
19
  end
18
20
 
19
- module_function :Version
20
-
21
21
  # Aids with converting objects into valid versions.
22
22
  class Converter
23
23
  def initialize value
@@ -27,12 +27,14 @@ module Versionaire
27
27
  def from_string
28
28
  body = %(Use: "<major>.<minor>.<maintenance>" or "v<major>.<minor>.<maintenance>".)
29
29
  fail(Errors::Conversion, error_message(value, body)) unless Version.regex.match? value
30
+
30
31
  Version.new string_to_arguments
31
32
  end
32
33
 
33
34
  def from_array
34
35
  body = "Use: [], [<major>], [<major>, <minor>], or [<major>, <minor>, <maintenance>]."
35
36
  fail(Errors::Conversion, error_message(value, body)) unless (0..3).cover?(value.size)
37
+
36
38
  Version.new array_to_arguments
37
39
  end
38
40
 
@@ -41,6 +43,7 @@ module Versionaire
41
43
  "{major: <major>, minor: <minor>}, or " \
42
44
  "{major: <major>, minor: <minor>, maintenance: <maintenance>}."
43
45
  fail(Errors::Conversion, error_message(value, body)) unless required_keys?
46
+
44
47
  Version.new value
45
48
  end
46
49
 
@@ -68,5 +71,6 @@ module Versionaire
68
71
  "Invalid version conversion: #{object}. #{body}"
69
72
  end
70
73
  end
74
+
71
75
  private_constant :Converter
72
76
  end
@@ -12,7 +12,7 @@ module Versionaire
12
12
  end
13
13
 
14
14
  def self.version
15
- "6.0.0"
15
+ "7.0.0"
16
16
  end
17
17
 
18
18
  def self.version_label
@@ -30,6 +30,7 @@ module Versionaire
30
30
  @minor = minor
31
31
  @maintenance = maintenance
32
32
  validate
33
+ freeze
33
34
  end
34
35
 
35
36
  def + other
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: 6.0.0
4
+ version: 7.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -29,7 +29,7 @@ cert_chain:
29
29
  4Zrsxi713z6sndd9JBAm4G7mJiV93MsuCM5N4ZDY7XaxIhvctNSNhX/Yn8LLdtGI
30
30
  b4jw5t40FKyNUvLPPXYAvQALBtk=
31
31
  -----END CERTIFICATE-----
32
- date: 2018-07-01 00:00:00.000000000 Z
32
+ date: 2019-01-01 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: awesome_print
@@ -74,159 +74,145 @@ dependencies:
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0.6'
76
76
  - !ruby/object:Gem::Dependency
77
- name: codeclimate-test-reporter
78
- requirement: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '1.0'
83
- type: :development
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '1.0'
90
- - !ruby/object:Gem::Dependency
91
- name: gemsmith
77
+ name: guard-rspec
92
78
  requirement: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: '12.0'
82
+ version: '4.7'
97
83
  type: :development
98
84
  prerelease: false
99
85
  version_requirements: !ruby/object:Gem::Requirement
100
86
  requirements:
101
87
  - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: '12.0'
89
+ version: '4.7'
104
90
  - !ruby/object:Gem::Dependency
105
- name: git-cop
91
+ name: hirb
106
92
  requirement: !ruby/object:Gem::Requirement
107
93
  requirements:
108
94
  - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: '2.2'
96
+ version: '0.7'
111
97
  type: :development
112
98
  prerelease: false
113
99
  version_requirements: !ruby/object:Gem::Requirement
114
100
  requirements:
115
101
  - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: '2.2'
103
+ version: '0.7'
118
104
  - !ruby/object:Gem::Dependency
119
- name: guard-rspec
105
+ name: pry
120
106
  requirement: !ruby/object:Gem::Requirement
121
107
  requirements:
122
108
  - - "~>"
123
109
  - !ruby/object:Gem::Version
124
- version: '4.7'
110
+ version: '0.10'
125
111
  type: :development
126
112
  prerelease: false
127
113
  version_requirements: !ruby/object:Gem::Requirement
128
114
  requirements:
129
115
  - - "~>"
130
116
  - !ruby/object:Gem::Version
131
- version: '4.7'
117
+ version: '0.10'
132
118
  - !ruby/object:Gem::Dependency
133
- name: hirb
119
+ name: pry-byebug
134
120
  requirement: !ruby/object:Gem::Requirement
135
121
  requirements:
136
122
  - - "~>"
137
123
  - !ruby/object:Gem::Version
138
- version: '0.7'
124
+ version: '3.5'
139
125
  type: :development
140
126
  prerelease: false
141
127
  version_requirements: !ruby/object:Gem::Requirement
142
128
  requirements:
143
129
  - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: '0.7'
131
+ version: '3.5'
146
132
  - !ruby/object:Gem::Dependency
147
- name: pry
133
+ name: rake
148
134
  requirement: !ruby/object:Gem::Requirement
149
135
  requirements:
150
136
  - - "~>"
151
137
  - !ruby/object:Gem::Version
152
- version: '0.10'
138
+ version: '12.3'
153
139
  type: :development
154
140
  prerelease: false
155
141
  version_requirements: !ruby/object:Gem::Requirement
156
142
  requirements:
157
143
  - - "~>"
158
144
  - !ruby/object:Gem::Version
159
- version: '0.10'
145
+ version: '12.3'
160
146
  - !ruby/object:Gem::Dependency
161
- name: pry-byebug
147
+ name: reek
162
148
  requirement: !ruby/object:Gem::Requirement
163
149
  requirements:
164
150
  - - "~>"
165
151
  - !ruby/object:Gem::Version
166
- version: '3.5'
152
+ version: '5.0'
167
153
  type: :development
168
154
  prerelease: false
169
155
  version_requirements: !ruby/object:Gem::Requirement
170
156
  requirements:
171
157
  - - "~>"
172
158
  - !ruby/object:Gem::Version
173
- version: '3.5'
159
+ version: '5.0'
174
160
  - !ruby/object:Gem::Dependency
175
- name: rake
161
+ name: rspec
176
162
  requirement: !ruby/object:Gem::Requirement
177
163
  requirements:
178
164
  - - "~>"
179
165
  - !ruby/object:Gem::Version
180
- version: '12.3'
166
+ version: '3.8'
181
167
  type: :development
182
168
  prerelease: false
183
169
  version_requirements: !ruby/object:Gem::Requirement
184
170
  requirements:
185
171
  - - "~>"
186
172
  - !ruby/object:Gem::Version
187
- version: '12.3'
173
+ version: '3.8'
188
174
  - !ruby/object:Gem::Dependency
189
- name: reek
175
+ name: rubocop
190
176
  requirement: !ruby/object:Gem::Requirement
191
177
  requirements:
192
178
  - - "~>"
193
179
  - !ruby/object:Gem::Version
194
- version: '5.0'
180
+ version: '0.62'
195
181
  type: :development
196
182
  prerelease: false
197
183
  version_requirements: !ruby/object:Gem::Requirement
198
184
  requirements:
199
185
  - - "~>"
200
186
  - !ruby/object:Gem::Version
201
- version: '5.0'
187
+ version: '0.62'
202
188
  - !ruby/object:Gem::Dependency
203
- name: rspec
189
+ name: rubocop-rspec
204
190
  requirement: !ruby/object:Gem::Requirement
205
191
  requirements:
206
192
  - - "~>"
207
193
  - !ruby/object:Gem::Version
208
- version: '3.7'
194
+ version: '1.30'
209
195
  type: :development
210
196
  prerelease: false
211
197
  version_requirements: !ruby/object:Gem::Requirement
212
198
  requirements:
213
199
  - - "~>"
214
200
  - !ruby/object:Gem::Version
215
- version: '3.7'
201
+ version: '1.30'
216
202
  - !ruby/object:Gem::Dependency
217
- name: rubocop
203
+ name: simplecov
218
204
  requirement: !ruby/object:Gem::Requirement
219
205
  requirements:
220
206
  - - "~>"
221
207
  - !ruby/object:Gem::Version
222
- version: '0.57'
208
+ version: '0.13'
223
209
  type: :development
224
210
  prerelease: false
225
211
  version_requirements: !ruby/object:Gem::Requirement
226
212
  requirements:
227
213
  - - "~>"
228
214
  - !ruby/object:Gem::Version
229
- version: '0.57'
215
+ version: '0.13'
230
216
  - !ruby/object:Gem::Dependency
231
217
  name: wirb
232
218
  requirement: !ruby/object:Gem::Requirement
@@ -275,15 +261,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
275
261
  requirements:
276
262
  - - "~>"
277
263
  - !ruby/object:Gem::Version
278
- version: '2.5'
264
+ version: '2.6'
279
265
  required_rubygems_version: !ruby/object:Gem::Requirement
280
266
  requirements:
281
267
  - - ">="
282
268
  - !ruby/object:Gem::Version
283
269
  version: '0'
284
270
  requirements: []
285
- rubyforge_project:
286
- rubygems_version: 2.7.7
271
+ rubygems_version: 3.0.2
287
272
  signing_key:
288
273
  specification_version: 4
289
274
  summary: Provides immutable, thread-safe, semantic versioning.
metadata.gz.sig CHANGED
Binary file