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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d78a2b29c096a2c7dc64370bbafca96302bb8d47c5b294ac760f7ae9d0c6a1e1
4
- data.tar.gz: e03169d3704f881dce30020ebe708c54cf202139ca6a0329ca108b25cd7b2e70
3
+ metadata.gz: 1f39a895760cfd9381f1ca56d32881f21c9572483fbe332086d96248fa314ce4
4
+ data.tar.gz: 1f24301356ea3b6e6247162793de7eca5af9dc19955d7278851dbb6741d3ebf0
5
5
  SHA512:
6
- metadata.gz: 23412f6d9e902a34e8c9b8cab0736b305e34ee618593d2fc0189ccebcfc3501280a37cd37547310954bd914ad0eb1dfe622a18d5b720ae25f5c6e27a9a6cbeaf
7
- data.tar.gz: f7a1e47eb74798af5c3be95103f7b2499c1a8e53bd9a56981bfaf2ee6d359526097d867c28e3676f370dc97e7196ec805bc2b25757dd6f2abbe622d8a88b97ac
6
+ metadata.gz: 3ecf22d2dbd2d29f90d5e874ab52c4b8043baec8c3fa049642f88db413095ed8c04d9f5a206eb6b17b5e84bdceb215c5c30d15641cf19fba7e2d10f1050ae253
7
+ data.tar.gz: 88229888fa4d5a5638c7bc27bf3bdc5ee648c36d053d5c0a2298bc25da7da11e5b15c3eb77b11f718492cd23dc2056bf48091b5dcbbd9196b94b0d37e4805a78
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.86
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): Allow lock to be updated by any user?
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` (string): Does lock apply to subfolders?
74
- * `timeout` (int64): Lock timeout length
73
+ * `recursive` (boolean): Does lock apply to subfolders?
74
+ * `timeout` (int64): Lock timeout in seconds
75
75
 
76
76
 
77
77
  ---
@@ -19,8 +19,8 @@
19
19
  "sftp_response_code": "example",
20
20
  "sftp_response_message": "example",
21
21
  "md5": "example",
22
- "size": "example",
23
- "data_length": "example",
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` (string): Size of File That was Uploaded or Downloaded.
46
- * `data_length` (string): Data Length in Bytes. Present for actions that transfer data.
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 - Allow lock to be updated by any user?
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 - string - Does lock apply to subfolders?
168
- # timeout - int64 - Lock timeout length
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
- # string - Size of File That was Uploaded or Downloaded.
87
+ # int64 - Size of File That was Uploaded or Downloaded.
88
88
  def size
89
89
  @attributes[:size]
90
90
  end
91
91
 
92
- # string - Data Length in Bytes. Present for actions that transfer data.
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.86"
4
+ VERSION = "1.1.88"
5
5
  end
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.86
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-05-28 00:00:00.000000000 Z
11
+ date: 2024-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable