Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Change Log

## 21.1.0
## 21.0.1

* Fix doc examples with proper formatting
* Remove obsolete GitHub issue templates (bug.yaml, documentation.yaml, feature.yaml) to simplify repository maintenance.
* Remove CI workflows for auto-closing external PRs (autoclose.yml) and publishing to RubyGems (publish.yml).
* Cleanup of documentation examples: several outdated docs under docs/examples/health, docs/examples/tablesdb, and docs/examples/databases have been deleted.
* 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).
* 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.
* Add support for the new `Backups` service

## 21.0.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)

**This SDK is compatible with Appwrite server version latest. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-ruby/releases).**
**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).**

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)

Expand Down
2 changes: 1 addition & 1 deletion appwrite.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Gem::Specification.new do |spec|

spec.name = 'appwrite'
spec.version = '21.1.0'
spec.version = '21.0.1'
spec.license = 'BSD-3-Clause'
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'
spec.author = 'Appwrite Team'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ client = Client.new
.set_project('<YOUR_PROJECT_ID>') # Your project ID
.set_key('<YOUR_API_KEY>') # Your secret API key

health = Health.new(client)
activities = Activities.new(client)

result = health.get_queue_threats(
threshold: null # optional
result = activities.get_event(
event_id: '<EVENT_ID>'
)
```
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ client = Client.new
.set_project('<YOUR_PROJECT_ID>') # Your project ID
.set_key('<YOUR_API_KEY>') # Your secret API key

health = Health.new(client)
activities = Activities.new(client)

result = health.get_queue_region_manager(
threshold: null # optional
result = activities.list_events(
queries: '' # optional
)
```
3 changes: 2 additions & 1 deletion docs/examples/databases/create-longtext-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ result = databases.create_longtext_attribute(
key: '',
required: false,
default: '<DEFAULT>', # optional
array: false # optional
array: false, # optional
encrypt: false # optional
)
```
3 changes: 2 additions & 1 deletion docs/examples/databases/create-mediumtext-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ result = databases.create_mediumtext_attribute(
key: '',
required: false,
default: '<DEFAULT>', # optional
array: false # optional
array: false, # optional
encrypt: false # optional
)
```
3 changes: 2 additions & 1 deletion docs/examples/databases/create-text-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ result = databases.create_text_attribute(
key: '',
required: false,
default: '<DEFAULT>', # optional
array: false # optional
array: false, # optional
encrypt: false # optional
)
```
3 changes: 2 additions & 1 deletion docs/examples/databases/create-varchar-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ result = databases.create_varchar_attribute(
size: 1,
required: false,
default: '<DEFAULT>', # optional
array: false # optional
array: false, # optional
encrypt: false # optional
)
```
16 changes: 0 additions & 16 deletions docs/examples/health/get-queue-billing-project-aggregation.md

This file was deleted.

16 changes: 0 additions & 16 deletions docs/examples/health/get-queue-billing-team-aggregation.md

This file was deleted.

16 changes: 0 additions & 16 deletions docs/examples/health/get-queue-priority-builds.md

This file was deleted.

3 changes: 2 additions & 1 deletion docs/examples/tablesdb/create-longtext-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ result = tables_db.create_longtext_column(
key: '',
required: false,
default: '<DEFAULT>', # optional
array: false # optional
array: false, # optional
encrypt: false # optional
)
```
3 changes: 2 additions & 1 deletion docs/examples/tablesdb/create-mediumtext-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ result = tables_db.create_mediumtext_column(
key: '',
required: false,
default: '<DEFAULT>', # optional
array: false # optional
array: false, # optional
encrypt: false # optional
)
```
3 changes: 2 additions & 1 deletion docs/examples/tablesdb/create-text-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ result = tables_db.create_text_column(
key: '',
required: false,
default: '<DEFAULT>', # optional
array: false # optional
array: false, # optional
encrypt: false # optional
)
```
3 changes: 2 additions & 1 deletion docs/examples/tablesdb/create-varchar-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ result = tables_db.create_varchar_column(
size: 1,
required: false,
default: '<DEFAULT>', # optional
array: false # optional
array: false, # optional
encrypt: false # optional
)
```
3 changes: 3 additions & 0 deletions lib/appwrite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,11 @@
require_relative 'appwrite/models/transaction'
require_relative 'appwrite/models/subscriber'
require_relative 'appwrite/models/target'
require_relative 'appwrite/models/activity_event'
require_relative 'appwrite/models/backup_archive'
require_relative 'appwrite/models/backup_policy'
require_relative 'appwrite/models/backup_restoration'
require_relative 'appwrite/models/activity_event_list'
require_relative 'appwrite/models/backup_archive_list'
require_relative 'appwrite/models/backup_policy_list'
require_relative 'appwrite/models/backup_restoration_list'
Expand Down Expand Up @@ -194,6 +196,7 @@
require_relative 'appwrite/enums/message_status'

require_relative 'appwrite/services/account'
require_relative 'appwrite/services/activities'
require_relative 'appwrite/services/avatars'
require_relative 'appwrite/services/backups'
require_relative 'appwrite/services/databases'
Expand Down
2 changes: 1 addition & 1 deletion lib/appwrite/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def initialize
'x-sdk-name'=> 'Ruby',
'x-sdk-platform'=> 'server',
'x-sdk-language'=> 'ruby',
'x-sdk-version'=> '21.1.0',
'x-sdk-version'=> '21.0.1',
'X-Appwrite-Response-Format' => '1.8.0'
}
@endpoint = 'https://cloud.appwrite.io/v1'
Expand Down
20 changes: 20 additions & 0 deletions lib/appwrite/enums/build_runtime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,35 @@ module BuildRuntime
NODE_20_0 = 'node-20.0'
NODE_21_0 = 'node-21.0'
NODE_22 = 'node-22'
NODE_23 = 'node-23'
NODE_24 = 'node-24'
NODE_25 = 'node-25'
PHP_8_0 = 'php-8.0'
PHP_8_1 = 'php-8.1'
PHP_8_2 = 'php-8.2'
PHP_8_3 = 'php-8.3'
PHP_8_4 = 'php-8.4'
RUBY_3_0 = 'ruby-3.0'
RUBY_3_1 = 'ruby-3.1'
RUBY_3_2 = 'ruby-3.2'
RUBY_3_3 = 'ruby-3.3'
RUBY_3_4 = 'ruby-3.4'
RUBY_4_0 = 'ruby-4.0'
PYTHON_3_8 = 'python-3.8'
PYTHON_3_9 = 'python-3.9'
PYTHON_3_10 = 'python-3.10'
PYTHON_3_11 = 'python-3.11'
PYTHON_3_12 = 'python-3.12'
PYTHON_3_13 = 'python-3.13'
PYTHON_3_14 = 'python-3.14'
PYTHON_ML_3_11 = 'python-ml-3.11'
PYTHON_ML_3_12 = 'python-ml-3.12'
PYTHON_ML_3_13 = 'python-ml-3.13'
DENO_1_40 = 'deno-1.40'
DENO_1_46 = 'deno-1.46'
DENO_2_0 = 'deno-2.0'
DENO_2_5 = 'deno-2.5'
DENO_2_6 = 'deno-2.6'
DART_2_15 = 'dart-2.15'
DART_2_16 = 'dart-2.16'
DART_2_17 = 'dart-2.17'
Expand All @@ -41,25 +52,34 @@ module BuildRuntime
DOTNET_6_0 = 'dotnet-6.0'
DOTNET_7_0 = 'dotnet-7.0'
DOTNET_8_0 = 'dotnet-8.0'
DOTNET_10 = 'dotnet-10'
JAVA_8_0 = 'java-8.0'
JAVA_11_0 = 'java-11.0'
JAVA_17_0 = 'java-17.0'
JAVA_18_0 = 'java-18.0'
JAVA_21_0 = 'java-21.0'
JAVA_22 = 'java-22'
JAVA_25 = 'java-25'
SWIFT_5_5 = 'swift-5.5'
SWIFT_5_8 = 'swift-5.8'
SWIFT_5_9 = 'swift-5.9'
SWIFT_5_10 = 'swift-5.10'
SWIFT_6_2 = 'swift-6.2'
KOTLIN_1_6 = 'kotlin-1.6'
KOTLIN_1_8 = 'kotlin-1.8'
KOTLIN_1_9 = 'kotlin-1.9'
KOTLIN_2_0 = 'kotlin-2.0'
KOTLIN_2_3 = 'kotlin-2.3'
CPP_17 = 'cpp-17'
CPP_20 = 'cpp-20'
BUN_1_0 = 'bun-1.0'
BUN_1_1 = 'bun-1.1'
BUN_1_2 = 'bun-1.2'
BUN_1_3 = 'bun-1.3'
GO_1_23 = 'go-1.23'
GO_1_24 = 'go-1.24'
GO_1_25 = 'go-1.25'
GO_1_26 = 'go-1.26'
STATIC_1 = 'static-1'
FLUTTER_3_24 = 'flutter-3.24'
FLUTTER_3_27 = 'flutter-3.27'
Expand Down
20 changes: 20 additions & 0 deletions lib/appwrite/enums/runtime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,35 @@ module Runtime
NODE_20_0 = 'node-20.0'
NODE_21_0 = 'node-21.0'
NODE_22 = 'node-22'
NODE_23 = 'node-23'
NODE_24 = 'node-24'
NODE_25 = 'node-25'
PHP_8_0 = 'php-8.0'
PHP_8_1 = 'php-8.1'
PHP_8_2 = 'php-8.2'
PHP_8_3 = 'php-8.3'
PHP_8_4 = 'php-8.4'
RUBY_3_0 = 'ruby-3.0'
RUBY_3_1 = 'ruby-3.1'
RUBY_3_2 = 'ruby-3.2'
RUBY_3_3 = 'ruby-3.3'
RUBY_3_4 = 'ruby-3.4'
RUBY_4_0 = 'ruby-4.0'
PYTHON_3_8 = 'python-3.8'
PYTHON_3_9 = 'python-3.9'
PYTHON_3_10 = 'python-3.10'
PYTHON_3_11 = 'python-3.11'
PYTHON_3_12 = 'python-3.12'
PYTHON_3_13 = 'python-3.13'
PYTHON_3_14 = 'python-3.14'
PYTHON_ML_3_11 = 'python-ml-3.11'
PYTHON_ML_3_12 = 'python-ml-3.12'
PYTHON_ML_3_13 = 'python-ml-3.13'
DENO_1_40 = 'deno-1.40'
DENO_1_46 = 'deno-1.46'
DENO_2_0 = 'deno-2.0'
DENO_2_5 = 'deno-2.5'
DENO_2_6 = 'deno-2.6'
DART_2_15 = 'dart-2.15'
DART_2_16 = 'dart-2.16'
DART_2_17 = 'dart-2.17'
Expand All @@ -41,25 +52,34 @@ module Runtime
DOTNET_6_0 = 'dotnet-6.0'
DOTNET_7_0 = 'dotnet-7.0'
DOTNET_8_0 = 'dotnet-8.0'
DOTNET_10 = 'dotnet-10'
JAVA_8_0 = 'java-8.0'
JAVA_11_0 = 'java-11.0'
JAVA_17_0 = 'java-17.0'
JAVA_18_0 = 'java-18.0'
JAVA_21_0 = 'java-21.0'
JAVA_22 = 'java-22'
JAVA_25 = 'java-25'
SWIFT_5_5 = 'swift-5.5'
SWIFT_5_8 = 'swift-5.8'
SWIFT_5_9 = 'swift-5.9'
SWIFT_5_10 = 'swift-5.10'
SWIFT_6_2 = 'swift-6.2'
KOTLIN_1_6 = 'kotlin-1.6'
KOTLIN_1_8 = 'kotlin-1.8'
KOTLIN_1_9 = 'kotlin-1.9'
KOTLIN_2_0 = 'kotlin-2.0'
KOTLIN_2_3 = 'kotlin-2.3'
CPP_17 = 'cpp-17'
CPP_20 = 'cpp-20'
BUN_1_0 = 'bun-1.0'
BUN_1_1 = 'bun-1.1'
BUN_1_2 = 'bun-1.2'
BUN_1_3 = 'bun-1.3'
GO_1_23 = 'go-1.23'
GO_1_24 = 'go-1.24'
GO_1_25 = 'go-1.25'
GO_1_26 = 'go-1.26'
STATIC_1 = 'static-1'
FLUTTER_3_24 = 'flutter-3.24'
FLUTTER_3_27 = 'flutter-3.27'
Expand Down
3 changes: 3 additions & 0 deletions lib/appwrite/enums/scopes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ module Scopes
TARGETS_WRITE = 'targets.write'
RULES_READ = 'rules.read'
RULES_WRITE = 'rules.write'
SCHEDULES_READ = 'schedules.read'
SCHEDULES_WRITE = 'schedules.write'
MIGRATIONS_READ = 'migrations.read'
MIGRATIONS_WRITE = 'migrations.write'
VCS_READ = 'vcs.read'
Expand All @@ -64,6 +66,7 @@ module Scopes
RESTORATIONS_WRITE = 'restorations.write'
DOMAINS_READ = 'domains.read'
DOMAINS_WRITE = 'domains.write'
EVENTS_READ = 'events.read'
end
end
end
Loading