naturalsorter 0.5.7 → 0.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +1 -1
- data/lib/naturalsorter/version.rb +1 -1
- data/lib/release_recognizer.rb +2 -1
- data/spec/release_recognizer_spec.rb +9 -1
- metadata +2 -2
data/README.markdown
CHANGED
data/lib/release_recognizer.rb
CHANGED
|
@@ -9,7 +9,8 @@ class ReleaseRecognizer
|
|
|
9
9
|
!value.match(/.*alpha.*/i) and !value.match(/.*beta.*/i) and
|
|
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
|
-
!value.match(/.*rc.*/i) and !value.match(/.+SEC.*/i)
|
|
12
|
+
!value.match(/.*rc.*/i) and !value.match(/.+SEC.*/i) and
|
|
13
|
+
!value.match(/.+SNAPSHOT.*/i)
|
|
13
14
|
end
|
|
14
15
|
|
|
15
16
|
end
|
|
@@ -104,6 +104,14 @@ describe ReleaseRecognizer do
|
|
|
104
104
|
|
|
105
105
|
it "release? is false" do
|
|
106
106
|
ReleaseRecognizer.release?("1.1.3A").should be_false
|
|
107
|
-
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
it "release? is false" do
|
|
110
|
+
ReleaseRecognizer.release?("1.SNAPSHOT").should be_false
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
it "release? is false" do
|
|
114
|
+
ReleaseRecognizer.release?("1.snapshot").should be_false
|
|
115
|
+
end
|
|
108
116
|
|
|
109
117
|
end
|