files.com 1.1.128 → 1.1.130
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -13
- data/_VERSION +1 -1
- data/docs/site.md +2 -0
- data/lib/files.com/models/site.rb +5 -0
- 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: 6e4169efeb72ee02d2d20d7bd0ed7c2e2374765043f7210dc4942ab5596a7856
|
4
|
+
data.tar.gz: eac3fe346a83378aa43975d0916d83c416336ee843f0acd2f4fc3981b07f1d45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4691bd6a6d43239fcc5fb4d205d46b44c801fe062cda8ff555f1016aca5499f2bebe144fb81c73813bf8255fbc85b78dc80768548a5b507ea189ee479aed525e
|
7
|
+
data.tar.gz: 69f3f8f83c8d3e3fbef38b0fa519e0d2f8eec280a615cce1ba3dd9efce526d5629f0682edae642f770857fe473b5d27099bd254dd489e2b73c52c7debebd41fe
|
data/README.md
CHANGED
@@ -81,7 +81,7 @@ session times out, simply create a new session and resume where you left off. Th
|
|
81
81
|
automatically handled by SDKs because we do not want to store password information in memory without
|
82
82
|
your explicit consent.
|
83
83
|
|
84
|
-
#### Logging
|
84
|
+
#### Logging In
|
85
85
|
|
86
86
|
To create a session, the `create` method is called on the `Files::Session` object with the user's username and
|
87
87
|
password.
|
@@ -92,7 +92,7 @@ This returns a session object that can be used to authenticate SDK method calls.
|
|
92
92
|
session = Files::Session.create(username: "username", password: "password")
|
93
93
|
```
|
94
94
|
|
95
|
-
#### Using a
|
95
|
+
#### Using a Session
|
96
96
|
|
97
97
|
Once a session has been created, you can store the session globally, use the session per object, or use the session per request to authenticate SDK operations.
|
98
98
|
|
@@ -108,7 +108,7 @@ Files::Group.list({}, session_id: session.id)
|
|
108
108
|
|
109
109
|
````
|
110
110
|
|
111
|
-
#### Logging
|
111
|
+
#### Logging Out
|
112
112
|
|
113
113
|
User sessions can be ended calling the `destroy` method on the `session` object.
|
114
114
|
|
@@ -118,7 +118,7 @@ session.destroy()
|
|
118
118
|
|
119
119
|
## Configuration
|
120
120
|
|
121
|
-
### Configuration
|
121
|
+
### Configuration Options
|
122
122
|
|
123
123
|
#### Base URL
|
124
124
|
|
@@ -129,7 +129,7 @@ This can also be set to use a mock server in development or CI.
|
|
129
129
|
Files.base_url = "https://SUBDOMAIN.files.com"
|
130
130
|
```
|
131
131
|
|
132
|
-
#### Log
|
132
|
+
#### Log Level
|
133
133
|
|
134
134
|
Supported values:
|
135
135
|
* `nil`
|
@@ -152,7 +152,7 @@ Files.proxy = {
|
|
152
152
|
}
|
153
153
|
```
|
154
154
|
|
155
|
-
#### Open
|
155
|
+
#### Open Timeout
|
156
156
|
|
157
157
|
Open timeout in seconds. The default value is 30.
|
158
158
|
|
@@ -160,7 +160,7 @@ Open timeout in seconds. The default value is 30.
|
|
160
160
|
Files.open_timeout = 60
|
161
161
|
```
|
162
162
|
|
163
|
-
#### Read
|
163
|
+
#### Read Timeout
|
164
164
|
|
165
165
|
Read timeout in seconds. The default value is 80.
|
166
166
|
|
@@ -168,7 +168,7 @@ Read timeout in seconds. The default value is 80.
|
|
168
168
|
Files.read_timeout = 90
|
169
169
|
```
|
170
170
|
|
171
|
-
#### Initial
|
171
|
+
#### Initial Network Retry Delay
|
172
172
|
|
173
173
|
Initial retry delay in seconds. The default value is 0.5.
|
174
174
|
|
@@ -176,7 +176,7 @@ Initial retry delay in seconds. The default value is 0.5.
|
|
176
176
|
Files.initial_network_retry_delay = 1
|
177
177
|
```
|
178
178
|
|
179
|
-
#### Maximum
|
179
|
+
#### Maximum Retry Delay
|
180
180
|
|
181
181
|
Maximum network retry delay in seconds. The default value is 2.
|
182
182
|
|
@@ -184,7 +184,7 @@ Maximum network retry delay in seconds. The default value is 2.
|
|
184
184
|
Files.max_network_retry_delay = 5
|
185
185
|
```
|
186
186
|
|
187
|
-
#### Maximum
|
187
|
+
#### Maximum Network Retries
|
188
188
|
|
189
189
|
Maximum number of retries. The default value is 3.
|
190
190
|
|
@@ -427,7 +427,7 @@ for File and Dir, respectively. (Note that the Files.com SDK uses the
|
|
427
427
|
word Folder, not Dir, and Files::Dir is simply an alias for
|
428
428
|
Files::Folder).
|
429
429
|
|
430
|
-
#### List
|
430
|
+
#### List Root Folder
|
431
431
|
|
432
432
|
```ruby
|
433
433
|
Files::Folder.list_for("/").each do |file|
|
@@ -435,7 +435,7 @@ Files::Folder.list_for("/").each do |file|
|
|
435
435
|
end
|
436
436
|
```
|
437
437
|
|
438
|
-
#### Writing a
|
438
|
+
#### Writing a File
|
439
439
|
|
440
440
|
```ruby
|
441
441
|
Files::upload_file("local.txt", "/remote.txt")
|
@@ -447,7 +447,7 @@ File.open("local.txt") do |local_file|
|
|
447
447
|
end
|
448
448
|
```
|
449
449
|
|
450
|
-
#### Reading a
|
450
|
+
#### Reading a File
|
451
451
|
|
452
452
|
```ruby
|
453
453
|
Files::File.find("foo.txt").read
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.130
|
data/docs/site.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
```
|
6
6
|
{
|
7
|
+
"id": 1,
|
7
8
|
"name": "My Site",
|
8
9
|
"additional_text_file_types": [
|
9
10
|
"example"
|
@@ -285,6 +286,7 @@
|
|
285
286
|
}
|
286
287
|
```
|
287
288
|
|
289
|
+
* `id` (int64): Site Id
|
288
290
|
* `name` (string): Site name
|
289
291
|
* `additional_text_file_types` (array(string)): Additional extensions that are considered text files
|
290
292
|
* `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
|
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.130
|
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-09-
|
11
|
+
date: 2024-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|