files.com 1.0.69 → 1.0.74
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +82 -0
- data/_VERSION +1 -1
- data/docs/bundle.md +13 -3
- data/docs/clickwrap.md +143 -0
- data/docs/remote_server.md +53 -4
- data/files.com.gemspec +3 -3
- data/lib/files.com.rb +2 -1
- data/lib/files.com/models/behavior.rb +2 -2
- data/lib/files.com/models/bundle.rb +24 -0
- data/lib/files.com/models/clickwrap.rb +197 -0
- data/lib/files.com/models/file.rb +4 -4
- data/lib/files.com/models/file_action.rb +3 -1
- data/lib/files.com/models/folder.rb +1 -0
- data/lib/files.com/models/remote_server.rb +114 -0
- data/lib/files.com/models/session.rb +1 -0
- data/lib/files.com/models/site.rb +1 -0
- data/lib/files.com/sizable_io.rb +2 -2
- data/spec/spec_helper.rb +1 -3
- data/test/test.rb +1 -1
- metadata +18 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66116793646b3cd90791fcec4e03e61285c72a22cd92b16160db1efb2968f006
|
4
|
+
data.tar.gz: 32de4d820eb178cab2f7e02e8eb452c13ab0ecebdf2aaae9bdc112f3883c0b9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b0475802bc0ba98c9497eb16335637f37d30297589ae96491a32b5302272fe6349e7e6f1007f5e7fdcc813bf1c711f3751c3a2eb6138f6e0192870179632f07
|
7
|
+
data.tar.gz: f5dfd5890fba0f59cc963c6fcc40bf9e0b741cd986d97644ad3bcb0d2657b6717dd74cb9876631fb20e1fba1b82e76e2a7efb68379e082d140e64b72a12fbccb
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
files.com (1.0)
|
5
|
+
addressable (>= 2.7.0)
|
6
|
+
concurrent-ruby (>= 1.1.3)
|
7
|
+
faraday (>= 1.0.1)
|
8
|
+
net-http-persistent
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
addressable (2.7.0)
|
14
|
+
public_suffix (>= 2.0.2, < 5.0)
|
15
|
+
ast (2.4.1)
|
16
|
+
byebug (11.1.3)
|
17
|
+
coderay (1.1.2)
|
18
|
+
concurrent-ruby (1.1.6)
|
19
|
+
connection_pool (2.2.3)
|
20
|
+
diff-lcs (1.3)
|
21
|
+
faraday (1.0.1)
|
22
|
+
multipart-post (>= 1.2, < 3)
|
23
|
+
memory_profiler (0.9.14)
|
24
|
+
method_source (1.0.0)
|
25
|
+
multipart-post (2.1.1)
|
26
|
+
net-http-persistent (4.0.0)
|
27
|
+
connection_pool (~> 2.2)
|
28
|
+
parallel (1.19.2)
|
29
|
+
parser (2.7.1.4)
|
30
|
+
ast (~> 2.4.1)
|
31
|
+
pry (0.13.1)
|
32
|
+
coderay (~> 1.1)
|
33
|
+
method_source (~> 1.0)
|
34
|
+
pry-byebug (3.9.0)
|
35
|
+
byebug (~> 11.0)
|
36
|
+
pry (~> 0.13.0)
|
37
|
+
public_suffix (4.0.5)
|
38
|
+
rainbow (3.0.0)
|
39
|
+
rake (12.0.0)
|
40
|
+
regexp_parser (1.7.1)
|
41
|
+
rexml (3.2.4)
|
42
|
+
rspec (3.9.0)
|
43
|
+
rspec-core (~> 3.9.0)
|
44
|
+
rspec-expectations (~> 3.9.0)
|
45
|
+
rspec-mocks (~> 3.9.0)
|
46
|
+
rspec-core (3.9.1)
|
47
|
+
rspec-support (~> 3.9.1)
|
48
|
+
rspec-expectations (3.9.0)
|
49
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
+
rspec-support (~> 3.9.0)
|
51
|
+
rspec-mocks (3.9.1)
|
52
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
+
rspec-support (~> 3.9.0)
|
54
|
+
rspec-support (3.9.3)
|
55
|
+
rubocop (0.85.1)
|
56
|
+
parallel (~> 1.10)
|
57
|
+
parser (>= 2.7.0.1)
|
58
|
+
rainbow (>= 2.2.2, < 4.0)
|
59
|
+
regexp_parser (>= 1.7)
|
60
|
+
rexml
|
61
|
+
rubocop-ast (>= 0.0.3)
|
62
|
+
ruby-progressbar (~> 1.7)
|
63
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
64
|
+
rubocop-ast (0.0.3)
|
65
|
+
parser (>= 2.7.0.1)
|
66
|
+
ruby-progressbar (1.10.1)
|
67
|
+
unicode-display_width (1.7.0)
|
68
|
+
|
69
|
+
PLATFORMS
|
70
|
+
ruby
|
71
|
+
|
72
|
+
DEPENDENCIES
|
73
|
+
files.com!
|
74
|
+
memory_profiler
|
75
|
+
pry
|
76
|
+
pry-byebug
|
77
|
+
rake (~> 12.0.0)
|
78
|
+
rspec (~> 3.9.0)
|
79
|
+
rubocop
|
80
|
+
|
81
|
+
BUNDLED WITH
|
82
|
+
2.1.4
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.74
|
data/docs/bundle.md
CHANGED
@@ -9,12 +9,14 @@
|
|
9
9
|
"description": "The public description of the bundle.",
|
10
10
|
"password_protected": true,
|
11
11
|
"require_registration": true,
|
12
|
+
"clickwrap_body": "[Legal text]",
|
12
13
|
"id": 1,
|
13
14
|
"created_at": "2000-01-01T01:00:00Z",
|
14
15
|
"expires_at": "2000-01-01T01:00:00Z",
|
15
16
|
"note": "The internal note on the bundle.",
|
16
17
|
"user_id": 1,
|
17
18
|
"username": "user",
|
19
|
+
"clickwrap_id": 1,
|
18
20
|
"paths": [
|
19
21
|
|
20
22
|
]
|
@@ -26,12 +28,14 @@
|
|
26
28
|
* `description` (string): Public description
|
27
29
|
* `password_protected` (boolean): Is this bundle password protected?
|
28
30
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
31
|
+
* `clickwrap_body` (string): Legal text that must be agreed to prior to accessing Bundle.
|
29
32
|
* `id` (int64): Bundle ID
|
30
33
|
* `created_at` (date-time): Bundle created at date/time
|
31
34
|
* `expires_at` (date-time): Bundle expiration date/time
|
32
35
|
* `note` (string): Bundle internal note
|
33
36
|
* `user_id` (int64): Bundle creator user ID
|
34
37
|
* `username` (string): Bundle creator username
|
38
|
+
* `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
|
35
39
|
* `paths` (array): A list of paths in this bundle
|
36
40
|
* `password` (string): Password for this bundle.
|
37
41
|
|
@@ -82,7 +86,8 @@ Files::Bundle.create(
|
|
82
86
|
description: "The public description of the bundle.",
|
83
87
|
note: "The internal note on the bundle.",
|
84
88
|
code: "abc123",
|
85
|
-
require_registration: true
|
89
|
+
require_registration: true,
|
90
|
+
clickwrap_id: 1
|
86
91
|
)
|
87
92
|
```
|
88
93
|
|
@@ -96,6 +101,7 @@ Files::Bundle.create(
|
|
96
101
|
* `note` (string): Bundle internal note
|
97
102
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
98
103
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
104
|
+
* `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
|
99
105
|
|
100
106
|
|
101
107
|
---
|
@@ -127,7 +133,8 @@ Files::Bundle.update(id,
|
|
127
133
|
description: "The public description of the bundle.",
|
128
134
|
note: "The internal note on the bundle.",
|
129
135
|
code: "abc123",
|
130
|
-
require_registration: true
|
136
|
+
require_registration: true,
|
137
|
+
clickwrap_id: 1
|
131
138
|
)
|
132
139
|
```
|
133
140
|
|
@@ -140,6 +147,7 @@ Files::Bundle.update(id,
|
|
140
147
|
* `note` (string): Bundle internal note
|
141
148
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
142
149
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
150
|
+
* `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
|
143
151
|
|
144
152
|
|
145
153
|
---
|
@@ -188,7 +196,8 @@ bundle.update(
|
|
188
196
|
description: "The public description of the bundle.",
|
189
197
|
note: "The internal note on the bundle.",
|
190
198
|
code: "abc123",
|
191
|
-
require_registration: true
|
199
|
+
require_registration: true,
|
200
|
+
clickwrap_id: 1
|
192
201
|
)
|
193
202
|
```
|
194
203
|
|
@@ -201,6 +210,7 @@ bundle.update(
|
|
201
210
|
* `note` (string): Bundle internal note
|
202
211
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
203
212
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
213
|
+
* `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
|
204
214
|
|
205
215
|
|
206
216
|
---
|
data/docs/clickwrap.md
ADDED
@@ -0,0 +1,143 @@
|
|
1
|
+
# Clickwrap
|
2
|
+
|
3
|
+
## Example Clickwrap Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"name": "Example Site NDA for Files.com Use",
|
8
|
+
"body": "[Legal body text]",
|
9
|
+
"use_with_users": "",
|
10
|
+
"use_with_bundles": "",
|
11
|
+
"use_with_inboxes": ""
|
12
|
+
}
|
13
|
+
```
|
14
|
+
|
15
|
+
* `name` (string): Name of the Clickwrap agreement (used when selecting from multiple Clickwrap agreements.)
|
16
|
+
* `body` (string): Body text of Clickwrap (supports Markdown formatting).
|
17
|
+
* `use_with_users` (string): Use this Clickwrap for User Registrations? Note: This only applies to User Registrations where the User is invited to your Files.com site using an E-Mail invitation process where they then set their own password.
|
18
|
+
* `use_with_bundles` (string): Use this Clickwrap for Bundles?
|
19
|
+
* `use_with_inboxes` (string): Use this Clickwrap for Inboxes?
|
20
|
+
* `id` (int64): Clickwrap ID.
|
21
|
+
|
22
|
+
|
23
|
+
---
|
24
|
+
|
25
|
+
## List Clickwraps
|
26
|
+
|
27
|
+
```
|
28
|
+
Files::Clickwrap.list(
|
29
|
+
page: 1,
|
30
|
+
per_page: 1
|
31
|
+
)
|
32
|
+
```
|
33
|
+
|
34
|
+
### Parameters
|
35
|
+
|
36
|
+
* `page` (int64): Current page number.
|
37
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
38
|
+
* `action` (string): Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
39
|
+
|
40
|
+
|
41
|
+
---
|
42
|
+
|
43
|
+
## Show Clickwrap
|
44
|
+
|
45
|
+
```
|
46
|
+
Files::Clickwrap.find(id)
|
47
|
+
```
|
48
|
+
|
49
|
+
### Parameters
|
50
|
+
|
51
|
+
* `id` (int64): Required - Clickwrap ID.
|
52
|
+
|
53
|
+
|
54
|
+
---
|
55
|
+
|
56
|
+
## Create Clickwrap
|
57
|
+
|
58
|
+
```
|
59
|
+
Files::Clickwrap.create(
|
60
|
+
name: "Example Site NDA for Files.com Use",
|
61
|
+
body: "[Legal body text]"
|
62
|
+
)
|
63
|
+
```
|
64
|
+
|
65
|
+
### Parameters
|
66
|
+
|
67
|
+
* `name` (string): Name of the Clickwrap agreement (used when selecting from multiple Clickwrap agreements.)
|
68
|
+
* `body` (string): Body text of Clickwrap (supports Markdown formatting).
|
69
|
+
* `use_with_bundles` (string): Use this Clickwrap for Bundles?
|
70
|
+
* `use_with_inboxes` (string): Use this Clickwrap for Inboxes?
|
71
|
+
* `use_with_users` (string): Use this Clickwrap for User Registrations? Note: This only applies to User Registrations where the User is invited to your Files.com site using an E-Mail invitation process where they then set their own password.
|
72
|
+
|
73
|
+
|
74
|
+
---
|
75
|
+
|
76
|
+
## Update Clickwrap
|
77
|
+
|
78
|
+
```
|
79
|
+
Files::Clickwrap.update(id,
|
80
|
+
name: "Example Site NDA for Files.com Use",
|
81
|
+
body: "[Legal body text]"
|
82
|
+
)
|
83
|
+
```
|
84
|
+
|
85
|
+
### Parameters
|
86
|
+
|
87
|
+
* `id` (int64): Required - Clickwrap ID.
|
88
|
+
* `name` (string): Name of the Clickwrap agreement (used when selecting from multiple Clickwrap agreements.)
|
89
|
+
* `body` (string): Body text of Clickwrap (supports Markdown formatting).
|
90
|
+
* `use_with_bundles` (string): Use this Clickwrap for Bundles?
|
91
|
+
* `use_with_inboxes` (string): Use this Clickwrap for Inboxes?
|
92
|
+
* `use_with_users` (string): Use this Clickwrap for User Registrations? Note: This only applies to User Registrations where the User is invited to your Files.com site using an E-Mail invitation process where they then set their own password.
|
93
|
+
|
94
|
+
|
95
|
+
---
|
96
|
+
|
97
|
+
## Delete Clickwrap
|
98
|
+
|
99
|
+
```
|
100
|
+
Files::Clickwrap.delete(id)
|
101
|
+
```
|
102
|
+
|
103
|
+
### Parameters
|
104
|
+
|
105
|
+
* `id` (int64): Required - Clickwrap ID.
|
106
|
+
|
107
|
+
|
108
|
+
---
|
109
|
+
|
110
|
+
## Update Clickwrap
|
111
|
+
|
112
|
+
```
|
113
|
+
clickwrap = Files::Clickwrap.list_for(path).first
|
114
|
+
|
115
|
+
clickwrap.update(
|
116
|
+
name: "Example Site NDA for Files.com Use",
|
117
|
+
body: "[Legal body text]"
|
118
|
+
)
|
119
|
+
```
|
120
|
+
|
121
|
+
### Parameters
|
122
|
+
|
123
|
+
* `id` (int64): Required - Clickwrap ID.
|
124
|
+
* `name` (string): Name of the Clickwrap agreement (used when selecting from multiple Clickwrap agreements.)
|
125
|
+
* `body` (string): Body text of Clickwrap (supports Markdown formatting).
|
126
|
+
* `use_with_bundles` (string): Use this Clickwrap for Bundles?
|
127
|
+
* `use_with_inboxes` (string): Use this Clickwrap for Inboxes?
|
128
|
+
* `use_with_users` (string): Use this Clickwrap for User Registrations? Note: This only applies to User Registrations where the User is invited to your Files.com site using an E-Mail invitation process where they then set their own password.
|
129
|
+
|
130
|
+
|
131
|
+
---
|
132
|
+
|
133
|
+
## Delete Clickwrap
|
134
|
+
|
135
|
+
```
|
136
|
+
clickwrap = Files::Clickwrap.list_for(path).first
|
137
|
+
|
138
|
+
clickwrap.delete
|
139
|
+
```
|
140
|
+
|
141
|
+
### Parameters
|
142
|
+
|
143
|
+
* `id` (int64): Required - Clickwrap ID.
|
data/docs/remote_server.md
CHANGED
@@ -22,7 +22,14 @@
|
|
22
22
|
"backblaze_b2_s3_endpoint": "s3.us-west-001.backblazeb2.com",
|
23
23
|
"backblaze_b2_bucket": "my-bucket",
|
24
24
|
"wasabi_bucket": "us-west-1",
|
25
|
-
"wasabi_region": "my-bucket"
|
25
|
+
"wasabi_region": "my-bucket",
|
26
|
+
"rackspace_username": "rackspaceuser",
|
27
|
+
"rackspace_region": "dfw",
|
28
|
+
"rackspace_container": "my-container",
|
29
|
+
"auth_setup_link": "auth/:provider",
|
30
|
+
"auth_status": "in_setup",
|
31
|
+
"auth_account_name": "me@example.com",
|
32
|
+
"one_drive_account_type": "personnel"
|
26
33
|
}
|
27
34
|
```
|
28
35
|
|
@@ -45,6 +52,13 @@
|
|
45
52
|
* `backblaze_b2_bucket` (string): Backblaze B2 Cloud Storage Bucket name
|
46
53
|
* `wasabi_bucket` (string): Wasabi region
|
47
54
|
* `wasabi_region` (string): Wasabi Bucket name
|
55
|
+
* `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
|
56
|
+
* `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
57
|
+
* `rackspace_container` (string): The name of the container (top level directory) where files will sync.
|
58
|
+
* `auth_setup_link` (string): Returns link to login with an Oauth provider
|
59
|
+
* `auth_status` (string): Either `in_setup` or `complete`
|
60
|
+
* `auth_account_name` (string): Describes the authorized account
|
61
|
+
* `one_drive_account_type` (string): Either personnel or business_other account types
|
48
62
|
* `aws_access_key` (string): AWS Access Key.
|
49
63
|
* `aws_secret_key` (string): AWS secret key.
|
50
64
|
* `password` (string): Password if needed.
|
@@ -54,6 +68,8 @@
|
|
54
68
|
* `wasabi_secret_key` (string): Wasabi secret key.
|
55
69
|
* `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
|
56
70
|
* `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
|
71
|
+
* `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
|
72
|
+
* `reset_authentication` (boolean): Reset authenticated account
|
57
73
|
|
58
74
|
|
59
75
|
---
|
@@ -93,6 +109,7 @@ Files::RemoteServer.find(id)
|
|
93
109
|
|
94
110
|
```
|
95
111
|
Files::RemoteServer.create(
|
112
|
+
reset_authentication: true,
|
96
113
|
hostname: "remote-server.com",
|
97
114
|
name: "My Remote server",
|
98
115
|
max_connections: 1,
|
@@ -109,7 +126,11 @@ Files::RemoteServer.create(
|
|
109
126
|
backblaze_b2_bucket: "my-bucket",
|
110
127
|
backblaze_b2_s3_endpoint: "s3.us-west-001.backblazeb2.com",
|
111
128
|
wasabi_bucket: "us-west-1",
|
112
|
-
wasabi_region: "my-bucket"
|
129
|
+
wasabi_region: "my-bucket",
|
130
|
+
rackspace_username: "rackspaceuser",
|
131
|
+
rackspace_region: "dfw",
|
132
|
+
rackspace_container: "my-container",
|
133
|
+
one_drive_account_type: "personnel"
|
113
134
|
)
|
114
135
|
```
|
115
136
|
|
@@ -124,6 +145,8 @@ Files::RemoteServer.create(
|
|
124
145
|
* `wasabi_secret_key` (string): Wasabi secret key.
|
125
146
|
* `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
|
126
147
|
* `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
|
148
|
+
* `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
|
149
|
+
* `reset_authentication` (boolean): Reset authenticated account
|
127
150
|
* `hostname` (string): Hostname or IP address
|
128
151
|
* `name` (string): Internal name for your reference
|
129
152
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -141,6 +164,10 @@ Files::RemoteServer.create(
|
|
141
164
|
* `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage S3 Endpoint
|
142
165
|
* `wasabi_bucket` (string): Wasabi region
|
143
166
|
* `wasabi_region` (string): Wasabi Bucket name
|
167
|
+
* `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
|
168
|
+
* `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
169
|
+
* `rackspace_container` (string): The name of the container (top level directory) where files will sync.
|
170
|
+
* `one_drive_account_type` (string): Either personnel or business_other account types
|
144
171
|
|
145
172
|
|
146
173
|
---
|
@@ -149,6 +176,7 @@ Files::RemoteServer.create(
|
|
149
176
|
|
150
177
|
```
|
151
178
|
Files::RemoteServer.update(id,
|
179
|
+
reset_authentication: true,
|
152
180
|
hostname: "remote-server.com",
|
153
181
|
name: "My Remote server",
|
154
182
|
max_connections: 1,
|
@@ -165,7 +193,11 @@ Files::RemoteServer.update(id,
|
|
165
193
|
backblaze_b2_bucket: "my-bucket",
|
166
194
|
backblaze_b2_s3_endpoint: "s3.us-west-001.backblazeb2.com",
|
167
195
|
wasabi_bucket: "us-west-1",
|
168
|
-
wasabi_region: "my-bucket"
|
196
|
+
wasabi_region: "my-bucket",
|
197
|
+
rackspace_username: "rackspaceuser",
|
198
|
+
rackspace_region: "dfw",
|
199
|
+
rackspace_container: "my-container",
|
200
|
+
one_drive_account_type: "personnel"
|
169
201
|
)
|
170
202
|
```
|
171
203
|
|
@@ -181,6 +213,8 @@ Files::RemoteServer.update(id,
|
|
181
213
|
* `wasabi_secret_key` (string): Wasabi secret key.
|
182
214
|
* `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
|
183
215
|
* `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
|
216
|
+
* `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
|
217
|
+
* `reset_authentication` (boolean): Reset authenticated account
|
184
218
|
* `hostname` (string): Hostname or IP address
|
185
219
|
* `name` (string): Internal name for your reference
|
186
220
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -198,6 +232,10 @@ Files::RemoteServer.update(id,
|
|
198
232
|
* `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage S3 Endpoint
|
199
233
|
* `wasabi_bucket` (string): Wasabi region
|
200
234
|
* `wasabi_region` (string): Wasabi Bucket name
|
235
|
+
* `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
|
236
|
+
* `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
237
|
+
* `rackspace_container` (string): The name of the container (top level directory) where files will sync.
|
238
|
+
* `one_drive_account_type` (string): Either personnel or business_other account types
|
201
239
|
|
202
240
|
|
203
241
|
---
|
@@ -221,6 +259,7 @@ Files::RemoteServer.delete(id)
|
|
221
259
|
remote_server = Files::RemoteServer.list_for(path).first
|
222
260
|
|
223
261
|
remote_server.update(
|
262
|
+
reset_authentication: true,
|
224
263
|
hostname: "remote-server.com",
|
225
264
|
name: "My Remote server",
|
226
265
|
max_connections: 1,
|
@@ -237,7 +276,11 @@ remote_server.update(
|
|
237
276
|
backblaze_b2_bucket: "my-bucket",
|
238
277
|
backblaze_b2_s3_endpoint: "s3.us-west-001.backblazeb2.com",
|
239
278
|
wasabi_bucket: "us-west-1",
|
240
|
-
wasabi_region: "my-bucket"
|
279
|
+
wasabi_region: "my-bucket",
|
280
|
+
rackspace_username: "rackspaceuser",
|
281
|
+
rackspace_region: "dfw",
|
282
|
+
rackspace_container: "my-container",
|
283
|
+
one_drive_account_type: "personnel"
|
241
284
|
)
|
242
285
|
```
|
243
286
|
|
@@ -253,6 +296,8 @@ remote_server.update(
|
|
253
296
|
* `wasabi_secret_key` (string): Wasabi secret key.
|
254
297
|
* `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
|
255
298
|
* `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
|
299
|
+
* `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
|
300
|
+
* `reset_authentication` (boolean): Reset authenticated account
|
256
301
|
* `hostname` (string): Hostname or IP address
|
257
302
|
* `name` (string): Internal name for your reference
|
258
303
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -270,6 +315,10 @@ remote_server.update(
|
|
270
315
|
* `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage S3 Endpoint
|
271
316
|
* `wasabi_bucket` (string): Wasabi region
|
272
317
|
* `wasabi_region` (string): Wasabi Bucket name
|
318
|
+
* `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
|
319
|
+
* `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
320
|
+
* `rackspace_container` (string): The name of the container (top level directory) where files will sync.
|
321
|
+
* `one_drive_account_type` (string): Either personnel or business_other account types
|
273
322
|
|
274
323
|
|
275
324
|
---
|
data/files.com.gemspec
CHANGED
@@ -10,11 +10,11 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.summary = "Files.com Ruby client."
|
11
11
|
s.description = "The Files.com Ruby client."
|
12
12
|
s.license = "MIT"
|
13
|
-
s.required_ruby_version = ">= 2.
|
13
|
+
s.required_ruby_version = ">= 2.5"
|
14
|
+
s.add_dependency 'addressable', ">= 2.7.0"
|
15
|
+
s.add_dependency 'concurrent-ruby', ">= 1.1.3"
|
14
16
|
s.add_dependency 'faraday', ">= 1.0.1"
|
15
17
|
s.add_dependency 'net-http-persistent'
|
16
|
-
s.add_dependency 'addressable', ">= 2.7.0"
|
17
|
-
s.add_dependency 'concurrent-ruby', ">= 1.1.6"
|
18
18
|
|
19
19
|
s.files = `find *`.split("\n").uniq.sort.reject(&:empty?)
|
20
20
|
s.executables = [ "files", "files-console" ]
|
data/lib/files.com.rb
CHANGED
@@ -34,6 +34,7 @@ require "files.com/models/auto"
|
|
34
34
|
require "files.com/models/automation"
|
35
35
|
require "files.com/models/behavior"
|
36
36
|
require "files.com/models/bundle"
|
37
|
+
require "files.com/models/clickwrap"
|
37
38
|
require "files.com/models/dns_record"
|
38
39
|
require "files.com/models/errors"
|
39
40
|
require "files.com/models/file"
|
@@ -94,7 +95,7 @@ module Files
|
|
94
95
|
@read_timeout = 80
|
95
96
|
|
96
97
|
class << self
|
97
|
-
attr_accessor :api_key, :base_url, :initial_network_retry_delay, :
|
98
|
+
attr_accessor :api_key, :base_url, :initial_network_retry_delay, :max_network_retry_delay, :open_timeout, :read_timeout, :proxy, :session_id
|
98
99
|
end
|
99
100
|
|
100
101
|
# map to the same values as the standard library's logger
|
@@ -201,9 +201,9 @@ module Files
|
|
201
201
|
def self.update(id, params = {}, options = {})
|
202
202
|
params ||= {}
|
203
203
|
params[:id] = id
|
204
|
-
raise InvalidParameterError.new("Bad parameter: id must be one of String, Integer, Hash") if params.dig(:id) and [String, Integer, Hash].none? { |klass| params.dig(:id).is_a?(klass) }
|
204
|
+
raise InvalidParameterError.new("Bad parameter: id must be one of String, Integer, Hash") if params.dig(:id) and [ String, Integer, Hash ].none? { |klass| params.dig(:id).is_a?(klass) }
|
205
205
|
raise InvalidParameterError.new("Bad parameter: value must be an String") if params.dig(:value) and !params.dig(:value).is_a?(String)
|
206
|
-
raise InvalidParameterError.new("Bad parameter: attachment_file must be one of String, Integer, Hash") if params.dig(:attachment_file) and [String, Integer, Hash].none? { |klass| params.dig(:attachment_file).is_a?(klass) }
|
206
|
+
raise InvalidParameterError.new("Bad parameter: attachment_file must be one of String, Integer, Hash") if params.dig(:attachment_file) and [ String, Integer, Hash ].none? { |klass| params.dig(:attachment_file).is_a?(klass) }
|
207
207
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
208
208
|
|
209
209
|
response, options = Api.send_request("/behaviors/#{params[:id]}", :patch, params, options)
|
@@ -54,6 +54,15 @@ module Files
|
|
54
54
|
@attributes[:require_registration] = value
|
55
55
|
end
|
56
56
|
|
57
|
+
# string - Legal text that must be agreed to prior to accessing Bundle.
|
58
|
+
def clickwrap_body
|
59
|
+
@attributes[:clickwrap_body]
|
60
|
+
end
|
61
|
+
|
62
|
+
def clickwrap_body=(value)
|
63
|
+
@attributes[:clickwrap_body] = value
|
64
|
+
end
|
65
|
+
|
57
66
|
# int64 - Bundle ID
|
58
67
|
def id
|
59
68
|
@attributes[:id]
|
@@ -104,6 +113,15 @@ module Files
|
|
104
113
|
@attributes[:username] = value
|
105
114
|
end
|
106
115
|
|
116
|
+
# int64 - ID of the clickwrap to use with this bundle.
|
117
|
+
def clickwrap_id
|
118
|
+
@attributes[:clickwrap_id]
|
119
|
+
end
|
120
|
+
|
121
|
+
def clickwrap_id=(value)
|
122
|
+
@attributes[:clickwrap_id] = value
|
123
|
+
end
|
124
|
+
|
107
125
|
# array - A list of paths in this bundle
|
108
126
|
def paths
|
109
127
|
@attributes[:paths]
|
@@ -147,6 +165,7 @@ module Files
|
|
147
165
|
# note - string - Bundle internal note
|
148
166
|
# code - string - Bundle code. This code forms the end part of the Public URL.
|
149
167
|
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
168
|
+
# clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
|
150
169
|
def update(params = {})
|
151
170
|
params ||= {}
|
152
171
|
params[:id] = @attributes[:id]
|
@@ -157,6 +176,7 @@ module Files
|
|
157
176
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
|
158
177
|
raise InvalidParameterError.new("Bad parameter: note must be an String") if params.dig(:note) and !params.dig(:note).is_a?(String)
|
159
178
|
raise InvalidParameterError.new("Bad parameter: code must be an String") if params.dig(:code) and !params.dig(:code).is_a?(String)
|
179
|
+
raise InvalidParameterError.new("Bad parameter: clickwrap_id must be an Integer") if params.dig(:clickwrap_id) and !params.dig(:clickwrap_id).is_a?(Integer)
|
160
180
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
161
181
|
|
162
182
|
Api.send_request("/bundles/#{@attributes[:id]}", :patch, params, @options)
|
@@ -231,6 +251,7 @@ module Files
|
|
231
251
|
# note - string - Bundle internal note
|
232
252
|
# code - string - Bundle code. This code forms the end part of the Public URL.
|
233
253
|
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
254
|
+
# clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
|
234
255
|
def self.create(params = {}, options = {})
|
235
256
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
|
236
257
|
raise InvalidParameterError.new("Bad parameter: paths must be an Array") if params.dig(:paths) and !params.dig(:paths).is_a?(Array)
|
@@ -239,6 +260,7 @@ module Files
|
|
239
260
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
|
240
261
|
raise InvalidParameterError.new("Bad parameter: note must be an String") if params.dig(:note) and !params.dig(:note).is_a?(String)
|
241
262
|
raise InvalidParameterError.new("Bad parameter: code must be an String") if params.dig(:code) and !params.dig(:code).is_a?(String)
|
263
|
+
raise InvalidParameterError.new("Bad parameter: clickwrap_id must be an Integer") if params.dig(:clickwrap_id) and !params.dig(:clickwrap_id).is_a?(Integer)
|
242
264
|
raise MissingParameterError.new("Parameter missing: paths") unless params.dig(:paths)
|
243
265
|
|
244
266
|
response, options = Api.send_request("/bundles", :post, params, options)
|
@@ -270,6 +292,7 @@ module Files
|
|
270
292
|
# note - string - Bundle internal note
|
271
293
|
# code - string - Bundle code. This code forms the end part of the Public URL.
|
272
294
|
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
295
|
+
# clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
|
273
296
|
def self.update(id, params = {}, options = {})
|
274
297
|
params ||= {}
|
275
298
|
params[:id] = id
|
@@ -279,6 +302,7 @@ module Files
|
|
279
302
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
|
280
303
|
raise InvalidParameterError.new("Bad parameter: note must be an String") if params.dig(:note) and !params.dig(:note).is_a?(String)
|
281
304
|
raise InvalidParameterError.new("Bad parameter: code must be an String") if params.dig(:code) and !params.dig(:code).is_a?(String)
|
305
|
+
raise InvalidParameterError.new("Bad parameter: clickwrap_id must be an Integer") if params.dig(:clickwrap_id) and !params.dig(:clickwrap_id).is_a?(Integer)
|
282
306
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
283
307
|
|
284
308
|
response, options = Api.send_request("/bundles/#{params[:id]}", :patch, params, options)
|
@@ -0,0 +1,197 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Files
|
4
|
+
class Clickwrap
|
5
|
+
attr_reader :options, :attributes
|
6
|
+
|
7
|
+
def initialize(attributes = {}, options = {})
|
8
|
+
@attributes = attributes || {}
|
9
|
+
@options = options || {}
|
10
|
+
end
|
11
|
+
|
12
|
+
# string - Name of the Clickwrap agreement (used when selecting from multiple Clickwrap agreements.)
|
13
|
+
def name
|
14
|
+
@attributes[:name]
|
15
|
+
end
|
16
|
+
|
17
|
+
def name=(value)
|
18
|
+
@attributes[:name] = value
|
19
|
+
end
|
20
|
+
|
21
|
+
# string - Body text of Clickwrap (supports Markdown formatting).
|
22
|
+
def body
|
23
|
+
@attributes[:body]
|
24
|
+
end
|
25
|
+
|
26
|
+
def body=(value)
|
27
|
+
@attributes[:body] = value
|
28
|
+
end
|
29
|
+
|
30
|
+
# string - Use this Clickwrap for User Registrations? Note: This only applies to User Registrations where the User is invited to your Files.com site using an E-Mail invitation process where they then set their own password.
|
31
|
+
def use_with_users
|
32
|
+
@attributes[:use_with_users]
|
33
|
+
end
|
34
|
+
|
35
|
+
def use_with_users=(value)
|
36
|
+
@attributes[:use_with_users] = value
|
37
|
+
end
|
38
|
+
|
39
|
+
# string - Use this Clickwrap for Bundles?
|
40
|
+
def use_with_bundles
|
41
|
+
@attributes[:use_with_bundles]
|
42
|
+
end
|
43
|
+
|
44
|
+
def use_with_bundles=(value)
|
45
|
+
@attributes[:use_with_bundles] = value
|
46
|
+
end
|
47
|
+
|
48
|
+
# string - Use this Clickwrap for Inboxes?
|
49
|
+
def use_with_inboxes
|
50
|
+
@attributes[:use_with_inboxes]
|
51
|
+
end
|
52
|
+
|
53
|
+
def use_with_inboxes=(value)
|
54
|
+
@attributes[:use_with_inboxes] = value
|
55
|
+
end
|
56
|
+
|
57
|
+
# int64 - Clickwrap ID.
|
58
|
+
def id
|
59
|
+
@attributes[:id]
|
60
|
+
end
|
61
|
+
|
62
|
+
def id=(value)
|
63
|
+
@attributes[:id] = value
|
64
|
+
end
|
65
|
+
|
66
|
+
# Parameters:
|
67
|
+
# name - string - Name of the Clickwrap agreement (used when selecting from multiple Clickwrap agreements.)
|
68
|
+
# body - string - Body text of Clickwrap (supports Markdown formatting).
|
69
|
+
# use_with_bundles - string - Use this Clickwrap for Bundles?
|
70
|
+
# use_with_inboxes - string - Use this Clickwrap for Inboxes?
|
71
|
+
# use_with_users - string - Use this Clickwrap for User Registrations? Note: This only applies to User Registrations where the User is invited to your Files.com site using an E-Mail invitation process where they then set their own password.
|
72
|
+
def update(params = {})
|
73
|
+
params ||= {}
|
74
|
+
params[:id] = @attributes[:id]
|
75
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
76
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
77
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
78
|
+
raise InvalidParameterError.new("Bad parameter: body must be an String") if params.dig(:body) and !params.dig(:body).is_a?(String)
|
79
|
+
raise InvalidParameterError.new("Bad parameter: use_with_bundles must be an String") if params.dig(:use_with_bundles) and !params.dig(:use_with_bundles).is_a?(String)
|
80
|
+
raise InvalidParameterError.new("Bad parameter: use_with_inboxes must be an String") if params.dig(:use_with_inboxes) and !params.dig(:use_with_inboxes).is_a?(String)
|
81
|
+
raise InvalidParameterError.new("Bad parameter: use_with_users must be an String") if params.dig(:use_with_users) and !params.dig(:use_with_users).is_a?(String)
|
82
|
+
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
83
|
+
|
84
|
+
Api.send_request("/clickwraps/#{@attributes[:id]}", :patch, params, @options)
|
85
|
+
end
|
86
|
+
|
87
|
+
def delete(params = {})
|
88
|
+
params ||= {}
|
89
|
+
params[:id] = @attributes[:id]
|
90
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
91
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
92
|
+
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
93
|
+
|
94
|
+
Api.send_request("/clickwraps/#{@attributes[:id]}", :delete, params, @options)
|
95
|
+
end
|
96
|
+
|
97
|
+
def destroy(params = {})
|
98
|
+
delete(params)
|
99
|
+
end
|
100
|
+
|
101
|
+
def save
|
102
|
+
if @attributes[:id]
|
103
|
+
update(@attributes)
|
104
|
+
else
|
105
|
+
new_obj = Clickwrap.create(@attributes, @options)
|
106
|
+
@attributes = new_obj.attributes
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# Parameters:
|
111
|
+
# page - int64 - Current page number.
|
112
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
113
|
+
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
114
|
+
def self.list(params = {}, options = {})
|
115
|
+
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
116
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
117
|
+
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
118
|
+
|
119
|
+
response, options = Api.send_request("/clickwraps", :get, params, options)
|
120
|
+
response.data.map do |entity_data|
|
121
|
+
Clickwrap.new(entity_data, options)
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
def self.all(params = {}, options = {})
|
126
|
+
list(params, options)
|
127
|
+
end
|
128
|
+
|
129
|
+
# Parameters:
|
130
|
+
# id (required) - int64 - Clickwrap ID.
|
131
|
+
def self.find(id, params = {}, options = {})
|
132
|
+
params ||= {}
|
133
|
+
params[:id] = id
|
134
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
135
|
+
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
136
|
+
|
137
|
+
response, options = Api.send_request("/clickwraps/#{params[:id]}", :get, params, options)
|
138
|
+
Clickwrap.new(response.data, options)
|
139
|
+
end
|
140
|
+
|
141
|
+
def self.get(id, params = {}, options = {})
|
142
|
+
find(id, params, options)
|
143
|
+
end
|
144
|
+
|
145
|
+
# Parameters:
|
146
|
+
# name - string - Name of the Clickwrap agreement (used when selecting from multiple Clickwrap agreements.)
|
147
|
+
# body - string - Body text of Clickwrap (supports Markdown formatting).
|
148
|
+
# use_with_bundles - string - Use this Clickwrap for Bundles?
|
149
|
+
# use_with_inboxes - string - Use this Clickwrap for Inboxes?
|
150
|
+
# use_with_users - string - Use this Clickwrap for User Registrations? Note: This only applies to User Registrations where the User is invited to your Files.com site using an E-Mail invitation process where they then set their own password.
|
151
|
+
def self.create(params = {}, options = {})
|
152
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
153
|
+
raise InvalidParameterError.new("Bad parameter: body must be an String") if params.dig(:body) and !params.dig(:body).is_a?(String)
|
154
|
+
raise InvalidParameterError.new("Bad parameter: use_with_bundles must be an String") if params.dig(:use_with_bundles) and !params.dig(:use_with_bundles).is_a?(String)
|
155
|
+
raise InvalidParameterError.new("Bad parameter: use_with_inboxes must be an String") if params.dig(:use_with_inboxes) and !params.dig(:use_with_inboxes).is_a?(String)
|
156
|
+
raise InvalidParameterError.new("Bad parameter: use_with_users must be an String") if params.dig(:use_with_users) and !params.dig(:use_with_users).is_a?(String)
|
157
|
+
|
158
|
+
response, options = Api.send_request("/clickwraps", :post, params, options)
|
159
|
+
Clickwrap.new(response.data, options)
|
160
|
+
end
|
161
|
+
|
162
|
+
# Parameters:
|
163
|
+
# name - string - Name of the Clickwrap agreement (used when selecting from multiple Clickwrap agreements.)
|
164
|
+
# body - string - Body text of Clickwrap (supports Markdown formatting).
|
165
|
+
# use_with_bundles - string - Use this Clickwrap for Bundles?
|
166
|
+
# use_with_inboxes - string - Use this Clickwrap for Inboxes?
|
167
|
+
# use_with_users - string - Use this Clickwrap for User Registrations? Note: This only applies to User Registrations where the User is invited to your Files.com site using an E-Mail invitation process where they then set their own password.
|
168
|
+
def self.update(id, params = {}, options = {})
|
169
|
+
params ||= {}
|
170
|
+
params[:id] = id
|
171
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
172
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
173
|
+
raise InvalidParameterError.new("Bad parameter: body must be an String") if params.dig(:body) and !params.dig(:body).is_a?(String)
|
174
|
+
raise InvalidParameterError.new("Bad parameter: use_with_bundles must be an String") if params.dig(:use_with_bundles) and !params.dig(:use_with_bundles).is_a?(String)
|
175
|
+
raise InvalidParameterError.new("Bad parameter: use_with_inboxes must be an String") if params.dig(:use_with_inboxes) and !params.dig(:use_with_inboxes).is_a?(String)
|
176
|
+
raise InvalidParameterError.new("Bad parameter: use_with_users must be an String") if params.dig(:use_with_users) and !params.dig(:use_with_users).is_a?(String)
|
177
|
+
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
178
|
+
|
179
|
+
response, options = Api.send_request("/clickwraps/#{params[:id]}", :patch, params, options)
|
180
|
+
Clickwrap.new(response.data, options)
|
181
|
+
end
|
182
|
+
|
183
|
+
def self.delete(id, params = {}, options = {})
|
184
|
+
params ||= {}
|
185
|
+
params[:id] = id
|
186
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
187
|
+
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
188
|
+
|
189
|
+
response, _options = Api.send_request("/clickwraps/#{params[:id]}", :delete, params, options)
|
190
|
+
response.data
|
191
|
+
end
|
192
|
+
|
193
|
+
def self.destroy(id, params = {}, options = {})
|
194
|
+
delete(id, params, options)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
end
|
@@ -90,7 +90,7 @@ module Files
|
|
90
90
|
new(path).mtime
|
91
91
|
end
|
92
92
|
|
93
|
-
def self.open(path, mode = "r", options={}, &block)
|
93
|
+
def self.open(path, mode = "r", options = {}, &block)
|
94
94
|
file = new(path, mode, options)
|
95
95
|
if block
|
96
96
|
yield file
|
@@ -306,7 +306,7 @@ module Files
|
|
306
306
|
end
|
307
307
|
|
308
308
|
def download_content(io)
|
309
|
-
Files::ApiClient
|
309
|
+
Files::ApiClient.download_client.stream_download(download_uri_with_load, io)
|
310
310
|
end
|
311
311
|
|
312
312
|
def each(*args, &block)
|
@@ -571,13 +571,13 @@ module Files
|
|
571
571
|
end
|
572
572
|
|
573
573
|
def upload_file(local_file)
|
574
|
-
File.upload_file(local_file.
|
574
|
+
File.upload_file(local_file.path)
|
575
575
|
end
|
576
576
|
|
577
577
|
def write(*args)
|
578
578
|
@mode ||= 'w'
|
579
579
|
if args[0].respond_to?(:read)
|
580
|
-
flush if @write_io.size > 0
|
580
|
+
flush if @write_io.size > 0 # rubocop:disable Style/ZeroLengthPredicate
|
581
581
|
@write_io = args[0]
|
582
582
|
else
|
583
583
|
@write_io.write *args
|
@@ -116,7 +116,9 @@ module Files
|
|
116
116
|
raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
|
117
117
|
|
118
118
|
response, options = Api.send_request("/file_actions/begin_upload/#{Addressable::URI.encode_component(params[:path])}", :post, params, options)
|
119
|
-
|
119
|
+
response.data.map do |entity_data|
|
120
|
+
FilePartUpload.new(entity_data, options)
|
121
|
+
end
|
120
122
|
end
|
121
123
|
end
|
122
124
|
end
|
@@ -180,6 +180,69 @@ module Files
|
|
180
180
|
@attributes[:wasabi_region] = value
|
181
181
|
end
|
182
182
|
|
183
|
+
# string - Rackspace username used to login to the Rackspace Cloud Control Panel.
|
184
|
+
def rackspace_username
|
185
|
+
@attributes[:rackspace_username]
|
186
|
+
end
|
187
|
+
|
188
|
+
def rackspace_username=(value)
|
189
|
+
@attributes[:rackspace_username] = value
|
190
|
+
end
|
191
|
+
|
192
|
+
# string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
193
|
+
def rackspace_region
|
194
|
+
@attributes[:rackspace_region]
|
195
|
+
end
|
196
|
+
|
197
|
+
def rackspace_region=(value)
|
198
|
+
@attributes[:rackspace_region] = value
|
199
|
+
end
|
200
|
+
|
201
|
+
# string - The name of the container (top level directory) where files will sync.
|
202
|
+
def rackspace_container
|
203
|
+
@attributes[:rackspace_container]
|
204
|
+
end
|
205
|
+
|
206
|
+
def rackspace_container=(value)
|
207
|
+
@attributes[:rackspace_container] = value
|
208
|
+
end
|
209
|
+
|
210
|
+
# string - Returns link to login with an Oauth provider
|
211
|
+
def auth_setup_link
|
212
|
+
@attributes[:auth_setup_link]
|
213
|
+
end
|
214
|
+
|
215
|
+
def auth_setup_link=(value)
|
216
|
+
@attributes[:auth_setup_link] = value
|
217
|
+
end
|
218
|
+
|
219
|
+
# string - Either `in_setup` or `complete`
|
220
|
+
def auth_status
|
221
|
+
@attributes[:auth_status]
|
222
|
+
end
|
223
|
+
|
224
|
+
def auth_status=(value)
|
225
|
+
@attributes[:auth_status] = value
|
226
|
+
end
|
227
|
+
|
228
|
+
# string - Describes the authorized account
|
229
|
+
def auth_account_name
|
230
|
+
@attributes[:auth_account_name]
|
231
|
+
end
|
232
|
+
|
233
|
+
def auth_account_name=(value)
|
234
|
+
@attributes[:auth_account_name] = value
|
235
|
+
end
|
236
|
+
|
237
|
+
# string - Either personnel or business_other account types
|
238
|
+
def one_drive_account_type
|
239
|
+
@attributes[:one_drive_account_type]
|
240
|
+
end
|
241
|
+
|
242
|
+
def one_drive_account_type=(value)
|
243
|
+
@attributes[:one_drive_account_type] = value
|
244
|
+
end
|
245
|
+
|
183
246
|
# string - AWS Access Key.
|
184
247
|
def aws_access_key
|
185
248
|
@attributes[:aws_access_key]
|
@@ -261,6 +324,24 @@ module Files
|
|
261
324
|
@attributes[:backblaze_b2_application_key] = value
|
262
325
|
end
|
263
326
|
|
327
|
+
# string - Rackspace API key from the Rackspace Cloud Control Panel.
|
328
|
+
def rackspace_api_key
|
329
|
+
@attributes[:rackspace_api_key]
|
330
|
+
end
|
331
|
+
|
332
|
+
def rackspace_api_key=(value)
|
333
|
+
@attributes[:rackspace_api_key] = value
|
334
|
+
end
|
335
|
+
|
336
|
+
# boolean - Reset authenticated account
|
337
|
+
def reset_authentication
|
338
|
+
@attributes[:reset_authentication]
|
339
|
+
end
|
340
|
+
|
341
|
+
def reset_authentication=(value)
|
342
|
+
@attributes[:reset_authentication] = value
|
343
|
+
end
|
344
|
+
|
264
345
|
# Parameters:
|
265
346
|
# aws_access_key - string - AWS Access Key.
|
266
347
|
# aws_secret_key - string - AWS secret key.
|
@@ -271,6 +352,8 @@ module Files
|
|
271
352
|
# wasabi_secret_key - string - Wasabi secret key.
|
272
353
|
# backblaze_b2_key_id - string - Backblaze B2 Cloud Storage keyID.
|
273
354
|
# backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
|
355
|
+
# rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
|
356
|
+
# reset_authentication - boolean - Reset authenticated account
|
274
357
|
# hostname - string - Hostname or IP address
|
275
358
|
# name - string - Internal name for your reference
|
276
359
|
# max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -288,6 +371,10 @@ module Files
|
|
288
371
|
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage S3 Endpoint
|
289
372
|
# wasabi_bucket - string - Wasabi region
|
290
373
|
# wasabi_region - string - Wasabi Bucket name
|
374
|
+
# rackspace_username - string - Rackspace username used to login to the Rackspace Cloud Control Panel.
|
375
|
+
# rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
376
|
+
# rackspace_container - string - The name of the container (top level directory) where files will sync.
|
377
|
+
# one_drive_account_type - string - Either personnel or business_other account types
|
291
378
|
def update(params = {})
|
292
379
|
params ||= {}
|
293
380
|
params[:id] = @attributes[:id]
|
@@ -302,6 +389,7 @@ module Files
|
|
302
389
|
raise InvalidParameterError.new("Bad parameter: wasabi_secret_key must be an String") if params.dig(:wasabi_secret_key) and !params.dig(:wasabi_secret_key).is_a?(String)
|
303
390
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_key_id must be an String") if params.dig(:backblaze_b2_key_id) and !params.dig(:backblaze_b2_key_id).is_a?(String)
|
304
391
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_application_key must be an String") if params.dig(:backblaze_b2_application_key) and !params.dig(:backblaze_b2_application_key).is_a?(String)
|
392
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_api_key must be an String") if params.dig(:rackspace_api_key) and !params.dig(:rackspace_api_key).is_a?(String)
|
305
393
|
raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
|
306
394
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
307
395
|
raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
|
@@ -319,6 +407,10 @@ module Files
|
|
319
407
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_s3_endpoint must be an String") if params.dig(:backblaze_b2_s3_endpoint) and !params.dig(:backblaze_b2_s3_endpoint).is_a?(String)
|
320
408
|
raise InvalidParameterError.new("Bad parameter: wasabi_bucket must be an String") if params.dig(:wasabi_bucket) and !params.dig(:wasabi_bucket).is_a?(String)
|
321
409
|
raise InvalidParameterError.new("Bad parameter: wasabi_region must be an String") if params.dig(:wasabi_region) and !params.dig(:wasabi_region).is_a?(String)
|
410
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_username must be an String") if params.dig(:rackspace_username) and !params.dig(:rackspace_username).is_a?(String)
|
411
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_region must be an String") if params.dig(:rackspace_region) and !params.dig(:rackspace_region).is_a?(String)
|
412
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_container must be an String") if params.dig(:rackspace_container) and !params.dig(:rackspace_container).is_a?(String)
|
413
|
+
raise InvalidParameterError.new("Bad parameter: one_drive_account_type must be an String") if params.dig(:one_drive_account_type) and !params.dig(:one_drive_account_type).is_a?(String)
|
322
414
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
323
415
|
|
324
416
|
Api.send_request("/remote_servers/#{@attributes[:id]}", :patch, params, @options)
|
@@ -392,6 +484,8 @@ module Files
|
|
392
484
|
# wasabi_secret_key - string - Wasabi secret key.
|
393
485
|
# backblaze_b2_key_id - string - Backblaze B2 Cloud Storage keyID.
|
394
486
|
# backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
|
487
|
+
# rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
|
488
|
+
# reset_authentication - boolean - Reset authenticated account
|
395
489
|
# hostname - string - Hostname or IP address
|
396
490
|
# name - string - Internal name for your reference
|
397
491
|
# max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -409,6 +503,10 @@ module Files
|
|
409
503
|
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage S3 Endpoint
|
410
504
|
# wasabi_bucket - string - Wasabi region
|
411
505
|
# wasabi_region - string - Wasabi Bucket name
|
506
|
+
# rackspace_username - string - Rackspace username used to login to the Rackspace Cloud Control Panel.
|
507
|
+
# rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
508
|
+
# rackspace_container - string - The name of the container (top level directory) where files will sync.
|
509
|
+
# one_drive_account_type - string - Either personnel or business_other account types
|
412
510
|
def self.create(params = {}, options = {})
|
413
511
|
raise InvalidParameterError.new("Bad parameter: aws_access_key must be an String") if params.dig(:aws_access_key) and !params.dig(:aws_access_key).is_a?(String)
|
414
512
|
raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params.dig(:aws_secret_key) and !params.dig(:aws_secret_key).is_a?(String)
|
@@ -419,6 +517,7 @@ module Files
|
|
419
517
|
raise InvalidParameterError.new("Bad parameter: wasabi_secret_key must be an String") if params.dig(:wasabi_secret_key) and !params.dig(:wasabi_secret_key).is_a?(String)
|
420
518
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_key_id must be an String") if params.dig(:backblaze_b2_key_id) and !params.dig(:backblaze_b2_key_id).is_a?(String)
|
421
519
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_application_key must be an String") if params.dig(:backblaze_b2_application_key) and !params.dig(:backblaze_b2_application_key).is_a?(String)
|
520
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_api_key must be an String") if params.dig(:rackspace_api_key) and !params.dig(:rackspace_api_key).is_a?(String)
|
422
521
|
raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
|
423
522
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
424
523
|
raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
|
@@ -436,6 +535,10 @@ module Files
|
|
436
535
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_s3_endpoint must be an String") if params.dig(:backblaze_b2_s3_endpoint) and !params.dig(:backblaze_b2_s3_endpoint).is_a?(String)
|
437
536
|
raise InvalidParameterError.new("Bad parameter: wasabi_bucket must be an String") if params.dig(:wasabi_bucket) and !params.dig(:wasabi_bucket).is_a?(String)
|
438
537
|
raise InvalidParameterError.new("Bad parameter: wasabi_region must be an String") if params.dig(:wasabi_region) and !params.dig(:wasabi_region).is_a?(String)
|
538
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_username must be an String") if params.dig(:rackspace_username) and !params.dig(:rackspace_username).is_a?(String)
|
539
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_region must be an String") if params.dig(:rackspace_region) and !params.dig(:rackspace_region).is_a?(String)
|
540
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_container must be an String") if params.dig(:rackspace_container) and !params.dig(:rackspace_container).is_a?(String)
|
541
|
+
raise InvalidParameterError.new("Bad parameter: one_drive_account_type must be an String") if params.dig(:one_drive_account_type) and !params.dig(:one_drive_account_type).is_a?(String)
|
439
542
|
|
440
543
|
response, options = Api.send_request("/remote_servers", :post, params, options)
|
441
544
|
RemoteServer.new(response.data, options)
|
@@ -451,6 +554,8 @@ module Files
|
|
451
554
|
# wasabi_secret_key - string - Wasabi secret key.
|
452
555
|
# backblaze_b2_key_id - string - Backblaze B2 Cloud Storage keyID.
|
453
556
|
# backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
|
557
|
+
# rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
|
558
|
+
# reset_authentication - boolean - Reset authenticated account
|
454
559
|
# hostname - string - Hostname or IP address
|
455
560
|
# name - string - Internal name for your reference
|
456
561
|
# max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -468,6 +573,10 @@ module Files
|
|
468
573
|
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage S3 Endpoint
|
469
574
|
# wasabi_bucket - string - Wasabi region
|
470
575
|
# wasabi_region - string - Wasabi Bucket name
|
576
|
+
# rackspace_username - string - Rackspace username used to login to the Rackspace Cloud Control Panel.
|
577
|
+
# rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
578
|
+
# rackspace_container - string - The name of the container (top level directory) where files will sync.
|
579
|
+
# one_drive_account_type - string - Either personnel or business_other account types
|
471
580
|
def self.update(id, params = {}, options = {})
|
472
581
|
params ||= {}
|
473
582
|
params[:id] = id
|
@@ -481,6 +590,7 @@ module Files
|
|
481
590
|
raise InvalidParameterError.new("Bad parameter: wasabi_secret_key must be an String") if params.dig(:wasabi_secret_key) and !params.dig(:wasabi_secret_key).is_a?(String)
|
482
591
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_key_id must be an String") if params.dig(:backblaze_b2_key_id) and !params.dig(:backblaze_b2_key_id).is_a?(String)
|
483
592
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_application_key must be an String") if params.dig(:backblaze_b2_application_key) and !params.dig(:backblaze_b2_application_key).is_a?(String)
|
593
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_api_key must be an String") if params.dig(:rackspace_api_key) and !params.dig(:rackspace_api_key).is_a?(String)
|
484
594
|
raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
|
485
595
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
486
596
|
raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
|
@@ -498,6 +608,10 @@ module Files
|
|
498
608
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_s3_endpoint must be an String") if params.dig(:backblaze_b2_s3_endpoint) and !params.dig(:backblaze_b2_s3_endpoint).is_a?(String)
|
499
609
|
raise InvalidParameterError.new("Bad parameter: wasabi_bucket must be an String") if params.dig(:wasabi_bucket) and !params.dig(:wasabi_bucket).is_a?(String)
|
500
610
|
raise InvalidParameterError.new("Bad parameter: wasabi_region must be an String") if params.dig(:wasabi_region) and !params.dig(:wasabi_region).is_a?(String)
|
611
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_username must be an String") if params.dig(:rackspace_username) and !params.dig(:rackspace_username).is_a?(String)
|
612
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_region must be an String") if params.dig(:rackspace_region) and !params.dig(:rackspace_region).is_a?(String)
|
613
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_container must be an String") if params.dig(:rackspace_container) and !params.dig(:rackspace_container).is_a?(String)
|
614
|
+
raise InvalidParameterError.new("Bad parameter: one_drive_account_type must be an String") if params.dig(:one_drive_account_type) and !params.dig(:one_drive_account_type).is_a?(String)
|
501
615
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
502
616
|
|
503
617
|
response, options = Api.send_request("/remote_servers/#{params[:id]}", :patch, params, options)
|
@@ -666,6 +666,7 @@ module Files
|
|
666
666
|
raise InvalidParameterError.new("Bad parameter: default_time_zone must be an String") if params.dig(:default_time_zone) and !params.dig(:default_time_zone).is_a?(String)
|
667
667
|
raise InvalidParameterError.new("Bad parameter: desktop_app_session_lifetime must be an Integer") if params.dig(:desktop_app_session_lifetime) and !params.dig(:desktop_app_session_lifetime).is_a?(Integer)
|
668
668
|
raise InvalidParameterError.new("Bad parameter: welcome_screen must be an String") if params.dig(:welcome_screen) and !params.dig(:welcome_screen).is_a?(String)
|
669
|
+
raise InvalidParameterError.new("Bad parameter: session_expiry must be an Float") if params.dig(:session_expiry) and !params.dig(:session_expiry).is_a?(Float)
|
669
670
|
raise InvalidParameterError.new("Bad parameter: user_lockout_tries must be an Integer") if params.dig(:user_lockout_tries) and !params.dig(:user_lockout_tries).is_a?(Integer)
|
670
671
|
raise InvalidParameterError.new("Bad parameter: user_lockout_within must be an Integer") if params.dig(:user_lockout_within) and !params.dig(:user_lockout_within).is_a?(Integer)
|
671
672
|
raise InvalidParameterError.new("Bad parameter: user_lockout_lock_period must be an Integer") if params.dig(:user_lockout_lock_period) and !params.dig(:user_lockout_lock_period).is_a?(Integer)
|
data/lib/files.com/sizable_io.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -16,9 +16,7 @@ RSpec.configure do |config|
|
|
16
16
|
let(:options) { { api_key: api_key } }
|
17
17
|
end
|
18
18
|
|
19
|
-
|
20
|
-
config.include_context "API Helpers", :with_test_folder
|
21
|
-
end
|
19
|
+
config.include_context "API Helpers", :with_test_folder
|
22
20
|
|
23
21
|
config.around(:example, :with_test_folder) do |all|
|
24
22
|
@api_key = ENV["TEST_API_KEY"] || File.read("../../config/test_api_key.txt")
|
data/test/test.rb
CHANGED
@@ -63,7 +63,7 @@ end
|
|
63
63
|
|
64
64
|
def test_sessions
|
65
65
|
session = Files::Session.create(username: "sessionuser", password: "sessionuserpassword")
|
66
|
-
|
66
|
+
Files::ApiKey.list({ user_id: 0 }, session: session)
|
67
67
|
session.destroy
|
68
68
|
end
|
69
69
|
|
metadata
CHANGED
@@ -1,71 +1,71 @@
|
|
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.74
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: addressable
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.7.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.7.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: concurrent-ruby
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.1.3
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.1.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: faraday
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.0.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.0.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: net-http-persistent
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: '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: '0'
|
69
69
|
description: The Files.com Ruby client.
|
70
70
|
email:
|
71
71
|
- support@files.com
|
@@ -77,6 +77,7 @@ extra_rdoc_files: []
|
|
77
77
|
files:
|
78
78
|
- CONTRIBUTORS
|
79
79
|
- Gemfile
|
80
|
+
- Gemfile.lock
|
80
81
|
- LICENSE
|
81
82
|
- README.md
|
82
83
|
- Rakefile
|
@@ -91,6 +92,7 @@ files:
|
|
91
92
|
- docs/automation.md
|
92
93
|
- docs/behavior.md
|
93
94
|
- docs/bundle.md
|
95
|
+
- docs/clickwrap.md
|
94
96
|
- docs/dns_record.md
|
95
97
|
- docs/errors.md
|
96
98
|
- docs/file.md
|
@@ -145,6 +147,7 @@ files:
|
|
145
147
|
- lib/files.com/models/automation.rb
|
146
148
|
- lib/files.com/models/behavior.rb
|
147
149
|
- lib/files.com/models/bundle.rb
|
150
|
+
- lib/files.com/models/clickwrap.rb
|
148
151
|
- lib/files.com/models/dir.rb
|
149
152
|
- lib/files.com/models/dns_record.rb
|
150
153
|
- lib/files.com/models/errors.rb
|
@@ -209,7 +212,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
209
212
|
requirements:
|
210
213
|
- - ">="
|
211
214
|
- !ruby/object:Gem::Version
|
212
|
-
version: '2.
|
215
|
+
version: '2.5'
|
213
216
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
214
217
|
requirements:
|
215
218
|
- - ">="
|