pathutil 0.10.0 → 0.11.0
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.
- checksums.yaml +4 -4
- data/lib/pathutil.rb +1 -4
- data/lib/pathutil/version.rb +1 -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: 2810facc8f6d9111a34f28c9d3bbf25c7afd606d
|
|
4
|
+
data.tar.gz: b9532b101d646c6adee33d71dc3af17d9324fc36
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84310cdcec23f271f44216c0a9c8b80c763059bf1ee3725fe03c89ed868e71479bf70fc7894c79bb67afb19e4daec642a449017680fb0532f28ac2f93eb124d4
|
|
7
|
+
data.tar.gz: 3dfab086abe1dfb53a451b7b1bb05b72a5a29a1247f9d804b22de0e66832532a87c1b3d3ee3f2308730d0c88a4c6b4f79907585c053f07d0e45700ad19573f95
|
data/lib/pathutil.rb
CHANGED
|
@@ -577,9 +577,6 @@ class Pathutil
|
|
|
577
577
|
))
|
|
578
578
|
end
|
|
579
579
|
|
|
580
|
-
# --
|
|
581
|
-
# @todo See if you can speed this up by removing the enum and switching
|
|
582
|
-
# to something like start=true,false.
|
|
583
580
|
# --
|
|
584
581
|
|
|
585
582
|
def aggressive_cleanpath
|
|
@@ -607,7 +604,7 @@ class Pathutil
|
|
|
607
604
|
# --
|
|
608
605
|
|
|
609
606
|
def conservative_cleanpath
|
|
610
|
-
_out = (path = split_path).
|
|
607
|
+
_out = (path = split_path).each_with_object([]) do |(part, i), out|
|
|
611
608
|
next if part == "." || (part == ".." && out.last == "")
|
|
612
609
|
out.push(
|
|
613
610
|
part
|
data/lib/pathutil/version.rb
CHANGED