files.com 1.0.65 → 1.0.66
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 +4 -4
- data/_VERSION +1 -1
- data/docs/bundle.md +24 -16
- data/lib/files.com/models/bundle.rb +49 -37
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e4a2bc035d0e4d4e0f653c54d0b5e78a6b10a2976ae0d002dd88ce76b55c414
|
4
|
+
data.tar.gz: 3d8337b9ee382d61c0d63a279b25cccc72e785c52af0e99604e2171ce659eafa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3035d31c71891d53be25324ac06d26d92ecced24ab73574cbb2b73786b3f25666d07a06d6589a1363daf289d87dea93c3f2dabfd05ac652d061050d18974da25
|
7
|
+
data.tar.gz: d6fcd3f9394bf481cb94dfddbcc0c92a3e5cb68c6673632dff2a4557f1fe396206a563fba5b38ad53798d14479ec3453c6e9b84b17f205d8cbcc8ea60d01ae23
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.66
|
data/docs/bundle.md
CHANGED
@@ -4,33 +4,35 @@
|
|
4
4
|
|
5
5
|
```
|
6
6
|
{
|
7
|
-
"id": 1,
|
8
7
|
"code": "abc123",
|
9
|
-
"
|
8
|
+
"url": "https://subdomain.files.com/f/12345678",
|
10
9
|
"description": "The public description of the bundle.",
|
10
|
+
"password_protected": true,
|
11
|
+
"require_registration": true,
|
12
|
+
"id": 1,
|
13
|
+
"created_at": "2000-01-01T01:00:00Z",
|
11
14
|
"expires_at": "2000-01-01T01:00:00Z",
|
12
|
-
"paths": [
|
13
|
-
|
14
|
-
],
|
15
15
|
"note": "The internal note on the bundle.",
|
16
|
-
"password_protected": true,
|
17
|
-
"url": "https://subdomain.files.com/f/12345678",
|
18
16
|
"user_id": 1,
|
19
|
-
"username": "user"
|
17
|
+
"username": "user",
|
18
|
+
"paths": [
|
19
|
+
|
20
|
+
]
|
20
21
|
}
|
21
22
|
```
|
22
23
|
|
23
|
-
* `id` (int64): Bundle ID
|
24
24
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
25
|
-
* `
|
25
|
+
* `url` (string): Public URL of Share Link
|
26
26
|
* `description` (string): Public description
|
27
|
+
* `password_protected` (boolean): Is this bundle password protected?
|
28
|
+
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
29
|
+
* `id` (int64): Bundle ID
|
30
|
+
* `created_at` (date-time): Bundle created at date/time
|
27
31
|
* `expires_at` (date-time): Bundle expiration date/time
|
28
|
-
* `paths` (array): A list of paths in this bundle
|
29
32
|
* `note` (string): Bundle internal note
|
30
|
-
* `password_protected` (boolean): Is this bundle password protected?
|
31
|
-
* `url` (string): Public URL of Share Link
|
32
33
|
* `user_id` (int64): Bundle creator user ID
|
33
34
|
* `username` (string): Bundle creator username
|
35
|
+
* `paths` (array): A list of paths in this bundle
|
34
36
|
* `password` (string): Password for this bundle.
|
35
37
|
|
36
38
|
|
@@ -79,7 +81,8 @@ Files::Bundle.create(
|
|
79
81
|
expires_at: "2000-01-01T01:00:00Z",
|
80
82
|
description: "The public description of the bundle.",
|
81
83
|
note: "The internal note on the bundle.",
|
82
|
-
code: "abc123"
|
84
|
+
code: "abc123",
|
85
|
+
require_registration: true
|
83
86
|
)
|
84
87
|
```
|
85
88
|
|
@@ -92,6 +95,7 @@ Files::Bundle.create(
|
|
92
95
|
* `description` (string): Public description
|
93
96
|
* `note` (string): Bundle internal note
|
94
97
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
98
|
+
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
95
99
|
|
96
100
|
|
97
101
|
---
|
@@ -122,7 +126,8 @@ Files::Bundle.update(id,
|
|
122
126
|
expires_at: "2000-01-01T01:00:00Z",
|
123
127
|
description: "The public description of the bundle.",
|
124
128
|
note: "The internal note on the bundle.",
|
125
|
-
code: "abc123"
|
129
|
+
code: "abc123",
|
130
|
+
require_registration: true
|
126
131
|
)
|
127
132
|
```
|
128
133
|
|
@@ -134,6 +139,7 @@ Files::Bundle.update(id,
|
|
134
139
|
* `description` (string): Public description
|
135
140
|
* `note` (string): Bundle internal note
|
136
141
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
142
|
+
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
137
143
|
|
138
144
|
|
139
145
|
---
|
@@ -181,7 +187,8 @@ bundle.update(
|
|
181
187
|
expires_at: "2000-01-01T01:00:00Z",
|
182
188
|
description: "The public description of the bundle.",
|
183
189
|
note: "The internal note on the bundle.",
|
184
|
-
code: "abc123"
|
190
|
+
code: "abc123",
|
191
|
+
require_registration: true
|
185
192
|
)
|
186
193
|
```
|
187
194
|
|
@@ -193,6 +200,7 @@ bundle.update(
|
|
193
200
|
* `description` (string): Public description
|
194
201
|
* `note` (string): Bundle internal note
|
195
202
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
203
|
+
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
196
204
|
|
197
205
|
|
198
206
|
---
|
@@ -9,15 +9,6 @@ module Files
|
|
9
9
|
@options = options || {}
|
10
10
|
end
|
11
11
|
|
12
|
-
# int64 - Bundle ID
|
13
|
-
def id
|
14
|
-
@attributes[:id]
|
15
|
-
end
|
16
|
-
|
17
|
-
def id=(value)
|
18
|
-
@attributes[:id] = value
|
19
|
-
end
|
20
|
-
|
21
12
|
# string - Bundle code. This code forms the end part of the Public URL.
|
22
13
|
def code
|
23
14
|
@attributes[:code]
|
@@ -27,9 +18,13 @@ module Files
|
|
27
18
|
@attributes[:code] = value
|
28
19
|
end
|
29
20
|
|
30
|
-
#
|
31
|
-
def
|
32
|
-
@attributes[:
|
21
|
+
# string - Public URL of Share Link
|
22
|
+
def url
|
23
|
+
@attributes[:url]
|
24
|
+
end
|
25
|
+
|
26
|
+
def url=(value)
|
27
|
+
@attributes[:url] = value
|
33
28
|
end
|
34
29
|
|
35
30
|
# string - Public description
|
@@ -41,49 +36,54 @@ module Files
|
|
41
36
|
@attributes[:description] = value
|
42
37
|
end
|
43
38
|
|
44
|
-
#
|
45
|
-
def
|
46
|
-
@attributes[:
|
39
|
+
# boolean - Is this bundle password protected?
|
40
|
+
def password_protected
|
41
|
+
@attributes[:password_protected]
|
47
42
|
end
|
48
43
|
|
49
|
-
def
|
50
|
-
@attributes[:
|
44
|
+
def password_protected=(value)
|
45
|
+
@attributes[:password_protected] = value
|
51
46
|
end
|
52
47
|
|
53
|
-
#
|
54
|
-
def
|
55
|
-
@attributes[:
|
48
|
+
# boolean - Show a registration page that captures the downloader's name and email address?
|
49
|
+
def require_registration
|
50
|
+
@attributes[:require_registration]
|
56
51
|
end
|
57
52
|
|
58
|
-
def
|
59
|
-
@attributes[:
|
53
|
+
def require_registration=(value)
|
54
|
+
@attributes[:require_registration] = value
|
60
55
|
end
|
61
56
|
|
62
|
-
#
|
63
|
-
def
|
64
|
-
@attributes[:
|
57
|
+
# int64 - Bundle ID
|
58
|
+
def id
|
59
|
+
@attributes[:id]
|
65
60
|
end
|
66
61
|
|
67
|
-
def
|
68
|
-
@attributes[:
|
62
|
+
def id=(value)
|
63
|
+
@attributes[:id] = value
|
69
64
|
end
|
70
65
|
|
71
|
-
#
|
72
|
-
def
|
73
|
-
@attributes[:
|
66
|
+
# date-time - Bundle created at date/time
|
67
|
+
def created_at
|
68
|
+
@attributes[:created_at]
|
74
69
|
end
|
75
70
|
|
76
|
-
|
77
|
-
|
71
|
+
# date-time - Bundle expiration date/time
|
72
|
+
def expires_at
|
73
|
+
@attributes[:expires_at]
|
78
74
|
end
|
79
75
|
|
80
|
-
|
81
|
-
|
82
|
-
@attributes[:url]
|
76
|
+
def expires_at=(value)
|
77
|
+
@attributes[:expires_at] = value
|
83
78
|
end
|
84
79
|
|
85
|
-
|
86
|
-
|
80
|
+
# string - Bundle internal note
|
81
|
+
def note
|
82
|
+
@attributes[:note]
|
83
|
+
end
|
84
|
+
|
85
|
+
def note=(value)
|
86
|
+
@attributes[:note] = value
|
87
87
|
end
|
88
88
|
|
89
89
|
# int64 - Bundle creator user ID
|
@@ -104,6 +104,15 @@ module Files
|
|
104
104
|
@attributes[:username] = value
|
105
105
|
end
|
106
106
|
|
107
|
+
# array - A list of paths in this bundle
|
108
|
+
def paths
|
109
|
+
@attributes[:paths]
|
110
|
+
end
|
111
|
+
|
112
|
+
def paths=(value)
|
113
|
+
@attributes[:paths] = value
|
114
|
+
end
|
115
|
+
|
107
116
|
# string - Password for this bundle.
|
108
117
|
def password
|
109
118
|
@attributes[:password]
|
@@ -137,6 +146,7 @@ module Files
|
|
137
146
|
# description - string - Public description
|
138
147
|
# note - string - Bundle internal note
|
139
148
|
# code - string - Bundle code. This code forms the end part of the Public URL.
|
149
|
+
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
140
150
|
def update(params = {})
|
141
151
|
params ||= {}
|
142
152
|
params[:id] = @attributes[:id]
|
@@ -217,6 +227,7 @@ module Files
|
|
217
227
|
# description - string - Public description
|
218
228
|
# note - string - Bundle internal note
|
219
229
|
# code - string - Bundle code. This code forms the end part of the Public URL.
|
230
|
+
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
220
231
|
def self.create(params = {}, options = {})
|
221
232
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
|
222
233
|
raise InvalidParameterError.new("Bad parameter: paths must be an Array") if params.dig(:paths) and !params.dig(:paths).is_a?(Array)
|
@@ -255,6 +266,7 @@ module Files
|
|
255
266
|
# description - string - Public description
|
256
267
|
# note - string - Bundle internal note
|
257
268
|
# code - string - Bundle code. This code forms the end part of the Public URL.
|
269
|
+
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
258
270
|
def self.update(id, params = {}, options = {})
|
259
271
|
params ||= {}
|
260
272
|
params[:id] = id
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: files.com
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.66
|
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-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|