Skip to content

Commit 1e81e01

Browse files
authored
Merge pull request #52 from appwrite/dev
2 parents 29eef87 + 8692a52 commit 1e81e01

68 files changed

Lines changed: 2245 additions & 90 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## 21.0.0
4+
5+
* Add array-based enum parameters (e.g., `permissions: Array<BrowserPermission>`).
6+
* Breaking change: `Output` enum has been removed; use `ImageFormat` instead.
7+
* Add `getQueueAudits` support to `Health` service.
8+
* Add longtext/mediumtext/text/varchar attribute and column helpers to `Databases` and `TablesDB` services.
9+
310
## 20.1.0
411

512
* Added ability to create columns and indexes synchronously while creating a table
@@ -53,4 +60,4 @@
5360

5461
## 14.0.0
5562

56-
* Fix pong response & chunked upload
63+
* Fix pong response & chunked upload

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2025 Appwrite (https://appwrite.io) and individual contributors.
1+
Copyright (c) 2026 Appwrite (https://appwrite.io) and individual contributors.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Appwrite Ruby SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-ruby.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-1.8.0-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.8.1-blue.svg?style=flat-square)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
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

99
**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

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)
11+
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

1313
![Appwrite](https://github.com/appwrite/appwrite/raw/main/public/images/github.png)
1414

appwrite.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Gem::Specification.new do |spec|
22

33
spec.name = 'appwrite'
4-
spec.version = '20.1.0'
4+
spec.version = '21.0.0'
55
spec.license = 'BSD-3-Clause'
6-
spec.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+
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'
88
spec.homepage = 'https://appwrite.io/support'
99
spec.email = 'team@appwrite.io'

docs/examples/account/create-jwt.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ client = Client.new
99

1010
account = Account.new(client)
1111

12-
result = account.create_jwt()
12+
result = account.create_jwt(
13+
duration: 0 # optional
14+
)

docs/examples/avatars/get-screenshot.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ result = avatars.get_screenshot(
1919
viewport_width: 1920, # optional
2020
viewport_height: 1080, # optional
2121
scale: 2, # optional
22-
theme: Theme::LIGHT, # optional
22+
theme: Theme::DARK, # optional
2323
user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15', # optional
2424
fullpage: true, # optional
2525
locale: 'en-US', # optional
26-
timezone: Timezone::AFRICA_ABIDJAN, # optional
26+
timezone: Timezone::AMERICA_NEW_YORK, # optional
2727
latitude: 37.7749, # optional
2828
longitude: -122.4194, # optional
2929
accuracy: 100, # optional
3030
touch: true, # optional
31-
permissions: ["geolocation","notifications"], # optional
31+
permissions: [BrowserPermission::GEOLOCATION, BrowserPermission::NOTIFICATIONS], # optional
3232
sleep: 3, # optional
3333
width: 800, # optional
3434
height: 600, # optional
3535
quality: 85, # optional
36-
output: Output::JPG # optional
36+
output: ImageFormat::JPEG # optional
3737
)

docs/examples/databases/create-index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ result = databases.create_index(
1616
key: '',
1717
type: IndexType::KEY,
1818
attributes: [],
19-
orders: [], # optional
19+
orders: [OrderBy::ASC], # optional
2020
lengths: [] # optional
2121
)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
9+
10+
databases = Databases.new(client)
11+
12+
result = databases.create_longtext_attribute(
13+
database_id: '<DATABASE_ID>',
14+
collection_id: '<COLLECTION_ID>',
15+
key: '',
16+
required: false,
17+
default: '<DEFAULT>', # optional
18+
array: false # optional
19+
)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
9+
10+
databases = Databases.new(client)
11+
12+
result = databases.create_mediumtext_attribute(
13+
database_id: '<DATABASE_ID>',
14+
collection_id: '<COLLECTION_ID>',
15+
key: '',
16+
required: false,
17+
default: '<DEFAULT>', # optional
18+
array: false # optional
19+
)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
9+
10+
databases = Databases.new(client)
11+
12+
result = databases.create_text_attribute(
13+
database_id: '<DATABASE_ID>',
14+
collection_id: '<COLLECTION_ID>',
15+
key: '',
16+
required: false,
17+
default: '<DEFAULT>', # optional
18+
array: false # optional
19+
)

0 commit comments

Comments
 (0)