files.com 1.1.87 → 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/lib/files.com/models/lock.rb +3 -4
- 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
|
---
|
|
@@ -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
|
|
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
|