Skip to content

Commit 03649b9

Browse files
committed
Add 1.8.x support
1 parent ca3bdd0 commit 03649b9

79 files changed

Lines changed: 4648 additions & 95 deletions

Some content is hidden

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

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.7.4-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.8.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.7.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.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 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)
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 = '16.1.0'
4+
spec.version = '17.0.0'
55
spec.license = 'BSD-3-Clause'
66
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'
77
spec.author = 'Appwrite Team'

docs/examples/databases/create.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ databases = Databases.new(client)
1212
result = databases.create(
1313
database_id: '<DATABASE_ID>',
1414
name: '<NAME>',
15-
enabled: false # optional
15+
enabled: false, # optional
16+
type: ::TABLESDB # optional
1617
)

docs/examples/functions/create-execution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ result = functions.create_execution(
1616
path: '<PATH>', # optional
1717
method: ExecutionMethod::GET, # optional
1818
headers: {}, # optional
19-
scheduled_at: '' # optional
19+
scheduled_at: '<SCHEDULED_AT>' # optional
2020
)
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+
tables_db = TablesDb.new(client)
11+
12+
result = tables_db.create_boolean_column(
13+
database_id: '<DATABASE_ID>',
14+
table_id: '<TABLE_ID>',
15+
key: '',
16+
required: false,
17+
default: false, # 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+
tables_db = TablesDb.new(client)
11+
12+
result = tables_db.create_datetime_column(
13+
database_id: '<DATABASE_ID>',
14+
table_id: '<TABLE_ID>',
15+
key: '',
16+
required: false,
17+
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+
tables_db = TablesDb.new(client)
11+
12+
result = tables_db.create_email_column(
13+
database_id: '<DATABASE_ID>',
14+
table_id: '<TABLE_ID>',
15+
key: '',
16+
required: false,
17+
default: 'email@example.com', # optional
18+
array: false # optional
19+
)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
tables_db = TablesDb.new(client)
11+
12+
result = tables_db.create_enum_column(
13+
database_id: '<DATABASE_ID>',
14+
table_id: '<TABLE_ID>',
15+
key: '',
16+
elements: [],
17+
required: false,
18+
default: '<DEFAULT>', # optional
19+
array: false # optional
20+
)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
tables_db = TablesDb.new(client)
11+
12+
result = tables_db.create_float_column(
13+
database_id: '<DATABASE_ID>',
14+
table_id: '<TABLE_ID>',
15+
key: '',
16+
required: false,
17+
min: null, # optional
18+
max: null, # optional
19+
default: null, # optional
20+
array: false # optional
21+
)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
include Appwrite::Enums
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+
tables_db = TablesDb.new(client)
12+
13+
result = tables_db.create_index(
14+
database_id: '<DATABASE_ID>',
15+
table_id: '<TABLE_ID>',
16+
key: '',
17+
type: IndexType::KEY,
18+
columns: [],
19+
orders: [], # optional
20+
lengths: [] # optional
21+
)

0 commit comments

Comments
 (0)