appwrite 1.0.4 → 1.0.6

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: e0a43892e76af8c4735fccaafc05ad81928c7edce92ee6b65ba4a1794acedec4
4
- data.tar.gz: f3374f9e75911a346d0a95380075cf623b4cec41a3cba4c916dfec106c245213
3
+ metadata.gz: 60c4873814b2aae15f1f3ba059b4d7f55a6c766ee7a586c6bd6b66d00a40a992
4
+ data.tar.gz: ff53909e4787f62fb9d3a8484a752a03234c088e2040ada23897058c2e754fc0
5
5
  SHA512:
6
- metadata.gz: 146ec7c6467b2da51f74c05a2c94130713a6927005751fdf0668d2e978880f6b1bec9641a9b6abac5f611e4f8ec1fe7d0530b4d6bd9809986275302299db52ef
7
- data.tar.gz: b52ba081c05fed4b64982caf1c5df29e37bcc5d3e036756d4c2c061381d21e30ac2513745ea0477c279336067c456bcc6dd8bc8189222b2be3e0d71a0b5c23b4
6
+ metadata.gz: 800f889126c17328b620712e4f0b128891745bb5c4a9daad39a8d69a87f4513c945a943051299e3ca2e24063387c9a376f50e3795efc904bae4f799dbe728ac8
7
+ data.tar.gz: 4de997fc045a70e25c6ca7c662ced42693446c312214f65440b984439b6f82311807d38b923daf5461530515b31927325613403d16d7c5b9300de56dea6bb5da
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Appwrite SDK for Ruby
2
2
 
3
3
  ![License](https://img.shields.io/github/license/appwrite/sdk-for-ruby.svg?v=1)
4
- ![Version](https://img.shields.io/badge/api%20version-0.2.0-blue.svg?v=1)
4
+ ![Version](https://img.shields.io/badge/api%20version-0.3.0-blue.svg?v=1)
5
5
 
6
6
  **WORK IN PROGRESS - NOT READY FOR USAGE - Want to help us improve this client SDK? Send a pull request to Appwrite [SDK generator repository](https://github.com/appwrite/sdk-generator).**
7
7
 
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'appwrite'
4
- s.version = '1.0.4'
4
+ s.version = '1.0.6'
5
5
  s.summary = "Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)"
6
6
  s.author = 'Appwrite Team'
7
7
  s.homepage = 'https://appwrite.io/support'
@@ -20,7 +20,7 @@ module Appwrite
20
20
  @headers = {
21
21
  'content-type' => '',
22
22
  'user-agent' => RUBY_PLATFORM + ':ruby-' + RUBY_VERSION,
23
- 'x-sdk-version' => 'appwrite:ruby:1.0.4'
23
+ 'x-sdk-version' => 'appwrite:ruby:1.0.6'
24
24
  }
25
25
  @endpoint = 'https://appwrite.io/v1';
26
26
  end
@@ -92,7 +92,7 @@ module Appwrite
92
92
  }, params);
93
93
  end
94
94
 
95
- def create_document(collection_id:, data:, read: [], write: [], parent_document: '', parent_property: '', parent_property_type: 'assign')
95
+ def create_document(collection_id:, data:, read:, write:, parent_document: '', parent_property: '', parent_property_type: 'assign')
96
96
  path = '/database/{collectionId}/documents'
97
97
  .gsub('{collection_id}', collection_id)
98
98
 
@@ -123,7 +123,7 @@ module Appwrite
123
123
  }, params);
124
124
  end
125
125
 
126
- def update_document(collection_id:, document_id:, data:, read: [], write: [])
126
+ def update_document(collection_id:, document_id:, data:, read:, write:)
127
127
  path = '/database/{collectionId}/documents/{documentId}'
128
128
  .gsub('{collection_id}', collection_id)
129
129
  .gsub('{document_id}', document_id)
@@ -12,6 +12,17 @@ module Appwrite
12
12
  }, params);
13
13
  end
14
14
 
15
+ def get_continents()
16
+ path = '/locale/continents'
17
+
18
+ params = {
19
+ }
20
+
21
+ return @client.call('get', path, {
22
+ 'content-type' => 'application/json',
23
+ }, params);
24
+ end
25
+
15
26
  def get_countries()
16
27
  path = '/locale/countries'
17
28
 
@@ -43,7 +43,7 @@ module Appwrite
43
43
  }, params);
44
44
  end
45
45
 
46
- def update_file(file_id:, read: [], write: [], folder_id: '')
46
+ def update_file(file_id:, read:, write:, folder_id: '')
47
47
  path = '/storage/files/{fileId}'
48
48
  .gsub('{file_id}', file_id)
49
49
 
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: 1.0.4
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Appwrite Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-19 00:00:00.000000000 Z
11
+ date: 2019-10-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: team@appwrite.io