Skip to content

Commit 98b4497

Browse files
committed
Fix for path parsing and updated doc examples
1 parent f9a4d4c commit 98b4497

Some content is hidden

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

68 files changed

+953
-38
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Appwrite Ruby SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-ruby.svg?v=1)
4-
![Version](https://img.shields.io/badge/api%20version-0.6.0-blue.svg?v=1)
4+
![Version](https://img.shields.io/badge/api%20version-0.6.1-blue.svg?v=1)
55

6-
**This SDK is compatible with Appwrite server version 0.6.0. For older versions, please check previous releases.**
6+
**This SDK is compatible with Appwrite server version 0.6.1. For older versions, please check previous releases.**
77

88
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.
99
Use the Ruby SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools.

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 |s|
22

33
s.name = 'appwrite'
4-
s.version = '1.0.10'
4+
s.version = '1.0.11'
55
s.summary = "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.
66
Use the Ruby SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools.
77
For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
11+
avatars = Appwrite::Avatars.new(client);
12+
13+
response = avatars.get_browser(code: 'aa');
14+
15+
puts response
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
11+
avatars = Appwrite::Avatars.new(client);
12+
13+
response = avatars.get_credit_card(code: 'amex');
14+
15+
puts response
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
11+
avatars = Appwrite::Avatars.new(client);
12+
13+
response = avatars.get_favicon(url: 'https://example.com');
14+
15+
puts response

docs/examples/avatars/get-flag.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
11+
avatars = Appwrite::Avatars.new(client);
12+
13+
response = avatars.get_flag(code: 'af');
14+
15+
puts response

docs/examples/avatars/get-image.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
11+
avatars = Appwrite::Avatars.new(client);
12+
13+
response = avatars.get_image(url: 'https://example.com');
14+
15+
puts response

docs/examples/avatars/get-q-r.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
11+
avatars = Appwrite::Avatars.new(client);
12+
13+
response = avatars.get_q_r(text: '[TEXT]');
14+
15+
puts response
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
11+
database = Appwrite::Database.new(client);
12+
13+
response = database.create_collection(name: '[NAME]', read: [], write: [], rules: []);
14+
15+
puts response
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
11+
database = Appwrite::Database.new(client);
12+
13+
response = database.create_document(collection_id: '[COLLECTION_ID]', data: {}, read: [], write: []);
14+
15+
puts response

0 commit comments

Comments
 (0)