files.com 1.0.286 → 1.0.289
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/site.md +1 -0
- data/docs/usage_daily_snapshot.md +2 -4
- data/files.com.gemspec +2 -2
- data/lib/files.com/api_client.rb +2 -2
- data/lib/files.com/errors.rb +1 -1
- data/lib/files.com/models/file.rb +0 -25
- data/lib/files.com/models/site.rb +2 -0
- data/lib/files.com/models/usage_daily_snapshot.rb +1 -1
- data/lib/files.com/sizable_io.rb +3 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5fcedfc3ee2646b9f303e65f2b19fd34f2f06c54474359db9624c6bd1f40214
|
4
|
+
data.tar.gz: 8dba97eecfc4c9a4adabbe6bc2518610f39715deed943878d7fb8a436416287b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87193e5da35ceb31f9b16c4faa318816c6b81895260f690c87587bd1ea15869717ecce7f67b614a4b9709aff67c56296e4d06f94d694e725823aa84030db394c
|
7
|
+
data.tar.gz: ff5e07f043dff736004a9312fb8066ad0d2816f64149ac86b24577cdac23cb4faf1e54d9c3ac6b1b3511a54974446000a9d84663a01ce14f68ec30c870fd2214
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.289
|
data/docs/site.md
CHANGED
@@ -562,6 +562,7 @@ Files::Site.update(
|
|
562
562
|
* `user_requests_notify_admins` (boolean): Send email to site admins when a user request is received?
|
563
563
|
* `ftp_enabled` (boolean): Is FTP enabled?
|
564
564
|
* `sftp_enabled` (boolean): Is SFTP enabled?
|
565
|
+
* `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
565
566
|
* `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
|
566
567
|
* `allowed_2fa_method_u2f` (boolean): Is U2F two factor authentication allowed?
|
567
568
|
* `allowed_2fa_method_totp` (boolean): Is TOTP two factor authentication allowed?
|
@@ -14,9 +14,7 @@
|
|
14
14
|
"deleted_files_storage": "65536",
|
15
15
|
"deleted_files_counted_in_minimum": "65536",
|
16
16
|
"root_storage": "65536",
|
17
|
-
"usage_by_top_level_dir":
|
18
|
-
""
|
19
|
-
]
|
17
|
+
"usage_by_top_level_dir": ""
|
20
18
|
}
|
21
19
|
```
|
22
20
|
|
@@ -30,7 +28,7 @@
|
|
30
28
|
* `deleted_files_storage` (int64): GB of Files Native Storage used on this day for files that have been deleted and are stored as backups.
|
31
29
|
* `deleted_files_counted_in_minimum` (int64): GB of Files Native Storage used on this day for files that have been permanently deleted but were uploaded less than 30 days ago, and are still billable.
|
32
30
|
* `root_storage` (int64): GB of Files Native Storage used for the root folder. Included here because this value will not be part of `usage_by_top_level_dir`
|
33
|
-
* `usage_by_top_level_dir` (
|
31
|
+
* `usage_by_top_level_dir` (object): Usage broken down by each top-level folder
|
34
32
|
|
35
33
|
|
36
34
|
---
|
data/files.com.gemspec
CHANGED
@@ -14,9 +14,9 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.add_dependency 'addressable', ">= 2.8.0"
|
15
15
|
s.add_dependency 'concurrent-ruby', ">= 1.1.3"
|
16
16
|
s.add_dependency 'faraday', ">= 1.0.1"
|
17
|
-
s.add_dependency 'net-http-persistent', ">= 4.0"
|
18
|
-
s.add_dependency 'faraday-net_http_persistent', '>= 2.0'
|
19
17
|
s.add_dependency 'faraday-multipart', ">= 1.0"
|
18
|
+
s.add_dependency 'faraday-net_http_persistent', '>= 2.0'
|
19
|
+
s.add_dependency 'net-http-persistent', ">= 4.0"
|
20
20
|
|
21
21
|
s.files = `find *`.split("\n").uniq.sort.reject(&:empty?)
|
22
22
|
s.executables = [ "files", "files-console" ]
|
data/lib/files.com/api_client.rb
CHANGED
@@ -161,8 +161,8 @@ module Files
|
|
161
161
|
response.error! if response.code.to_i >= 300
|
162
162
|
io.ready! if io.respond_to?(:ready!)
|
163
163
|
io << chunk
|
164
|
-
rescue => e
|
165
|
-
io.
|
164
|
+
rescue StandardError => e
|
165
|
+
io.do_set_error(e) if io.respond_to?(:do_set_error)
|
166
166
|
io.close
|
167
167
|
end
|
168
168
|
end
|
data/lib/files.com/errors.rb
CHANGED
@@ -56,7 +56,6 @@ module Files
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
|
60
59
|
class BadRequestError < APIError; end
|
61
60
|
class AttachmentTooLargeError < BadRequestError; end
|
62
61
|
class CannotDownloadDirectoryError < BadRequestError; end
|
@@ -145,6 +144,7 @@ module Files
|
|
145
144
|
class NotFoundError < APIError; end
|
146
145
|
class ApiKeyNotFoundError < NotFoundError; end
|
147
146
|
class BundlePathNotFoundError < NotFoundError; end
|
147
|
+
class BundleRegistrationNotFoundError < NotFoundError; end
|
148
148
|
class CodeNotFoundError < NotFoundError; end
|
149
149
|
class FileNotFoundError < NotFoundError; end
|
150
150
|
class FileUploadNotFoundError < NotFoundError; end
|
@@ -25,10 +25,6 @@ module Files
|
|
25
25
|
options[:client] || ApiClient.active_client
|
26
26
|
end
|
27
27
|
|
28
|
-
def self.copy(old_path, new_path)
|
29
|
-
FileAction.copy(old_path, destination: new_path)
|
30
|
-
end
|
31
|
-
|
32
28
|
def self.copy_stream(*_args)
|
33
29
|
raise NotImplementedError
|
34
30
|
end
|
@@ -57,11 +53,6 @@ module Files
|
|
57
53
|
exist?(path, options)
|
58
54
|
end
|
59
55
|
|
60
|
-
def self.find(path, params = {}, options = {})
|
61
|
-
params[:action] = "stat"
|
62
|
-
download(path, params, options)
|
63
|
-
end
|
64
|
-
|
65
56
|
def self.for_fd(*_args)
|
66
57
|
raise NotImplementedError
|
67
58
|
end
|
@@ -74,10 +65,6 @@ module Files
|
|
74
65
|
File.find(path)
|
75
66
|
end
|
76
67
|
|
77
|
-
def self.get(path, params = {}, options = {})
|
78
|
-
find(path, params, options)
|
79
|
-
end
|
80
|
-
|
81
68
|
def self.identical?(path1, path2)
|
82
69
|
new(path1).crc32 == new(path2).crc32
|
83
70
|
end
|
@@ -86,10 +73,6 @@ module Files
|
|
86
73
|
new(path).stat
|
87
74
|
end
|
88
75
|
|
89
|
-
def self.move(old_path, new_path)
|
90
|
-
FileAction.move(old_path, destination: new_path)
|
91
|
-
end
|
92
|
-
|
93
76
|
def self.mtime(path)
|
94
77
|
new(path).mtime
|
95
78
|
end
|
@@ -287,10 +270,6 @@ module Files
|
|
287
270
|
@write_io.codepoints *args, &block
|
288
271
|
end
|
289
272
|
|
290
|
-
def copy(destination)
|
291
|
-
File.copy(path, destination)
|
292
|
-
end
|
293
|
-
|
294
273
|
def ctime(*_args)
|
295
274
|
mtime
|
296
275
|
end
|
@@ -430,10 +409,6 @@ module Files
|
|
430
409
|
stats
|
431
410
|
end
|
432
411
|
|
433
|
-
def move(destination)
|
434
|
-
File.move(path, destination)
|
435
|
-
end
|
436
|
-
|
437
412
|
def mv(destination)
|
438
413
|
File.move(path, destination)
|
439
414
|
end
|
@@ -743,6 +743,7 @@ module Files
|
|
743
743
|
# user_requests_notify_admins - boolean - Send email to site admins when a user request is received?
|
744
744
|
# ftp_enabled - boolean - Is FTP enabled?
|
745
745
|
# sftp_enabled - boolean - Is SFTP enabled?
|
746
|
+
# bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
746
747
|
# allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
|
747
748
|
# allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
|
748
749
|
# allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
|
@@ -824,6 +825,7 @@ module Files
|
|
824
825
|
raise InvalidParameterError.new("Bad parameter: password_validity_days must be an Integer") if params.dig(:password_validity_days) and !params.dig(:password_validity_days).is_a?(Integer)
|
825
826
|
raise InvalidParameterError.new("Bad parameter: password_min_length must be an Integer") if params.dig(:password_min_length) and !params.dig(:password_min_length).is_a?(Integer)
|
826
827
|
raise InvalidParameterError.new("Bad parameter: disable_users_from_inactivity_period_days must be an Integer") if params.dig(:disable_users_from_inactivity_period_days) and !params.dig(:disable_users_from_inactivity_period_days).is_a?(Integer)
|
828
|
+
raise InvalidParameterError.new("Bad parameter: bundle_watermark_value must be an Hash") if params.dig(:bundle_watermark_value) and !params.dig(:bundle_watermark_value).is_a?(Hash)
|
827
829
|
raise InvalidParameterError.new("Bad parameter: require_2fa_user_type must be an String") if params.dig(:require_2fa_user_type) and !params.dig(:require_2fa_user_type).is_a?(String)
|
828
830
|
raise InvalidParameterError.new("Bad parameter: color2_top must be an String") if params.dig(:color2_top) and !params.dig(:color2_top).is_a?(String)
|
829
831
|
raise InvalidParameterError.new("Bad parameter: color2_left must be an String") if params.dig(:color2_left) and !params.dig(:color2_left).is_a?(String)
|
data/lib/files.com/sizable_io.rb
CHANGED
@@ -12,7 +12,7 @@ module Files
|
|
12
12
|
read_io.content_length_promise.wait.value
|
13
13
|
end
|
14
14
|
|
15
|
-
def wait!(timeout=nil)
|
15
|
+
def wait!(timeout = nil)
|
16
16
|
read_io.ready_promise.wait(timeout)
|
17
17
|
error!
|
18
18
|
self
|
@@ -29,6 +29,7 @@ module Files
|
|
29
29
|
|
30
30
|
def close
|
31
31
|
raise @with_error if @with_error
|
32
|
+
|
32
33
|
super
|
33
34
|
read_io.content_length_promise.try_set(nil)
|
34
35
|
read_io.ready_promise.try_set(true)
|
@@ -38,7 +39,7 @@ module Files
|
|
38
39
|
raise read_io.with_error if read_io.with_error
|
39
40
|
end
|
40
41
|
|
41
|
-
def
|
42
|
+
def do_set_error(e)
|
42
43
|
read_io.with_error = e
|
43
44
|
end
|
44
45
|
|
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.0.
|
4
|
+
version: 1.0.289
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -53,19 +53,19 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 1.0.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: faraday-multipart
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '1.0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '1.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: faraday-net_http_persistent
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,19 +81,19 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '2.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: net-http-persistent
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '4.0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '4.0'
|
97
97
|
description: The Files.com Ruby client.
|
98
98
|
email:
|
99
99
|
- support@files.com
|