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 +4 -4
- data/README.md +1 -1
- data/appwrite.gemspec +1 -1
- data/lib/appwrite/client.rb +1 -1
- data/lib/appwrite/services/database.rb +2 -2
- data/lib/appwrite/services/locale.rb +11 -0
- data/lib/appwrite/services/storage.rb +1 -1
- 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: 60c4873814b2aae15f1f3ba059b4d7f55a6c766ee7a586c6bd6b66d00a40a992
|
|
4
|
+
data.tar.gz: ff53909e4787f62fb9d3a8484a752a03234c088e2040ada23897058c2e754fc0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|

|
|
4
|
-

|
|
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
|
|
data/appwrite.gemspec
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
|
|
3
3
|
s.name = 'appwrite'
|
|
4
|
-
s.version = '1.0.
|
|
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'
|
data/lib/appwrite/client.rb
CHANGED
|
@@ -92,7 +92,7 @@ module Appwrite
|
|
|
92
92
|
}, params);
|
|
93
93
|
end
|
|
94
94
|
|
|
95
|
-
def create_document(collection_id:, data:, read
|
|
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
|
|
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
|
|
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
|
+
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-
|
|
11
|
+
date: 2019-10-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email: team@appwrite.io
|