files.com 1.0.38 → 1.0.39

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: 3850eeb0d72696cee43992b655219b262069664be3b8cea9dba325395d70ef88
4
- data.tar.gz: ac73afe30cf5f291d5d9bb01d80ff50f6a131b0365fe41b7d2f811c405abe0f5
3
+ metadata.gz: ba2a7329677d424a14d08d028ff1350868d60d840f81d2a03c26e05ed54fdf7f
4
+ data.tar.gz: 493f62a6f2f4a7ff6b6789e12dded92bc679541f4c164d41f822487058889b3f
5
5
  SHA512:
6
- metadata.gz: 80fd56f2cceb04993d5ffd847afa210bdc68165a9767b57e5b63ed25f0ffe1330c9f4909da4dc92b07742875d73a071561a029ad381755c53c2c5044bb23ce09
7
- data.tar.gz: e6d08426954951420ba24309914753e71a046786a5569b37e428b26adf461da09bbdf6a309e369a4a0108272f5b5eb748153548bdead65255d0a45f699db1c75
6
+ metadata.gz: 75175132b519ac32912be56cd13a5743d528ddde1c15a5b7ef2927a7c2c6a3f2bcff3305359e9f5bce5db820e09a9da63053580754beb838bed0066f928ee910
7
+ data.tar.gz: 44aefca6a991161fd2ef1a5adf15465a7be937a3bcd973a24f39a9d45c8c52a10dc35fa5225941af1ef94f06ecd35c82520c83f7c67d4280bce76aacd64f375d
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.38
1
+ 1.0.39
@@ -52,18 +52,18 @@ module Files
52
52
  File.find(path, params, options)
53
53
  end
54
54
 
55
- def self.find_recursive(path, type = "dir")
55
+ def self.find_recursive(path, type = "dir", params = {}, options = {})
56
56
  return path if type == "file"
57
57
 
58
- list(path).map { |c| find_recursive(c.path, c.type) }.flatten.compact
58
+ list_for(path, params, options).map { |c| find_recursive(c.path, c.type, params, options) }.flatten.compact
59
59
  end
60
60
 
61
61
  def self.get(path, params = {}, options = {})
62
62
  File.get(path, params, options)
63
63
  end
64
64
 
65
- def self.foreach(path, _encoding)
66
- list(path, {}).each { |x| yield x }
65
+ def self.foreach(path, _encoding = "", params = {}, options = {})
66
+ list_for(path, params, options).each { |x| yield x }
67
67
  end
68
68
 
69
69
  def self.getwd(*_args)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.38
4
+ version: 1.0.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com