ehbrs_ruby_utils 0.12.1 → 0.12.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b04c8994ff027248ae7a38e28ac25b0b6e895b78c01fbf60ef61eebfe520efd1
4
- data.tar.gz: af8ada82641ddd7f247d2d0182d71a1a8a5b0e9bd6931dd3cc136ffa0e058140
3
+ metadata.gz: 54140d1a239396122b8554925ae4a09d63baa410518ed9c01dad2af0095dd1f5
4
+ data.tar.gz: 22068ffc417f96c492fce8681727556acc12a8e92109492daa6f6ea6d957dcb3
5
5
  SHA512:
6
- metadata.gz: b0448fc34d7c469378b4ec8e2251c20c1ba63a8fd6461cab3dfa2520a08d8e76574eb4d19d50cd876d691ee2a4e9b8af45bc09baa5d76132985ac3552e06f3b3
7
- data.tar.gz: f4b0758f258963daf7e48a171fecd3774d141c351acb0bbc5d571d732f97255c9628b2852bcfcb3d95cd472d58d29465bf7cb959ac439bc2ebb86c1d9610f92a
6
+ metadata.gz: 7f7178cf59de3f899897637b64598c81a842e0a3fb0029e411395a74049cf9a4f9aaaed7e4fba2a59fe7677b113de5d4e2543cdb2811eea018fb1fcdeb23adb0
7
+ data.tar.gz: d80204e45d77da1402fd1ed65298952645c1ef22e2ae136ebda3086be5681e5861078c6dafbfb2b8832532bc5d853d0b609ad95dc5cceeb2cb03dfa2fca49c7f
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'eac_fs/traverser'
3
4
  require 'eac_ruby_utils/core_ext'
4
5
 
5
6
  module EhbrsRubyUtils
@@ -28,7 +29,16 @@ module EhbrsRubyUtils
28
29
 
29
30
  # @return [Pathname]
30
31
  def found_uncached
31
- root_path.glob("**/#{filename}").map(&:parent).sort
32
+ r = []
33
+ ft = ::EacFs::Traverser.new(
34
+ recursive: true,
35
+ hidden_directories: true,
36
+ check_file: lambda do |file|
37
+ r << file.parent if file.basename.to_path == filename.to_s
38
+ end
39
+ )
40
+ ft.check_path(root_path)
41
+ r.sort
32
42
  end
33
43
  end
34
44
  end
@@ -42,7 +42,7 @@ module EhbrsRubyUtils
42
42
 
43
43
  def albums_directories_uncached
44
44
  r = []
45
- t = ::EacRubyUtils::Fs::Traverser.new
45
+ t = ::EacFs::Traverser.new
46
46
  t.recursive = true
47
47
  t.check_directory = ->(directory) { r << directory }
48
48
  t.check_path(source_dir)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EhbrsRubyUtils
4
- VERSION = '0.12.1'
4
+ VERSION = '0.12.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ehbrs_ruby_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo H. Bogoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-07 00:00:00.000000000 Z
11
+ date: 2021-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers