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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbe569276e185fc5cdc6baf92059c88772b15f511b9d4a06103cbc696c7e7d8f
4
- data.tar.gz: 819a0f43d6c7d0f211086f023523833b0a8e50c468ea7f23757d57631eb1dbc0
3
+ metadata.gz: 64f9e0f448ccaad8213ca33662905db43571a2056828a249921d155345757708
4
+ data.tar.gz: '0086cc8790c43e94cae90191898d0aca9ead6210923f2c1522df103ef6bee4e0'
5
5
  SHA512:
6
- metadata.gz: fb16130e9dd899f1100eb902bda58b0e47c19120593ec17f3c5b7f656677089f334653ecad88cbecc831dc64c9a9284596a37d09308b1e3b99162391402deb2b
7
- data.tar.gz: 7995777d57c560a268b79ee53a43330326a13267175925f30fea6c852f16ba6893a533788f4f4877e8531d115f67e2f5f68789ae786c59119461a6c52cade709
6
+ metadata.gz: 41a05b255453f5ea3a4cef24375af6c03a6799a006629b1f18615371c7ab6366c352d0dce639daef65812a293e01ad1a583db5096fc1a1ff0c97f670d490bebc
7
+ data.tar.gz: 16f45ea622801d0b38c11138d2b4987eba44260991524593d472cbe72c42335054f5c60b6050d2d21e7493611f3683a58915e8a4f5cb434d1cc4082fb544c94f
@@ -1,3 +1,3 @@
1
1
  module Naturalsorter
2
- VERSION = "3.0.24"
2
+ VERSION = "3.0.25"
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naturalsorter
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.24
4
+ version: 3.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - reiz