Skip to content

Commit fdf87cd

Browse files
Merge pull request #35 from appwrite/feat-push-params
Add new push message parameters
2 parents 33bfc16 + 323ef57 commit fdf87cd

File tree

11 files changed

+43
-25
lines changed

11 files changed

+43
-25
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2024 Appwrite (https://appwrite.io) and individual contributors.
1+
Copyright (c) 2025 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: 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.6.0-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.6.1-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 = '13.0.1'
4+
spec.version = '13.1.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/messaging/create-push.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ messaging = Messaging.new(client)
1111

1212
result = messaging.create_push(
1313
message_id: '<MESSAGE_ID>',
14-
title: '<TITLE>',
15-
body: '<BODY>',
14+
title: '<TITLE>', # optional
15+
body: '<BODY>', # optional
1616
topics: [], # optional
1717
users: [], # optional
1818
targets: [], # optional
@@ -23,7 +23,10 @@ result = messaging.create_push(
2323
sound: '<SOUND>', # optional
2424
color: '<COLOR>', # optional
2525
tag: '<TAG>', # optional
26-
badge: '<BADGE>', # optional
26+
badge: null, # optional
2727
draft: false, # optional
28-
scheduled_at: '' # optional
28+
scheduled_at: '', # optional
29+
content_available: false, # optional
30+
critical: false, # optional
31+
priority: MessagePriority::NORMAL # optional
2932
)

docs/examples/messaging/update-push.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,8 @@ result = messaging.update_push(
2525
tag: '<TAG>', # optional
2626
badge: null, # optional
2727
draft: false, # optional
28-
scheduled_at: '' # optional
28+
scheduled_at: '', # optional
29+
content_available: false, # optional
30+
critical: false, # optional
31+
priority: MessagePriority::NORMAL # optional
2932
)

lib/appwrite.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
require_relative 'appwrite/enums/runtime'
117117
require_relative 'appwrite/enums/execution_method'
118118
require_relative 'appwrite/enums/name'
119+
require_relative 'appwrite/enums/message_priority'
119120
require_relative 'appwrite/enums/smtp_encryption'
120121
require_relative 'appwrite/enums/compression'
121122
require_relative 'appwrite/enums/image_gravity'

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'=> '13.0.1',
18+
'x-sdk-version'=> '13.1.0',
1919
'X-Appwrite-Response-Format' => '1.6.0'
2020
}
2121
@endpoint = 'https://cloud.appwrite.io/v1'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module Appwrite
2+
module Enums
3+
module MessagePriority
4+
NORMAL = 'normal'
5+
HIGH = 'high'
6+
end
7+
end
8+
end

lib/appwrite/enums/runtime.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ module Runtime
5959
BUN_1_1 = 'bun-1.1'
6060
GO_1_23 = 'go-1.23'
6161
STATIC_1 = 'static-1'
62+
FLUTTER_3_24 = 'flutter-3.24'
6263
end
6364
end
6465
end

lib/appwrite/services/account.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,9 +1206,7 @@ def create_email_token(user_id:, email:, phrase: nil)
12061206
# [POST
12071207
# /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession)
12081208
# endpoint to complete the login process. The link sent to the user's email
1209-
# address is valid for 1 hour. If you are on a mobile device you can leave
1210-
# the URL parameter empty, so that the login completion will be handled by
1211-
# your Appwrite instance by default.
1209+
# address is valid for 1 hour.
12121210
#
12131211
# A user is limited to 10 active sessions at a time by default. [Learn more
12141212
# about session

0 commit comments

Comments
 (0)