Skip to content

Commit d15edcf

Browse files
Merge pull request #17 from appwrite/dev
Dev
2 parents 1406f00 + a68629d commit d15edcf

File tree

9 files changed

+10
-18
lines changed

9 files changed

+10
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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-1.4.0-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.4.2-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)

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 = '9.0.1'
4+
spec.version = '10.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'

docs/examples/functions/create.md

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

1010
functions = Functions.new(client)
1111

12-
response = functions.create(function_id: '[FUNCTION_ID]', name: '[NAME]', runtime: 'node-14.5')
12+
response = functions.create(function_id: '[FUNCTION_ID]', name: '[NAME]', runtime: 'node-18.0')
1313

1414
puts response.inspect

docs/examples/functions/update.md

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

1010
functions = Functions.new(client)
1111

12-
response = functions.update(function_id: '[FUNCTION_ID]', name: '[NAME]', runtime: 'node-14.5')
12+
response = functions.update(function_id: '[FUNCTION_ID]', name: '[NAME]')
1313

1414
puts response.inspect

docs/examples/teams/create-membership.md

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

1010
teams = Teams.new(client)
1111

12-
response = teams.create_membership(team_id: '[TEAM_ID]', roles: [], url: 'https://example.com')
12+
response = teams.create_membership(team_id: '[TEAM_ID]', roles: [])
1313

1414
puts response.inspect

lib/appwrite/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def initialize
1515
'x-sdk-name'=> 'Ruby',
1616
'x-sdk-platform'=> 'server',
1717
'x-sdk-language'=> 'ruby',
18-
'x-sdk-version'=> '9.0.1',
18+
'x-sdk-version'=> '10.0.0',
1919
'X-Appwrite-Response-Format' => '1.4.0'
2020
}
2121
@endpoint = 'https://HOSTNAME/v1'

lib/appwrite/services/functions.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def get(function_id:)
188188
# @param [String] provider_root_directory Path to function code in the linked repo.
189189
#
190190
# @return [Function]
191-
def update(function_id:, name:, runtime:, execute: nil, events: nil, schedule: nil, timeout: nil, enabled: nil, logging: nil, entrypoint: nil, commands: nil, installation_id: nil, provider_repository_id: nil, provider_branch: nil, provider_silent_mode: nil, provider_root_directory: nil)
191+
def update(function_id:, name:, runtime: nil, execute: nil, events: nil, schedule: nil, timeout: nil, enabled: nil, logging: nil, entrypoint: nil, commands: nil, installation_id: nil, provider_repository_id: nil, provider_branch: nil, provider_silent_mode: nil, provider_root_directory: nil)
192192
api_path = '/functions/{functionId}'
193193
.gsub('{functionId}', function_id)
194194

@@ -200,10 +200,6 @@ def update(function_id:, name:, runtime:, execute: nil, events: nil, schedule: n
200200
raise Appwrite::Exception.new('Missing required parameter: "name"')
201201
end
202202

203-
if runtime.nil?
204-
raise Appwrite::Exception.new('Missing required parameter: "runtime"')
205-
end
206-
207203
api_params = {
208204
name: name,
209205
runtime: runtime,

lib/appwrite/services/teams.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,14 +231,14 @@ def list_memberships(team_id:, queries: nil, search: nil)
231231
#
232232
# @param [String] team_id Team ID.
233233
# @param [Array] roles Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
234-
# @param [String] url URL to redirect the user back to your app from the invitation email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
235234
# @param [String] email Email of the new team member.
236235
# @param [String] user_id ID of the user to be added to a team.
237236
# @param [String] phone Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
237+
# @param [String] url URL to redirect the user back to your app from the invitation email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
238238
# @param [String] name Name of the new team member. Max length: 128 chars.
239239
#
240240
# @return [Membership]
241-
def create_membership(team_id:, roles:, url:, email: nil, user_id: nil, phone: nil, name: nil)
241+
def create_membership(team_id:, roles:, email: nil, user_id: nil, phone: nil, url: nil, name: nil)
242242
api_path = '/teams/{teamId}/memberships'
243243
.gsub('{teamId}', team_id)
244244

@@ -250,10 +250,6 @@ def create_membership(team_id:, roles:, url:, email: nil, user_id: nil, phone: n
250250
raise Appwrite::Exception.new('Missing required parameter: "roles"')
251251
end
252252

253-
if url.nil?
254-
raise Appwrite::Exception.new('Missing required parameter: "url"')
255-
end
256-
257253
api_params = {
258254
email: email,
259255
userId: user_id,

lib/appwrite/services/users.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ def update_email(user_id:, email:)
617617
# docs](/docs/permissions) for more info.
618618
#
619619
# @param [String] user_id User ID.
620-
# @param [Array] labels Array of user labels. Replaces the previous labels. Maximum of 5 labels are allowed, each up to 36 alphanumeric characters long.
620+
# @param [Array] labels Array of user labels. Replaces the previous labels. Maximum of 100 labels are allowed, each up to 36 alphanumeric characters long.
621621
#
622622
# @return [User]
623623
def update_labels(user_id:, labels:)

0 commit comments

Comments
 (0)