files.com 1.0.71 → 1.0.76

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba11ccb193f6c7ada9965b54d78719ccd41523a54c393d6ddd26dd7a95208d4d
4
- data.tar.gz: 9ab54afdb9798cb42082ee5a8d4f832177146ef18521f101eef2f451dbbeb3e5
3
+ metadata.gz: e92b02ee9649f4629d85231228a8f1d6b59d81b458ee9c7503e3ed244f08f7c7
4
+ data.tar.gz: 1c06cb0d6e39863cbf38291043f757b30133dd27db493ff6183c61b9941bfb51
5
5
  SHA512:
6
- metadata.gz: eebe72236cb31ad47a3a54e91236f955d879d1645eb93ce705beb2af7dea5e43d35c5532e6f025257561f8607c4eb79faad37c4f09280969de942e2a32454af7
7
- data.tar.gz: 72f30ebfafbeca587380f4b88722a108cf8f01b6be4549cd7f03201a8a986c054e8bfb08ed9a2f03ef0073f80d0590e943e33692b142d374e1b950f7594b6708
6
+ metadata.gz: bb9cb7d730a80e1bb9aab05cb5927e813015b429f0d4f32724d7956fda0e78dc1ede4a5c616b6e630ff51c666e58f089a0f6edc757161e556cd8cd5f6c26e4cc
7
+ data.tar.gz: 2a9079000a415245a92ee1d809974a2cfe167cf46d16292c11de8ecdc5253328562f676171595a2c7e681dd7c8c5c06e193af77333a86e20471fef7d8bc63985
data/Gemfile CHANGED
@@ -3,10 +3,10 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development, :test do
6
+ gem 'memory_profiler'
6
7
  gem 'pry'
7
8
  gem 'pry-byebug'
8
9
  gem 'rake', '~> 12.0.0'
9
10
  gem 'rspec', '~> 3.9.0'
10
11
  gem 'rubocop'
11
- gem 'memory_profiler'
12
12
  end
@@ -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.71
1
+ 1.0.76
@@ -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
  ---
@@ -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.
@@ -25,7 +25,11 @@
25
25
  "wasabi_region": "my-bucket",
26
26
  "rackspace_username": "rackspaceuser",
27
27
  "rackspace_region": "dfw",
28
- "rackspace_container": "my-container"
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"
29
33
  }
30
34
  ```
31
35
 
@@ -51,6 +55,10 @@
51
55
  * `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
52
56
  * `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
53
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
54
62
  * `aws_access_key` (string): AWS Access Key.
55
63
  * `aws_secret_key` (string): AWS secret key.
56
64
  * `password` (string): Password if needed.
@@ -61,6 +69,7 @@
61
69
  * `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
62
70
  * `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
63
71
  * `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
72
+ * `reset_authentication` (boolean): Reset authenticated account
64
73
 
65
74
 
66
75
  ---
@@ -100,6 +109,7 @@ Files::RemoteServer.find(id)
100
109
 
101
110
  ```
102
111
  Files::RemoteServer.create(
112
+ reset_authentication: true,
103
113
  hostname: "remote-server.com",
104
114
  name: "My Remote server",
105
115
  max_connections: 1,
@@ -119,7 +129,8 @@ Files::RemoteServer.create(
119
129
  wasabi_region: "my-bucket",
120
130
  rackspace_username: "rackspaceuser",
121
131
  rackspace_region: "dfw",
122
- rackspace_container: "my-container"
132
+ rackspace_container: "my-container",
133
+ one_drive_account_type: "personnel"
123
134
  )
124
135
  ```
125
136
 
@@ -135,6 +146,7 @@ Files::RemoteServer.create(
135
146
  * `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
136
147
  * `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
137
148
  * `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
149
+ * `reset_authentication` (boolean): Reset authenticated account
138
150
  * `hostname` (string): Hostname or IP address
139
151
  * `name` (string): Internal name for your reference
140
152
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
@@ -155,6 +167,7 @@ Files::RemoteServer.create(
155
167
  * `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
156
168
  * `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
157
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
158
171
 
159
172
 
160
173
  ---
@@ -163,6 +176,7 @@ Files::RemoteServer.create(
163
176
 
164
177
  ```
165
178
  Files::RemoteServer.update(id,
179
+ reset_authentication: true,
166
180
  hostname: "remote-server.com",
167
181
  name: "My Remote server",
168
182
  max_connections: 1,
@@ -182,7 +196,8 @@ Files::RemoteServer.update(id,
182
196
  wasabi_region: "my-bucket",
183
197
  rackspace_username: "rackspaceuser",
184
198
  rackspace_region: "dfw",
185
- rackspace_container: "my-container"
199
+ rackspace_container: "my-container",
200
+ one_drive_account_type: "personnel"
186
201
  )
187
202
  ```
188
203
 
@@ -199,6 +214,7 @@ Files::RemoteServer.update(id,
199
214
  * `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
200
215
  * `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
201
216
  * `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
217
+ * `reset_authentication` (boolean): Reset authenticated account
202
218
  * `hostname` (string): Hostname or IP address
203
219
  * `name` (string): Internal name for your reference
204
220
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
@@ -219,6 +235,7 @@ Files::RemoteServer.update(id,
219
235
  * `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
220
236
  * `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
221
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
222
239
 
223
240
 
224
241
  ---
@@ -242,6 +259,7 @@ Files::RemoteServer.delete(id)
242
259
  remote_server = Files::RemoteServer.list_for(path).first
243
260
 
244
261
  remote_server.update(
262
+ reset_authentication: true,
245
263
  hostname: "remote-server.com",
246
264
  name: "My Remote server",
247
265
  max_connections: 1,
@@ -261,7 +279,8 @@ remote_server.update(
261
279
  wasabi_region: "my-bucket",
262
280
  rackspace_username: "rackspaceuser",
263
281
  rackspace_region: "dfw",
264
- rackspace_container: "my-container"
282
+ rackspace_container: "my-container",
283
+ one_drive_account_type: "personnel"
265
284
  )
266
285
  ```
267
286
 
@@ -278,6 +297,7 @@ remote_server.update(
278
297
  * `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
279
298
  * `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
280
299
  * `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
300
+ * `reset_authentication` (boolean): Reset authenticated account
281
301
  * `hostname` (string): Hostname or IP address
282
302
  * `name` (string): Internal name for your reference
283
303
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
@@ -298,6 +318,7 @@ remote_server.update(
298
318
  * `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
299
319
  * `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
300
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
301
322
 
302
323
 
303
324
  ---