Skip to content

Commit

Permalink
Merge pull request #12 from appwrite/dev
Browse files Browse the repository at this point in the history
chore: update role helper class
  • Loading branch information
christyjacob4 authored Sep 22, 2022
2 parents 0bd7e07 + 0b17a0b commit 166f743
Show file tree
Hide file tree
Showing 16 changed files with 39 additions and 43 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)

**This SDK is compatible with Appwrite server version 1.0.0. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-ruby/releases).**
**This SDK is compatible with Appwrite server version 1.0.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-ruby/releases).**

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)

Expand Down
2 changes: 1 addition & 1 deletion appwrite.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Gem::Specification.new do |spec|

spec.name = 'appwrite'
spec.version = '7.0.0'
spec.version = '7.1.0'
spec.license = 'BSD-3-Clause'
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'
spec.author = 'Appwrite Team'
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/account/get-logs.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require 'appwrite'

include Appwrite
client = Appwrite::Client.new

client = Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token

account = Account.new(client)
account = Appwrite::Account.new(client)

response = account.get_logs()

Expand Down
6 changes: 3 additions & 3 deletions docs/examples/account/get-sessions.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require 'appwrite'

include Appwrite
client = Appwrite::Client.new

client = Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token

account = Account.new(client)
account = Appwrite::Account.new(client)

response = account.get_sessions()

Expand Down
6 changes: 3 additions & 3 deletions docs/examples/locale/get-continents.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require 'appwrite'

include Appwrite
client = Appwrite::Client.new

client = Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key

locale = Locale.new(client)
locale = Appwrite::Locale.new(client)

response = locale.get_continents()

Expand Down
6 changes: 3 additions & 3 deletions docs/examples/locale/get-countries-e-u.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require 'appwrite'

include Appwrite
client = Appwrite::Client.new

client = Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key

locale = Locale.new(client)
locale = Appwrite::Locale.new(client)

response = locale.get_countries_eu()

Expand Down
6 changes: 3 additions & 3 deletions docs/examples/locale/get-countries-phones.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require 'appwrite'

include Appwrite
client = Appwrite::Client.new

client = Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key

locale = Locale.new(client)
locale = Appwrite::Locale.new(client)

response = locale.get_countries_phones()

Expand Down
6 changes: 3 additions & 3 deletions docs/examples/locale/get-countries.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require 'appwrite'

include Appwrite
client = Appwrite::Client.new

client = Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key

locale = Locale.new(client)
locale = Appwrite::Locale.new(client)

response = locale.get_countries()

Expand Down
6 changes: 3 additions & 3 deletions docs/examples/locale/get-currencies.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require 'appwrite'

include Appwrite
client = Appwrite::Client.new

client = Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key

locale = Locale.new(client)
locale = Appwrite::Locale.new(client)

response = locale.get_currencies()

Expand Down
6 changes: 3 additions & 3 deletions docs/examples/locale/get-languages.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require 'appwrite'

include Appwrite
client = Appwrite::Client.new

client = Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key

locale = Locale.new(client)
locale = Appwrite::Locale.new(client)

response = locale.get_languages()

Expand Down
6 changes: 3 additions & 3 deletions docs/examples/teams/get-memberships.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require 'appwrite'

include Appwrite
client = Appwrite::Client.new

client = Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key

teams = Teams.new(client)
teams = Appwrite::Teams.new(client)

response = teams.get_memberships(team_id: '[TEAM_ID]')

Expand Down
6 changes: 3 additions & 3 deletions docs/examples/users/get-logs.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require 'appwrite'

include Appwrite
client = Appwrite::Client.new

client = Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key

users = Users.new(client)
users = Appwrite::Users.new(client)

response = users.get_logs(user_id: '[USER_ID]')

Expand Down
6 changes: 3 additions & 3 deletions docs/examples/users/get-memberships.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require 'appwrite'

include Appwrite
client = Appwrite::Client.new

client = Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key

users = Users.new(client)
users = Appwrite::Users.new(client)

response = users.get_memberships(user_id: '[USER_ID]')

Expand Down
6 changes: 3 additions & 3 deletions docs/examples/users/get-sessions.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require 'appwrite'

include Appwrite
client = Appwrite::Client.new

client = Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key

users = Users.new(client)
users = Appwrite::Users.new(client)

response = users.get_sessions(user_id: '[USER_ID]')

Expand Down
2 changes: 1 addition & 1 deletion lib/appwrite/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def initialize
'x-sdk-name'=> 'Ruby',
'x-sdk-platform'=> 'server',
'x-sdk-language'=> 'ruby',
'x-sdk-version'=> '7.0.0',
'x-sdk-version'=> '7.1.0',
'X-Appwrite-Response-Format' => '1.0.0'
}
@endpoint = 'https://HOSTNAME/v1'
Expand Down
4 changes: 0 additions & 4 deletions lib/appwrite/role.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@ def self.team(id, role = "")
def self.member(id)
"member:#{id}"
end

def self.status(status)
"status:#{status}"
end
end
end

0 comments on commit 166f743

Please sign in to comment.