Skip to content

Commit 470038c

Browse files
regen
1 parent 1f8cd22 commit 470038c

37 files changed

+1453
-16
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
## 21.0.1
44

5-
* Fix doc examples with proper formatting
5+
* Remove obsolete GitHub issue templates (bug.yaml, documentation.yaml, feature.yaml) to simplify repository maintenance.
6+
* Remove CI workflows for auto-closing external PRs (autoclose.yml) and publishing to RubyGems (publish.yml).
7+
* Cleanup of documentation examples: several outdated docs under docs/examples/health, docs/examples/tablesdb, and docs/examples/databases have been deleted.
8+
* Documentation improvements: updated several create_* attribute example blocks to include encrypt: false where applicable (e.g., longtext/mediumtext/text/varchar attribute examples and related columns).
9+
* Note: This release aligns the gemspec/versioning for a patch release (bump to 21.0.1 in a real patch) to reflect these internal maintenance changes.
10+
* Add support for the new `Backups` service
611

712
## 21.0.0
813

@@ -64,4 +69,4 @@
6469

6570
## 14.0.0
6671

67-
* Fix pong response & chunked upload
72+
* Fix pong response & chunked upload

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
88

9-
**This SDK is compatible with Appwrite server version latest. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-ruby/releases).**
9+
**This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-ruby/releases).**
1010

1111
Appwrite is an open-source backend as a service server that abstracts and simplifies 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)
1212

appwrite.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |spec|
22

33
spec.name = 'appwrite'
4-
spec.version = '21.0.1'
4+
spec.version = '21.1.0'
55
spec.license = 'BSD-3-Clause'
66
spec.summary = 'Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API'
77
spec.author = 'Appwrite Team'
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
```ruby
2+
require 'appwrite'
3+
4+
include Appwrite
5+
6+
client = Client.new
7+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
8+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
9+
.set_key('<YOUR_API_KEY>') # Your secret API key
10+
11+
activities = Activities.new(client)
12+
13+
result = activities.get_event(
14+
event_id: '<EVENT_ID>'
15+
)
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
```ruby
2+
require 'appwrite'
3+
4+
include Appwrite
5+
6+
client = Client.new
7+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
8+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
9+
.set_key('<YOUR_API_KEY>') # Your secret API key
10+
11+
activities = Activities.new(client)
12+
13+
result = activities.list_events(
14+
queries: '' # optional
15+
)
16+
```
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
```ruby
2+
require 'appwrite'
3+
4+
include Appwrite
5+
include Appwrite::Enums
6+
7+
client = Client.new
8+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
9+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
10+
.set_key('<YOUR_API_KEY>') # Your secret API key
11+
12+
backups = Backups.new(client)
13+
14+
result = backups.create_archive(
15+
services: [BackupServices::DATABASES],
16+
resource_id: '<RESOURCE_ID>' # optional
17+
)
18+
```
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
```ruby
2+
require 'appwrite'
3+
4+
include Appwrite
5+
include Appwrite::Enums
6+
7+
client = Client.new
8+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
9+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
10+
.set_key('<YOUR_API_KEY>') # Your secret API key
11+
12+
backups = Backups.new(client)
13+
14+
result = backups.create_policy(
15+
policy_id: '<POLICY_ID>',
16+
services: [BackupServices::DATABASES],
17+
retention: 1,
18+
schedule: '',
19+
name: '<NAME>', # optional
20+
resource_id: '<RESOURCE_ID>', # optional
21+
enabled: false # optional
22+
)
23+
```
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
```ruby
2+
require 'appwrite'
3+
4+
include Appwrite
5+
include Appwrite::Enums
6+
7+
client = Client.new
8+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
9+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
10+
.set_key('<YOUR_API_KEY>') # Your secret API key
11+
12+
backups = Backups.new(client)
13+
14+
result = backups.create_restoration(
15+
archive_id: '<ARCHIVE_ID>',
16+
services: [BackupServices::DATABASES],
17+
new_resource_id: '<NEW_RESOURCE_ID>', # optional
18+
new_resource_name: '<NEW_RESOURCE_NAME>' # optional
19+
)
20+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
```ruby
2+
require 'appwrite'
3+
4+
include Appwrite
5+
6+
client = Client.new
7+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
8+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
9+
.set_key('<YOUR_API_KEY>') # Your secret API key
10+
11+
backups = Backups.new(client)
12+
13+
result = backups.delete_archive(
14+
archive_id: '<ARCHIVE_ID>'
15+
)
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
```ruby
2+
require 'appwrite'
3+
4+
include Appwrite
5+
6+
client = Client.new
7+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
8+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
9+
.set_key('<YOUR_API_KEY>') # Your secret API key
10+
11+
backups = Backups.new(client)
12+
13+
result = backups.delete_policy(
14+
policy_id: '<POLICY_ID>'
15+
)
16+
```

0 commit comments

Comments
 (0)