files.com 1.1.86 → 1.1.88
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/docs/lock.md +3 -3
- data/docs/sftp_action_log.md +4 -4
- data/lib/files.com/models/lock.rb +3 -4
- data/lib/files.com/models/sftp_action_log.rb +2 -2
- data/lib/files.com/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f39a895760cfd9381f1ca56d32881f21c9572483fbe332086d96248fa314ce4
|
4
|
+
data.tar.gz: 1f24301356ea3b6e6247162793de7eca5af9dc19955d7278851dbb6741d3ebf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ecf22d2dbd2d29f90d5e874ab52c4b8043baec8c3fa049642f88db413095ed8c04d9f5a206eb6b17b5e84bdceb215c5c30d15641cf19fba7e2d10f1050ae253
|
7
|
+
data.tar.gz: 88229888fa4d5a5638c7bc27bf3bdc5ee648c36d053d5c0a2298bc25da7da11e5b15c3eb77b11f718492cd23dc2056bf48091b5dcbbd9196b94b0d37e4805a78
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.88
|
data/docs/lock.md
CHANGED
@@ -68,10 +68,10 @@ Files::Lock.create(path,
|
|
68
68
|
### Parameters
|
69
69
|
|
70
70
|
* `path` (string): Required - Path
|
71
|
-
* `allow_access_by_any_user` (boolean):
|
71
|
+
* `allow_access_by_any_user` (boolean): Can lock be modified by users other than its creator?
|
72
72
|
* `exclusive` (boolean): Is lock exclusive?
|
73
|
-
* `recursive` (
|
74
|
-
* `timeout` (int64): Lock timeout
|
73
|
+
* `recursive` (boolean): Does lock apply to subfolders?
|
74
|
+
* `timeout` (int64): Lock timeout in seconds
|
75
75
|
|
76
76
|
|
77
77
|
---
|
data/docs/sftp_action_log.md
CHANGED
@@ -19,8 +19,8 @@
|
|
19
19
|
"sftp_response_code": "example",
|
20
20
|
"sftp_response_message": "example",
|
21
21
|
"md5": "example",
|
22
|
-
"size":
|
23
|
-
"data_length":
|
22
|
+
"size": 1,
|
23
|
+
"data_length": 1,
|
24
24
|
"entries_returned": 1,
|
25
25
|
"success": true,
|
26
26
|
"duration_ms": 1
|
@@ -42,8 +42,8 @@
|
|
42
42
|
* `sftp_response_code` (string): SFTP Response Code Returned to the Client.
|
43
43
|
* `sftp_response_message` (string): SFTP Response Message Returned to the Client.
|
44
44
|
* `md5` (string): MD5 Hash of the file. Not always available.
|
45
|
-
* `size` (
|
46
|
-
* `data_length` (
|
45
|
+
* `size` (int64): Size of File That was Uploaded or Downloaded.
|
46
|
+
* `data_length` (int64): Data Length in Bytes. Present for actions that transfer data.
|
47
47
|
* `entries_returned` (int64): Number of entries returned when listing files and folders
|
48
48
|
* `success` (boolean): Whether SFTP Action was successful.
|
49
49
|
* `duration_ms` (int64): Duration (in milliseconds)
|
@@ -162,15 +162,14 @@ module Files
|
|
162
162
|
|
163
163
|
# Parameters:
|
164
164
|
# path (required) - string - Path
|
165
|
-
# allow_access_by_any_user - boolean -
|
165
|
+
# allow_access_by_any_user - boolean - Can lock be modified by users other than its creator?
|
166
166
|
# exclusive - boolean - Is lock exclusive?
|
167
|
-
# recursive -
|
168
|
-
# timeout - int64 - Lock timeout
|
167
|
+
# recursive - boolean - Does lock apply to subfolders?
|
168
|
+
# timeout - int64 - Lock timeout in seconds
|
169
169
|
def self.create(path, params = {}, options = {})
|
170
170
|
params ||= {}
|
171
171
|
params[:path] = path
|
172
172
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
173
|
-
raise InvalidParameterError.new("Bad parameter: recursive must be an String") if params[:recursive] and !params[:recursive].is_a?(String)
|
174
173
|
raise InvalidParameterError.new("Bad parameter: timeout must be an Integer") if params[:timeout] and !params[:timeout].is_a?(Integer)
|
175
174
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
176
175
|
|
@@ -84,12 +84,12 @@ module Files
|
|
84
84
|
@attributes[:md5]
|
85
85
|
end
|
86
86
|
|
87
|
-
#
|
87
|
+
# int64 - Size of File That was Uploaded or Downloaded.
|
88
88
|
def size
|
89
89
|
@attributes[:size]
|
90
90
|
end
|
91
91
|
|
92
|
-
#
|
92
|
+
# int64 - Data Length in Bytes. Present for actions that transfer data.
|
93
93
|
def data_length
|
94
94
|
@attributes[:data_length]
|
95
95
|
end
|
data/lib/files.com/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: files.com
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.88
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|