Skip to content

Commit b3157c8

Browse files
authored
Merge pull request #58 from appwrite/dev
feat: Ruby SDK update for version 23.0.0
2 parents 86886e7 + d14e98c commit b3157c8

Some content is hidden

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

85 files changed

+3095
-98
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Change Log
22

3+
## 23.0.0
4+
5+
* [BREAKING] Renamed Webhook model fields: `security``tls`, `httpUser``authUsername`, `httpPass``authPassword`, `signatureKey``secret`
6+
* [BREAKING] Renamed Webhook service parameters to match: `security``tls`, `httpUser``authUsername`, `httpPass``authPassword`
7+
* [BREAKING] Renamed `Webhooks#update_signature` to `Webhooks#update_secret` with new optional `secret` parameter
8+
* Added `Client#get_headers` method to retrieve request headers
9+
* Added `secret` parameter to Webhook create and update methods
10+
* Added `x` OAuth provider to `OAuthProvider` enum
11+
* Added `userType` field to `Log` model
12+
* Added `purge` parameter to `update_collection` and `update_table` for cache invalidation
13+
* Added Project service: platform CRUD, key CRUD, protocol/service status management
14+
* Added new models: `Key`, `KeyList`, `Project`, `DevKey`, `MockNumber`, `AuthProvider`, `PlatformAndroid`, `PlatformApple`, `PlatformLinux`, `PlatformList`, `PlatformWeb`, `PlatformWindows`, `BillingLimits`, `Block`
15+
* Added new enums: `PlatformType`, `ProtocolId`, `ServiceId`
16+
* Updated `BuildRuntime`, `Runtime` enums with `dart-3.11` and `flutter-3.41`
17+
* Updated `Scopes` enum with `keys_read`, `keys_write`, `platforms_read`, `platforms_write`
18+
* Updated `X-Appwrite-Response-Format` header to `1.9.1`
19+
* Updated TTL description for list caching in Databases and TablesDB
20+
321
## 22.0.0
422

523
* [BREAKING] Changed `$sequence` type from `int` to `string` for rows and documents

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.9.0-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.9.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 = '22.0.0'
4+
spec.version = '23.0.0'
55
spec.license = 'BSD-3-Clause'
66
spec.summary = 'Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API'
77
spec.author = 'Appwrite Team'

docs/examples/databases/create-datetime-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ result = databases.create_datetime_attribute(
1515
collection_id: '<COLLECTION_ID>',
1616
key: '',
1717
required: false,
18-
default: '', # optional
18+
default: '2020-10-15T06:38:00.000+00:00', # optional
1919
array: false # optional
2020
)
2121
```

docs/examples/databases/update-collection.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ result = databases.update_collection(
1818
name: '<NAME>', # optional
1919
permissions: [Permission.read(Role.any())], # optional
2020
document_security: false, # optional
21-
enabled: false # optional
21+
enabled: false, # optional
22+
purge: false # optional
2223
)
2324
```

docs/examples/databases/update-datetime-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ result = databases.update_datetime_attribute(
1515
collection_id: '<COLLECTION_ID>',
1616
key: '',
1717
required: false,
18-
default: '',
18+
default: '2020-10-15T06:38:00.000+00:00',
1919
new_key: '' # optional
2020
)
2121
```

docs/examples/messaging/create-email.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ result = messaging.create_email(
2222
attachments: [], # optional
2323
draft: false, # optional
2424
html: false, # optional
25-
scheduled_at: '' # optional
25+
scheduled_at: '2020-10-15T06:38:00.000+00:00' # optional
2626
)
2727
```

docs/examples/messaging/create-push.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ result = messaging.create_push(
2727
tag: '<TAG>', # optional
2828
badge: null, # optional
2929
draft: false, # optional
30-
scheduled_at: '', # optional
30+
scheduled_at: '2020-10-15T06:38:00.000+00:00', # optional
3131
content_available: false, # optional
3232
critical: false, # optional
3333
priority: MessagePriority::NORMAL # optional

docs/examples/messaging/create-sms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ result = messaging.create_sms(
1717
users: [], # optional
1818
targets: [], # optional
1919
draft: false, # optional
20-
scheduled_at: '' # optional
20+
scheduled_at: '2020-10-15T06:38:00.000+00:00' # optional
2121
)
2222
```

docs/examples/messaging/update-email.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ result = messaging.update_email(
2121
html: false, # optional
2222
cc: [], # optional
2323
bcc: [], # optional
24-
scheduled_at: '', # optional
24+
scheduled_at: '2020-10-15T06:38:00.000+00:00', # optional
2525
attachments: [] # optional
2626
)
2727
```

0 commit comments

Comments
 (0)