files.com 1.1.128 → 1.1.129
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/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: 3c960b9d5d4b80d65f84c05f3354cab4788805a81e360747b57d717ff4c54cba
|
4
|
+
data.tar.gz: 6a0ebb8cd98134f2e5c0585f6aa22967dcdb913a25b9ffc8ff58ffd23cfe1c5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d61d61aad27a0451446182948ff03fb111a65e4742652c3b59abd09a51786a888247c4c0ea826b3e2948539732664a9cc740dfc2af1bdf6d3a7afe2ed77c73d9
|
7
|
+
data.tar.gz: 75589ac8a351977f6a7ca868b5bdf53848ffb1b418d4847411aa94e03e413cf3cfb58c570925e3f2f7830e7254464e7cb5af34c62954bc128d8a128977498f9a
|
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.129
|
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.129
|
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-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|