Skip to content

Commit 612a2a1

Browse files
feat: support for 0.13.0
1 parent f208b7d commit 612a2a1

Some content is hidden

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

64 files changed

+1253
-575
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-0.12.0-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-0.13.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 0.12.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 0.13.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 = '3.0.1'
4+
spec.version = '3.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'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
require 'appwrite'
2+
3+
client = Appwrite::Client.new
4+
5+
client
6+
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
7+
.set_project('5df5acd0d48c2') # Your project ID
8+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
9+
10+
account = Appwrite::Account.new(client)
11+
12+
response = account.update_session(session_id: '[SESSION_ID]')
13+
14+
puts response.inspect
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
require 'appwrite'
2+
3+
client = Appwrite::Client.new
4+
5+
client
6+
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
7+
.set_project('5df5acd0d48c2') # Your project ID
8+
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
9+
10+
functions = Appwrite::Functions.new(client)
11+
12+
response = functions.create_deployment(function_id: '[FUNCTION_ID]', entrypoint: '[ENTRYPOINT]', code: File.new(), activate: false)
13+
14+
puts response.inspect

docs/examples/functions/create-tag.md renamed to docs/examples/functions/delete-deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ client
99

1010
functions = Appwrite::Functions.new(client)
1111

12-
response = functions.create_tag(function_id: '[FUNCTION_ID]', command: '[COMMAND]', code: File.new())
12+
response = functions.delete_deployment(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]')
1313

1414
puts response.inspect
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ client
99

1010
functions = Appwrite::Functions.new(client)
1111

12-
response = functions.update_tag(function_id: '[FUNCTION_ID]', tag: '[TAG]')
12+
response = functions.get_deployment(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]')
1313

1414
puts response.inspect

docs/examples/functions/list-tags.md renamed to docs/examples/functions/list-deployments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ client
99

1010
functions = Appwrite::Functions.new(client)
1111

12-
response = functions.list_tags(function_id: '[FUNCTION_ID]')
12+
response = functions.list_deployments(function_id: '[FUNCTION_ID]')
1313

1414
puts response.inspect
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ client
99

1010
functions = Appwrite::Functions.new(client)
1111

12-
response = functions.get_tag(function_id: '[FUNCTION_ID]', tag_id: '[TAG_ID]')
12+
response = functions.retry_build(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]', build_id: '[BUILD_ID]')
1313

1414
puts response.inspect

docs/examples/functions/delete-tag.md renamed to docs/examples/functions/update-deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ client
99

1010
functions = Appwrite::Functions.new(client)
1111

12-
response = functions.delete_tag(function_id: '[FUNCTION_ID]', tag_id: '[TAG_ID]')
12+
response = functions.update_deployment(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]')
1313

1414
puts response.inspect
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
require 'appwrite'
2+
3+
client = Appwrite::Client.new
4+
5+
client
6+
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
7+
.set_project('5df5acd0d48c2') # Your project ID
8+
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
9+
10+
storage = Appwrite::Storage.new(client)
11+
12+
response = storage.create_bucket(bucket_id: '[BUCKET_ID]', name: '[NAME]', permission: 'file')
13+
14+
puts response.inspect

0 commit comments

Comments
Β (0)