naturalsorter 0.5.8 → 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -1
- data/lib/naturalsorter/version.rb +1 -1
- data/lib/release_recognizer.rb +1 -1
- data/spec/release_recognizer_spec.rb +8 -0
- metadata +2 -2
data/README.markdown
CHANGED
data/lib/release_recognizer.rb
CHANGED
@@ -10,7 +10,7 @@ class ReleaseRecognizer
|
|
10
10
|
!value.match(/.+a.*/i) and !value.match(/.+b.*/i) and
|
11
11
|
!value.match(/.*dev.*/i) and !value.match(/.*pre.*/i) and
|
12
12
|
!value.match(/.*rc.*/i) and !value.match(/.+SEC.*/i) and
|
13
|
-
!value.match(/.+SNAPSHOT.*/i)
|
13
|
+
!value.match(/.+SNAPSHOT.*/i) and !value.match(/.+M.+/i)
|
14
14
|
end
|
15
15
|
|
16
16
|
end
|
@@ -114,4 +114,12 @@ describe ReleaseRecognizer do
|
|
114
114
|
ReleaseRecognizer.release?("1.snapshot").should be_false
|
115
115
|
end
|
116
116
|
|
117
|
+
it "release? is false" do
|
118
|
+
ReleaseRecognizer.release?("1.M1").should be_false
|
119
|
+
end
|
120
|
+
|
121
|
+
it "release? is false" do
|
122
|
+
ReleaseRecognizer.release?("2.0-m4").should be_false
|
123
|
+
end
|
124
|
+
|
117
125
|
end
|