naturalsorter 3.0.12 → 3.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +1 -1
- data/lib/naturalsorter/version.rb +1 -1
- data/lib/versioncmp.rb +3 -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: 15cab37f9f3a0893043acaa9a9eda71e647895b8
|
4
|
+
data.tar.gz: 4f18b69b08800dfc853dfb7957a9cf9634c05831
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d41201fb10c574f33d537c17863512f98722fc559d77dc077d2cc36c82190a35f038187f4a2e32d45a15de38eaaf53bfdfa982d71876e0a258018f1ef06e517
|
7
|
+
data.tar.gz: 9d76fa451ff3a21597bedd0c435b11ece6626c41d7bc19d68220024377ac0ac7cc1898a16b6c6750839ba7e5ad117d205307217d0de6d18d4bf26994e76794c3
|
data/README.markdown
CHANGED
data/lib/versioncmp.rb
CHANGED
@@ -71,6 +71,9 @@ class Versioncmp
|
|
71
71
|
part1 = Versioncmp.get_a_piece_of_the_cake offsets[0], ab[0]
|
72
72
|
part2 = Versioncmp.get_a_piece_of_the_cake offsets[0], ab[1]
|
73
73
|
|
74
|
+
part1 = '' if part1.nil?
|
75
|
+
part2 = '' if part2.nil?
|
76
|
+
|
74
77
|
return -1 if Versioncmp.timestamp?(part1) && part2.length() < 8
|
75
78
|
return 1 if Versioncmp.timestamp?(part2) && part1.length() < 8
|
76
79
|
|
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.13
|
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: 2016-02-
|
12
|
+
date: 2016-02-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|