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 CHANGED
@@ -76,7 +76,7 @@ because '~>1.1' doesn't fit anymore the newest version.
76
76
 
77
77
  You should add this line to your Gemfile
78
78
 
79
- `gem 'naturalsorter', '0.5.8'`
79
+ `gem 'naturalsorter', '0.5.9'`
80
80
 
81
81
  and run this command in your app root directory
82
82
 
@@ -1,3 +1,3 @@
1
1
  module Naturalsorter
2
- VERSION = "0.5.8"
2
+ VERSION = "0.5.9"
3
3
  end
@@ -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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 8
9
- version: 0.5.8
8
+ - 9
9
+ version: 0.5.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - reiz