Permalink
Browse files

adding support for milestones

  • Loading branch information...
1 parent 60a2c48 commit 1d77efed3df8f9f7893ec03af271b8ca3a950224 @reiz reiz committed Oct 4, 2012
Showing with 11 additions and 3 deletions.
  1. +1 −1 README.markdown
  2. +1 −1 lib/naturalsorter/version.rb
  3. +1 −1 lib/release_recognizer.rb
  4. +8 −0 spec/release_recognizer_spec.rb
View
@@ -76,7 +76,7 @@ because '~>1.1' doesn't fit anymore the newest version.
You should add this line to your Gemfile
-`gem 'naturalsorter', '0.5.8'`
+`gem 'naturalsorter', '0.5.9'`
and run this command in your app root directory
@@ -1,3 +1,3 @@
module Naturalsorter
- VERSION = "0.5.8"
+ VERSION = "0.5.9"
end
@@ -10,7 +10,7 @@ def self.release?(value)
!value.match(/.+a.*/i) and !value.match(/.+b.*/i) and
!value.match(/.*dev.*/i) and !value.match(/.*pre.*/i) and
!value.match(/.*rc.*/i) and !value.match(/.+SEC.*/i) and
- !value.match(/.+SNAPSHOT.*/i)
+ !value.match(/.+SNAPSHOT.*/i) and !value.match(/.+M.+/i)
end
end
@@ -114,4 +114,12 @@
ReleaseRecognizer.release?("1.snapshot").should be_false
end
+ it "release? is false" do
+ ReleaseRecognizer.release?("1.M1").should be_false
+ end
+
+ it "release? is false" do
+ ReleaseRecognizer.release?("2.0-m4").should be_false
+ end
+
end

0 comments on commit 1d77efe

Please sign in to comment.