files.com 1.0.72 → 1.0.77

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: 5397e4d501363c18da150487abd53f51c5598e1164c72f6fc931b889e30e369b
4
- data.tar.gz: 86bd4ab54c0414bd15c193b5d1edaeafe2ae4a8941bf45264f510a0d876c6a8b
3
+ metadata.gz: d9a51f85cdfb6f53328a7ba37b464c4c1e92f741707e0598b4ed4b70a608b5dc
4
+ data.tar.gz: 5e3d7b201f518ff1f65c0ddc1943dee7f549693141935f950786b0293396c368
5
5
  SHA512:
6
- metadata.gz: 1dbbc3649577ee65f36d4bb1447b7151cd82c8a27bc90927cede2528fcbc74e46f3c9af5dcd55ddf4a92653b9daac4cc5301ea3aa9edff005398efc7c7d7abcf
7
- data.tar.gz: cdf2076851cf376f29f2970dae6afcdb0a4fbb98e5ca83ccbf50e8bfed8524a96cac5551a435ed17ef1b99a66122199b873a190766b88971e53fcd1dae184f14
6
+ metadata.gz: 28568c4de2bcf15925978fa9c645be7c4614bd276287103226bcafb949e001de1d07946274d82239c80b87ad1153bc9d1c8c194f64d5f75b1a0635265f97bb0b
7
+ data.tar.gz: 0e1a26eba12d2567865ef7d0555d088dce57710064eac501db9a6a9b870dfe7749800a7c9633bb75dbb03b036c1879063e499fd0b88dd7e29e3e5b4bc95d2610
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.72
1
+ 1.0.77
@@ -9,12 +9,16 @@
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",
16
+ "max_uses": 1,
15
17
  "note": "The internal note on the bundle.",
16
18
  "user_id": 1,
17
19
  "username": "user",
20
+ "clickwrap_id": 1,
21
+ "inbox_id": 1,
18
22
  "paths": [
19
23
 
20
24
  ]
@@ -26,12 +30,16 @@
26
30
  * `description` (string): Public description
27
31
  * `password_protected` (boolean): Is this bundle password protected?
28
32
  * `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
33
+ * `clickwrap_body` (string): Legal text that must be agreed to prior to accessing Bundle.
29
34
  * `id` (int64): Bundle ID
30
35
  * `created_at` (date-time): Bundle created at date/time
31
36
  * `expires_at` (date-time): Bundle expiration date/time
37
+ * `max_uses` (int64): Maximum number of times bundle can be accessed
32
38
  * `note` (string): Bundle internal note
33
39
  * `user_id` (int64): Bundle creator user ID
34
40
  * `username` (string): Bundle creator username
41
+ * `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
42
+ * `inbox_id` (int64): ID of the associated inbox, if available.
35
43
  * `paths` (array): A list of paths in this bundle
36
44
  * `password` (string): Password for this bundle.
37
45
 
@@ -79,10 +87,13 @@ Files::Bundle.create(
79
87
  paths: ["file.txt"],
80
88
  password: "Password",
81
89
  expires_at: "2000-01-01T01:00:00Z",
90
+ max_uses: 1,
82
91
  description: "The public description of the bundle.",
83
92
  note: "The internal note on the bundle.",
84
93
  code: "abc123",
85
- require_registration: true
94
+ require_registration: true,
95
+ clickwrap_id: 1,
96
+ inbox_id: 1
86
97
  )
87
98
  ```
88
99
 
@@ -92,10 +103,13 @@ Files::Bundle.create(
92
103
  * `paths` (array(string)): Required - A list of paths to include in this bundle.
93
104
  * `password` (string): Password for this bundle.
94
105
  * `expires_at` (string): Bundle expiration date/time
106
+ * `max_uses` (int64): Maximum number of times bundle can be accessed
95
107
  * `description` (string): Public description
96
108
  * `note` (string): Bundle internal note
97
109
  * `code` (string): Bundle code. This code forms the end part of the Public URL.
98
110
  * `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
111
+ * `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
112
+ * `inbox_id` (int64): ID of the associated inbox, if available.
99
113
 
100
114
 
101
115
  ---
@@ -124,10 +138,13 @@ Files::Bundle.share(id,
124
138
  Files::Bundle.update(id,
125
139
  password: "Password",
126
140
  expires_at: "2000-01-01T01:00:00Z",
141
+ max_uses: 1,
127
142
  description: "The public description of the bundle.",
128
143
  note: "The internal note on the bundle.",
129
144
  code: "abc123",
130
- require_registration: true
145
+ require_registration: true,
146
+ clickwrap_id: 1,
147
+ inbox_id: 1
131
148
  )
132
149
  ```
133
150
 
@@ -136,10 +153,13 @@ Files::Bundle.update(id,
136
153
  * `id` (int64): Required - Bundle ID.
137
154
  * `password` (string): Password for this bundle.
138
155
  * `expires_at` (string): Bundle expiration date/time
156
+ * `max_uses` (int64): Maximum number of times bundle can be accessed
139
157
  * `description` (string): Public description
140
158
  * `note` (string): Bundle internal note
141
159
  * `code` (string): Bundle code. This code forms the end part of the Public URL.
142
160
  * `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
161
+ * `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
162
+ * `inbox_id` (int64): ID of the associated inbox, if available.
143
163
 
144
164
 
145
165
  ---
@@ -185,10 +205,13 @@ bundle = Files::Bundle.list_for(path).first
185
205
  bundle.update(
186
206
  password: "Password",
187
207
  expires_at: "2000-01-01T01:00:00Z",
208
+ max_uses: 1,
188
209
  description: "The public description of the bundle.",
189
210
  note: "The internal note on the bundle.",
190
211
  code: "abc123",
191
- require_registration: true
212
+ require_registration: true,
213
+ clickwrap_id: 1,
214
+ inbox_id: 1
192
215
  )
193
216
  ```
194
217
 
@@ -197,10 +220,13 @@ bundle.update(
197
220
  * `id` (int64): Required - Bundle ID.
198
221
  * `password` (string): Password for this bundle.
199
222
  * `expires_at` (string): Bundle expiration date/time
223
+ * `max_uses` (int64): Maximum number of times bundle can be accessed
200
224
  * `description` (string): Public description
201
225
  * `note` (string): Bundle internal note
202
226
  * `code` (string): Bundle code. This code forms the end part of the Public URL.
203
227
  * `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
228
+ * `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
229
+ * `inbox_id` (int64): ID of the associated inbox, if available.
204
230
 
205
231
 
206
232
  ---
@@ -0,0 +1,35 @@
1
+ # BundleDownload
2
+
3
+ ## Example BundleDownload Object
4
+
5
+ ```
6
+ {
7
+ "download_method": "file",
8
+ "path": "a/b/test.txt",
9
+ "created_at": "2020-01-01 00:00:00"
10
+ }
11
+ ```
12
+
13
+ * `download_method` (string): Download method (file or full_zip)
14
+ * `path` (string): Download path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
15
+ * `created_at` (date-time): Download date/time
16
+
17
+
18
+ ---
19
+
20
+ ## List Bundle Downloads
21
+
22
+ ```
23
+ Files::BundleDownload.list(
24
+ page: 1,
25
+ per_page: 1,
26
+ bundle_registration_id: 1
27
+ )
28
+ ```
29
+
30
+ ### Parameters
31
+
32
+ * `page` (int64): Current page number.
33
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
34
+ * `action` (string): Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
35
+ * `bundle_registration_id` (int64): Required - BundleRegistration ID
@@ -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.
@@ -83,6 +83,7 @@
83
83
  "session": "",
84
84
  "session_pinned_by_ip": true,
85
85
  "sftp_user_root_enabled": true,
86
+ "sharing_enabled": true,
86
87
  "show_request_access_link": true,
87
88
  "site_footer": "",
88
89
  "site_header": "",
@@ -193,6 +194,7 @@
193
194
  * `session`: Current session
194
195
  * `session_pinned_by_ip` (boolean): Are sessions locked to the same IP? (i.e. do users need to log in again if they change IPs?)
195
196
  * `sftp_user_root_enabled` (boolean): Use user FTP roots also for SFTP?
197
+ * `sharing_enabled` (boolean): Allow bundle creation
196
198
  * `show_request_access_link` (boolean): Show request access link for users without access? Currently unused.
197
199
  * `site_footer` (string): Custom site footer text
198
200
  * `site_header` (string): Custom site header text
@@ -295,6 +297,7 @@ Files::Site.update(
295
297
  disable_users_from_inactivity_period_days: 1,
296
298
  non_sso_groups_allowed: true,
297
299
  non_sso_users_allowed: true,
300
+ sharing_enabled: true,
298
301
  allowed_2fa_method_sms: true,
299
302
  allowed_2fa_method_u2f: true,
300
303
  allowed_2fa_method_totp: true,
@@ -385,6 +388,7 @@ Files::Site.update(
385
388
  * `disable_users_from_inactivity_period_days` (int64): If greater than zero, users will unable to login if they do not show activity within this number of days.
386
389
  * `non_sso_groups_allowed` (boolean): If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
387
390
  * `non_sso_users_allowed` (boolean): If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
391
+ * `sharing_enabled` (boolean): Allow bundle creation
388
392
  * `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
389
393
  * `allowed_2fa_method_u2f` (boolean): Is U2F two factor authentication allowed?
390
394
  * `allowed_2fa_method_totp` (boolean): Is TOTP two factor authentication allowed?
@@ -26,6 +26,7 @@
26
26
  "group_ids": [
27
27
 
28
28
  ],
29
+ "header_text": "User-specific message.",
29
30
  "language": "en",
30
31
  "last_login_at": "2000-01-01T01:00:00Z",
31
32
  "last_protocol_cipher": "",
@@ -72,6 +73,7 @@
72
73
  * `email` (email): User email address
73
74
  * `ftp_permission` (boolean): Can the user access with FTP/FTPS?
74
75
  * `group_ids` (array): Comma-separated list of group IDs of which this user is a member
76
+ * `header_text` (string): Text to display to the user in the header of the UI
75
77
  * `language` (string): Preferred language
76
78
  * `last_login_at` (date-time): User's last login time
77
79
  * `last_protocol_cipher` (string): The last protocol and cipher used
@@ -169,6 +171,7 @@ Files::User.create(
169
171
  dav_permission: true,
170
172
  disabled: true,
171
173
  ftp_permission: true,
174
+ header_text: "User-specific message.",
172
175
  language: "en",
173
176
  notification_daily_send_time: 18,
174
177
  name: "John Doe",
@@ -212,6 +215,7 @@ Files::User.create(
212
215
  * `dav_permission` (boolean): Can the user connect with WebDAV?
213
216
  * `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
214
217
  * `ftp_permission` (boolean): Can the user access with FTP/FTPS?
218
+ * `header_text` (string): Text to display to the user in the header of the UI
215
219
  * `language` (string): Preferred language
216
220
  * `notification_daily_send_time` (int64): Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
217
221
  * `name` (string): User's full name
@@ -291,6 +295,7 @@ Files::User.update(id,
291
295
  dav_permission: true,
292
296
  disabled: true,
293
297
  ftp_permission: true,
298
+ header_text: "User-specific message.",
294
299
  language: "en",
295
300
  notification_daily_send_time: 18,
296
301
  name: "John Doe",
@@ -335,6 +340,7 @@ Files::User.update(id,
335
340
  * `dav_permission` (boolean): Can the user connect with WebDAV?
336
341
  * `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
337
342
  * `ftp_permission` (boolean): Can the user access with FTP/FTPS?
343
+ * `header_text` (string): Text to display to the user in the header of the UI
338
344
  * `language` (string): Preferred language
339
345
  * `notification_daily_send_time` (int64): Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
340
346
  * `name` (string): User's full name
@@ -435,6 +441,7 @@ user.update(
435
441
  dav_permission: true,
436
442
  disabled: true,
437
443
  ftp_permission: true,
444
+ header_text: "User-specific message.",
438
445
  language: "en",
439
446
  notification_daily_send_time: 18,
440
447
  name: "John Doe",
@@ -479,6 +486,7 @@ user.update(
479
486
  * `dav_permission` (boolean): Can the user connect with WebDAV?
480
487
  * `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
481
488
  * `ftp_permission` (boolean): Can the user access with FTP/FTPS?
489
+ * `header_text` (string): Text to display to the user in the header of the UI
482
490
  * `language` (string): Preferred language
483
491
  * `notification_daily_send_time` (int64): Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
484
492
  * `name` (string): User's full name