appwrite 2.1.2 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/appwrite.gemspec +1 -1
- data/docs/examples/account/create-recovery.md +1 -1
- data/docs/examples/account/create-verification.md +1 -1
- data/docs/examples/account/delete-session.md +1 -1
- data/docs/examples/account/delete-sessions.md +1 -1
- data/docs/examples/account/delete.md +1 -1
- data/docs/examples/account/get-logs.md +1 -1
- data/docs/examples/account/get-prefs.md +1 -1
- data/docs/examples/account/get-sessions.md +1 -1
- data/docs/examples/account/get.md +1 -1
- data/docs/examples/account/update-email.md +1 -1
- data/docs/examples/account/update-name.md +1 -1
- data/docs/examples/account/update-password.md +1 -1
- data/docs/examples/account/update-prefs.md +1 -1
- data/docs/examples/account/update-recovery.md +1 -1
- data/docs/examples/account/update-verification.md +1 -1
- data/docs/examples/avatars/get-q-r.md +1 -1
- data/docs/examples/health/get-d-b.md +1 -1
- data/docs/examples/locale/get-countries-e-u.md +1 -1
- data/docs/examples/teams/update-membership-status.md +1 -1
- data/lib/appwrite/client.rb +2 -2
- data/lib/appwrite/services/avatars.rb +1 -1
- data/lib/appwrite/services/health.rb +1 -1
- data/lib/appwrite/services/locale.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: 2ff4eead29ef5fcae244fbcc93ee35d51d26c04d44f6cae00bde1a35d7cd4590
|
4
|
+
data.tar.gz: 0fee5b3c85b96692adcf9c29b024986bce8c5ff7fd935b4d9e67e1fea48685f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ee92d121c635eb76a2f872a8446d2516925b353fbb97fa3dba0c342730fe131cf537bfe49aece631442ab37704b624d8dd4e02a14d9fe9ca645038ee0501eae
|
7
|
+
data.tar.gz: 3e0f8d737f3340996e1b2414991a143863c5e76c61edbd688d165cd98909394aa5dbd4ab92791b925659325e41899fb9d25d9f5c8be4cca5efb299ae17863a64
|
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 = '2.
|
4
|
+
s.version = '2.2.0'
|
5
5
|
s.summary = "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API"
|
6
6
|
s.author = 'Appwrite Team'
|
7
7
|
s.homepage = 'https://appwrite.io/support'
|
@@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
|
5
5
|
client
|
6
6
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
7
|
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.
|
8
|
+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
9
|
;
|
10
10
|
|
11
11
|
account = Appwrite::Account.new(client);
|
@@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
|
5
5
|
client
|
6
6
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
7
|
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.
|
8
|
+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
9
|
;
|
10
10
|
|
11
11
|
account = Appwrite::Account.new(client);
|
@@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
|
5
5
|
client
|
6
6
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
7
|
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.
|
8
|
+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
9
|
;
|
10
10
|
|
11
11
|
account = Appwrite::Account.new(client);
|
@@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
|
5
5
|
client
|
6
6
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
7
|
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.
|
8
|
+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
9
|
;
|
10
10
|
|
11
11
|
account = Appwrite::Account.new(client);
|
@@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
|
5
5
|
client
|
6
6
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
7
|
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.
|
8
|
+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
9
|
;
|
10
10
|
|
11
11
|
account = Appwrite::Account.new(client);
|
@@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
|
5
5
|
client
|
6
6
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
7
|
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.
|
8
|
+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
9
|
;
|
10
10
|
|
11
11
|
account = Appwrite::Account.new(client);
|
@@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
|
5
5
|
client
|
6
6
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
7
|
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.
|
8
|
+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
9
|
;
|
10
10
|
|
11
11
|
account = Appwrite::Account.new(client);
|
@@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
|
5
5
|
client
|
6
6
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
7
|
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.
|
8
|
+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
9
|
;
|
10
10
|
|
11
11
|
account = Appwrite::Account.new(client);
|
@@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
|
5
5
|
client
|
6
6
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
7
|
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.
|
8
|
+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
9
|
;
|
10
10
|
|
11
11
|
account = Appwrite::Account.new(client);
|
@@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
|
5
5
|
client
|
6
6
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
7
|
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.
|
8
|
+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
9
|
;
|
10
10
|
|
11
11
|
account = Appwrite::Account.new(client);
|
@@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
|
5
5
|
client
|
6
6
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
7
|
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.
|
8
|
+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
9
|
;
|
10
10
|
|
11
11
|
account = Appwrite::Account.new(client);
|
@@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
|
5
5
|
client
|
6
6
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
7
|
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.
|
8
|
+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
9
|
;
|
10
10
|
|
11
11
|
account = Appwrite::Account.new(client);
|
@@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
|
5
5
|
client
|
6
6
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
7
|
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.
|
8
|
+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
9
|
;
|
10
10
|
|
11
11
|
account = Appwrite::Account.new(client);
|
@@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
|
5
5
|
client
|
6
6
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
7
|
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.
|
8
|
+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
9
|
;
|
10
10
|
|
11
11
|
account = Appwrite::Account.new(client);
|
@@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
|
5
5
|
client
|
6
6
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
7
|
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.
|
8
|
+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
9
|
;
|
10
10
|
|
11
11
|
account = Appwrite::Account.new(client);
|
@@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
|
5
5
|
client
|
6
6
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
7
|
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.
|
8
|
+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
9
|
;
|
10
10
|
|
11
11
|
teams = Appwrite::Teams.new(client);
|
data/lib/appwrite/client.rb
CHANGED
@@ -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:2.
|
23
|
+
'x-sdk-version' => 'appwrite:ruby:2.2.0',
|
24
24
|
'X-Appwrite-Response-Format' => '0.8.0'
|
25
25
|
}
|
26
26
|
@endpoint = 'https://appwrite.io/v1';
|
@@ -38,7 +38,7 @@ module Appwrite
|
|
38
38
|
return self
|
39
39
|
end
|
40
40
|
|
41
|
-
def
|
41
|
+
def set_jwt(value)
|
42
42
|
add_header('x-appwrite-jwt', value)
|
43
43
|
|
44
44
|
return self
|
@@ -156,7 +156,7 @@ module Appwrite
|
|
156
156
|
}, params);
|
157
157
|
end
|
158
158
|
|
159
|
-
def
|
159
|
+
def get_qr(text:, size: nil, margin: nil, download: nil)
|
160
160
|
if text.nil?
|
161
161
|
raise Appwrite::Exception.new('Missing required parameter: "text"')
|
162
162
|
end
|
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: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Appwrite Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: team@appwrite.io
|