naturalsorter 3.0.17 → 3.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/naturalsorter/version.rb +1 -1
- data/lib/versioncmp.rb +1 -1
- data/spec/naturalsorter/versioncmp_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00d43f59d162fae1a70fd22f3362d15c2425c62a
|
4
|
+
data.tar.gz: fc581607d0658b4f8bb5392e55a148804821b5aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8949a480245b8db9ea956ed9aec2c4668dcb2b50213d83e16f49d0028444899e08595a65df75f4f9d14dc4edef7df507fc3829ba7e54ae61bba5cde58518aca1
|
7
|
+
data.tar.gz: 89a45aa107e5afca1f9a019a42cc2ce5a2cbc763719837d518cdd228311c22a8c7c04f01c546b12509ef58e8de7f77e6e958258412445346abd37ad60cc86e75
|
data/lib/versioncmp.rb
CHANGED
@@ -23,6 +23,10 @@ describe Versioncmp do
|
|
23
23
|
expect( Versioncmp.compare("0.6-groovy-1.8-rc1", "0.6-groovy-1.8")).to eql(-1)
|
24
24
|
end
|
25
25
|
|
26
|
+
it "smaler" do
|
27
|
+
expect( Versioncmp.compare("0.5.25", "0.5.20170404")).to eql(-1)
|
28
|
+
end
|
29
|
+
|
26
30
|
it "bigger" do
|
27
31
|
expect( Versioncmp.compare("0.6-groovy-1.7", "0.6-groovy-1.7-rc1")).to eql(1)
|
28
32
|
end
|
@@ -79,6 +83,10 @@ describe Versioncmp do
|
|
79
83
|
expect( Versioncmp.compare("2.3", "2.0-beta-1")).to eql(1)
|
80
84
|
end
|
81
85
|
|
86
|
+
it "bigger" do
|
87
|
+
expect( Versioncmp.compare("0.5.20170404", "0.5.25")).to eql(1)
|
88
|
+
end
|
89
|
+
|
82
90
|
it "1.1.1 is bigger than 1.1" do
|
83
91
|
expect( Versioncmp.compare("1.1.1", "1.1")).to eql(1)
|
84
92
|
end
|
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: 3.0.
|
4
|
+
version: 3.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- reiz
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-07-
|
12
|
+
date: 2017-07-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|