naturalsorter 3.0.24 → 3.0.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/naturalsorter/version.rb +1 -1
- data/lib/version_tag_recognizer.rb +12 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64f9e0f448ccaad8213ca33662905db43571a2056828a249921d155345757708
|
4
|
+
data.tar.gz: '0086cc8790c43e94cae90191898d0aca9ead6210923f2c1522df103ef6bee4e0'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41a05b255453f5ea3a4cef24375af6c03a6799a006629b1f18615371c7ab6366c352d0dce639daef65812a293e01ad1a583db5096fc1a1ff0c97f670d490bebc
|
7
|
+
data.tar.gz: 16f45ea622801d0b38c11138d2b4987eba44260991524593d472cbe72c42335054f5c60b6050d2d21e7493611f3683a58915e8a4f5cb434d1cc4082fb544c94f
|
@@ -110,11 +110,11 @@ class VersionTagRecognizer
|
|
110
110
|
|
111
111
|
|
112
112
|
def self.stability_tag_for( version )
|
113
|
-
if version.match(/@.*$/)
|
113
|
+
if version.to_s.match(/@.*$/)
|
114
114
|
spliti = version.split("@")
|
115
115
|
return spliti[1]
|
116
116
|
else
|
117
|
-
return A_STABILITY_DEV if version.match(/\Adev-/i) || version.match(/-dev\z/i)
|
117
|
+
return A_STABILITY_DEV if version.to_s.match(/\Adev-/i) || version.to_s.match(/-dev\z/i)
|
118
118
|
|
119
119
|
if self.stable? version
|
120
120
|
return A_STABILITY_STABLE
|
@@ -159,44 +159,44 @@ class VersionTagRecognizer
|
|
159
159
|
end
|
160
160
|
|
161
161
|
def self.patch? value
|
162
|
-
value.match(/.*patch.*/i)
|
162
|
+
value.to_s.match(/.*patch.*/i)
|
163
163
|
end
|
164
164
|
|
165
165
|
def self.alpha? value
|
166
166
|
return false if self.beta? value
|
167
|
-
value.match(/.*alpha.*/i) or value.match(/.+a.*/i)
|
167
|
+
value.to_s.match(/.*alpha.*/i) or value.to_s.match(/.+a.*/i)
|
168
168
|
end
|
169
169
|
|
170
170
|
def self.beta? value
|
171
|
-
value.match(/.*beta.*/i) or value.match(/.+b.*/i)
|
171
|
+
value.to_s.match(/.*beta.*/i) or value.to_s.match(/.+b.*/i)
|
172
172
|
end
|
173
173
|
|
174
174
|
def self.dev? value
|
175
|
-
value.match(/.*dev.*/i)
|
175
|
+
value.to_s.match(/.*dev.*/i)
|
176
176
|
end
|
177
177
|
|
178
178
|
def self.rc? value
|
179
|
-
value.match(/.*rc.*/i) || value.match(/.*cr.*/i)
|
179
|
+
value.to_s.match(/.*rc.*/i) || value.to_s.match(/.*cr.*/i)
|
180
180
|
end
|
181
181
|
|
182
182
|
def self.snapshot? value
|
183
|
-
value.match(/.+SNAPSHOT.*/i)
|
183
|
+
value.to_s.match(/.+SNAPSHOT.*/i)
|
184
184
|
end
|
185
185
|
|
186
186
|
def self.build? value
|
187
|
-
value.match(/.+build.*/i)
|
187
|
+
value.to_s.match(/.+build.*/i)
|
188
188
|
end
|
189
189
|
|
190
190
|
def self.pre? value
|
191
|
-
value.match(/.*pre.*$/i)
|
191
|
+
value.to_s.match(/.*pre.*$/i)
|
192
192
|
end
|
193
193
|
|
194
194
|
def self.jbossorg? value
|
195
|
-
value.match(/.*jbossorg.*$/i)
|
195
|
+
value.to_s.match(/.*jbossorg.*$/i)
|
196
196
|
end
|
197
197
|
|
198
198
|
def self.preview? value
|
199
|
-
value.match(/-preview\d+-/i) || value.match(/-preview-/i)
|
199
|
+
value.to_s.match(/-preview\d+-/i) || value.to_s.match(/-preview-/i)
|
200
200
|
end
|
201
201
|
|
202
202
|
end
|