Skip to content

Commit 2f4e131

Browse files
committed
Add support for 1.7
1 parent 9ff8b24 commit 2f4e131

Some content is hidden

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

81 files changed

+2545
-194
lines changed

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.6.2-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.7.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.6.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.7.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 = '15.1.0-rc.1'
4+
spec.version = '15.2.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/avatars/get-browser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ result = avatars.get_browser(
1414
code: Browser::AVANT_BROWSER,
1515
width: 0, # optional
1616
height: 0, # optional
17-
quality: 0 # optional
17+
quality: -1 # optional
1818
)

docs/examples/avatars/get-credit-card.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ result = avatars.get_credit_card(
1414
code: CreditCard::AMERICAN_EXPRESS,
1515
width: 0, # optional
1616
height: 0, # optional
17-
quality: 0 # optional
17+
quality: -1 # optional
1818
)

docs/examples/avatars/get-flag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ result = avatars.get_flag(
1414
code: Flag::AFGHANISTAN,
1515
width: 0, # optional
1616
height: 0, # optional
17-
quality: 0 # optional
17+
quality: -1 # optional
1818
)

docs/examples/databases/create-document.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ include Appwrite
44

55
client = Client.new
66
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7-
.set_project('<YOUR_PROJECT_ID>') # Your project ID
87
.set_session('') # The user session to authenticate with
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
9+
.set_jwt('<YOUR_JWT>') # Your secret JSON Web Token
910

1011
databases = Databases.new(client)
1112

docs/examples/databases/create-documents.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ include Appwrite
44

55
client = Client.new
66
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7-
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8-
.set_session('') # The user session to authenticate with
7+
.set_key('<YOUR_API_KEY>') # Your secret API key
98

109
databases = Databases.new(client)
1110

docs/examples/databases/create-index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ result = databases.create_index(
1616
key: '',
1717
type: IndexType::KEY,
1818
attributes: [],
19-
orders: [] # optional
19+
orders: [], # optional
20+
lengths: [] # optional
2021
)

docs/examples/functions/create-build.md renamed to docs/examples/functions/create-duplicate-deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ client = Client.new
99

1010
functions = Functions.new(client)
1111

12-
result = functions.create_build(
12+
result = functions.create_duplicate_deployment(
1313
function_id: '<FUNCTION_ID>',
1414
deployment_id: '<DEPLOYMENT_ID>',
1515
build_id: '<BUILD_ID>' # optional
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+
functions = Functions.new(client)
11+
12+
result = functions.create_template_deployment(
13+
function_id: '<FUNCTION_ID>',
14+
repository: '<REPOSITORY>',
15+
owner: '<OWNER>',
16+
root_directory: '<ROOT_DIRECTORY>',
17+
version: '<VERSION>',
18+
activate: false # optional
19+
)

0 commit comments

Comments
 (0)