epitools 0.5.92 → 0.5.93
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/epitools/core_ext/enumerable.rb +3 -2
- data/spec/core_ext_spec.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccd113a18ef194f3dfeb84a6cde8196031734ce2
|
4
|
+
data.tar.gz: 5829f09d3fd9719cac246f744f5fd33cdda00b05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 579ccbea64bdc0b3c3f130d53fd1932b2692591ac75426f6e7a3a14e891bf9807a9d3f409d164ccf473a805c5c5e231d54e1074e10239045d28323a3942c8389
|
7
|
+
data.tar.gz: 5be9db454be2fdea00fe2babd98bdb90308b14b6b99b41135d3bd8a7cdaeac270b0afe812f9636e6a94a285fe2366ae036c967edb893500c3b97b161d4020a08
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.93
|
data/spec/core_ext_spec.rb
CHANGED
@@ -627,8 +627,13 @@ describe Enumerable do
|
|
627
627
|
|
628
628
|
it "sorts strings numerically" do
|
629
629
|
a = ["a1", "a11", "a2", "a3"]
|
630
|
-
|
630
|
+
proper = ["a1", "a2", "a3", "a11"]
|
631
|
+
|
632
|
+
a.sort_numerically.should == proper
|
631
633
|
a.sort.should_not == a.sort_numerically
|
634
|
+
|
635
|
+
ps = a.map(&:to_Path)
|
636
|
+
ps.sort_numerically.map(&:filename).should == proper
|
632
637
|
end
|
633
638
|
|
634
639
|
end
|