Skip to content

Commit 86886e7

Browse files
authored
Merge pull request #57 from appwrite/dev
2 parents dc55a40 + 40d76c8 commit 86886e7

Some content is hidden

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

43 files changed

+977
-162
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# Change Log
22

3+
## 22.0.0
4+
5+
* [BREAKING] Changed `$sequence` type from `int` to `string` for rows and documents
6+
* [BREAKING] Renamed `IndexType` enum: split into `DatabasesIndexType` (for Databases) and `TablesDBIndexType` (for TablesDB)
7+
* [BREAKING] Replaced `specification` parameter with `build_specification` and `runtime_specification` in `Functions#create`, `Functions#update`, `Sites#create`, `Sites#update`
8+
* Added new `Project` service with full CRUD for project-level environment variables
9+
* Added new `Webhooks` service with full CRUD for project webhooks (including `update_signature`)
10+
* Added `Webhook` and `WebhookList` models
11+
* Added `Users#update_impersonator` method for enabling/disabling user impersonation
12+
* Added impersonation support: `set_impersonate_user_id`, `set_impersonate_user_email`, `set_impersonate_user_phone` on `Client`
13+
* Added `impersonator` and `impersonator_user_id` fields to `User` model
14+
* Added `deployment_retention` parameter to Functions and Sites create/update
15+
* Added `start_command` parameter to Sites create/update
16+
* Added `Documentsdb`, `Vectorsdb` values to `BackupServices` and `DatabaseType` enums
17+
* Added `WebhooksRead`, `WebhooksWrite`, `ProjectRead`, `ProjectWrite` scopes
18+
* Removed `get_queue_billing_project_aggregation`, `get_queue_billing_team_aggregation`, `get_queue_priority_builds`, `get_queue_region_manager`, `get_queue_threats` from `Health` service
19+
* Updated `Log` model field descriptions to clarify impersonation behavior
20+
* Updated `X-Appwrite-Response-Format` header to `1.9.0`
21+
* Updated README badge to API version `1.9.0` and compatibility to server version `1.9.x`
22+
323
## 21.1.0
424

525
* Added get_console_pausing health endpoint to monitor console pausing.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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.1-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.9.0-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

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).**
9+
**This SDK is compatible with Appwrite server version 1.9.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.1.0'
4+
spec.version = '22.0.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'

docs/examples/databases/create-index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ result = databases.create_index(
1515
database_id: '<DATABASE_ID>',
1616
collection_id: '<COLLECTION_ID>',
1717
key: '',
18-
type: IndexType::KEY,
18+
type: DatabasesIndexType::KEY,
1919
attributes: [],
2020
orders: [OrderBy::ASC], # optional
2121
lengths: [] # optional

docs/examples/functions/create.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ result = functions.create(
2929
provider_branch: '<PROVIDER_BRANCH>', # optional
3030
provider_silent_mode: false, # optional
3131
provider_root_directory: '<PROVIDER_ROOT_DIRECTORY>', # optional
32-
specification: '' # optional
32+
build_specification: '', # optional
33+
runtime_specification: '', # optional
34+
deployment_retention: 0 # optional
3335
)
3436
```

docs/examples/functions/update.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ result = functions.update(
2929
provider_branch: '<PROVIDER_BRANCH>', # optional
3030
provider_silent_mode: false, # optional
3131
provider_root_directory: '<PROVIDER_ROOT_DIRECTORY>', # optional
32-
specification: '' # optional
32+
build_specification: '', # optional
33+
runtime_specification: '', # optional
34+
deployment_retention: 0 # optional
3335
)
3436
```
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
project = Project.new(client)
12+
13+
result = project.create_variable(
14+
variable_id: '<VARIABLE_ID>',
15+
key: '<KEY>',
16+
value: '<VALUE>',
17+
secret: false # optional
18+
)
19+
```
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+
project = Project.new(client)
12+
13+
result = project.delete_variable(
14+
variable_id: '<VARIABLE_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+
project = Project.new(client)
12+
13+
result = project.get_variable(
14+
variable_id: '<VARIABLE_ID>'
15+
)
16+
```
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
project = Project.new(client)
12+
13+
result = project.list_variables(
14+
queries: [], # optional
15+
total: false # optional
16+
)
17+
```

0 commit comments

Comments
 (0)