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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff3970eccd4ba23f0967096b403f8877d817e7b1
4
- data.tar.gz: f56f0ec8f93744500a8a8cce865eae14789492af
3
+ metadata.gz: 2810facc8f6d9111a34f28c9d3bbf25c7afd606d
4
+ data.tar.gz: b9532b101d646c6adee33d71dc3af17d9324fc36
5
5
  SHA512:
6
- metadata.gz: 7636f86ee046ce975a4fbbb45e1314b70ff7e4363d5d4c9537453f17c83d57edbbad8f941b4b6e68edbd93d76aa9f5248a5b747bfe21668a3bb83bbb3b40b65b
7
- data.tar.gz: 419f55807ad4227f508b61921ed253350e037c7916f7a660480f4ae42783a43c9c25e1944c39e6be41074a8561d180a0f96c5f0f3954789c0fc30ca69e1bb542
6
+ metadata.gz: 84310cdcec23f271f44216c0a9c8b80c763059bf1ee3725fe03c89ed868e71479bf70fc7894c79bb67afb19e4daec642a449017680fb0532f28ac2f93eb124d4
7
+ data.tar.gz: 3dfab086abe1dfb53a451b7b1bb05b72a5a29a1247f9d804b22de0e66832532a87c1b3d3ee3f2308730d0c88a4c6b4f79907585c053f07d0e45700ad19573f95
@@ -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).to_enum.with_index(0).each_with_object([]) do |(part, i), out|
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
@@ -3,5 +3,5 @@
3
3
  # Encoding: utf-8
4
4
 
5
5
  class Pathutil
6
- VERSION = "0.10.0"
6
+ VERSION = "0.11.0"
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pathutil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordon Bedwell