files.com 1.0.39 → 1.0.40
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/_VERSION +1 -1
- data/lib/files.com/models/folder.rb +4 -11
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cc5e27a9ffa9ed5fdf496bf1e6579bee8667bab65615d44026ccb3b3043aac7
|
4
|
+
data.tar.gz: 11849b0ae94dcb01bc00e2f636392949a7add10e9df114f20429547d693ddb7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6ee615de2dadc3273c3828bc1249e30f0bb04609e84b717d028b5dc4e5e744dd9f34c4a90abc9139f066245a43c1e3de9bd705ee7914aa5a7c033db1da87611
|
7
|
+
data.tar.gz: 077d479cd0fc95971de5f503456d5088ebf2347dba6f9e79de050da92ed90eef3d976973b67ca72b049705abc3a8bf1b78cfab58385ecadecdae9a6ccddfd106
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.40
|
@@ -3,9 +3,8 @@
|
|
3
3
|
module Files
|
4
4
|
class Folder
|
5
5
|
attr_reader :options, :attributes
|
6
|
-
def self.[](
|
7
|
-
|
8
|
-
subfolders.select { |subfolder| ::File.fnmatch(path, "/" + subfolder) }
|
6
|
+
def self.[](*_)
|
7
|
+
raise NotImplementedError
|
9
8
|
end
|
10
9
|
|
11
10
|
def self.chdir(path, &block)
|
@@ -52,12 +51,6 @@ module Files
|
|
52
51
|
File.find(path, params, options)
|
53
52
|
end
|
54
53
|
|
55
|
-
def self.find_recursive(path, type = "dir", params = {}, options = {})
|
56
|
-
return path if type == "file"
|
57
|
-
|
58
|
-
list_for(path, params, options).map { |c| find_recursive(c.path, c.type, params, options) }.flatten.compact
|
59
|
-
end
|
60
|
-
|
61
54
|
def self.get(path, params = {}, options = {})
|
62
55
|
File.get(path, params, options)
|
63
56
|
end
|
@@ -70,8 +63,8 @@ module Files
|
|
70
63
|
pwd
|
71
64
|
end
|
72
65
|
|
73
|
-
def self.glob(*
|
74
|
-
|
66
|
+
def self.glob(*_)
|
67
|
+
raise NotImplementedError
|
75
68
|
end
|
76
69
|
|
77
70
|
def self.home(*_args)
|