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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '069ce0338ba864f9b384c60459108b58f30319121283d230d73258e8845cbd4a'
4
- data.tar.gz: 0d3638dbf344e7471f8ea4a35a5b5ef9f4bc06011784a532bb15089fbd0372f7
3
+ metadata.gz: 9c936c175deeddfd4894e53c06f6b2880f0660310a070c94a189ba61a798f0e0
4
+ data.tar.gz: f78326fad01e92d2b6a0c9cc00470ec1071271d517d8e5c614122cd528af5d93
5
5
  SHA512:
6
- metadata.gz: 2425013e7e2a06c03e7bfb339fa0560a556ed4a24b8df6e9db634027e800921c0afb6716ac02a84d9d0645e8e6287689cab601ba233e1927697427586ea0a7c7
7
- data.tar.gz: 17e33d86ab1726138963e01b3a3bde214faf4874d0d0321b142790c53b0277924a2dda230a36430b41dc2496a1050203406bbee8c949420c43253a324e8aec3f
6
+ metadata.gz: 3772512a57234236522aabb195c712cb07c2ac2fffeeb1435eb99eb55a26f227cc8cc9ee469e515cceb1c9a68c724b3781b32e24cca39c531d810b1b2cb80751
7
+ data.tar.gz: 7117d3f81962120039bec8631244a9630e668430151d665418866787b67f107890a631010d4f6a43bc9f72fa0f988dddc0ee113e3a80f6b1c777e76960d42ea7
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.335
1
+ 1.1.336
data/docs/site.md CHANGED
@@ -259,6 +259,7 @@
259
259
  "notes": "Internal notes on this user.",
260
260
  "notification_daily_send_time": 18,
261
261
  "office_integration_enabled": true,
262
+ "partner_admin": true,
262
263
  "partner_id": 1,
263
264
  "password_set_at": "2000-01-01T01:00:00Z",
264
265
  "password_validity_days": 1,
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
@@ -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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.335"
4
+ VERSION = "1.1.336"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.335
4
+ version: 1.1.336
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com