appwrite 2.4.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/appwrite/client.rb +134 -57
- data/lib/appwrite/exception.rb +5 -7
- data/lib/appwrite/file.rb +5 -13
- data/lib/appwrite/models/attribute_boolean.rb +52 -0
- data/lib/appwrite/models/attribute_email.rb +57 -0
- data/lib/appwrite/models/attribute_enum.rb +62 -0
- data/lib/appwrite/models/attribute_float.rb +62 -0
- data/lib/appwrite/models/attribute_integer.rb +62 -0
- data/lib/appwrite/models/attribute_ip.rb +57 -0
- data/lib/appwrite/models/attribute_list.rb +32 -0
- data/lib/appwrite/models/attribute_string.rb +57 -0
- data/lib/appwrite/models/attribute_url.rb +57 -0
- data/lib/appwrite/models/collection.rb +62 -0
- data/lib/appwrite/models/collection_list.rb +32 -0
- data/lib/appwrite/models/continent.rb +32 -0
- data/lib/appwrite/models/continent_list.rb +32 -0
- data/lib/appwrite/models/country.rb +32 -0
- data/lib/appwrite/models/country_list.rb +32 -0
- data/lib/appwrite/models/currency.rb +57 -0
- data/lib/appwrite/models/currency_list.rb +32 -0
- data/lib/appwrite/models/document.rb +50 -0
- data/lib/appwrite/models/document_list.rb +36 -0
- data/lib/appwrite/models/execution.rb +72 -0
- data/lib/appwrite/models/execution_list.rb +32 -0
- data/lib/appwrite/models/file.rb +62 -0
- data/lib/appwrite/models/file_list.rb +32 -0
- data/lib/appwrite/models/function.rb +92 -0
- data/lib/appwrite/models/function_list.rb +32 -0
- data/lib/appwrite/models/health_antivirus.rb +32 -0
- data/lib/appwrite/models/health_queue.rb +27 -0
- data/lib/appwrite/models/health_status.rb +32 -0
- data/lib/appwrite/models/health_time.rb +37 -0
- data/lib/appwrite/models/index.rb +47 -0
- data/lib/appwrite/models/index_list.rb +32 -0
- data/lib/appwrite/models/language.rb +37 -0
- data/lib/appwrite/models/language_list.rb +32 -0
- data/lib/appwrite/models/locale.rb +57 -0
- data/lib/appwrite/models/log.rb +127 -0
- data/lib/appwrite/models/log_list.rb +32 -0
- data/lib/appwrite/models/membership.rb +67 -0
- data/lib/appwrite/models/membership_list.rb +32 -0
- data/lib/appwrite/models/phone.rb +37 -0
- data/lib/appwrite/models/phone_list.rb +32 -0
- data/lib/appwrite/models/preferences.rb +30 -0
- data/lib/appwrite/models/runtime.rb +57 -0
- data/lib/appwrite/models/runtime_list.rb +32 -0
- data/lib/appwrite/models/session.rb +132 -0
- data/lib/appwrite/models/session_list.rb +32 -0
- data/lib/appwrite/models/tag.rb +47 -0
- data/lib/appwrite/models/tag_list.rb +32 -0
- data/lib/appwrite/models/team.rb +42 -0
- data/lib/appwrite/models/team_list.rb +32 -0
- data/lib/appwrite/models/token.rb +42 -0
- data/lib/appwrite/models/user.rb +62 -0
- data/lib/appwrite/models/user_list.rb +32 -0
- data/lib/appwrite/query.rb +42 -0
- data/lib/appwrite/service.rb +0 -5
- data/lib/appwrite/services/account.rb +370 -138
- data/lib/appwrite/services/avatars.rb +189 -125
- data/lib/appwrite/services/database.rb +876 -130
- data/lib/appwrite/services/functions.rb +364 -182
- data/lib/appwrite/services/health.rb +202 -58
- data/lib/appwrite/services/locale.rb +134 -32
- data/lib/appwrite/services/storage.rb +210 -121
- data/lib/appwrite/services/teams.rb +299 -118
- data/lib/appwrite/services/users.rb +322 -127
- data/lib/appwrite.rb +55 -0
- metadata +72 -111
- data/.github/ISSUE_TEMPLATE/bug.yaml +0 -82
- data/.github/ISSUE_TEMPLATE/documentation.yaml +0 -32
- data/.github/ISSUE_TEMPLATE/feature.yaml +0 -40
- data/.travis.yml +0 -16
- data/CHANGELOG.md +0 -1
- data/Gemfile +0 -4
- data/LICENSE +0 -12
- data/README.md +0 -96
- data/appwrite.gemspec +0 -11
- data/docs/examples/account/create-recovery.md +0 -15
- data/docs/examples/account/create-verification.md +0 -15
- data/docs/examples/account/delete-session.md +0 -15
- data/docs/examples/account/delete-sessions.md +0 -15
- data/docs/examples/account/delete.md +0 -15
- data/docs/examples/account/get-logs.md +0 -15
- data/docs/examples/account/get-prefs.md +0 -15
- data/docs/examples/account/get-session.md +0 -15
- data/docs/examples/account/get-sessions.md +0 -15
- data/docs/examples/account/get.md +0 -15
- data/docs/examples/account/update-email.md +0 -15
- data/docs/examples/account/update-name.md +0 -15
- data/docs/examples/account/update-password.md +0 -15
- data/docs/examples/account/update-prefs.md +0 -15
- data/docs/examples/account/update-recovery.md +0 -15
- data/docs/examples/account/update-verification.md +0 -15
- data/docs/examples/avatars/get-browser.md +0 -15
- data/docs/examples/avatars/get-credit-card.md +0 -15
- data/docs/examples/avatars/get-favicon.md +0 -15
- data/docs/examples/avatars/get-flag.md +0 -15
- data/docs/examples/avatars/get-image.md +0 -15
- data/docs/examples/avatars/get-initials.md +0 -15
- data/docs/examples/avatars/get-q-r.md +0 -15
- data/docs/examples/database/create-collection.md +0 -15
- data/docs/examples/database/create-document.md +0 -15
- data/docs/examples/database/delete-collection.md +0 -15
- data/docs/examples/database/delete-document.md +0 -15
- data/docs/examples/database/get-collection.md +0 -15
- data/docs/examples/database/get-document.md +0 -15
- data/docs/examples/database/list-collections.md +0 -15
- data/docs/examples/database/list-documents.md +0 -15
- data/docs/examples/database/update-collection.md +0 -15
- data/docs/examples/database/update-document.md +0 -15
- data/docs/examples/functions/create-execution.md +0 -15
- data/docs/examples/functions/create-tag.md +0 -15
- data/docs/examples/functions/create.md +0 -15
- data/docs/examples/functions/delete-tag.md +0 -15
- data/docs/examples/functions/delete.md +0 -15
- data/docs/examples/functions/get-execution.md +0 -15
- data/docs/examples/functions/get-tag.md +0 -15
- data/docs/examples/functions/get.md +0 -15
- data/docs/examples/functions/list-executions.md +0 -15
- data/docs/examples/functions/list-tags.md +0 -15
- data/docs/examples/functions/list.md +0 -15
- data/docs/examples/functions/update-tag.md +0 -15
- data/docs/examples/functions/update.md +0 -15
- data/docs/examples/health/get-anti-virus.md +0 -15
- data/docs/examples/health/get-cache.md +0 -15
- data/docs/examples/health/get-d-b.md +0 -15
- data/docs/examples/health/get-queue-certificates.md +0 -15
- data/docs/examples/health/get-queue-functions.md +0 -15
- data/docs/examples/health/get-queue-logs.md +0 -15
- data/docs/examples/health/get-queue-tasks.md +0 -15
- data/docs/examples/health/get-queue-usage.md +0 -15
- data/docs/examples/health/get-queue-webhooks.md +0 -15
- data/docs/examples/health/get-storage-local.md +0 -15
- data/docs/examples/health/get-time.md +0 -15
- data/docs/examples/health/get.md +0 -15
- data/docs/examples/locale/get-continents.md +0 -15
- data/docs/examples/locale/get-countries-e-u.md +0 -15
- data/docs/examples/locale/get-countries-phones.md +0 -15
- data/docs/examples/locale/get-countries.md +0 -15
- data/docs/examples/locale/get-currencies.md +0 -15
- data/docs/examples/locale/get-languages.md +0 -15
- data/docs/examples/locale/get.md +0 -15
- data/docs/examples/storage/create-file.md +0 -15
- data/docs/examples/storage/delete-file.md +0 -15
- data/docs/examples/storage/get-file-download.md +0 -15
- data/docs/examples/storage/get-file-preview.md +0 -15
- data/docs/examples/storage/get-file-view.md +0 -15
- data/docs/examples/storage/get-file.md +0 -15
- data/docs/examples/storage/list-files.md +0 -15
- data/docs/examples/storage/update-file.md +0 -15
- data/docs/examples/teams/create-membership.md +0 -15
- data/docs/examples/teams/create.md +0 -15
- data/docs/examples/teams/delete-membership.md +0 -15
- data/docs/examples/teams/delete.md +0 -15
- data/docs/examples/teams/get-memberships.md +0 -15
- data/docs/examples/teams/get.md +0 -15
- data/docs/examples/teams/list.md +0 -15
- data/docs/examples/teams/update-membership-roles.md +0 -15
- data/docs/examples/teams/update-membership-status.md +0 -15
- data/docs/examples/teams/update.md +0 -15
- data/docs/examples/users/create.md +0 -15
- data/docs/examples/users/delete-session.md +0 -15
- data/docs/examples/users/delete-sessions.md +0 -15
- data/docs/examples/users/delete.md +0 -15
- data/docs/examples/users/get-logs.md +0 -15
- data/docs/examples/users/get-prefs.md +0 -15
- data/docs/examples/users/get-sessions.md +0 -15
- data/docs/examples/users/get.md +0 -15
- data/docs/examples/users/list.md +0 -15
- data/docs/examples/users/update-email.md +0 -15
- data/docs/examples/users/update-name.md +0 -15
- data/docs/examples/users/update-password.md +0 -15
- data/docs/examples/users/update-prefs.md +0 -15
- data/docs/examples/users/update-status.md +0 -15
- data/docs/examples/users/update-verification.md +0 -15
metadata
CHANGED
@@ -1,132 +1,92 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appwrite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.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:
|
12
|
-
dependencies:
|
11
|
+
date: 2022-01-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: mime-types
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.3.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.3.1
|
13
27
|
description:
|
14
28
|
email: team@appwrite.io
|
15
29
|
executables: []
|
16
30
|
extensions: []
|
17
31
|
extra_rdoc_files: []
|
18
32
|
files:
|
19
|
-
- ".github/ISSUE_TEMPLATE/bug.yaml"
|
20
|
-
- ".github/ISSUE_TEMPLATE/documentation.yaml"
|
21
|
-
- ".github/ISSUE_TEMPLATE/feature.yaml"
|
22
|
-
- ".travis.yml"
|
23
|
-
- CHANGELOG.md
|
24
|
-
- Gemfile
|
25
|
-
- LICENSE
|
26
|
-
- README.md
|
27
|
-
- appwrite.gemspec
|
28
|
-
- docs/examples/account/create-recovery.md
|
29
|
-
- docs/examples/account/create-verification.md
|
30
|
-
- docs/examples/account/delete-session.md
|
31
|
-
- docs/examples/account/delete-sessions.md
|
32
|
-
- docs/examples/account/delete.md
|
33
|
-
- docs/examples/account/get-logs.md
|
34
|
-
- docs/examples/account/get-prefs.md
|
35
|
-
- docs/examples/account/get-session.md
|
36
|
-
- docs/examples/account/get-sessions.md
|
37
|
-
- docs/examples/account/get.md
|
38
|
-
- docs/examples/account/update-email.md
|
39
|
-
- docs/examples/account/update-name.md
|
40
|
-
- docs/examples/account/update-password.md
|
41
|
-
- docs/examples/account/update-prefs.md
|
42
|
-
- docs/examples/account/update-recovery.md
|
43
|
-
- docs/examples/account/update-verification.md
|
44
|
-
- docs/examples/avatars/get-browser.md
|
45
|
-
- docs/examples/avatars/get-credit-card.md
|
46
|
-
- docs/examples/avatars/get-favicon.md
|
47
|
-
- docs/examples/avatars/get-flag.md
|
48
|
-
- docs/examples/avatars/get-image.md
|
49
|
-
- docs/examples/avatars/get-initials.md
|
50
|
-
- docs/examples/avatars/get-q-r.md
|
51
|
-
- docs/examples/database/create-collection.md
|
52
|
-
- docs/examples/database/create-document.md
|
53
|
-
- docs/examples/database/delete-collection.md
|
54
|
-
- docs/examples/database/delete-document.md
|
55
|
-
- docs/examples/database/get-collection.md
|
56
|
-
- docs/examples/database/get-document.md
|
57
|
-
- docs/examples/database/list-collections.md
|
58
|
-
- docs/examples/database/list-documents.md
|
59
|
-
- docs/examples/database/update-collection.md
|
60
|
-
- docs/examples/database/update-document.md
|
61
|
-
- docs/examples/functions/create-execution.md
|
62
|
-
- docs/examples/functions/create-tag.md
|
63
|
-
- docs/examples/functions/create.md
|
64
|
-
- docs/examples/functions/delete-tag.md
|
65
|
-
- docs/examples/functions/delete.md
|
66
|
-
- docs/examples/functions/get-execution.md
|
67
|
-
- docs/examples/functions/get-tag.md
|
68
|
-
- docs/examples/functions/get.md
|
69
|
-
- docs/examples/functions/list-executions.md
|
70
|
-
- docs/examples/functions/list-tags.md
|
71
|
-
- docs/examples/functions/list.md
|
72
|
-
- docs/examples/functions/update-tag.md
|
73
|
-
- docs/examples/functions/update.md
|
74
|
-
- docs/examples/health/get-anti-virus.md
|
75
|
-
- docs/examples/health/get-cache.md
|
76
|
-
- docs/examples/health/get-d-b.md
|
77
|
-
- docs/examples/health/get-queue-certificates.md
|
78
|
-
- docs/examples/health/get-queue-functions.md
|
79
|
-
- docs/examples/health/get-queue-logs.md
|
80
|
-
- docs/examples/health/get-queue-tasks.md
|
81
|
-
- docs/examples/health/get-queue-usage.md
|
82
|
-
- docs/examples/health/get-queue-webhooks.md
|
83
|
-
- docs/examples/health/get-storage-local.md
|
84
|
-
- docs/examples/health/get-time.md
|
85
|
-
- docs/examples/health/get.md
|
86
|
-
- docs/examples/locale/get-continents.md
|
87
|
-
- docs/examples/locale/get-countries-e-u.md
|
88
|
-
- docs/examples/locale/get-countries-phones.md
|
89
|
-
- docs/examples/locale/get-countries.md
|
90
|
-
- docs/examples/locale/get-currencies.md
|
91
|
-
- docs/examples/locale/get-languages.md
|
92
|
-
- docs/examples/locale/get.md
|
93
|
-
- docs/examples/storage/create-file.md
|
94
|
-
- docs/examples/storage/delete-file.md
|
95
|
-
- docs/examples/storage/get-file-download.md
|
96
|
-
- docs/examples/storage/get-file-preview.md
|
97
|
-
- docs/examples/storage/get-file-view.md
|
98
|
-
- docs/examples/storage/get-file.md
|
99
|
-
- docs/examples/storage/list-files.md
|
100
|
-
- docs/examples/storage/update-file.md
|
101
|
-
- docs/examples/teams/create-membership.md
|
102
|
-
- docs/examples/teams/create.md
|
103
|
-
- docs/examples/teams/delete-membership.md
|
104
|
-
- docs/examples/teams/delete.md
|
105
|
-
- docs/examples/teams/get-memberships.md
|
106
|
-
- docs/examples/teams/get.md
|
107
|
-
- docs/examples/teams/list.md
|
108
|
-
- docs/examples/teams/update-membership-roles.md
|
109
|
-
- docs/examples/teams/update-membership-status.md
|
110
|
-
- docs/examples/teams/update.md
|
111
|
-
- docs/examples/users/create.md
|
112
|
-
- docs/examples/users/delete-session.md
|
113
|
-
- docs/examples/users/delete-sessions.md
|
114
|
-
- docs/examples/users/delete.md
|
115
|
-
- docs/examples/users/get-logs.md
|
116
|
-
- docs/examples/users/get-prefs.md
|
117
|
-
- docs/examples/users/get-sessions.md
|
118
|
-
- docs/examples/users/get.md
|
119
|
-
- docs/examples/users/list.md
|
120
|
-
- docs/examples/users/update-email.md
|
121
|
-
- docs/examples/users/update-name.md
|
122
|
-
- docs/examples/users/update-password.md
|
123
|
-
- docs/examples/users/update-prefs.md
|
124
|
-
- docs/examples/users/update-status.md
|
125
|
-
- docs/examples/users/update-verification.md
|
126
33
|
- lib/appwrite.rb
|
127
34
|
- lib/appwrite/client.rb
|
128
35
|
- lib/appwrite/exception.rb
|
129
36
|
- lib/appwrite/file.rb
|
37
|
+
- lib/appwrite/models/attribute_boolean.rb
|
38
|
+
- lib/appwrite/models/attribute_email.rb
|
39
|
+
- lib/appwrite/models/attribute_enum.rb
|
40
|
+
- lib/appwrite/models/attribute_float.rb
|
41
|
+
- lib/appwrite/models/attribute_integer.rb
|
42
|
+
- lib/appwrite/models/attribute_ip.rb
|
43
|
+
- lib/appwrite/models/attribute_list.rb
|
44
|
+
- lib/appwrite/models/attribute_string.rb
|
45
|
+
- lib/appwrite/models/attribute_url.rb
|
46
|
+
- lib/appwrite/models/collection.rb
|
47
|
+
- lib/appwrite/models/collection_list.rb
|
48
|
+
- lib/appwrite/models/continent.rb
|
49
|
+
- lib/appwrite/models/continent_list.rb
|
50
|
+
- lib/appwrite/models/country.rb
|
51
|
+
- lib/appwrite/models/country_list.rb
|
52
|
+
- lib/appwrite/models/currency.rb
|
53
|
+
- lib/appwrite/models/currency_list.rb
|
54
|
+
- lib/appwrite/models/document.rb
|
55
|
+
- lib/appwrite/models/document_list.rb
|
56
|
+
- lib/appwrite/models/execution.rb
|
57
|
+
- lib/appwrite/models/execution_list.rb
|
58
|
+
- lib/appwrite/models/file.rb
|
59
|
+
- lib/appwrite/models/file_list.rb
|
60
|
+
- lib/appwrite/models/function.rb
|
61
|
+
- lib/appwrite/models/function_list.rb
|
62
|
+
- lib/appwrite/models/health_antivirus.rb
|
63
|
+
- lib/appwrite/models/health_queue.rb
|
64
|
+
- lib/appwrite/models/health_status.rb
|
65
|
+
- lib/appwrite/models/health_time.rb
|
66
|
+
- lib/appwrite/models/index.rb
|
67
|
+
- lib/appwrite/models/index_list.rb
|
68
|
+
- lib/appwrite/models/language.rb
|
69
|
+
- lib/appwrite/models/language_list.rb
|
70
|
+
- lib/appwrite/models/locale.rb
|
71
|
+
- lib/appwrite/models/log.rb
|
72
|
+
- lib/appwrite/models/log_list.rb
|
73
|
+
- lib/appwrite/models/membership.rb
|
74
|
+
- lib/appwrite/models/membership_list.rb
|
75
|
+
- lib/appwrite/models/phone.rb
|
76
|
+
- lib/appwrite/models/phone_list.rb
|
77
|
+
- lib/appwrite/models/preferences.rb
|
78
|
+
- lib/appwrite/models/runtime.rb
|
79
|
+
- lib/appwrite/models/runtime_list.rb
|
80
|
+
- lib/appwrite/models/session.rb
|
81
|
+
- lib/appwrite/models/session_list.rb
|
82
|
+
- lib/appwrite/models/tag.rb
|
83
|
+
- lib/appwrite/models/tag_list.rb
|
84
|
+
- lib/appwrite/models/team.rb
|
85
|
+
- lib/appwrite/models/team_list.rb
|
86
|
+
- lib/appwrite/models/token.rb
|
87
|
+
- lib/appwrite/models/user.rb
|
88
|
+
- lib/appwrite/models/user_list.rb
|
89
|
+
- lib/appwrite/query.rb
|
130
90
|
- lib/appwrite/service.rb
|
131
91
|
- lib/appwrite/services/account.rb
|
132
92
|
- lib/appwrite/services/avatars.rb
|
@@ -138,7 +98,8 @@ files:
|
|
138
98
|
- lib/appwrite/services/teams.rb
|
139
99
|
- lib/appwrite/services/users.rb
|
140
100
|
homepage: https://appwrite.io/support
|
141
|
-
licenses:
|
101
|
+
licenses:
|
102
|
+
- BSD-3-Clause
|
142
103
|
metadata: {}
|
143
104
|
post_install_message:
|
144
105
|
rdoc_options: []
|
@@ -1,82 +0,0 @@
|
|
1
|
-
name: "🐛 Bug Report"
|
2
|
-
description: "Submit a bug report to help us improve"
|
3
|
-
title: "🐛 Bug Report: "
|
4
|
-
labels: [bug]
|
5
|
-
body:
|
6
|
-
- type: markdown
|
7
|
-
attributes:
|
8
|
-
value: |
|
9
|
-
Thanks for taking the time to fill out our bug report form 🙏
|
10
|
-
- type: textarea
|
11
|
-
id: steps-to-reproduce
|
12
|
-
validations:
|
13
|
-
required: true
|
14
|
-
attributes:
|
15
|
-
label: "👟 Reproduction steps"
|
16
|
-
description: "How do you trigger this bug? Please walk us through it step by step."
|
17
|
-
placeholder: "When I ..."
|
18
|
-
- type: textarea
|
19
|
-
id: expected-behavior
|
20
|
-
validations:
|
21
|
-
required: true
|
22
|
-
attributes:
|
23
|
-
label: "👍 Expected behavior"
|
24
|
-
description: "What did you think would happen?"
|
25
|
-
placeholder: "It should ..."
|
26
|
-
- type: textarea
|
27
|
-
id: actual-behavior
|
28
|
-
validations:
|
29
|
-
required: true
|
30
|
-
attributes:
|
31
|
-
label: "👎 Actual Behavior"
|
32
|
-
description: "What did actually happen? Add screenshots, if applicable."
|
33
|
-
placeholder: "It actually ..."
|
34
|
-
- type: dropdown
|
35
|
-
id: appwrite-version
|
36
|
-
attributes:
|
37
|
-
label: "🎲 Appwrite version"
|
38
|
-
description: "What version of Appwrite are you running?"
|
39
|
-
options:
|
40
|
-
- Version 0.10.x
|
41
|
-
- Version 0.9.x
|
42
|
-
- Version 0.8.x
|
43
|
-
- Version 0.7.x
|
44
|
-
- Version 0.6.x
|
45
|
-
- Different version (specify in environment)
|
46
|
-
validations:
|
47
|
-
required: true
|
48
|
-
- type: dropdown
|
49
|
-
id: operating-system
|
50
|
-
attributes:
|
51
|
-
label: "💻 Operating system"
|
52
|
-
description: "What OS is your server / device running on?"
|
53
|
-
options:
|
54
|
-
- Linux
|
55
|
-
- MacOS
|
56
|
-
- Windows
|
57
|
-
- Something else
|
58
|
-
validations:
|
59
|
-
required: true
|
60
|
-
- type: textarea
|
61
|
-
id: environment
|
62
|
-
validations:
|
63
|
-
required: false
|
64
|
-
attributes:
|
65
|
-
label: "🧱 Your Environment"
|
66
|
-
description: "Is your environment customized in any way?"
|
67
|
-
placeholder: "I use Cloudflare for ..."
|
68
|
-
- type: checkboxes
|
69
|
-
id: no-duplicate-issues
|
70
|
-
attributes:
|
71
|
-
label: "👀 Have you spent some time to check if this issue has been raised before?"
|
72
|
-
description: "Have you Googled for a similar issue or checked our older issues for a similar bug?"
|
73
|
-
options:
|
74
|
-
- label: "I checked and didn't find similar issue"
|
75
|
-
required: true
|
76
|
-
- type: checkboxes
|
77
|
-
id: read-code-of-conduct
|
78
|
-
attributes:
|
79
|
-
label: "🏢 Have you read the Code of Conduct?"
|
80
|
-
options:
|
81
|
-
- label: "I have read the [Code of Conduct](https://github.com/appwrite/appwrite/blob/HEAD/CODE_OF_CONDUCT.md)"
|
82
|
-
required: true
|
@@ -1,32 +0,0 @@
|
|
1
|
-
name: "📚 Documentation"
|
2
|
-
description: "Report an issue related to documentation"
|
3
|
-
title: "📚 Documentation: "
|
4
|
-
labels: [documentation]
|
5
|
-
body:
|
6
|
-
- type: markdown
|
7
|
-
attributes:
|
8
|
-
value: |
|
9
|
-
Thanks for taking the time to make our documentation better 🙏
|
10
|
-
- type: textarea
|
11
|
-
id: issue-description
|
12
|
-
validations:
|
13
|
-
required: true
|
14
|
-
attributes:
|
15
|
-
label: "💭 Description"
|
16
|
-
description: "A clear and concise description of what the issue is."
|
17
|
-
placeholder: "Documentation should not ..."
|
18
|
-
- type: checkboxes
|
19
|
-
id: no-duplicate-issues
|
20
|
-
attributes:
|
21
|
-
label: "👀 Have you spent some time to check if this issue has been raised before?"
|
22
|
-
description: "Have you Googled for a similar issue or checked our older issues for a similar bug?"
|
23
|
-
options:
|
24
|
-
- label: "I checked and didn't find similar issue"
|
25
|
-
required: true
|
26
|
-
- type: checkboxes
|
27
|
-
id: read-code-of-conduct
|
28
|
-
attributes:
|
29
|
-
label: "🏢 Have you read the Code of Conduct?"
|
30
|
-
options:
|
31
|
-
- label: "I have read the [Code of Conduct](https://github.com/appwrite/appwrite/blob/HEAD/CODE_OF_CONDUCT.md)"
|
32
|
-
required: true
|
@@ -1,40 +0,0 @@
|
|
1
|
-
name: 🚀 Feature
|
2
|
-
description: "Submit a proposal for a new feature"
|
3
|
-
title: "🚀 Feature: "
|
4
|
-
labels: [feature]
|
5
|
-
body:
|
6
|
-
- type: markdown
|
7
|
-
attributes:
|
8
|
-
value: |
|
9
|
-
Thanks for taking the time to fill out our feature request form 🙏
|
10
|
-
- type: textarea
|
11
|
-
id: feature-description
|
12
|
-
validations:
|
13
|
-
required: true
|
14
|
-
attributes:
|
15
|
-
label: "🔖 Feature description"
|
16
|
-
description: "A clear and concise description of what the feature is."
|
17
|
-
placeholder: "You should add ..."
|
18
|
-
- type: textarea
|
19
|
-
id: pitch
|
20
|
-
validations:
|
21
|
-
required: true
|
22
|
-
attributes:
|
23
|
-
label: "🎤 Pitch"
|
24
|
-
description: "Please explain why this feature should be implemented and how it would be used. Add examples, if applicable."
|
25
|
-
placeholder: "In my use-case, ..."
|
26
|
-
- type: checkboxes
|
27
|
-
id: no-duplicate-issues
|
28
|
-
attributes:
|
29
|
-
label: "👀 Have you spent some time to check if this issue has been raised before?"
|
30
|
-
description: "Have you Googled for a similar issue or checked our older issues for a similar bug?"
|
31
|
-
options:
|
32
|
-
- label: "I checked and didn't find similar issue"
|
33
|
-
required: true
|
34
|
-
- type: checkboxes
|
35
|
-
id: read-code-of-conduct
|
36
|
-
attributes:
|
37
|
-
label: "🏢 Have you read the Code of Conduct?"
|
38
|
-
options:
|
39
|
-
- label: "I have read the [Code of Conduct](https://github.com/appwrite/appwrite/blob/HEAD/CODE_OF_CONDUCT.md)"
|
40
|
-
required: true
|
data/.travis.yml
DELETED
data/CHANGELOG.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# Change Log
|
data/Gemfile
DELETED
data/LICENSE
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
Copyright (c) 2021 Appwrite (https://appwrite.io) and individual contributors.
|
2
|
-
All rights reserved.
|
3
|
-
|
4
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
5
|
-
|
6
|
-
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
7
|
-
|
8
|
-
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
9
|
-
|
10
|
-
3. Neither the name Appwrite nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
11
|
-
|
12
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.md
DELETED
@@ -1,96 +0,0 @@
|
|
1
|
-
# Appwrite Ruby SDK
|
2
|
-
|
3
|
-
![License](https://img.shields.io/github/license/appwrite/sdk-for-ruby.svg?style=flat-square)
|
4
|
-
![Version](https://img.shields.io/badge/api%20version-0.11.0-blue.svg?style=flat-square)
|
5
|
-
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
|
6
|
-
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite_io?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite_io)
|
7
|
-
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
|
8
|
-
|
9
|
-
**This SDK is compatible with Appwrite server version 0.11.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-ruby/releases).**
|
10
|
-
|
11
|
-
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Ruby SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
|
12
|
-
|
13
|
-
![Appwrite](https://appwrite.io/images/github.png)
|
14
|
-
|
15
|
-
## Installation
|
16
|
-
|
17
|
-
To install via [Gem](https://rubygems.org/):
|
18
|
-
|
19
|
-
```bash
|
20
|
-
gem install appwrite --save
|
21
|
-
```
|
22
|
-
|
23
|
-
|
24
|
-
## Getting Started
|
25
|
-
|
26
|
-
### Init your SDK
|
27
|
-
Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page and your new API secret Key from project's API keys section.
|
28
|
-
|
29
|
-
```ruby
|
30
|
-
require 'appwrite'
|
31
|
-
|
32
|
-
client = Appwrite::Client.new()
|
33
|
-
|
34
|
-
client
|
35
|
-
.set_endpoint(ENV["APPWRITE_ENDPOINT"]) # Your API Endpoint
|
36
|
-
.set_project(ENV["APPWRITE_PROJECT"]) # Your project ID
|
37
|
-
.set_key(ENV["APPWRITE_SECRET"]) # Your secret API key
|
38
|
-
.setSelfSigned() # Use only on dev mode with a self-signed SSL cert
|
39
|
-
;
|
40
|
-
```
|
41
|
-
|
42
|
-
### Make Your First Request
|
43
|
-
Once your SDK object is set, create any of the Appwrite service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
|
44
|
-
|
45
|
-
```ruby
|
46
|
-
users = Appwrite::Users.new(client);
|
47
|
-
|
48
|
-
result = users.create(email: 'email@example.com', password: 'password');
|
49
|
-
```
|
50
|
-
|
51
|
-
### Full Example
|
52
|
-
```ruby
|
53
|
-
require 'appwrite'
|
54
|
-
|
55
|
-
client = Appwrite::Client.new()
|
56
|
-
|
57
|
-
client
|
58
|
-
.set_endpoint(ENV["APPWRITE_ENDPOINT"]) # Your API Endpoint
|
59
|
-
.set_project(ENV["APPWRITE_PROJECT"]) # Your project ID
|
60
|
-
.set_key(ENV["APPWRITE_SECRET"]) # Your secret API key
|
61
|
-
.setSelfSigned() # Use only on dev mode with a self-signed SSL cert
|
62
|
-
;
|
63
|
-
|
64
|
-
users = Appwrite::Users.new(client);
|
65
|
-
|
66
|
-
result = users.create(email: 'email@example.com', password: 'password');
|
67
|
-
```
|
68
|
-
|
69
|
-
### Error Handling
|
70
|
-
The Appwrite Ruby SDK raises `Appwrite::Exception` object with `message`, `code` and `response` properties. You can handle any errors by catching `Appwrite::Exception` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example.
|
71
|
-
|
72
|
-
```ruby
|
73
|
-
users = Appwrite::Users.new(client);
|
74
|
-
|
75
|
-
begin
|
76
|
-
result = users.create(email: 'email@example.com', password: 'password');
|
77
|
-
rescue Appwrite::Exception => error
|
78
|
-
puts error.message
|
79
|
-
end
|
80
|
-
```
|
81
|
-
|
82
|
-
### Learn more
|
83
|
-
You can use the following resources to learn more and get help
|
84
|
-
- 🚀 [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)
|
85
|
-
- 📜 [Appwrite Docs](https://appwrite.io/docs)
|
86
|
-
- 💬 [Discord Community](https://appwrite.io/discord)
|
87
|
-
- 🚂 [Appwrite Ruby Playground](https://github.com/appwrite/playground-for-ruby)
|
88
|
-
|
89
|
-
|
90
|
-
## Contribution
|
91
|
-
|
92
|
-
This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.
|
93
|
-
|
94
|
-
## License
|
95
|
-
|
96
|
-
Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.
|
data/appwrite.gemspec
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
Gem::Specification.new do |s|
|
2
|
-
|
3
|
-
s.name = 'appwrite'
|
4
|
-
s.version = '2.4.1'
|
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
|
-
s.author = 'Appwrite Team'
|
7
|
-
s.homepage = 'https://appwrite.io/support'
|
8
|
-
s.email = 'team@appwrite.io'
|
9
|
-
s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
10
|
-
|
11
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
|
-
;
|
10
|
-
|
11
|
-
account = Appwrite::Account.new(client);
|
12
|
-
|
13
|
-
response = account.create_recovery(email: 'email@example.com', url: 'https://example.com');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
|
-
;
|
10
|
-
|
11
|
-
account = Appwrite::Account.new(client);
|
12
|
-
|
13
|
-
response = account.create_verification(url: 'https://example.com');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
|
-
;
|
10
|
-
|
11
|
-
account = Appwrite::Account.new(client);
|
12
|
-
|
13
|
-
response = account.delete_session(session_id: '[SESSION_ID]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
|
-
;
|
10
|
-
|
11
|
-
account = Appwrite::Account.new(client);
|
12
|
-
|
13
|
-
response = account.delete_sessions();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
|
-
;
|
10
|
-
|
11
|
-
account = Appwrite::Account.new(client);
|
12
|
-
|
13
|
-
response = account.delete();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
|
-
;
|
10
|
-
|
11
|
-
account = Appwrite::Account.new(client);
|
12
|
-
|
13
|
-
response = account.get_logs();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
|
-
;
|
10
|
-
|
11
|
-
account = Appwrite::Account.new(client);
|
12
|
-
|
13
|
-
response = account.get_prefs();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
|
-
;
|
10
|
-
|
11
|
-
account = Appwrite::Account.new(client);
|
12
|
-
|
13
|
-
response = account.get_session(session_id: '[SESSION_ID]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
9
|
-
;
|
10
|
-
|
11
|
-
account = Appwrite::Account.new(client);
|
12
|
-
|
13
|
-
response = account.get_sessions();
|
14
|
-
|
15
|
-
puts response
|