files.com 1.1.325 → 1.1.327
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/Gemfile +2 -0
- data/Gemfile.lock +29 -24
- data/_VERSION +1 -1
- data/docs/remote_mount_backend.md +13 -0
- data/files.com.gemspec +3 -0
- data/lib/files.com/errors.rb +1 -1
- data/lib/files.com/models/file.rb +1 -1
- data/lib/files.com/models/remote_mount_backend.rb +9 -0
- data/lib/files.com/version.rb +1 -1
- metadata +44 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 32c9d80f75e54b62563d6c4f11da67285c4fcb4e4da8ab49507924a3ee2f2db4
|
|
4
|
+
data.tar.gz: 4535e5dc60792503b7be0d614a6d70134d955d5b14e116edd0beb0d8ef47462f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a7e897a1b234f7cfaf87e23438e8f2c03426fa22bf1c3a855a478ab4fc6db636aa75cf2b7cb352306bfff2ac6ce4bda3f9c505a8fa5b4bf12b2ae175e7135600
|
|
7
|
+
data.tar.gz: 6ed94c5956021aa63cf8733e336b7d3266e7fb37d5f0c814be37251a25d5815965ebdc0a9c809ee64f66fd89a8331ae2ef5e1384aca5ab4d0704b8f36213dc93
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -3,43 +3,45 @@ PATH
|
|
|
3
3
|
specs:
|
|
4
4
|
files.com (1.1.0)
|
|
5
5
|
addressable (>= 2.8.0)
|
|
6
|
+
base64 (~> 0.2.0)
|
|
6
7
|
concurrent-ruby (>= 1.1.3)
|
|
7
8
|
faraday (>= 1.0.1)
|
|
8
9
|
faraday-multipart (>= 1.0)
|
|
9
10
|
faraday-net_http_persistent (>= 2.0)
|
|
11
|
+
logger (~> 1.6.0)
|
|
10
12
|
net-http-persistent (>= 4.0)
|
|
13
|
+
ostruct (~> 0.6.0)
|
|
11
14
|
|
|
12
15
|
GEM
|
|
13
16
|
remote: https://rubygems.org/
|
|
14
17
|
specs:
|
|
15
|
-
addressable (2.8.
|
|
16
|
-
public_suffix (>= 2.0.2, <
|
|
18
|
+
addressable (2.8.1)
|
|
19
|
+
public_suffix (>= 2.0.2, < 6.0)
|
|
17
20
|
ast (2.4.2)
|
|
21
|
+
base64 (0.2.0)
|
|
22
|
+
benchmark (0.4.1)
|
|
18
23
|
byebug (11.1.3)
|
|
19
24
|
coderay (1.1.3)
|
|
20
|
-
concurrent-ruby (1.
|
|
21
|
-
connection_pool (2.5
|
|
25
|
+
concurrent-ruby (1.1.10)
|
|
26
|
+
connection_pool (2.2.5)
|
|
22
27
|
diff-lcs (1.5.0)
|
|
23
|
-
faraday (2.
|
|
24
|
-
faraday-net_http (>= 2.0, < 3.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
faraday-
|
|
30
|
-
net-http (>= 0.5.0)
|
|
31
|
-
faraday-net_http_persistent (2.3.1)
|
|
28
|
+
faraday (2.5.2)
|
|
29
|
+
faraday-net_http (>= 2.0, < 3.1)
|
|
30
|
+
ruby2_keywords (>= 0.0.4)
|
|
31
|
+
faraday-multipart (1.0.4)
|
|
32
|
+
multipart-post (~> 2)
|
|
33
|
+
faraday-net_http (3.0.0)
|
|
34
|
+
faraday-net_http_persistent (2.1.0)
|
|
32
35
|
faraday (~> 2.5)
|
|
33
|
-
net-http-persistent (
|
|
36
|
+
net-http-persistent (~> 4.0)
|
|
34
37
|
json (2.6.2)
|
|
35
|
-
logger (1.
|
|
38
|
+
logger (1.6.6)
|
|
36
39
|
memory_profiler (1.0.0)
|
|
37
40
|
method_source (1.0.0)
|
|
38
|
-
multipart-post (2.
|
|
39
|
-
net-http (0.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
connection_pool (~> 2.2, >= 2.2.4)
|
|
41
|
+
multipart-post (2.2.3)
|
|
42
|
+
net-http-persistent (4.0.1)
|
|
43
|
+
connection_pool (~> 2.2)
|
|
44
|
+
ostruct (0.6.3)
|
|
43
45
|
parallel (1.22.1)
|
|
44
46
|
parser (3.1.2.1)
|
|
45
47
|
ast (~> 2.4.1)
|
|
@@ -49,7 +51,8 @@ GEM
|
|
|
49
51
|
pry-byebug (3.10.1)
|
|
50
52
|
byebug (~> 11.0)
|
|
51
53
|
pry (>= 0.13, < 0.15)
|
|
52
|
-
public_suffix (
|
|
54
|
+
public_suffix (5.0.0)
|
|
55
|
+
racc (1.8.1)
|
|
53
56
|
rainbow (3.1.1)
|
|
54
57
|
rake (13.0.6)
|
|
55
58
|
regexp_parser (2.5.0)
|
|
@@ -67,7 +70,7 @@ GEM
|
|
|
67
70
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
68
71
|
rspec-support (~> 3.11.0)
|
|
69
72
|
rspec-support (3.11.0)
|
|
70
|
-
rubocop (1.
|
|
73
|
+
rubocop (1.36.0)
|
|
71
74
|
json (~> 2.3)
|
|
72
75
|
parallel (~> 1.10)
|
|
73
76
|
parser (>= 3.1.2.1)
|
|
@@ -80,20 +83,22 @@ GEM
|
|
|
80
83
|
rubocop-ast (1.21.0)
|
|
81
84
|
parser (>= 3.1.1.0)
|
|
82
85
|
ruby-progressbar (1.11.0)
|
|
86
|
+
ruby2_keywords (0.0.5)
|
|
83
87
|
unicode-display_width (2.2.0)
|
|
84
|
-
uri (1.0.3)
|
|
85
88
|
|
|
86
89
|
PLATFORMS
|
|
87
90
|
ruby
|
|
88
91
|
|
|
89
92
|
DEPENDENCIES
|
|
93
|
+
benchmark
|
|
90
94
|
files.com!
|
|
91
95
|
memory_profiler
|
|
92
96
|
pry
|
|
93
97
|
pry-byebug
|
|
98
|
+
racc
|
|
94
99
|
rake
|
|
95
100
|
rspec
|
|
96
101
|
rubocop
|
|
97
102
|
|
|
98
103
|
BUNDLED WITH
|
|
99
|
-
2.1
|
|
104
|
+
2.5.1
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.327
|
|
@@ -8,6 +8,18 @@
|
|
|
8
8
|
"enabled": true,
|
|
9
9
|
"fall": 1,
|
|
10
10
|
"health_check_enabled": true,
|
|
11
|
+
"health_check_results": [
|
|
12
|
+
{
|
|
13
|
+
"timestamp": "2025-09-19T12:32:52+00:00",
|
|
14
|
+
"status": "healthy",
|
|
15
|
+
"canary_timestamp": "2025-09-19T12:32:52+00:00"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"status": "failed",
|
|
19
|
+
"reason": "Unable to connect",
|
|
20
|
+
"timestamp": "2025-09-19T12:32:52+00:00"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
11
23
|
"health_check_type": "active",
|
|
12
24
|
"id": 1,
|
|
13
25
|
"interval": 60,
|
|
@@ -27,6 +39,7 @@
|
|
|
27
39
|
* `enabled` (boolean): True if this backend is enabled.
|
|
28
40
|
* `fall` (int64): Number of consecutive failures before considering the backend unhealthy.
|
|
29
41
|
* `health_check_enabled` (boolean): True if health checks are enabled for this backend.
|
|
42
|
+
* `health_check_results` (array(object)): Array of recent health check results.
|
|
30
43
|
* `health_check_type` (string): Type of health check to perform.
|
|
31
44
|
* `id` (int64): Unique identifier for this backend.
|
|
32
45
|
* `interval` (int64): Interval in seconds between health checks.
|
data/files.com.gemspec
CHANGED
|
@@ -12,11 +12,14 @@ Gem::Specification.new do |s|
|
|
|
12
12
|
s.license = "MIT"
|
|
13
13
|
s.required_ruby_version = ">= 2.7"
|
|
14
14
|
s.add_dependency 'addressable', ">= 2.8.0"
|
|
15
|
+
s.add_dependency 'base64', "~> 0.2.0"
|
|
15
16
|
s.add_dependency 'concurrent-ruby', ">= 1.1.3"
|
|
16
17
|
s.add_dependency 'faraday', ">= 1.0.1"
|
|
17
18
|
s.add_dependency 'faraday-multipart', ">= 1.0"
|
|
18
19
|
s.add_dependency 'faraday-net_http_persistent', '>= 2.0'
|
|
20
|
+
s.add_dependency 'logger', "~> 1.6.0"
|
|
19
21
|
s.add_dependency 'net-http-persistent', ">= 4.0"
|
|
22
|
+
s.add_dependency 'ostruct', "~> 0.6.0"
|
|
20
23
|
|
|
21
24
|
s.files = `find *`.split("\n").uniq.sort.reject(&:empty?)
|
|
22
25
|
s.executables = [ "files", "files-console" ]
|
data/lib/files.com/errors.rb
CHANGED
|
@@ -179,7 +179,7 @@ module Files
|
|
|
179
179
|
|
|
180
180
|
def initialize(*args)
|
|
181
181
|
@attributes = (args[0].is_a?(Hash) && args[0]) || {}
|
|
182
|
-
@options =
|
|
182
|
+
@options = args[1].is_a?(Hash) && args[1]
|
|
183
183
|
@options ||= (args[2].is_a?(Hash) && args[2]) || {}
|
|
184
184
|
@attributes[:path] = args[0] if args[0].is_a?(String)
|
|
185
185
|
@mode = args[1] || 'r' if args[1].is_a?(String)
|
|
@@ -45,6 +45,15 @@ module Files
|
|
|
45
45
|
@attributes[:health_check_enabled] = value
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
+
# array(object) - Array of recent health check results.
|
|
49
|
+
def health_check_results
|
|
50
|
+
@attributes[:health_check_results]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def health_check_results=(value)
|
|
54
|
+
@attributes[:health_check_results] = value
|
|
55
|
+
end
|
|
56
|
+
|
|
48
57
|
# string - Type of health check to perform.
|
|
49
58
|
def health_check_type
|
|
50
59
|
@attributes[:health_check_type]
|
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.327
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-09-
|
|
11
|
+
date: 2025-09-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|
|
@@ -24,6 +24,20 @@ dependencies:
|
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: 2.8.0
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: base64
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 0.2.0
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: 0.2.0
|
|
27
41
|
- !ruby/object:Gem::Dependency
|
|
28
42
|
name: concurrent-ruby
|
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -80,6 +94,20 @@ dependencies:
|
|
|
80
94
|
- - ">="
|
|
81
95
|
- !ruby/object:Gem::Version
|
|
82
96
|
version: '2.0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: logger
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - "~>"
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: 1.6.0
|
|
104
|
+
type: :runtime
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - "~>"
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: 1.6.0
|
|
83
111
|
- !ruby/object:Gem::Dependency
|
|
84
112
|
name: net-http-persistent
|
|
85
113
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -94,6 +122,20 @@ dependencies:
|
|
|
94
122
|
- - ">="
|
|
95
123
|
- !ruby/object:Gem::Version
|
|
96
124
|
version: '4.0'
|
|
125
|
+
- !ruby/object:Gem::Dependency
|
|
126
|
+
name: ostruct
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - "~>"
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: 0.6.0
|
|
132
|
+
type: :runtime
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
- - "~>"
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: 0.6.0
|
|
97
139
|
description: The Files.com Ruby client.
|
|
98
140
|
email:
|
|
99
141
|
- support@files.com
|