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 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.7'`
79
+ `gem 'naturalsorter', '0.5.8'`
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.7"
2
+ VERSION = "0.5.8"
3
3
  end
@@ -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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 7
9
- version: 0.5.7
8
+ - 8
9
+ version: 0.5.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - reiz