appwrite 1.0.7 → 1.0.8

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
- SHA256:
3
- metadata.gz: 65f5a3a2844d82920bb74da4c898acf46cdf210b428ea0fe50a7461663ee12bc
4
- data.tar.gz: 7922a63438c02dd2003d30c019cf8df2b5543b527c7564a1a19984c3c059040c
2
+ SHA1:
3
+ metadata.gz: d0bc4cb6c3724f6a09863b99a8d64cc370a095be
4
+ data.tar.gz: 966ffe662214c48443f00d5c5cbe71fd22886fc9
5
5
  SHA512:
6
- metadata.gz: 519225ed02fdb09bdc25629ba1dc0ab98f38cb53dbcf33acea8e9a852390e337792f38001cb808975d823c1309e556c8a5ceebdaaf773dbbde2d64348283311c
7
- data.tar.gz: b8522cc52176e719cfe58b1171f1ad4a5b078a95fffaa4187e90fd18967fbb9c50eba73e2df69b61aee7c33bf3c7618ca9940526216f465b816e90505c73da4c
6
+ metadata.gz: ec38335ee5fcfcf366b12d2127661473b5a3c7c4ca8c9874a7bf0d3cd43ea4dff518b839e70cafa465b1897ee738386b76d94352089d1a3e7f970c4a22327748
7
+ data.tar.gz: 7c87448f83c74460b50f16ea1cdcbce645d2894d80b388b92323467d761e90928eb5f396655c464da3ba56fd1d7269234bc4474ca4086277c58f5bd8e4d3015e
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'appwrite'
4
- s.version = '1.0.7'
4
+ s.version = '1.0.8'
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.7'
23
+ 'x-sdk-version' => 'appwrite:ruby:1.0.8'
24
24
  }
25
25
  @endpoint = 'https://appwrite.io/v1';
26
26
  end
@@ -16,20 +16,22 @@ module Appwrite
16
16
  }, params);
17
17
  end
18
18
 
19
- def logout()
20
- path = '/auth/logout'
19
+ def oauth(provider:, success:, failure:)
20
+ path = '/auth/login/oauth/{provider}'
21
+ .gsub('{provider}', provider)
21
22
 
22
23
  params = {
24
+ 'success': success,
25
+ 'failure': failure
23
26
  }
24
27
 
25
- return @client.call('delete', path, {
28
+ return @client.call('get', path, {
26
29
  'content-type' => 'application/json',
27
30
  }, params);
28
31
  end
29
32
 
30
- def logout_by_session(id:)
31
- path = '/auth/logout/{id}'
32
- .gsub('{id}', id)
33
+ def logout()
34
+ path = '/auth/logout'
33
35
 
34
36
  params = {
35
37
  }
@@ -39,16 +41,14 @@ module Appwrite
39
41
  }, params);
40
42
  end
41
43
 
42
- def oauth(provider:, success:, failure:)
43
- path = '/auth/oauth/{provider}'
44
- .gsub('{provider}', provider)
44
+ def logout_by_session(id:)
45
+ path = '/auth/logout/{id}'
46
+ .gsub('{id}', id)
45
47
 
46
48
  params = {
47
- 'success': success,
48
- 'failure': failure
49
49
  }
50
50
 
51
- return @client.call('get', path, {
51
+ return @client.call('delete', path, {
52
52
  'content-type' => 'application/json',
53
53
  }, params);
54
54
  end
@@ -16,14 +16,13 @@ module Appwrite
16
16
  }, params);
17
17
  end
18
18
 
19
- def create_file(files:, read:, write:, folder_id: '')
19
+ def create_file(files:, read:, write:)
20
20
  path = '/storage/files'
21
21
 
22
22
  params = {
23
23
  'files': files,
24
24
  'read': read,
25
- 'write': write,
26
- 'folderId': folder_id
25
+ 'write': write
27
26
  }
28
27
 
29
28
  return @client.call('post', path, {
@@ -43,14 +42,13 @@ module Appwrite
43
42
  }, params);
44
43
  end
45
44
 
46
- def update_file(file_id:, read:, write:, folder_id: '')
45
+ def update_file(file_id:, read:, write:)
47
46
  path = '/storage/files/{fileId}'
48
47
  .gsub('{file_id}', file_id)
49
48
 
50
49
  params = {
51
50
  'read': read,
52
- 'write': write,
53
- 'folderId': folder_id
51
+ 'write': write
54
52
  }
55
53
 
56
54
  return @client.call('put', path, {
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.7
4
+ version: 1.0.8
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-21 00:00:00.000000000 Z
11
+ date: 2019-12-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: team@appwrite.io
@@ -51,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  version: '0'
52
52
  requirements: []
53
53
  rubyforge_project:
54
- rubygems_version: 2.7.6
54
+ rubygems_version: 2.5.2.3
55
55
  signing_key:
56
56
  specification_version: 4
57
57
  summary: Appwrite backend as a service cuts up to 70% of the time and costs required