Skip to content

Commit 14ae834

Browse files
feat(version): support 0.11.0
1 parent bd6e44a commit 14ae834

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
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.10.0-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-0.11.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_io?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite_io)
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.10.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.11.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 |s|
22

33
s.name = 'appwrite'
4-
s.version = '2.4.0'
4+
s.version = '2.4.1'
55
s.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"
66
s.author = 'Appwrite Team'
77
s.homepage = 'https://appwrite.io/support'

lib/appwrite/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def initialize()
2020
@headers = {
2121
'content-type' => '',
2222
'user-agent' => RUBY_PLATFORM + ':ruby-' + RUBY_VERSION,
23-
'x-sdk-version' => 'appwrite:ruby:2.4.0',
23+
'x-sdk-version' => 'appwrite:ruby:2.4.1',
2424
'X-Appwrite-Response-Format' => '0.10.0'
2525
}
2626
@endpoint = 'https://appwrite.io/v1';

lib/appwrite/services/teams.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,6 @@ def create_membership(team_id:, email:, roles:, url:, name: nil)
159159
params[:email] = email
160160
end
161161

162-
if !name.nil?
163-
params[:name] = name
164-
end
165-
166162
if !roles.nil?
167163
params[:roles] = roles
168164
end
@@ -171,6 +167,10 @@ def create_membership(team_id:, email:, roles:, url:, name: nil)
171167
params[:url] = url
172168
end
173169

170+
if !name.nil?
171+
params[:name] = name
172+
end
173+
174174
return @client.call('post', path, {
175175
'content-type' => 'application/json',
176176
}, params);

0 commit comments

Comments
 (0)