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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22fec3cc32ce5a889e8c823f1d535d84f1d985a459ea4dfaba9ec3c6c0019e95
4
- data.tar.gz: 5d0941f03098d8db1314c0a6cc4923d4cacd88c01674dbba6f05e8bbb90f5f9d
3
+ metadata.gz: 6e4169efeb72ee02d2d20d7bd0ed7c2e2374765043f7210dc4942ab5596a7856
4
+ data.tar.gz: eac3fe346a83378aa43975d0916d83c416336ee843f0acd2f4fc3981b07f1d45
5
5
  SHA512:
6
- metadata.gz: 5ed0ac6a5a4a243ac36b6cab41858e4dfb3cff399a623cb2ff15801d6070e9a3204cb032d8f5e68b3d331184f9e40a915fe4792d97463bf2cef3d98c857ed8ee
7
- data.tar.gz: 22d58a7e6c2c6d9c391df7e363afcfdb20b07530be7a09eabb35b2d7ecda1d2dec43d9ce028130462d4abb124251b5f157a2a39e312705bc8190bd0bcc637383
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 in
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 session
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 out
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 options
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 level
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 timeout
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 timeout
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 network retry delay
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 retry delay
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 network retries
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 root folder
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 file
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 file
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.128
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?
@@ -9,6 +9,11 @@ module Files
9
9
  @options = options || {}
10
10
  end
11
11
 
12
+ # int64 - Site Id
13
+ def id
14
+ @attributes[:id]
15
+ end
16
+
12
17
  # string - Site name
13
18
  def name
14
19
  @attributes[:name]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.128"
4
+ VERSION = "1.1.130"
5
5
  end
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.128
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-02 00:00:00.000000000 Z
11
+ date: 2024-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable