appwrite 10.1.0 → 10.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 478b70da37fa544d40390cd7482bef9bc8fe6e0f5d9dc99971c02f88302c9d15
4
- data.tar.gz: eea1fb5c32cc713be7202bfa65bf22d329c8e134061af8dcc14f61cc1c9623ae
3
+ metadata.gz: b7a1734151cef72764712831f7b58837f600e4a8f024179418376c7658c71e1c
4
+ data.tar.gz: 0d00fab77f2f993eaa48b5250d002a6cd3c36c621937007da150300fd55189ce
5
5
  SHA512:
6
- metadata.gz: bf497dc875e2a31de3411cc597a8bc9f35309db413987056a896fe18b34e985fe3b27326c1d50e326553c205029ab055a53440065b89f78dd8a4c3d775e47c9f
7
- data.tar.gz: 91db17dff775a367edf2123813c82dec700db8587bd665c79343a39c3dbca2f2471a971182cbd59cdebc069ed47fd5959da4646990fc606ea4546c856c64be71
6
+ metadata.gz: 47b17ce99dfe317ccb4ebeaa0af3187ff515b8860bc496fcd3ac0ee23a315569dc08246c9387ebafdbd58f5d8338cd2bdab2ebc849a6eebff690f9457039ca84
7
+ data.tar.gz: c6d4114817e0763a81785a7da614f8f075b7fd9703fc3875eb1407fba7afa268088f217213d726d3815a94ec28331c8e197010b6cab23c22286082d245ef6995
@@ -15,7 +15,7 @@ module Appwrite
15
15
  'x-sdk-name'=> 'Ruby',
16
16
  'x-sdk-platform'=> 'server',
17
17
  'x-sdk-language'=> 'ruby',
18
- 'x-sdk-version'=> '10.1.0',
18
+ 'x-sdk-version'=> '10.1.1',
19
19
  'X-Appwrite-Response-Format' => '1.4.0'
20
20
  }
21
21
  @endpoint = 'https://HOSTNAME/v1'
@@ -234,6 +234,8 @@ module Appwrite
234
234
 
235
235
  headers = @headers.merge(headers)
236
236
 
237
+ params.compact!
238
+
237
239
  @boundary = "----A30#3ad1"
238
240
  if method != "GET"
239
241
  case headers[:'content-type']
@@ -36,7 +36,7 @@ module Appwrite
36
36
  created_at: map["$createdAt"],
37
37
  updated_at: map["$updatedAt"],
38
38
  permissions: map["$permissions"],
39
- data: map["data"]
39
+ data: map
40
40
  )
41
41
  end
42
42
 
@@ -12,7 +12,7 @@ module Appwrite
12
12
 
13
13
  def self.from(map:)
14
14
  Preferences.new(
15
- data: map["data"]
15
+ data: map
16
16
  )
17
17
  end
18
18
 
@@ -746,7 +746,7 @@ module Appwrite
746
746
  # @param [String] database_id Database ID.
747
747
  # @param [String] collection_id Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
748
748
  # @param [String] key Attribute Key.
749
- # @param [Array] elements Array of elements in enumerated type. Uses length of longest element to determine size. Maximum of 100 elements are allowed, each 4096 characters long.
749
+ # @param [Array] elements Array of elements in enumerated type. Uses length of longest element to determine size. Maximum of 100 elements are allowed, each 255 characters long.
750
750
  # @param [] required Is attribute required?
751
751
  # @param [String] default Default value for attribute when not provided. Cannot be set when attribute is required.
752
752
  # @param [] array Is attribute an array?
@@ -806,7 +806,7 @@ module Appwrite
806
806
  # @param [String] database_id Database ID.
807
807
  # @param [String] collection_id Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
808
808
  # @param [String] key Attribute Key.
809
- # @param [Array] elements Array of elements in enumerated type. Uses length of longest element to determine size. Maximum of 100 elements are allowed, each 4096 characters long.
809
+ # @param [Array] elements Array of elements in enumerated type. Uses length of longest element to determine size. Maximum of 100 elements are allowed, each 255 characters long.
810
810
  # @param [] required Is attribute required?
811
811
  # @param [String] default Default value for attribute when not provided. Cannot be set when attribute is required.
812
812
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appwrite
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.1.0
4
+ version: 10.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Appwrite Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-20 00:00:00.000000000 Z
11
+ date: 2024-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types