files.com 1.1.335 → 1.1.336
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/site.md +1 -0
- data/docs/user.md +2 -0
- data/lib/files.com/api_client.rb +1 -0
- data/lib/files.com/models/user.rb +9 -0
- data/lib/files.com/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c936c175deeddfd4894e53c06f6b2880f0660310a070c94a189ba61a798f0e0
|
4
|
+
data.tar.gz: f78326fad01e92d2b6a0c9cc00470ec1071271d517d8e5c614122cd528af5d93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3772512a57234236522aabb195c712cb07c2ac2fffeeb1435eb99eb55a26f227cc8cc9ee469e515cceb1c9a68c724b3781b32e24cca39c531d810b1b2cb80751
|
7
|
+
data.tar.gz: 7117d3f81962120039bec8631244a9630e668430151d665418866787b67f107890a631010d4f6a43bc9f72fa0f988dddc0ee113e3a80f6b1c777e76960d42ea7
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.336
|
data/docs/site.md
CHANGED
data/docs/user.md
CHANGED
@@ -46,6 +46,7 @@
|
|
46
46
|
"notes": "Internal notes on this user.",
|
47
47
|
"notification_daily_send_time": 18,
|
48
48
|
"office_integration_enabled": true,
|
49
|
+
"partner_admin": true,
|
49
50
|
"partner_id": 1,
|
50
51
|
"password_set_at": "2000-01-01T01:00:00Z",
|
51
52
|
"password_validity_days": 1,
|
@@ -117,6 +118,7 @@
|
|
117
118
|
* `notes` (string): Any internal notes on the user
|
118
119
|
* `notification_daily_send_time` (int64): Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
|
119
120
|
* `office_integration_enabled` (boolean): Enable integration with Office for the web?
|
121
|
+
* `partner_admin` (boolean): Is this user a Partner administrator?
|
120
122
|
* `partner_id` (int64): Partner ID if this user belongs to a Partner
|
121
123
|
* `password_set_at` (date-time): Last time the user's password was set
|
122
124
|
* `password_validity_days` (int64): Number of days to allow user to use the same password
|
data/lib/files.com/api_client.rb
CHANGED
@@ -197,6 +197,7 @@ module Files
|
|
197
197
|
|
198
198
|
private def check_api_key!(api_key)
|
199
199
|
raise AuthenticationError, "No Files.com API key provided. Set your API key using \"Files.api_key = <API-KEY>\". You can generate API keys from the Files.com's web interface. " unless api_key
|
200
|
+
raise AuthenticationError, "Your API key must be a string" unless api_key.is_a?(String)
|
200
201
|
|
201
202
|
return unless api_key =~ /\s/
|
202
203
|
|
@@ -365,6 +365,15 @@ module Files
|
|
365
365
|
@attributes[:office_integration_enabled] = value
|
366
366
|
end
|
367
367
|
|
368
|
+
# boolean - Is this user a Partner administrator?
|
369
|
+
def partner_admin
|
370
|
+
@attributes[:partner_admin]
|
371
|
+
end
|
372
|
+
|
373
|
+
def partner_admin=(value)
|
374
|
+
@attributes[:partner_admin] = value
|
375
|
+
end
|
376
|
+
|
368
377
|
# int64 - Partner ID if this user belongs to a Partner
|
369
378
|
def partner_id
|
370
379
|
@attributes[:partner_id]
|
data/lib/files.com/version.rb
CHANGED