Skip to content

Commit 50c04af

Browse files
committed
feat(version): support 0.12.0
1 parent f106c80 commit 50c04af

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

+2126
-349
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2021 Appwrite (https://appwrite.io) and individual contributors.
1+
Copyright (c) 2022 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,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.11.0-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-0.12.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.11.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.12.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
@@ -9,5 +9,5 @@ Gem::Specification.new do |spec|
99
spec.email = 'team@appwrite.io'
1010
spec.files = Dir['lib/**/*.rb']
1111

12-
spec.add_dependency 'mime-types', '~> 3.3.1'
12+
spec.add_dependency 'mime-types', '~> 3.4.1'
1313
end
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+
database = Appwrite::Database.new(client)
11+
12+
response = database.create_boolean_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false)
13+
14+
puts response.inspect

docs/examples/database/create-collection.md

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

1010
database = Appwrite::Database.new(client)
1111

12-
response = database.create_collection(name: '[NAME]', read: [], write: [], rules: [])
12+
response = database.create_collection(collection_id: '', name: '[NAME]', permission: 'document', read: ["role:all"], write: ["role:all"])
1313

1414
puts response.inspect

docs/examples/database/create-document.md

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

1010
database = Appwrite::Database.new(client)
1111

12-
response = database.create_document(collection_id: '[COLLECTION_ID]', data: {})
12+
response = database.create_document(collection_id: '[COLLECTION_ID]', document_id: '', data: {})
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+
database = Appwrite::Database.new(client)
11+
12+
response = database.create_email_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false)
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+
database = Appwrite::Database.new(client)
11+
12+
response = database.create_enum_attribute(collection_id: '[COLLECTION_ID]', key: '', elements: [], required: false)
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+
database = Appwrite::Database.new(client)
11+
12+
response = database.create_float_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false)
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+
database = Appwrite::Database.new(client)
11+
12+
response = database.create_index(collection_id: '[COLLECTION_ID]', key: '', type: 'key', attributes: [])
13+
14+
puts response.inspect

0 commit comments

Comments
 (0)