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 +5 -5
- data/appwrite.gemspec +1 -1
- data/lib/appwrite/client.rb +1 -1
- data/lib/appwrite/services/auth.rb +12 -12
- data/lib/appwrite/services/storage.rb +4 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d0bc4cb6c3724f6a09863b99a8d64cc370a095be
|
4
|
+
data.tar.gz: 966ffe662214c48443f00d5c5cbe71fd22886fc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec38335ee5fcfcf366b12d2127661473b5a3c7c4ca8c9874a7bf0d3cd43ea4dff518b839e70cafa465b1897ee738386b76d94352089d1a3e7f970c4a22327748
|
7
|
+
data.tar.gz: 7c87448f83c74460b50f16ea1cdcbce645d2894d80b388b92323467d761e90928eb5f396655c464da3ba56fd1d7269234bc4474ca4086277c58f5bd8e4d3015e
|
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.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'
|
data/lib/appwrite/client.rb
CHANGED
@@ -16,20 +16,22 @@ module Appwrite
|
|
16
16
|
}, params);
|
17
17
|
end
|
18
18
|
|
19
|
-
def
|
20
|
-
path = '/auth/
|
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('
|
28
|
+
return @client.call('get', path, {
|
26
29
|
'content-type' => 'application/json',
|
27
30
|
}, params);
|
28
31
|
end
|
29
32
|
|
30
|
-
def
|
31
|
-
path = '/auth/logout
|
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
|
43
|
-
path = '/auth/
|
44
|
-
.gsub('{
|
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('
|
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
|
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
|
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.
|
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-
|
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.
|
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
|