appwrite 2.1.2 → 2.2.0

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: 5f8ff2795d0cc0f1baea07252be2491778be3f5a3cef6ec3ab2e8609fef6a9aa
4
- data.tar.gz: 21e9ade2dcb732c4edef4034cb0d339e82f115f14d7e9a24e77419097574bcec
3
+ metadata.gz: 2ff4eead29ef5fcae244fbcc93ee35d51d26c04d44f6cae00bde1a35d7cd4590
4
+ data.tar.gz: 0fee5b3c85b96692adcf9c29b024986bce8c5ff7fd935b4d9e67e1fea48685f8
5
5
  SHA512:
6
- metadata.gz: 444fb0922c332ff21bb3e5bf800ed5bd94a78b874c64dd91ad870fc7a5b2a6260550f82b9c386459ee31e309734b997965de1c554f9e66ca58fa4fdc3dc76809
7
- data.tar.gz: b3764a2d140cbd594cfe6fb9f88c7319d12df46451da1a1c5663b281feb512cd67f124e9c2cb98187ea7047387d92d702fb1a93c5b86cfd491d095e723ac089a
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.1.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
- .set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
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
- .set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
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
- .set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
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
- .set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
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
- .set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
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
- .set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
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
- .set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
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
- .set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
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
- .set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
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
- .set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
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
- .set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
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
- .set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
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
- .set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
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
- .set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
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
- .set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
8
+ .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
9
9
  ;
10
10
 
11
11
  account = Appwrite::Account.new(client);
@@ -10,6 +10,6 @@ client
10
10
 
11
11
  avatars = Appwrite::Avatars.new(client);
12
12
 
13
- response = avatars.get_q_r(text: '[TEXT]');
13
+ response = avatars.get_qr(text: '[TEXT]');
14
14
 
15
15
  puts response
@@ -10,6 +10,6 @@ client
10
10
 
11
11
  health = Appwrite::Health.new(client);
12
12
 
13
- response = health.get_d_b();
13
+ response = health.get_db();
14
14
 
15
15
  puts response
@@ -10,6 +10,6 @@ client
10
10
 
11
11
  locale = Appwrite::Locale.new(client);
12
12
 
13
- response = locale.get_countries_e_u();
13
+ response = locale.get_countries_eu();
14
14
 
15
15
  puts response
@@ -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
- .set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
8
+ .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
9
9
  ;
10
10
 
11
11
  teams = Appwrite::Teams.new(client);
@@ -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.1.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 set_j_w_t(value)
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 get_q_r(text:, size: nil, margin: nil, download: nil)
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
@@ -31,7 +31,7 @@ module Appwrite
31
31
  }, params);
32
32
  end
33
33
 
34
- def get_d_b()
34
+ def get_db()
35
35
  path = '/health/db'
36
36
 
37
37
  params = {}
@@ -31,7 +31,7 @@ module Appwrite
31
31
  }, params);
32
32
  end
33
33
 
34
- def get_countries_e_u()
34
+ def get_countries_eu()
35
35
  path = '/locale/countries/eu'
36
36
 
37
37
  params = {}
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.1.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-03 00:00:00.000000000 Z
11
+ date: 2021-06-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: team@appwrite.io