naturalsorter 2.0.0 → 2.0.1
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/versioncmp.rb +9 -2
- data/spec/versioncmp_spec.rb +4 -0
- metadata +2 -2
data/README.markdown
CHANGED
data/lib/versioncmp.rb
CHANGED
@@ -133,11 +133,18 @@ class Versioncmp
|
|
133
133
|
|
134
134
|
def self.pre_process val
|
135
135
|
a = replace_x_dev val
|
136
|
-
replace_leading_v
|
137
|
-
|
136
|
+
replace_leading_v a
|
137
|
+
replace_99_does_not_exist a
|
138
|
+
VersionTagRecognizer.remove_minimum_stability a
|
138
139
|
a
|
139
140
|
end
|
140
141
|
|
142
|
+
def self.replace_99_does_not_exist val
|
143
|
+
if val.eql?("99.0-does-not-exist")
|
144
|
+
val.gsub!("99.0-does-not-exist", "0.0.0")
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
141
148
|
def self.replace_x_dev val
|
142
149
|
new_val = String.new(val)
|
143
150
|
if val.eql?("dev-master")
|
data/spec/versioncmp_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: naturalsorter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-03-
|
13
|
+
date: 2013-03-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|